bitz-react-admin-ui 2.3.1 → 2.3.3

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 (62) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +4 -26
  2. package/dist/components/BitzConfigProvider/context.d.ts +1 -0
  3. package/dist/components/BitzConfigProvider/context.mjs +4 -3
  4. package/dist/components/BitzHighlight/style.mjs +12 -12
  5. package/dist/components/BitzTable/ActionBar/style.mjs +21 -21
  6. package/dist/components/BitzTable/ActionCol/index.mjs +59 -58
  7. package/dist/components/BitzTable/ActionCol/style.d.ts +1 -1
  8. package/dist/components/BitzTable/ActionCol/style.mjs +28 -28
  9. package/dist/components/BitzTable/Dropdown/style.mjs +25 -25
  10. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +26 -15
  11. package/dist/components/BitzTable/SelectionBar/style.mjs +24 -24
  12. package/dist/components/BitzTable/Store/index.d.ts +4 -0
  13. package/dist/components/BitzTable/Store/index.mjs +90 -88
  14. package/dist/components/BitzTable/SubTable/index.mjs +94 -94
  15. package/dist/components/BitzTable/Table/SortTableContext.d.ts +3 -5
  16. package/dist/components/BitzTable/Table/SortTableContext.mjs +42 -19
  17. package/dist/components/BitzTable/Table/index.d.ts +1 -2
  18. package/dist/components/BitzTable/Table/index.mjs +247 -245
  19. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +51 -47
  20. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +61 -60
  21. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +46 -38
  22. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +44 -44
  23. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -12
  24. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +46 -43
  25. package/dist/components/BitzTable/ToolBar/style.mjs +21 -21
  26. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +15 -16
  27. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +13 -14
  28. package/dist/components/BitzTableSelect/TableCell/index.mjs +34 -33
  29. package/dist/components/BitzTableSelect/TextBlock/index.mjs +20 -18
  30. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +7 -8
  31. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  32. package/dist/style.css +1 -1
  33. package/package.json +1 -1
  34. package/dist/_virtual/Draggable.mjs +0 -4
  35. package/dist/_virtual/DraggableCore.mjs +0 -4
  36. package/dist/_virtual/Resizable.mjs +0 -4
  37. package/dist/_virtual/ResizableBox.mjs +0 -4
  38. package/dist/_virtual/cjs.mjs +0 -4
  39. package/dist/_virtual/clsx.m.mjs +0 -6
  40. package/dist/_virtual/domFns.mjs +0 -4
  41. package/dist/_virtual/getPrefix.mjs +0 -4
  42. package/dist/_virtual/index6.mjs +0 -4
  43. package/dist/_virtual/log.mjs +0 -4
  44. package/dist/_virtual/positionFns.mjs +0 -4
  45. package/dist/_virtual/propTypes.mjs +0 -4
  46. package/dist/_virtual/shims.mjs +0 -4
  47. package/dist/_virtual/utils.mjs +0 -4
  48. package/dist/components/BitzTable/Table/ResizableTitle.mjs +0 -32
  49. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +0 -22
  50. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +0 -343
  51. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +0 -324
  52. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +0 -14
  53. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +0 -174
  54. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +0 -35
  55. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +0 -7
  56. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +0 -107
  57. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +0 -30
  58. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +0 -201
  59. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +0 -162
  60. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +0 -118
  61. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +0 -54
  62. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +0 -13
@@ -1,13 +1,13 @@
1
1
  import { j as o } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import F, { useState as v, useMemo as M } from "react";
2
+ import F, { useState as E, useMemo as M } from "react";
3
3
  import { useSortable as O } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
4
- import { CSS as _ } from "../../../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
5
- import { theme as I, Flex as d, Checkbox as k, Tooltip as $ } from "antd";
6
- import q from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
7
- import A from "../../../../../assets/iconfont/IconDragOrder.mjs";
8
- import x from "../../../../../assets/iconfont/IconColumnFixedLeft.mjs";
9
- import g from "../../../../../assets/iconfont/IconColumnFixedRight.mjs";
10
- import h from "../../../../../assets/iconfont/IconColumnCancelFixed.mjs";
4
+ import { CSS as v } from "../../../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
5
+ import { theme as j, Flex as d, Checkbox as _, Tooltip as k } from "antd";
6
+ import $ from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
7
+ import q from "../../../../../assets/iconfont/IconDragOrder.mjs";
8
+ import u from "../../../../../assets/iconfont/IconColumnFixedLeft.mjs";
9
+ import x from "../../../../../assets/iconfont/IconColumnFixedRight.mjs";
10
+ import g from "../../../../../assets/iconfont/IconColumnCancelFixed.mjs";
11
11
  import "../../../../../assets/iconfont/IconMore.mjs";
12
12
  import "../../../../../assets/iconfont/IconIcFluentHomeRegular.mjs";
13
13
  import "../../../../../assets/iconfont/IconKuansongde.mjs";
@@ -37,10 +37,10 @@ import "../../../../../assets/iconfont/IconFabu.mjs";
37
37
  import "../../../../../assets/iconfont/IconShanchu1.mjs";
38
38
  import "../../../../../assets/iconfont/IconShanchu.mjs";
39
39
  import "../../../../../assets/iconfont/IconTuodong.mjs";
40
- const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
41
- const { token: s } = I.useToken();
40
+ const h = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
41
+ const { token: s } = j.useToken();
42
42
  return /* @__PURE__ */ o.jsx(
43
- $,
43
+ k,
44
44
  {
45
45
  getTooltipContainer: (p) => p.parentElement,
46
46
  title: e,
@@ -55,7 +55,7 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
55
55
  )
56
56
  }
57
57
  );
58
- }, B = ({
58
+ }, A = ({
59
59
  item: t,
60
60
  isDragOverlay: n,
61
61
  placement: r,
@@ -66,31 +66,29 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
66
66
  const {
67
67
  attributes: p,
68
68
  isDragging: m,
69
- setNodeRef: S,
69
+ setNodeRef: I,
70
70
  listeners: y,
71
- transform: N,
72
- transition: T
71
+ transform: S,
72
+ transition: N
73
73
  } = O({
74
74
  id: t == null ? void 0 : t.key
75
75
  // disabled: item?.disabled,
76
- }), { token: w } = I.useToken(), z = {
77
- transition: T,
78
- transform: _.Transform.toString(N),
76
+ }), { token: T } = j.useToken(), w = {
77
+ transition: N,
78
+ transform: v.Transform.toString(S),
79
79
  ...m && {
80
80
  opacity: 0.6
81
81
  }
82
- }, D = ({ target: l }) => {
83
- s == null || s(t.key, l.checked);
84
- }, [a, E] = v(!1), c = (l) => {
85
- E(l);
86
- }, { text: f, icon: u } = M(() => r === "left" ? {
82
+ }, z = ({ target: D }) => {
83
+ s == null || s(t.key, D.checked);
84
+ }, [l, a] = E(!1), { text: c, icon: f } = M(() => r === "left" ? {
87
85
  text: {
88
86
  left: "取消固定",
89
87
  right: "固定在右侧"
90
88
  },
91
89
  icon: {
92
- left: h,
93
- right: g
90
+ left: g,
91
+ right: x
94
92
  }
95
93
  } : r === "center" ? {
96
94
  text: {
@@ -98,8 +96,8 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
98
96
  right: "固定在右侧"
99
97
  },
100
98
  icon: {
101
- left: x,
102
- right: g
99
+ left: u,
100
+ right: x
103
101
  }
104
102
  } : {
105
103
  text: {
@@ -107,28 +105,34 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
107
105
  right: "取消固定"
108
106
  },
109
107
  icon: {
110
- left: x,
111
- right: h
108
+ left: u,
109
+ right: g
112
110
  }
113
111
  }, [r]);
114
112
  return /* @__PURE__ */ o.jsxs(
115
113
  "div",
116
114
  {
117
- className: q({ sortItemDragging: m }, "sortItem", {
118
- showSortItemOperat: a && !n
115
+ className: $({ sortItemDragging: m }, "sortItem", {
116
+ showSortItemOperat: l && !n
119
117
  }),
120
- style: z,
121
- ref: S,
122
- onMouseEnter: () => c(!0),
123
- onMouseLeave: () => c(!1),
118
+ style: w,
119
+ ref: I,
120
+ onMouseEnter: () => a(!0),
121
+ onMouseLeave: () => a(!1),
124
122
  ...p,
125
123
  children: [
126
- /* @__PURE__ */ o.jsx(d, { align: "center", className: "dragIcon", ...y, children: /* @__PURE__ */ o.jsx(A, { size: w.fontSize + 4 }) }),
124
+ /* @__PURE__ */ o.jsx(d, { align: "center", className: "dragIcon", ...y, children: /* @__PURE__ */ o.jsx(
125
+ q,
126
+ {
127
+ size: T.fontSize + 4,
128
+ style: { opacity: l ? 1 : 0.3 }
129
+ }
130
+ ) }),
127
131
  /* @__PURE__ */ o.jsx(
128
- k,
132
+ _,
129
133
  {
130
134
  checked: t.show,
131
- onChange: D,
135
+ onChange: z,
132
136
  title: t.title,
133
137
  children: t.title
134
138
  }
@@ -138,28 +142,28 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
138
142
  {
139
143
  style: {
140
144
  height: "100%",
141
- display: a && !n ? "flex" : "none"
145
+ display: l && !n ? "flex" : "none"
142
146
  },
143
147
  align: "center",
144
148
  className: "operation pointerCursor",
145
149
  children: [
146
150
  /* @__PURE__ */ o.jsx(
147
- j,
151
+ h,
148
152
  {
149
153
  className: "leftOperation",
150
- title: f.left,
154
+ title: c.left,
151
155
  open: m,
152
- icon: u.left,
156
+ icon: f.left,
153
157
  onClick: () => e == null ? void 0 : e(t.key, r)
154
158
  }
155
159
  ),
156
160
  /* @__PURE__ */ o.jsx(
157
- j,
161
+ h,
158
162
  {
159
163
  className: "rightOperation",
160
- title: f.right,
164
+ title: c.right,
161
165
  open: m,
162
- icon: u.right,
166
+ icon: f.right,
163
167
  onClick: () => i == null ? void 0 : i(t.key, r)
164
168
  }
165
169
  )
@@ -169,7 +173,7 @@ const j = ({ icon: t, className: n, open: r, title: e, onClick: i }) => {
169
173
  ]
170
174
  }
171
175
  );
172
- }, Tt = F.memo(B);
176
+ }, Nt = F.memo(A);
173
177
  export {
174
- Tt as default
178
+ Nt as default
175
179
  };
@@ -1,40 +1,41 @@
1
1
  import { j as r } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { css as me } from "../../../../../node_modules/.store/@emotion_css@11.11.2/node_modules/@emotion/css/dist/emotion-css.esm.mjs";
3
- import { theme as pe, Flex as F, Typography as q, Space as xe, Checkbox as ge, Button as Ce } from "antd";
4
- import { forwardRef as ye, useRef as ke, useMemo as k, useContext as Me, useEffect as G, useState as m, useImperativeHandle as we, memo as Le } from "react";
5
- import { useImmer as Se } from "../../../../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
6
- import je from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
3
+ import { theme as pe, Flex as B, Typography as q, Space as xe, Checkbox as ge, Button as Ce } from "antd";
4
+ import { forwardRef as ye, useRef as ke, useMemo as k, useContext as Me, useEffect as G, useState as m, useImperativeHandle as je, memo as we } from "react";
5
+ import { useImmer as Le } from "../../../../../node_modules/.store/use-immer@0.9.0/node_modules/use-immer/dist/use-immer.module.mjs";
6
+ import Se from "../../../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
7
7
  import "../../../index.mjs";
8
- import { columnSort as Ke, genColumnKey as be, updateNestedObject as j } from "../../../Store/utils/index.mjs";
8
+ import { columnSort as be, genColumnKey as Ke, updateNestedObject as S } from "../../../Store/utils/index.mjs";
9
9
  import J from "./DndList.mjs";
10
10
  import { BitzTableContext as ve } from "../../../Store/index.mjs";
11
11
  import Ne from "../../../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs";
12
12
  import Ee from "../../../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/omit.mjs";
13
13
  const Re = ye(
14
- ({ display: K, parentHeight: I }, H) => {
15
- const { token: ee } = pe.useToken(), Q = ke(null), f = je(Q), te = k(() => ({
14
+ ({ display: b, parentHeight: I }, te) => {
15
+ const { token: se } = pe.useToken(), Q = ke(null), f = Se(Q), oe = k(() => ({
16
16
  // display: display ? 'flex' : 'none'
17
- width: K ? "100%" : 0,
17
+ width: b ? "100%" : 0,
18
18
  height: "100%",
19
- pointerEvents: K ? "auto" : "none",
20
- opacity: K ? 1 : 0,
19
+ pointerEvents: b ? "auto" : "none",
20
+ opacity: b ? 1 : 0,
21
21
  overflow: "hidden",
22
- ...K ? {} : {
22
+ ...b ? {} : {
23
23
  position: "absolute",
24
24
  left: 0,
25
25
  right: 0
26
26
  }
27
- }), [K]), O = {
27
+ }), [b]), F = {
28
28
  height: k(() => typeof I == "number" && I && (f != null && f.height) ? I - (f == null ? void 0 : f.height) - 16 : "auto", [I, f == null ? void 0 : f.height]),
29
29
  overflow: "hidden auto",
30
30
  gap: 6
31
- }, { defaultColumnKeyMap: se, columns: U, columnsMap: oe } = Me(ve), [i, V] = Se({});
31
+ }, { defaultColumnKeyMap: U, columns: V, columnsMap: W } = Me(ve), [i, X] = Le({});
32
32
  G(() => {
33
- V({ ...oe });
33
+ const e = Object.keys(W).length ? W : U;
34
+ X(e);
34
35
  }, []);
35
- const W = k(() => ((s, t) => s.map((n) => {
36
- var _;
37
- const { key: o, dataIndex: c, children: l, ...C } = n, y = be(
36
+ const Y = k(() => ((s, t) => s.map((n) => {
37
+ var ee;
38
+ const { key: o, dataIndex: c, children: l, ...C } = n, y = Ke(
38
39
  n,
39
40
  [t == null ? void 0 : t.columnKey, C.index].join("-")
40
41
  ), u = i[y || "null"] || {
@@ -45,11 +46,11 @@ const Re = ye(
45
46
  ...Ee(C, ["className"]),
46
47
  selectable: !1,
47
48
  disabled: u.disabled === !0,
48
- disableCheckbox: typeof u.disabled == "boolean" ? u == null ? void 0 : u.disabled : (_ = u == null ? void 0 : u.disabled) == null ? void 0 : _.checkbox,
49
+ disableCheckbox: typeof u.disabled == "boolean" ? u == null ? void 0 : u.disabled : (ee = u == null ? void 0 : u.disabled) == null ? void 0 : ee.checkbox,
49
50
  isLeaf: t ? !0 : void 0,
50
51
  ...u
51
52
  };
52
- }))(U ?? []).sort(Ke(i)), [i, U]);
53
+ }))(V ?? []).sort(be(i)), [i, V]);
53
54
  G(() => {
54
55
  var n, o;
55
56
  const e = {}, s = {}, t = {};
@@ -57,13 +58,13 @@ const Re = ye(
57
58
  ((n = i[c]) == null ? void 0 : n.fixed) === "left" ? e[c] = i[c] : ((o = i[c]) == null ? void 0 : o.fixed) === "right" ? s[c] = i[c] : t[c] = i[c];
58
59
  p(e), x(s), g(t);
59
60
  }, [i]);
60
- const [b, z] = m([]), [M, v] = m([]), [h, p] = m({}), [N, D] = m([]), [w, E] = m([]), [a, x] = m({}), [R, A] = m([]), [L, T] = m([]), [d, g] = m({});
61
+ const [K, z] = m([]), [M, v] = m([]), [h, p] = m({}), [N, D] = m([]), [j, E] = m([]), [a, x] = m({}), [R, O] = m([]), [w, T] = m([]), [d, g] = m({});
61
62
  G(() => {
62
63
  const e = [], s = [], t = [], n = [], o = [], c = [];
63
- W.forEach((l) => {
64
+ Y.forEach((l) => {
64
65
  l.fixed === "left" ? (e.push(l), s.push(l.key)) : l.fixed === "right" ? (t.push(l), n.push(l.key)) : (o.push(l), c.push(l.key));
65
- }), z(e), v(s), D(t), E(n), A(o), T(c);
66
- }, [W]);
66
+ }), z(e), v(s), D(t), E(n), O(o), T(c);
67
+ }, [Y]);
67
68
  const ne = (e) => {
68
69
  p(e);
69
70
  }, ce = (e, s) => {
@@ -76,27 +77,27 @@ const Re = ye(
76
77
  g(e);
77
78
  }, he = (e, s) => {
78
79
  g(e), T(s);
79
- }, X = (e, s, t, n) => {
80
+ }, Z = (e, s, t, n) => {
80
81
  const o = { ...s[e] };
81
82
  delete s[e], g({
82
83
  ...d,
83
84
  [e]: { ...o, fixed: void 0, order: R.length }
84
85
  });
85
86
  const c = t.findIndex((y) => y.key === e), l = t.splice(c, 1)[0];
86
- A([...R, { ...l, fixed: void 0 }]);
87
+ O([...R, { ...l, fixed: void 0 }]);
87
88
  const C = n.splice(c, 1);
88
- return T([...L, ...C]), { map: s, list: t, keys: n };
89
- }, Y = (e, s, t, n) => {
89
+ return T([...w, ...C]), { map: s, list: t, keys: n };
90
+ }, _ = (e, s, t, n) => {
90
91
  const o = { ...s[e] };
91
92
  delete s[e], p({
92
93
  ...h,
93
- [e]: { ...o, fixed: "left", order: b.length, show: !0 }
94
+ [e]: { ...o, fixed: "left", order: K.length, show: !0 }
94
95
  });
95
96
  const c = t.findIndex((y) => y.key === e), l = t.splice(c, 1)[0];
96
- z([...b, { ...l, fixed: "left" }]);
97
+ z([...K, { ...l, fixed: "left" }]);
97
98
  const C = n.splice(c, 1);
98
99
  return v([...M, ...C]), { map: s, list: t, keys: n };
99
- }, Z = (e, s, t, n) => {
100
+ }, H = (e, s, t, n) => {
100
101
  const o = { ...s[e] };
101
102
  delete s[e], x({
102
103
  ...a,
@@ -110,62 +111,62 @@ const Re = ye(
110
111
  const c = t.findIndex((y) => y.key === e), l = t.splice(c, 1)[0];
111
112
  D([...N, { ...l, fixed: "right" }]);
112
113
  const C = n.splice(c, 1);
113
- return E([...w, ...C]), { map: s, list: t, keys: n };
114
+ return E([...j, ...C]), { map: s, list: t, keys: n };
114
115
  }, $ = (e, s) => {
115
116
  if (s === "left") {
116
- const { map: t, list: n, keys: o } = X(
117
+ const { map: t, list: n, keys: o } = Z(
117
118
  e,
118
119
  h,
119
- b,
120
+ K,
120
121
  M
121
122
  );
122
123
  p({ ...t }), z([...n]), v([...o]);
123
124
  } else if (s === "center") {
124
- const { map: t, list: n, keys: o } = Y(
125
+ const { map: t, list: n, keys: o } = _(
125
126
  e,
126
127
  d,
127
128
  R,
128
- L
129
+ w
129
130
  );
130
- g({ ...t }), A([...n]), T([...o]);
131
+ g({ ...t }), O([...n]), T([...o]);
131
132
  } else {
132
- const { map: t, list: n, keys: o } = Y(
133
+ const { map: t, list: n, keys: o } = _(
133
134
  e,
134
135
  a,
135
136
  N,
136
- w
137
+ j
137
138
  );
138
139
  x({ ...t }), D([...n]), E([...o]);
139
140
  }
140
141
  }, P = (e, s) => {
141
142
  if (s === "left") {
142
- const { map: t, list: n, keys: o } = Z(
143
+ const { map: t, list: n, keys: o } = H(
143
144
  e,
144
145
  h,
145
- b,
146
+ K,
146
147
  M
147
148
  );
148
149
  p({ ...t }), z([...n]), v([...o]);
149
150
  } else if (s === "center") {
150
- const { map: t, list: n, keys: o } = Z(
151
+ const { map: t, list: n, keys: o } = H(
151
152
  e,
152
153
  d,
153
154
  R,
154
- L
155
+ w
155
156
  );
156
- g({ ...t }), A([...n]), T([...o]);
157
+ g({ ...t }), O([...n]), T([...o]);
157
158
  } else {
158
- const { map: t, list: n, keys: o } = X(
159
+ const { map: t, list: n, keys: o } = Z(
159
160
  e,
160
161
  a,
161
162
  N,
162
- w
163
+ j
163
164
  );
164
165
  x({ ...t }), D([...n]), E([...o]);
165
166
  }
166
167
  }, ae = ({ target: e }) => {
167
- e.checked ? (p(j(h, "show", !0)), g(j(d, "show", !0)), x(j(a, "show", !0))) : (p(j(h, "show", !1)), g(j(d, "show", !1)), x(j(a, "show", !1)));
168
- }, B = k(() => [...M, ...L, ...w], [M, L, w]), S = k(() => {
168
+ e.checked ? (p(S(h, "show", !0)), g(S(d, "show", !0)), x(S(a, "show", !0))) : (p(S(h, "show", !1)), g(S(d, "show", !1)), x(S(a, "show", !1)));
169
+ }, A = k(() => [...M, ...w, ...j], [M, w, j]), L = k(() => {
169
170
  var s, t, n;
170
171
  const e = [];
171
172
  for (const o in h)
@@ -175,23 +176,23 @@ const Re = ye(
175
176
  for (const o in a)
176
177
  (n = a[o]) != null && n.show && e.push(o);
177
178
  return e;
178
- }, [h, d, a]), de = k(() => B.length === S.length, [B, S]), fe = k(() => S.length > 0 && S.length < B.length, [S, B]), ue = () => {
179
- V({ ...se });
179
+ }, [h, d, a]), de = k(() => A.length === L.length, [A, L]), fe = k(() => L.length > 0 && L.length < A.length, [L, A]), ue = () => {
180
+ X({ ...U });
180
181
  };
181
- return we(H, () => ({
182
+ return je(te, () => ({
182
183
  getLeftSortColumns: () => h,
183
184
  getCenterSortColumns: () => d,
184
185
  getRightSortColumns: () => a,
185
- getCheckedKeys: () => S
186
- })), /* @__PURE__ */ r.jsxs(F, { vertical: !0, gap: 16, style: te, children: [
186
+ getCheckedKeys: () => L
187
+ })), /* @__PURE__ */ r.jsxs(B, { vertical: !0, gap: 16, style: oe, children: [
187
188
  /* @__PURE__ */ r.jsxs("div", { className: "sortContent", children: [
188
- /* @__PURE__ */ r.jsxs(F, { vertical: !0, className: "sortCard", style: O, children: [
189
+ /* @__PURE__ */ r.jsxs(B, { vertical: !0, className: "sortCard", style: F, children: [
189
190
  /* @__PURE__ */ r.jsx(q.Title, { level: 5, className: "title", children: "固定在左侧" }),
190
191
  /* @__PURE__ */ r.jsx(
191
192
  J,
192
193
  {
193
194
  placement: "left",
194
- dataList: b,
195
+ dataList: K,
195
196
  keys: M,
196
197
  columnsMap: h,
197
198
  onLeftClick: $,
@@ -201,14 +202,14 @@ const Re = ye(
201
202
  }
202
203
  )
203
204
  ] }),
204
- /* @__PURE__ */ r.jsxs(F, { vertical: !0, className: "sortCard", style: O, children: [
205
+ /* @__PURE__ */ r.jsxs(B, { vertical: !0, className: "sortCard", style: F, children: [
205
206
  /* @__PURE__ */ r.jsx(q.Title, { level: 5, className: "title", children: "不固定" }),
206
207
  /* @__PURE__ */ r.jsx(
207
208
  J,
208
209
  {
209
210
  placement: "center",
210
211
  dataList: R,
211
- keys: L,
212
+ keys: w,
212
213
  columnsMap: d,
213
214
  onLeftClick: $,
214
215
  onRightClick: P,
@@ -217,14 +218,14 @@ const Re = ye(
217
218
  }
218
219
  )
219
220
  ] }),
220
- /* @__PURE__ */ r.jsxs(F, { vertical: !0, className: "sortCard", style: O, children: [
221
+ /* @__PURE__ */ r.jsxs(B, { vertical: !0, className: "sortCard", style: F, children: [
221
222
  /* @__PURE__ */ r.jsx(q.Title, { level: 5, className: "title", children: "固定在右侧" }),
222
223
  /* @__PURE__ */ r.jsx(
223
224
  J,
224
225
  {
225
226
  placement: "right",
226
227
  dataList: N,
227
- keys: w,
228
+ keys: j,
228
229
  columnsMap: a,
229
230
  onLeftClick: $,
230
231
  onRightClick: P,
@@ -253,7 +254,7 @@ const Re = ye(
253
254
  onClick: ue,
254
255
  className: me`
255
256
  &:hover {
256
- color: ${ee.colorPrimary} !important;
257
+ color: ${se.colorPrimary} !important;
257
258
  }
258
259
  `,
259
260
  children: /* @__PURE__ */ r.jsx("span", { style: { whiteSpace: "nowrap" }, children: "重置" })
@@ -262,7 +263,7 @@ const Re = ye(
262
263
  ] })
263
264
  ] });
264
265
  }
265
- ), Ue = Le(Re);
266
+ ), Ue = we(Re);
266
267
  export {
267
268
  Ue as default
268
269
  };
@@ -1,10 +1,10 @@
1
- import { j as t } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import u from "react";
3
- import { useSortable as j } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
4
- import { CSS as I } from "../../../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
5
- import { theme as x, Flex as p, Checkbox as D } from "antd";
6
- import S from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
7
- import N from "../../../../../assets/iconfont/IconDragOrder.mjs";
1
+ import { j as r } from "../../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import j, { useState as I } from "react";
3
+ import { useSortable as x } from "../../../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
4
+ import { CSS as D } from "../../../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
5
+ import { theme as y, Flex as s, Checkbox as N } from "antd";
6
+ import h from "../../../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
7
+ import w from "../../../../../assets/iconfont/IconDragOrder.mjs";
8
8
  import "../../../../../assets/iconfont/IconColumnFixedLeft.mjs";
9
9
  import "../../../../../assets/iconfont/IconColumnFixedRight.mjs";
10
10
  import "../../../../../assets/iconfont/IconColumnCancelFixed.mjs";
@@ -38,57 +38,65 @@ import "../../../../../assets/iconfont/IconShanchu1.mjs";
38
38
  import "../../../../../assets/iconfont/IconShanchu.mjs";
39
39
  import "../../../../../assets/iconfont/IconTuodong.mjs";
40
40
  const R = ({
41
- item: r,
41
+ item: t,
42
42
  onCheckboxChange: o,
43
- isDragOverlay: s
43
+ isDragOverlay: p
44
44
  }) => {
45
45
  const {
46
- attributes: e,
46
+ attributes: n,
47
47
  isDragging: i,
48
- setNodeRef: n,
49
- listeners: a,
50
- transform: l,
51
- transition: c
52
- } = j({
53
- id: r == null ? void 0 : r.field
48
+ setNodeRef: a,
49
+ listeners: l,
50
+ transform: c,
51
+ transition: f
52
+ } = x({
53
+ id: t == null ? void 0 : t.field
54
54
  // disabled: item?.disabled,
55
- }), { token: m } = x.useToken(), f = {
55
+ }), { token: m } = y.useToken(), d = {
56
56
  gap: 8,
57
- transition: c,
58
- transform: I.Transform.toString(l),
57
+ transition: f,
58
+ transform: D.Transform.toString(c),
59
59
  ...i && {
60
60
  opacity: 0.6
61
61
  },
62
- ...s && {
62
+ ...p && {
63
63
  backgroundColor: m.colorBgContainer
64
64
  }
65
- }, d = ({ target: g }) => {
66
- o == null || o(r.field, g.checked);
65
+ }, [u, e] = I(!1), g = ({ target: S }) => {
66
+ o == null || o(t.field, S.checked);
67
67
  };
68
- return /* @__PURE__ */ t.jsxs(
69
- p,
68
+ return /* @__PURE__ */ r.jsxs(
69
+ s,
70
70
  {
71
71
  align: "center",
72
- className: S({ sortItemDragging: i }, "sortItem"),
73
- style: f,
74
- ref: n,
75
- ...e,
72
+ className: h({ sortItemDragging: i }, "sortItem"),
73
+ style: d,
74
+ ref: a,
75
+ onMouseEnter: () => e(!0),
76
+ onMouseLeave: () => e(!1),
77
+ ...n,
76
78
  children: [
77
- /* @__PURE__ */ t.jsx(p, { align: "center", className: "dragIcon", ...a, children: /* @__PURE__ */ t.jsx(N, { size: m.fontSize + 4 }) }),
78
- /* @__PURE__ */ t.jsx(
79
- D,
79
+ /* @__PURE__ */ r.jsx(s, { align: "center", className: "dragIcon", ...l, children: /* @__PURE__ */ r.jsx(
80
+ w,
80
81
  {
81
- value: r.field,
82
- checked: r.show,
83
- onChange: d,
84
- title: r.title,
85
- children: r.title
82
+ size: m.fontSize + 4,
83
+ style: { opacity: u ? 1 : 0.3 }
84
+ }
85
+ ) }),
86
+ /* @__PURE__ */ r.jsx(
87
+ N,
88
+ {
89
+ value: t.field,
90
+ checked: t.show,
91
+ onChange: g,
92
+ title: t.title,
93
+ children: t.title
86
94
  }
87
95
  )
88
96
  ]
89
97
  }
90
98
  );
91
- }, nr = u.memo(R);
99
+ }, ct = j.memo(R);
92
100
  export {
93
- nr as default
101
+ ct as default
94
102
  };