bitz-react-admin-ui 2.11.0-beta.1 → 2.11.0-beta.2

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.
@@ -1,8 +1,8 @@
1
1
  import { j as n } from "../../../node_modules/react/jsx-runtime.mjs";
2
2
  import M from "../../../node_modules/ahooks/es/useSize/index.mjs";
3
- import { Space as I, Skeleton as D, theme as F } from "antd";
4
- import { forwardRef as G, useContext as H, useMemo as w, useState as O, Fragment as W, useRef as P } from "react";
5
- import C from "../../BitzButton/index.mjs";
3
+ import { Space as T, Skeleton as D, theme as F } from "antd";
4
+ import { forwardRef as G, useContext as H, useMemo as w, useState as O, Fragment as W, useRef as I } from "react";
5
+ import j from "../../BitzButton/index.mjs";
6
6
  import _, { actionColBtnGap as $ } from "./style.mjs";
7
7
  import "../index.mjs";
8
8
  import R from "../Dropdown/index.mjs";
@@ -11,7 +11,7 @@ import { BitzTableContext as J } from "../Store/index.mjs";
11
11
  const b = ({
12
12
  skeletonCls: x,
13
13
  ...r
14
- }) => /* @__PURE__ */ n.jsxs(C, { type: "text", ...r, children: [
14
+ }) => /* @__PURE__ */ n.jsxs(j, { type: "text", ...r, children: [
15
15
  /* @__PURE__ */ n.jsx("span", { children: r.children }),
16
16
  /* @__PURE__ */ n.jsx(D, { active: !0, title: !1, className: x, paragraph: {
17
17
  rows: 1,
@@ -24,57 +24,57 @@ const b = ({
24
24
  actionGroup: d,
25
25
  customActions: o,
26
26
  width: B
27
- }, f) => {
27
+ }, u) => {
28
28
  const {
29
29
  loading: g,
30
30
  fullscreen: z
31
31
  } = H(J), a = w(() => x ?? g, [x, g]), {
32
- primaryBtnClassName: s,
32
+ primaryBtnClassName: l,
33
33
  dangerBtnClassName: h,
34
34
  secondaryBtnClassName: k,
35
- maskClassName: T,
35
+ maskClassName: P,
36
36
  skeletonBtnClassName: m,
37
- skeletonClassName: j
38
- } = _(), [N] = O([/* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: j, children: "占位" }, 1), /* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: j, children: "占位" }, 2)]), y = w(() => {
37
+ skeletonClassName: C
38
+ } = _(), [N] = O([/* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: C, children: "占位" }, 1), /* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: C, children: "占位" }, 2)]), y = w(() => {
39
39
  if (a && p)
40
40
  return N;
41
- const i = r - 1 > 0 ? r - 1 : 2, u = d.length > r ? i : d.length, e = d.slice(0, u), l = [];
41
+ const i = r - 1 > 0 ? r - 1 : 2, f = d.length > r ? i : d.length, e = d.slice(0, f), s = [];
42
42
  if (e != null && e.length && e.forEach((t, c) => {
43
- l.push(a ? /* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: j, children: t == null ? void 0 : t.label }, c) : t.children ? /* @__PURE__ */ n.jsx(R, { menu: {
43
+ s.push(a ? /* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: C, children: t == null ? void 0 : t.label }, c) : t.children ? /* @__PURE__ */ n.jsx(R, { menu: {
44
44
  items: t.children
45
- }, children: /* @__PURE__ */ n.jsx(C, { type: "text", className: t.danger ? h : s, children: t == null ? void 0 : t.label }) }, c) : /* @__PURE__ */ n.jsx(C, { type: "text", className: t.danger ? h : s, onClick: t == null ? void 0 : t.onClick, children: t == null ? void 0 : t.label }, c));
46
- }), u === i && d.length > r) {
45
+ }, children: /* @__PURE__ */ n.jsx(j, { type: "text", className: t.danger ? h : l, children: t == null ? void 0 : t.label }) }, c) : /* @__PURE__ */ n.jsx(j, { type: "text", className: t.danger ? h : l, onClick: t == null ? void 0 : t.onClick, children: t == null ? void 0 : t.label }, c));
46
+ }), f === i && d.length > r) {
47
47
  const t = d.slice(i, d.length);
48
- l.push(a ? /* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: j, children: "更多" }, -1) : /* @__PURE__ */ n.jsx(R, { menu: {
48
+ s.push(a ? /* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: C, children: "更多" }, -1) : /* @__PURE__ */ n.jsx(R, { menu: {
49
49
  items: t
50
- }, children: /* @__PURE__ */ n.jsx(C, { type: "text", className: k, children: "更多" }) }, -1));
50
+ }, getPopupContainer: () => document.fullscreenElement ?? document.body, children: /* @__PURE__ */ n.jsx(j, { type: "text", className: k, children: "更多" }) }, -1));
51
51
  }
52
- return l;
52
+ return s;
53
53
  }, [a, r, p, d]), S = w(() => {
54
54
  if (!(o != null && o.length))
55
55
  return;
56
56
  if (a && p)
57
57
  return N;
58
- const i = o.map((e, l) => /* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: j, children: e == null ? void 0 : e.label }, l)), u = o.map((e, l) => {
59
- let t = /* @__PURE__ */ n.jsx(C, { type: "text", className: e.danger ? h : s, onClick: e.onClick, children: e == null ? void 0 : e.label }, l);
60
- e.type === "secondary" && (t = /* @__PURE__ */ n.jsx(C, { type: "text", className: k, onClick: e.onClick, children: e == null ? void 0 : e.label }, l));
61
- const c = e.render ?? ((L, E) => /* @__PURE__ */ n.jsx(W, { children: L }, E));
62
- return c == null ? void 0 : c(t, l);
58
+ const i = o.map((e, s) => /* @__PURE__ */ n.jsx(b, { className: m, skeletonCls: C, children: e == null ? void 0 : e.label }, s)), f = o.map((e, s) => {
59
+ let t = /* @__PURE__ */ n.jsx(j, { type: "text", className: e.danger ? h : l, onClick: e.onClick, children: e == null ? void 0 : e.label }, s);
60
+ e.type === "secondary" && (t = /* @__PURE__ */ n.jsx(j, { type: "text", className: k, onClick: e.onClick, children: e == null ? void 0 : e.label }, s));
61
+ const c = e.render ?? ((E, L) => /* @__PURE__ */ n.jsx(W, { children: E }, L));
62
+ return c == null ? void 0 : c(t, s);
63
63
  });
64
- return a ? i : u;
64
+ return a ? i : f;
65
65
  }, [a, p, o]);
66
66
  return B ? /* @__PURE__ */ n.jsxs("div", { onClick: (i) => i.stopPropagation(), style: {
67
67
  overflow: "hidden"
68
68
  }, children: [
69
- /* @__PURE__ */ n.jsx(I, { size: 8, ref: f, className: "actionGroup", style: {
69
+ /* @__PURE__ */ n.jsx(T, { size: 8, ref: u, className: "actionGroup", style: {
70
70
  flexWrap: "wrap"
71
71
  }, children: S ?? y }),
72
- /* @__PURE__ */ n.jsx("div", { className: T })
72
+ /* @__PURE__ */ n.jsx("div", { className: P })
73
73
  ] }) : /* @__PURE__ */ n.jsxs("div", { onClick: (i) => i.stopPropagation(), style: {
74
74
  overflow: "hidden"
75
75
  }, children: [
76
- /* @__PURE__ */ n.jsx(I, { size: $, ref: f, className: "actionGroup", children: S ?? y }),
77
- /* @__PURE__ */ n.jsx("div", { className: T })
76
+ /* @__PURE__ */ n.jsx(T, { size: $, ref: u, className: "actionGroup", children: S ?? y }),
77
+ /* @__PURE__ */ n.jsx("div", { className: P })
78
78
  ] });
79
79
  });
80
80
  function ne(x) {
@@ -85,9 +85,9 @@ function ne(x) {
85
85
  maxCount: d = 3,
86
86
  customActions: o,
87
87
  defaultWidth: B,
88
- width: f,
88
+ width: u,
89
89
  ...g
90
- } = x, z = ((m = F.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? q, a = P(null), s = M(a), h = P(0), k = w(() => f || (s != null && s.width && !h.current && (h.current = s == null ? void 0 : s.width), !(s != null && s.width) && h.current ? h.current + z * 2 + 1 : s != null && s.width ? s.width + z * 2 + 1 : B ?? 141), [f, s, z, B]);
90
+ } = x, z = ((m = F.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? q, a = I(null), l = M(a), h = I(0), k = w(() => u || (l != null && l.width && !h.current && (h.current = l == null ? void 0 : l.width), !(l != null && l.width) && h.current ? h.current + z * 2 + 1 : l != null && l.width ? l.width + z * 2 + 1 : B ?? 141), [u, l, z, B]);
91
91
  return w(() => ({
92
92
  width: Math.floor(k),
93
93
  mobileHide: !0,
@@ -98,14 +98,14 @@ function ne(x) {
98
98
  dataIndex: "operationCol",
99
99
  className: "operationCol",
100
100
  disabled: !0,
101
- render: (j, N, y) => {
102
- var u, e;
103
- const S = ((u = o == null ? void 0 : o(N, y)) == null ? void 0 : u.filter((l) => l.type != "detail")) ?? [], i = ((e = r == null ? void 0 : r(N, y)) == null ? void 0 : e.filter((l) => {
101
+ render: (C, N, y) => {
102
+ var f, e;
103
+ const S = ((f = o == null ? void 0 : o(N, y)) == null ? void 0 : f.filter((s) => s.type != "detail")) ?? [], i = ((e = r == null ? void 0 : r(N, y)) == null ? void 0 : e.filter((s) => {
104
104
  var c;
105
- const t = typeof l.hidden == "function" ? (c = l.hidden) == null ? void 0 : c.call(l) : l.hidden;
106
- return l.type != "detail" && !t;
105
+ const t = typeof s.hidden == "function" ? (c = s.hidden) == null ? void 0 : c.call(s) : s.hidden;
106
+ return s.type != "detail" && !t;
107
107
  })) ?? [];
108
- return /* @__PURE__ */ n.jsx(K, { actionGroup: i, customActions: S, loading: p, maxCount: d, useMaxWidth: g.useMaxWidth, ref: a, width: f });
108
+ return /* @__PURE__ */ n.jsx(K, { actionGroup: i, customActions: S, loading: p, maxCount: d, useMaxWidth: g.useMaxWidth, ref: a, width: u });
109
109
  },
110
110
  ...g
111
111
  }), [k, a.current, p, d, r, o]);
@@ -1,5 +1,5 @@
1
1
  import { j as je } from "../../../node_modules/react/jsx-runtime.mjs";
2
- import { Table as fe } from "antd";
2
+ import { Table as ue } from "antd";
3
3
  import v from "../../../hooks/useMergedState.mjs";
4
4
  import { merge as y } from "lodash-es";
5
5
  import { createContext as ke, useRef as Re, useState as w, useContext as Le, useMemo as S, useEffect as g, useCallback as N } from "react";
@@ -16,42 +16,42 @@ const Ze = {
16
16
  onCell: () => ({
17
17
  "data-column-name": "dragSorterCell"
18
18
  })
19
- }, _e = [Ze, fe.SELECTION_COLUMN, fe.EXPAND_COLUMN], ue = 5;
19
+ }, _e = [Ze, ue.SELECTION_COLUMN, ue.EXPAND_COLUMN], de = 5;
20
20
  function Fe(e) {
21
- var j, k, R, L, U, A, D, Z, _, F, W, X, q, Q, Y, $, G, p, ee, te, ne, ie, ae, oe, ce, le, re;
22
- const T = Re(Ae()), [de, ye] = w(!1), [Se, ge] = w(!1), [Ce, me] = w(0), r = Le(De).Table, E = e.defaultSize ?? (r == null ? void 0 : r.defaultSize) ?? "lg", we = e.defaultZebra ?? (r == null ? void 0 : r.zebra) ?? !0, he = e.defaultBordered ?? (r == null ? void 0 : r.bordered) ?? "row-column", xe = e.defaultPageSize ?? (r == null ? void 0 : r.pageSize) ?? 10, Te = e.defaultOrderBy ?? (r == null ? void 0 : r.orderBy) ?? "desc", V = S(() => {
21
+ var j, k, R, L, U, A, D, Z, _, F, W, X, q, Q, Y, $, G, p, ee, te, ne, ie, oe, ae, ce, le, re;
22
+ const T = Re(Ae()), [ye, Se] = w(!1), [ge, Ce] = w(!1), [me, we] = w(0), r = Le(De).Table, E = e.defaultSize ?? (r == null ? void 0 : r.defaultSize) ?? "lg", xe = e.defaultZebra ?? (r == null ? void 0 : r.zebra) ?? !0, he = e.defaultBordered ?? (r == null ? void 0 : r.bordered) ?? "row-column", Te = e.defaultPageSize ?? (r == null ? void 0 : r.pageSize) ?? 10, Ke = e.defaultOrderBy ?? (r == null ? void 0 : r.orderBy) ?? "desc", V = S(() => {
23
23
  var t;
24
24
  return y({
25
25
  size: E,
26
- zebra: we,
26
+ zebra: xe,
27
27
  bordered: he,
28
- pageSize: xe,
29
- orderBy: Te
28
+ pageSize: Te,
29
+ orderBy: Ke
30
30
  }, (t = e.stylesConfigState) == null ? void 0 : t.defaultValue);
31
31
  }, [e.defaultSize, r == null ? void 0 : r.defaultSize, e.defaultZebra, r == null ? void 0 : r.zebra, e.defaultBordered, r == null ? void 0 : r.bordered, e.defaultPageSize, r == null ? void 0 : r.pageSize, e.defaultOrderBy, r == null ? void 0 : r.orderBy, (j = e.stylesConfigState) == null ? void 0 : j.defaultValue]), [C, I] = v(() => {
32
- var n, o, a;
32
+ var n, a, o;
33
33
  const {
34
34
  persistenceType: t,
35
35
  persistenceKey: c
36
36
  } = e.stylesConfigState || {};
37
- if (c && t && typeof window < "u" && (console.log("persistenceType", t), t !== "online")) {
37
+ if (c && t && typeof window < "u" && t !== "online") {
38
38
  const i = window[t];
39
39
  try {
40
40
  const l = i == null ? void 0 : i.getItem(c);
41
41
  if (l)
42
- return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? y(JSON.parse(l), (o = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : o.defaultValue) : JSON.parse(l);
42
+ return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? y(JSON.parse(l), (a = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : a.defaultValue) : JSON.parse(l);
43
43
  } catch (l) {
44
44
  console.warn(l);
45
45
  }
46
46
  }
47
- return e.stylesConfig || ((a = e.stylesConfigState) == null ? void 0 : a.value) || V;
47
+ return e.stylesConfig || ((o = e.stylesConfigState) == null ? void 0 : o.value) || V;
48
48
  }, {
49
49
  value: ((k = e.stylesConfigState) == null ? void 0 : k.value) || e.stylesConfig,
50
50
  onChange: ((R = e.stylesConfigState) == null ? void 0 : R.onChange) || e.onStylesConfigChange
51
51
  });
52
52
  g(() => {
53
- var n, o;
54
- if (!((n = e.stylesConfigState) != null && n.persistenceKey) || !((o = e.stylesConfigState) != null && o.persistenceType) || typeof window > "u")
53
+ var n, a;
54
+ if (!((n = e.stylesConfigState) != null && n.persistenceKey) || !((a = e.stylesConfigState) != null && a.persistenceType) || typeof window > "u")
55
55
  return;
56
56
  const {
57
57
  persistenceType: t,
@@ -59,9 +59,9 @@ function Fe(e) {
59
59
  // onlineChange
60
60
  } = e.stylesConfigState;
61
61
  if (t !== "online") {
62
- const a = window[t];
62
+ const o = window[t];
63
63
  try {
64
- a == null || a.setItem(c, JSON.stringify(C));
64
+ o == null || o.setItem(c, JSON.stringify(C));
65
65
  } catch (i) {
66
66
  console.warn(i), H();
67
67
  }
@@ -70,11 +70,11 @@ function Fe(e) {
70
70
  var t, c, n;
71
71
  if ((t = e.stylesConfigState) != null && t.persistenceKey && ((c = e.stylesConfigState) == null ? void 0 : c.persistenceType) === "online") {
72
72
  const {
73
- onlineGet: o,
74
- persistenceKey: a
73
+ onlineGet: a,
74
+ persistenceKey: o
75
75
  } = e.stylesConfigState;
76
76
  try {
77
- (n = o == null ? void 0 : o(a)) == null || n.then((i) => {
77
+ (n = a == null ? void 0 : a(o)) == null || n.then((i) => {
78
78
  const {
79
79
  config: l,
80
80
  global: s
@@ -90,34 +90,34 @@ function Fe(e) {
90
90
  }
91
91
  }
92
92
  }, []);
93
- const f = S(() => (e.columns ?? []).filter((t) => !_e.includes(t) && t.title), [e.columns]), h = S(() => {
94
- var o;
93
+ const f = S(() => (e.columns ?? []).filter((t) => !_e.includes(t) && t.title), [e.columns]), x = S(() => {
94
+ var a;
95
95
  const t = {
96
96
  fields: [],
97
97
  config: {
98
98
  key: "current",
99
99
  info: void 0
100
100
  }
101
- }, c = f.find((a) => {
101
+ }, c = f.find((o) => {
102
102
  var i;
103
- return (i = a == null ? void 0 : a.children) == null ? void 0 : i.length;
104
- }), n = f.filter((a) => !a.isOperationCol);
103
+ return (i = o == null ? void 0 : o.children) == null ? void 0 : i.length;
104
+ }), n = f.filter((o) => !o.isOperationCol);
105
105
  if (c)
106
106
  t.fields = Ue(n);
107
107
  else {
108
- const a = [];
108
+ const o = [];
109
109
  n.forEach((i, l) => {
110
110
  const s = B(i, l);
111
- s && !i.exportHidden && a.push({
111
+ s && !i.exportHidden && !["operation", "operationCol", "action"].includes(s) && o.push({
112
112
  field: s,
113
113
  title: i.title,
114
114
  show: !0
115
115
  });
116
- }), t.fields = a;
116
+ }), t.fields = o;
117
117
  }
118
- return (o = e == null ? void 0 : e.exportConfigState) != null && o.defaultValue ? y(t, e.exportConfigState.defaultValue) : t;
119
- }, [f]), [z, x] = v(() => {
120
- var n, o, a;
118
+ return (a = e == null ? void 0 : e.exportConfigState) != null && a.defaultValue ? y(t, e.exportConfigState.defaultValue) : t;
119
+ }, [f]), [z, h] = v(() => {
120
+ var n, a, o;
121
121
  const {
122
122
  persistenceType: t,
123
123
  persistenceKey: c
@@ -127,34 +127,34 @@ function Fe(e) {
127
127
  try {
128
128
  const l = i == null ? void 0 : i.getItem(c);
129
129
  if (l)
130
- return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? y(JSON.parse(l), (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue) : JSON.parse(l);
130
+ return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? y(JSON.parse(l), (a = e == null ? void 0 : e.exportConfigState) == null ? void 0 : a.defaultValue) : JSON.parse(l);
131
131
  } catch (l) {
132
132
  console.warn(l);
133
133
  }
134
134
  }
135
- return e.exportConfig || ((a = e.exportConfigState) == null ? void 0 : a.value) || h;
135
+ return e.exportConfig || ((o = e.exportConfigState) == null ? void 0 : o.value) || x;
136
136
  }, {
137
137
  value: ((A = e.exportConfigState) == null ? void 0 : A.value) || e.exportConfig,
138
138
  onChange: ((D = e.exportConfigState) == null ? void 0 : D.onChange) || e.onExportConfigChange
139
139
  });
140
140
  g(() => {
141
- var n, o;
141
+ var n, a;
142
142
  const {
143
143
  persistenceType: t,
144
144
  persistenceKey: c
145
145
  } = e.exportConfigState || {};
146
146
  if (c && t && typeof window < "u" && t !== "online") {
147
- const a = window[t];
147
+ const o = window[t];
148
148
  try {
149
- const i = a == null ? void 0 : a.getItem(c);
150
- i ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(y(JSON.parse(i), (o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue)) : x(JSON.parse(i)) : x(h);
149
+ const i = o == null ? void 0 : o.getItem(c);
150
+ i ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? h(y(JSON.parse(i), (a = e == null ? void 0 : e.exportConfigState) == null ? void 0 : a.defaultValue)) : h(JSON.parse(i)) : h(x);
151
151
  } catch (i) {
152
152
  console.warn(i);
153
153
  }
154
154
  }
155
- }, [(Z = e.exportConfigState) == null ? void 0 : Z.persistenceKey, (_ = e.exportConfigState) == null ? void 0 : _.persistenceType, h]), g(() => {
156
- var n, o;
157
- if (!((n = e.exportConfigState) != null && n.persistenceKey) || !((o = e.exportConfigState) != null && o.persistenceType) || typeof window > "u")
155
+ }, [(Z = e.exportConfigState) == null ? void 0 : Z.persistenceKey, (_ = e.exportConfigState) == null ? void 0 : _.persistenceType, x]), g(() => {
156
+ var n, a;
157
+ if (!((n = e.exportConfigState) != null && n.persistenceKey) || !((a = e.exportConfigState) != null && a.persistenceType) || typeof window > "u")
158
158
  return;
159
159
  const {
160
160
  persistenceType: t,
@@ -162,9 +162,9 @@ function Fe(e) {
162
162
  // onlineChange
163
163
  } = e.exportConfigState;
164
164
  if (t !== "online") {
165
- const a = window[t];
165
+ const o = window[t];
166
166
  try {
167
- a == null || a.setItem(c, JSON.stringify(z));
167
+ o == null || o.setItem(c, JSON.stringify(z));
168
168
  } catch (i) {
169
169
  console.warn(i), M();
170
170
  }
@@ -173,14 +173,14 @@ function Fe(e) {
173
173
  var t, c, n;
174
174
  if ((t = e.exportConfigState) != null && t.persistenceKey && ((c = e.exportConfigState) == null ? void 0 : c.persistenceType) === "online") {
175
175
  const {
176
- onlineGet: o,
177
- persistenceKey: a
176
+ onlineGet: a,
177
+ persistenceKey: o
178
178
  } = e.exportConfigState;
179
179
  try {
180
- (n = o == null ? void 0 : o(a)) == null || n.then((i) => {
180
+ (n = a == null ? void 0 : a(o)) == null || n.then((i) => {
181
181
  var s;
182
182
  const l = y(i ?? {}, (s = e == null ? void 0 : e.exportConfigState) == null ? void 0 : s.value);
183
- x(Object.keys(l).length ? l : h);
183
+ h(Object.keys(l).length ? l : x);
184
184
  });
185
185
  } catch (i) {
186
186
  console.warn(i);
@@ -200,22 +200,22 @@ function Fe(e) {
200
200
  })), n = f.filter((l) => !["left", "right"].includes(l.fixed)).map((l, s) => ({
201
201
  ...l,
202
202
  order: s
203
- })), o = [...t, ...n, ...c], a = {};
204
- return o.forEach((l, s) => {
203
+ })), a = [...t, ...n, ...c], o = {};
204
+ return a.forEach((l, s) => {
205
205
  const {
206
- order: He,
206
+ order: se,
207
207
  fixed: Me,
208
208
  disabled: Pe
209
- } = l, se = B(l, s);
210
- se && (a[se] = {
209
+ } = l, fe = B(l, s);
210
+ fe && (o[fe] = {
211
211
  show: !0,
212
- order: He,
212
+ order: se,
213
213
  fixed: Me,
214
214
  disabled: Pe
215
215
  });
216
- }), a;
217
- }, [f]), [Ke, Oe] = w(!1), [d, m] = v(() => {
218
- var n, o, a, i;
216
+ }), o;
217
+ }, [f]), [Oe, Ve] = w(!1), [d, m] = v(() => {
218
+ var n, a, o, i;
219
219
  const {
220
220
  persistenceType: t,
221
221
  persistenceKey: c
@@ -225,27 +225,27 @@ function Fe(e) {
225
225
  try {
226
226
  const s = l == null ? void 0 : l.getItem(c);
227
227
  if (s)
228
- return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? y(JSON.parse(s), (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue) : JSON.parse(s);
228
+ return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? y(JSON.parse(s), (a = e == null ? void 0 : e.columnsState) == null ? void 0 : a.defaultValue) : JSON.parse(s);
229
229
  } catch (s) {
230
230
  console.warn(s);
231
231
  }
232
232
  }
233
- return e.columnsStateMap || ((a = e.columnsState) == null ? void 0 : a.value) || ((i = e.columnsState) == null ? void 0 : i.defaultValue) || {};
233
+ return e.columnsStateMap || ((o = e.columnsState) == null ? void 0 : o.value) || ((i = e.columnsState) == null ? void 0 : i.defaultValue) || {};
234
234
  }, {
235
235
  value: ((X = e.columnsState) == null ? void 0 : X.value) || e.columnsStateMap,
236
236
  onChange: ((q = e.columnsState) == null ? void 0 : q.onChange) || e.onColumnsStateChange
237
237
  });
238
238
  g(() => {
239
- var n, o;
239
+ var n, a;
240
240
  const {
241
241
  persistenceType: t,
242
242
  persistenceKey: c
243
243
  } = e.columnsState || {};
244
244
  if (c && t && typeof window < "u" && t !== "online") {
245
- const a = window[t];
245
+ const o = window[t];
246
246
  try {
247
- const i = a == null ? void 0 : a.getItem(c);
248
- i ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(y(JSON.parse(i), (o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue)) : m(JSON.parse(i)) : m(u);
247
+ const i = o == null ? void 0 : o.getItem(c);
248
+ i ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(y(JSON.parse(i), (a = e == null ? void 0 : e.columnsState) == null ? void 0 : a.defaultValue)) : m(JSON.parse(i)) : m(u);
249
249
  } catch (i) {
250
250
  console.warn(i);
251
251
  }
@@ -261,8 +261,8 @@ function Fe(e) {
261
261
  const n = window[t];
262
262
  try {
263
263
  n == null || n.removeItem(c);
264
- } catch (o) {
265
- console.warn(o);
264
+ } catch (a) {
265
+ console.warn(a);
266
266
  }
267
267
  }, [e.columnsState]), H = N(() => {
268
268
  const {
@@ -274,8 +274,8 @@ function Fe(e) {
274
274
  const n = window[t];
275
275
  try {
276
276
  n == null || n.removeItem(c);
277
- } catch (o) {
278
- console.warn(o);
277
+ } catch (a) {
278
+ console.warn(a);
279
279
  }
280
280
  }, [e.stylesConfigState]), M = N(() => {
281
281
  const {
@@ -287,13 +287,13 @@ function Fe(e) {
287
287
  const n = window[t];
288
288
  try {
289
289
  n == null || n.removeItem(c);
290
- } catch (o) {
291
- console.warn(o);
290
+ } catch (a) {
291
+ console.warn(a);
292
292
  }
293
293
  }, [e.exportConfigState]);
294
294
  g(() => {
295
- var n, o;
296
- if (!((n = e.columnsState) != null && n.persistenceKey) || !((o = e.columnsState) != null && o.persistenceType) || typeof window > "u")
295
+ var n, a;
296
+ if (!((n = e.columnsState) != null && n.persistenceKey) || !((a = e.columnsState) != null && a.persistenceType) || typeof window > "u")
297
297
  return;
298
298
  const {
299
299
  persistenceType: t,
@@ -301,9 +301,9 @@ function Fe(e) {
301
301
  // onlineChange
302
302
  } = e.columnsState;
303
303
  if (t !== "online") {
304
- const a = window[t];
304
+ const o = window[t];
305
305
  try {
306
- a == null || a.setItem(c, JSON.stringify(d));
306
+ o == null || o.setItem(c, JSON.stringify(d));
307
307
  } catch (i) {
308
308
  console.warn(i), J();
309
309
  }
@@ -312,36 +312,36 @@ function Fe(e) {
312
312
  var t, c, n;
313
313
  if ((t = e.columnsState) != null && t.persistenceKey && ((c = e.columnsState) == null ? void 0 : c.persistenceType) === "online") {
314
314
  const {
315
- onlineGet: o,
316
- persistenceKey: a
315
+ onlineGet: a,
316
+ persistenceKey: o
317
317
  } = e.columnsState;
318
318
  try {
319
- (n = o == null ? void 0 : o(a)) == null || n.then((i) => {
319
+ (n = a == null ? void 0 : a(o)) == null || n.then((i) => {
320
320
  var s;
321
321
  const l = y(i ?? {}, (s = e == null ? void 0 : e.columnsState) == null ? void 0 : s.value);
322
- m(l), Oe(!0);
322
+ m(l), Ve(!0);
323
323
  });
324
324
  } catch (i) {
325
325
  console.warn(i);
326
326
  }
327
327
  }
328
328
  }, []), g(() => {
329
- var n, o;
330
- const t = f.findIndex((a) => a == null ? void 0 : a.isOperationCol), c = Object.keys(d ?? {}).length === 0;
329
+ var n, a;
330
+ const t = f.findIndex((o) => o == null ? void 0 : o.isOperationCol), c = Object.keys(d ?? {}).length === 0;
331
331
  if (t >= 0) {
332
- const a = f[t], i = B(a, t);
333
- !(((n = d == null ? void 0 : d[i]) == null ? void 0 : n.fixed) === ((o = u == null ? void 0 : u[i]) == null ? void 0 : o.fixed)) && c && m(u);
332
+ const o = f[t], i = B(o, t);
333
+ !(((n = d == null ? void 0 : d[i]) == null ? void 0 : n.fixed) === ((a = u == null ? void 0 : u[i]) == null ? void 0 : a.fixed)) && c && m(u);
334
334
  } else
335
335
  c && m(u);
336
336
  }, [u, d]);
337
- const Ve = S(() => (e == null ? void 0 : e.rowHoverable) ?? (r == null ? void 0 : r.rowHoverable) ?? !0, [e == null ? void 0 : e.rowHoverable, r == null ? void 0 : r.rowHoverable]), ze = S(() => e.zebra ?? C.zebra, [e.zebra, C.zebra]), K = S(() => e.bordered ?? C.bordered, [e.bordered, C.bordered]), be = S(() => ["column", "row-column"].includes(K), [K]), ve = S(() => {
337
+ const ze = S(() => (e == null ? void 0 : e.rowHoverable) ?? (r == null ? void 0 : r.rowHoverable) ?? !0, [e == null ? void 0 : e.rowHoverable, r == null ? void 0 : r.rowHoverable]), be = S(() => e.zebra ?? C.zebra, [e.zebra, C.zebra]), K = S(() => e.bordered ?? C.bordered, [e.bordered, C.bordered]), ve = S(() => ["column", "row-column"].includes(K), [K]), Ne = S(() => {
338
338
  let t = !1;
339
339
  return ["hide", "column"].includes(K) && (t = !0), t;
340
- }, [K]), [Ne, b] = w(!1), [Be, O] = w(ue), Ee = () => {
341
- b(!0), O(ue);
342
- }, Ie = () => {
343
- b(!1), O(0);
340
+ }, [K]), [Be, b] = w(!1), [Ee, O] = w(de), Ie = () => {
341
+ b(!0), O(de);
344
342
  }, Je = () => {
343
+ b(!1), O(0);
344
+ }, He = () => {
345
345
  var t, c, n;
346
346
  (n = (t = e.columnsState) == null ? void 0 : t.onlineChange) == null || n.call(t, (c = e.columnsState) == null ? void 0 : c.persistenceKey, d), b(!1), O(0);
347
347
  }, P = {
@@ -350,24 +350,24 @@ function Fe(e) {
350
350
  pagination: e.pagination,
351
351
  total: e.total,
352
352
  uuid: T.current,
353
- fullscreen: de,
354
- setFullscreen: ye,
355
- selected: Se,
356
- setSelected: ge,
357
- toolbarWidth: Ce,
358
- setToolbarWidth: me,
359
- startAutoSaveCountdown: Ee,
360
- isSaving: Ne,
361
- countdown: Be,
362
- cancelAutoSave: Ie,
363
- immediateSave: Je,
353
+ fullscreen: ye,
354
+ setFullscreen: Se,
355
+ selected: ge,
356
+ setSelected: Ce,
357
+ toolbarWidth: me,
358
+ setToolbarWidth: we,
359
+ startAutoSaveCountdown: Ie,
360
+ isSaving: Be,
361
+ countdown: Ee,
362
+ cancelAutoSave: Je,
363
+ immediateSave: He,
364
364
  setCountdown: O,
365
365
  columns: e.columns,
366
366
  baseColumns: f,
367
367
  persistenceType: (p = e.columnsState) == null ? void 0 : p.persistenceType,
368
368
  persistenceKey: (ee = e.columnsState) == null ? void 0 : ee.persistenceKey,
369
369
  onlineChange: (te = e.columnsState) == null ? void 0 : te.onlineChange,
370
- finish: Ke,
370
+ finish: Oe,
371
371
  columnsMap: d,
372
372
  setColumnsMap: m,
373
373
  defaultColumnKeyMap: u,
@@ -378,21 +378,21 @@ function Fe(e) {
378
378
  tableSize: C.size,
379
379
  stylesStorageType: (ne = e.stylesConfigState) == null ? void 0 : ne.persistenceType,
380
380
  stylesStorageKey: (ie = e.stylesConfigState) == null ? void 0 : ie.persistenceKey,
381
- onlineStylesConfigChange: (ae = e.stylesConfigState) == null ? void 0 : ae.onlineChange,
381
+ onlineStylesConfigChange: (oe = e.stylesConfigState) == null ? void 0 : oe.onlineChange,
382
382
  clearStylesConfigCache: H,
383
383
  defaultTableStylesConfig: V,
384
384
  exportConfig: z,
385
- setTableExportConfig: x,
386
- defaultTableExportConfig: h,
387
- exportStorageType: (oe = e.exportConfigState) == null ? void 0 : oe.persistenceType,
385
+ setTableExportConfig: h,
386
+ defaultTableExportConfig: x,
387
+ exportStorageType: (ae = e.exportConfigState) == null ? void 0 : ae.persistenceType,
388
388
  exportStorageKey: (ce = e.exportConfigState) == null ? void 0 : ce.persistenceKey,
389
389
  onlineExportConfigChange: (le = e.exportConfigState) == null ? void 0 : le.onlineChange,
390
390
  clearExportConfigCache: M,
391
391
  exportConfigHardCodedValue: (re = e.exportConfigState) == null ? void 0 : re.hardCodedValue,
392
- zebra: ze,
393
- rowHoverable: Ve,
394
- showColumnBorder: be,
395
- hideRowBorder: ve
392
+ zebra: be,
393
+ rowHoverable: ze,
394
+ showColumnBorder: ve,
395
+ hideRowBorder: Ne
396
396
  };
397
397
  return Object.defineProperty(P, "uuid", {
398
398
  get: () => T.current