bitz-react-admin-ui 2.11.0-beta.1 → 2.11.0-beta.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.
@@ -1,43 +1,63 @@
1
1
  import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
2
- import { useState as C } from "react";
3
- import { CloseOutlined as T } from "@ant-design/icons";
4
- import { theme as g, Modal as j } from "antd";
5
- import { create as B, useModal as v, antdModalV5 as M } from "@ebay/nice-modal-react";
6
- import S from "../../assets/iconfont/IconJinggao.mjs";
2
+ import { useState as j } from "react";
3
+ import { CloseOutlined as B } from "@ant-design/icons";
4
+ import { theme as C, Modal as T } from "antd";
5
+ import { create as v, useModal as y, antdModalV5 as M } from "@ebay/nice-modal-react";
6
+ import N from "../../assets/iconfont/IconJinggao.mjs";
7
7
  import "./index.less.mjs";
8
- import { useTranslation as N } from "../../node_modules/react-i18next/dist/es/useTranslation.mjs";
9
- const _ = (m) => {
8
+ import { useLingui as I } from "@lingui/react";
9
+ const z = (c) => {
10
10
  var i;
11
11
  const {
12
- okButtonProps: d,
12
+ okButtonProps: m,
13
13
  okType: p,
14
14
  onOk: t,
15
15
  onCancel: r,
16
- title: f,
17
- modalText: x,
16
+ title: x,
17
+ modalText: f,
18
18
  ...u
19
- } = m, {
20
- t: s
21
- } = N(), {
22
- token: n
23
- } = g.useToken(), o = v(), a = M(o), [h, l] = C(!1), k = async () => {
24
- var c;
25
- t ? (l(!0), (c = t == null ? void 0 : t()) == null || c.finally(() => {
26
- l(!1), o.resolve("ok"), o.hide();
19
+ } = c, {
20
+ _: s
21
+ } = I(), {
22
+ token: l
23
+ } = C.useToken(), o = y(), n = M(o), [h, a] = j(!1), k = async () => {
24
+ var d;
25
+ t ? (a(!0), (d = t == null ? void 0 : t()) == null || d.finally(() => {
26
+ a(!1), o.resolve("ok"), o.hide();
27
27
  })) : (o.resolve("ok"), o.hide());
28
- }, y = () => {
28
+ }, g = () => {
29
29
  r == null || r(), o.resolve("cancel"), o.hide();
30
30
  };
31
- return /* @__PURE__ */ e.jsx(j, { open: a.open, afterClose: a.afterClose, className: "bitzConfirmModalBlock", title: f || s("System_Tip", "提示"), width: 400, closeIcon: /* @__PURE__ */ e.jsx(T, {}), onOk: k, onCancel: y, confirmLoading: h, okText: s("System_Deter", "确定"), okType: p || "primary", okButtonProps: {
31
+ return /* @__PURE__ */ e.jsx(T, { open: n.open, afterClose: n.afterClose, className: "bitzConfirmModalBlock", title: x || s(
32
+ /*i18n*/
33
+ {
34
+ id: "5tNImB"
35
+ }
36
+ ), width: 400, closeIcon: /* @__PURE__ */ e.jsx(B, {}), onOk: k, onCancel: g, confirmLoading: h, okText: s(
37
+ /*i18n*/
38
+ {
39
+ id: "6Ql6i3"
40
+ }
41
+ ), okType: p || "primary", okButtonProps: {
32
42
  danger: !0,
33
- ...d
34
- }, cancelText: s("System_Cancel", "取消"), ...u, style: {
35
- "--modalContent-colorBg": (i = n.Modal) == null ? void 0 : i.headerBg
43
+ ...m
44
+ }, cancelText: s(
45
+ /*i18n*/
46
+ {
47
+ id: "jxD+iQ"
48
+ }
49
+ ), ...u, style: {
50
+ "--modalContent-colorBg": (i = l.Modal) == null ? void 0 : i.headerBg
36
51
  }, children: /* @__PURE__ */ e.jsxs("div", { className: "textBox", children: [
37
- /* @__PURE__ */ e.jsx("div", { className: "warnIcon", children: /* @__PURE__ */ e.jsx(S, { className: "icon", color: n.colorError, size: 20 }) }),
38
- /* @__PURE__ */ e.jsx("div", { className: "modalText", children: x || s("System_CanUSure", "您确定要删除吗?") })
52
+ /* @__PURE__ */ e.jsx("div", { className: "warnIcon", children: /* @__PURE__ */ e.jsx(N, { className: "icon", color: l.colorError, size: 20 }) }),
53
+ /* @__PURE__ */ e.jsx("div", { className: "modalText", children: f || s(
54
+ /*i18n*/
55
+ {
56
+ id: "4ox2gQ"
57
+ }
58
+ ) })
39
59
  ] }) });
40
- }, D = B(_);
60
+ }, D = v(z);
41
61
  export {
42
62
  D as default
43
63
  };
@@ -1,49 +1,62 @@
1
1
  import { j as s } from "../../../node_modules/react/jsx-runtime.mjs";
2
2
  import { useMemo as N } from "react";
3
- import { PlusCircleFilled as c, CaretDownOutlined as f } from "@ant-design/icons";
4
- import { Space as l } from "antd";
5
- import i from "../../BitzButton/index.mjs";
6
- import k from "./style.mjs";
7
- import g from "../Dropdown/index.mjs";
8
- import { omit as a } from "lodash-es";
9
- import h from "../../../node_modules/classnames/index.mjs";
10
- const G = ({
11
- size: C,
3
+ import { PlusCircleFilled as c, CaretDownOutlined as g } from "@ant-design/icons";
4
+ import { Space as h } from "antd";
5
+ import m from "../../BitzButton/index.mjs";
6
+ import B from "./style.mjs";
7
+ import C from "../Dropdown/index.mjs";
8
+ import { omit as o } from "lodash-es";
9
+ import u from "../../../node_modules/classnames/index.mjs";
10
+ import { useLingui as b } from "@lingui/react";
11
+ const L = ({
12
+ size: d,
12
13
  add: n,
13
14
  excel: r,
14
- actions: m,
15
- children: E
15
+ actions: i,
16
+ children: w
16
17
  }) => {
17
18
  const {
18
- blockCls: x,
19
- addBtnClassName: y,
20
- btnClassName: p
21
- } = k(C), w = N(() => [{
19
+ _: p
20
+ } = b(), {
21
+ blockCls: E,
22
+ addBtnClassName: j,
23
+ btnClassName: l
24
+ } = B(d), k = N(() => [{
22
25
  key: "download",
23
- label: "Excel模板下载"
26
+ label: p(
27
+ /*i18n*/
28
+ {
29
+ id: "wjxllE"
30
+ }
31
+ )
24
32
  // icon: (
25
33
  // <CloudDownloadOutlined style={{ fontSize: 14 }} />
26
34
  // ),
27
35
  }, {
28
36
  key: "import",
29
- label: "Excel数据导入"
37
+ label: p(
38
+ /*i18n*/
39
+ {
40
+ id: "+NfTiW"
41
+ }
42
+ )
30
43
  // icon: (
31
44
  // <CloudUploadOutlined style={{ fontSize: 14 }} />
32
45
  // ),
33
- }, ...(r == null ? void 0 : r.otherMenu) ?? []], [r]), d = N(() => m == null ? void 0 : m.map((t, e) => t.type === "primary" ? /* @__PURE__ */ s.jsx(i, { type: "primary", icon: /* @__PURE__ */ s.jsx(c, {}), className: h(y, t.className), ...a(t, "text", "type", "className", "children"), children: t == null ? void 0 : t.text }, e) : t.type === "secondary" ? /* @__PURE__ */ s.jsx(i, { type: "text", className: h(p, t.className), ...a(t, "text", "type", "className", "children"), children: t == null ? void 0 : t.text }, e) : /* @__PURE__ */ s.jsx(g, { getPopupContainer: (o) => {
34
- var j, u;
35
- return (u = (j = o.parentElement) == null ? void 0 : j.parentElement) == null ? void 0 : u.parentElement;
36
- }, ...a(t, "text", "className", "children"), children: /* @__PURE__ */ s.jsx(i, { className: h(p, t.className), type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
46
+ }, ...(r == null ? void 0 : r.otherMenu) ?? []], [r]), x = N(() => i == null ? void 0 : i.map((t, e) => t.type === "primary" ? /* @__PURE__ */ s.jsx(m, { type: "primary", icon: /* @__PURE__ */ s.jsx(c, {}), className: u(j, t.className), ...o(t, "text", "type", "className", "children"), children: t == null ? void 0 : t.text }, e) : t.type === "secondary" ? /* @__PURE__ */ s.jsx(m, { type: "text", className: u(l, t.className), ...o(t, "text", "type", "className", "children"), children: t == null ? void 0 : t.text }, e) : /* @__PURE__ */ s.jsx(C, { getPopupContainer: (a) => {
47
+ var y, f;
48
+ return (f = (y = a.parentElement) == null ? void 0 : y.parentElement) == null ? void 0 : f.parentElement;
49
+ }, ...o(t, "text", "className", "children"), children: /* @__PURE__ */ s.jsx(m, { className: u(l, t.className), type: "text", children: /* @__PURE__ */ s.jsxs(h, { size: 6, children: [
37
50
  !t.text || typeof t.text == "string" ? /* @__PURE__ */ s.jsx("span", { children: t.text }) : t.text,
38
- /* @__PURE__ */ s.jsx(f, {})
39
- ] }) }) }, e)), [m]);
40
- return /* @__PURE__ */ s.jsxs(l.Compact, { className: x, style: {
51
+ /* @__PURE__ */ s.jsx(g, {})
52
+ ] }) }) }, e)), [i]);
53
+ return /* @__PURE__ */ s.jsxs(h.Compact, { className: E, style: {
41
54
  height: "100%"
42
55
  }, children: [
43
- (n == null ? void 0 : n.show) !== !1 && /* @__PURE__ */ s.jsx(i, { type: "primary", icon: /* @__PURE__ */ s.jsx(c, {}), className: y, ...a(n, "text", "show", "type", "className", "children"), children: n == null ? void 0 : n.text }),
44
- m ? d : E,
45
- (r == null ? void 0 : r.show) !== !1 && /* @__PURE__ */ s.jsx(g, { menu: {
46
- items: w,
56
+ (n == null ? void 0 : n.show) !== !1 && /* @__PURE__ */ s.jsx(m, { type: "primary", icon: /* @__PURE__ */ s.jsx(c, {}), className: j, ...o(n, "text", "show", "type", "className", "children"), children: n == null ? void 0 : n.text }),
57
+ i ? x : w,
58
+ (r == null ? void 0 : r.show) !== !1 && /* @__PURE__ */ s.jsx(C, { menu: {
59
+ items: k,
47
60
  onClick: ({
48
61
  key: t
49
62
  }) => {
@@ -51,14 +64,19 @@ const G = ({
51
64
  return (e = r == null ? void 0 : r.onClick) == null ? void 0 : e.call(r, t);
52
65
  }
53
66
  }, trigger: (r == null ? void 0 : r.trigger) || ["click"], getPopupContainer: (t) => {
54
- var e, o;
55
- return (o = (e = t.parentElement) == null ? void 0 : e.parentElement) == null ? void 0 : o.parentElement;
56
- }, ...a(r, "text", "show", "menu", "trigger", "children"), children: /* @__PURE__ */ s.jsx(i, { className: p, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 6, children: [
57
- /* @__PURE__ */ s.jsx("span", { children: (r == null ? void 0 : r.text) ?? "Excel文档导入" }),
58
- /* @__PURE__ */ s.jsx(f, {})
67
+ var e, a;
68
+ return (a = (e = t.parentElement) == null ? void 0 : e.parentElement) == null ? void 0 : a.parentElement;
69
+ }, ...o(r, "text", "show", "menu", "trigger", "children"), children: /* @__PURE__ */ s.jsx(m, { className: l, type: "text", children: /* @__PURE__ */ s.jsxs(h, { size: 6, children: [
70
+ /* @__PURE__ */ s.jsx("span", { children: (r == null ? void 0 : r.text) ?? p(
71
+ /*i18n*/
72
+ {
73
+ id: "gcX44e"
74
+ }
75
+ ) }),
76
+ /* @__PURE__ */ s.jsx(g, {})
59
77
  ] }) }) })
60
78
  ] });
61
79
  };
62
80
  export {
63
- G as default
81
+ L as default
64
82
  };
@@ -1,116 +1,135 @@
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";
6
- import _, { actionColBtnGap as $ } from "./style.mjs";
3
+ import { Space as P, Skeleton as D, theme as F } from "antd";
4
+ import { forwardRef as G, useContext as H, useMemo as B, useState as O, Fragment as W, useRef as T } from "react";
5
+ import j from "../../BitzButton/index.mjs";
6
+ import Z, { actionColBtnGap as $ } from "./style.mjs";
7
7
  import "../index.mjs";
8
- import R from "../Dropdown/index.mjs";
8
+ import _ from "../Dropdown/index.mjs";
9
9
  import { tablePaddingInline as q } from "../../BitzConfigProvider/context.mjs";
10
+ import { useLingui as I } from "@lingui/react";
10
11
  import { BitzTableContext as J } from "../Store/index.mjs";
11
- const b = ({
12
+ const w = ({
12
13
  skeletonCls: x,
13
- ...r
14
- }) => /* @__PURE__ */ n.jsxs(C, { type: "text", ...r, children: [
15
- /* @__PURE__ */ n.jsx("span", { children: r.children }),
14
+ ...l
15
+ }) => /* @__PURE__ */ n.jsxs(j, { type: "text", ...l, children: [
16
+ /* @__PURE__ */ n.jsx("span", { children: l.children }),
16
17
  /* @__PURE__ */ n.jsx(D, { active: !0, title: !1, className: x, paragraph: {
17
18
  rows: 1,
18
19
  width: "100%"
19
20
  } })
20
21
  ] }), K = G(({
21
22
  loading: x,
22
- maxCount: r,
23
+ maxCount: l,
23
24
  useMaxWidth: p,
24
25
  actionGroup: d,
25
26
  customActions: o,
26
- width: B
27
- }, f) => {
27
+ width: z
28
+ }, h) => {
28
29
  const {
29
- loading: g,
30
- fullscreen: z
31
- } = H(J), a = w(() => x ?? g, [x, g]), {
32
- primaryBtnClassName: s,
33
- dangerBtnClassName: h,
34
- secondaryBtnClassName: k,
35
- maskClassName: T,
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(() => {
39
- if (a && p)
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 = [];
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: {
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) {
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: {
49
- items: t
50
- }, children: /* @__PURE__ */ n.jsx(C, { type: "text", className: k, children: "更多" }) }, -1));
30
+ _: k
31
+ } = I(), {
32
+ loading: L
33
+ } = H(J), i = B(() => x ?? L, [x, L]), {
34
+ primaryBtnClassName: u,
35
+ dangerBtnClassName: s,
36
+ secondaryBtnClassName: f,
37
+ maskClassName: N,
38
+ skeletonBtnClassName: g,
39
+ skeletonClassName: m
40
+ } = Z(), [S] = O([/* @__PURE__ */ n.jsx(w, { className: g, skeletonCls: m, children: "占位" }, 1), /* @__PURE__ */ n.jsx(w, { className: g, skeletonCls: m, children: "占位" }, 2)]), b = B(() => {
41
+ if (i && p)
42
+ return S;
43
+ const a = l - 1 > 0 ? l - 1 : 2, C = d.length > l ? a : d.length, t = d.slice(0, C), r = [];
44
+ if (t != null && t.length && t.forEach((e, c) => {
45
+ r.push(i ? /* @__PURE__ */ n.jsx(w, { className: g, skeletonCls: m, children: e == null ? void 0 : e.label }, c) : e.children ? /* @__PURE__ */ n.jsx(_, { menu: {
46
+ items: e.children
47
+ }, children: /* @__PURE__ */ n.jsx(j, { type: "text", className: e.danger ? s : u, children: e == null ? void 0 : e.label }) }, c) : /* @__PURE__ */ n.jsx(j, { type: "text", className: e.danger ? s : u, onClick: e == null ? void 0 : e.onClick, children: e == null ? void 0 : e.label }, c));
48
+ }), C === a && d.length > l) {
49
+ const e = d.slice(a, d.length);
50
+ r.push(i ? /* @__PURE__ */ n.jsx(w, { className: g, skeletonCls: m, children: k(
51
+ /*i18n*/
52
+ {
53
+ id: "RzpL6g"
54
+ }
55
+ ) }, -1) : /* @__PURE__ */ n.jsx(_, { menu: {
56
+ items: e
57
+ }, getPopupContainer: () => document.fullscreenElement ?? document.body, children: /* @__PURE__ */ n.jsx(j, { type: "text", className: f, children: k(
58
+ /*i18n*/
59
+ {
60
+ id: "RzpL6g"
61
+ }
62
+ ) }) }, -1));
51
63
  }
52
- return l;
53
- }, [a, r, p, d]), S = w(() => {
64
+ return r;
65
+ }, [i, l, p, d]), y = B(() => {
54
66
  if (!(o != null && o.length))
55
67
  return;
56
- if (a && p)
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);
68
+ if (i && p)
69
+ return S;
70
+ const a = o.map((t, r) => /* @__PURE__ */ n.jsx(w, { className: g, skeletonCls: m, children: t == null ? void 0 : t.label }, r)), C = o.map((t, r) => {
71
+ let e = /* @__PURE__ */ n.jsx(j, { type: "text", className: t.danger ? s : u, onClick: t.onClick, children: t == null ? void 0 : t.label }, r);
72
+ t.type === "secondary" && (e = /* @__PURE__ */ n.jsx(j, { type: "text", className: f, onClick: t.onClick, children: t == null ? void 0 : t.label }, r));
73
+ const c = t.render ?? ((R, E) => /* @__PURE__ */ n.jsx(W, { children: R }, E));
74
+ return c == null ? void 0 : c(e, r);
63
75
  });
64
- return a ? i : u;
65
- }, [a, p, o]);
66
- return B ? /* @__PURE__ */ n.jsxs("div", { onClick: (i) => i.stopPropagation(), style: {
76
+ return i ? a : C;
77
+ }, [i, p, o]);
78
+ return z ? /* @__PURE__ */ n.jsxs("div", { onClick: (a) => a.stopPropagation(), style: {
67
79
  overflow: "hidden"
68
80
  }, children: [
69
- /* @__PURE__ */ n.jsx(I, { size: 8, ref: f, className: "actionGroup", style: {
81
+ /* @__PURE__ */ n.jsx(P, { size: 8, ref: h, className: "actionGroup", style: {
70
82
  flexWrap: "wrap"
71
- }, children: S ?? y }),
72
- /* @__PURE__ */ n.jsx("div", { className: T })
73
- ] }) : /* @__PURE__ */ n.jsxs("div", { onClick: (i) => i.stopPropagation(), style: {
83
+ }, children: y ?? b }),
84
+ /* @__PURE__ */ n.jsx("div", { className: N })
85
+ ] }) : /* @__PURE__ */ n.jsxs("div", { onClick: (a) => a.stopPropagation(), style: {
74
86
  overflow: "hidden"
75
87
  }, children: [
76
- /* @__PURE__ */ n.jsx(I, { size: $, ref: f, className: "actionGroup", children: S ?? y }),
77
- /* @__PURE__ */ n.jsx("div", { className: T })
88
+ /* @__PURE__ */ n.jsx(P, { size: $, ref: h, className: "actionGroup", children: y ?? b }),
89
+ /* @__PURE__ */ n.jsx("div", { className: N })
78
90
  ] });
79
91
  });
80
- function ne(x) {
92
+ function le(x) {
81
93
  var m;
82
94
  const {
83
- actionGroup: r,
95
+ actionGroup: l,
84
96
  loading: p,
85
97
  maxCount: d = 3,
86
98
  customActions: o,
87
- defaultWidth: B,
88
- width: f,
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]);
91
- return w(() => ({
92
- width: Math.floor(k),
99
+ defaultWidth: z,
100
+ width: h,
101
+ ...k
102
+ } = x, {
103
+ _: L
104
+ } = I(), i = ((m = F.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? q, u = T(null), s = M(u), f = T(0), N = B(() => h || (s != null && s.width && !f.current && (f.current = s == null ? void 0 : s.width), !(s != null && s.width) && f.current ? f.current + i * 2 + 1 : s != null && s.width ? s.width + i * 2 + 1 : z ?? 141), [h, s, i, z]);
105
+ return B(() => ({
106
+ width: Math.floor(N),
93
107
  mobileHide: !0,
94
108
  isOperationCol: !0,
95
- title: "操作",
109
+ title: L(
110
+ /*i18n*/
111
+ {
112
+ id: "5oBbwZ"
113
+ }
114
+ ),
96
115
  fixed: "right",
97
116
  key: "operationCol",
98
117
  dataIndex: "operationCol",
99
118
  className: "operationCol",
100
119
  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) => {
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;
120
+ render: (S, b, y) => {
121
+ var t, r;
122
+ const a = ((t = o == null ? void 0 : o(b, y)) == null ? void 0 : t.filter((e) => e.type != "detail")) ?? [], C = ((r = l == null ? void 0 : l(b, y)) == null ? void 0 : r.filter((e) => {
123
+ var R;
124
+ const c = typeof e.hidden == "function" ? (R = e.hidden) == null ? void 0 : R.call(e) : e.hidden;
125
+ return e.type != "detail" && !c;
107
126
  })) ?? [];
108
- return /* @__PURE__ */ n.jsx(K, { actionGroup: i, customActions: S, loading: p, maxCount: d, useMaxWidth: g.useMaxWidth, ref: a, width: f });
127
+ return /* @__PURE__ */ n.jsx(K, { actionGroup: C, customActions: a, loading: p, maxCount: d, useMaxWidth: k.useMaxWidth, ref: u, width: h });
109
128
  },
110
- ...g
111
- }), [k, a.current, p, d, r, o]);
129
+ ...k
130
+ }), [N, u.current, p, d, l, o]);
112
131
  }
113
132
  export {
114
133
  K as BitzTableAction,
115
- ne as default
134
+ le as default
116
135
  };