bitz-react-admin-ui 2.2.8 → 2.2.9
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/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +51 -19
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +30 -14
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +121 -89
- package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
- package/dist/components/BitzTable/SubTable/index.mjs +100 -52
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +395 -187
- package/dist/components/BitzTable/Table/style.mjs +11 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -12
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -98,18 +98,21 @@ const Q = () => {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
];
|
|
101
|
-
T(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
101
|
+
T(
|
|
102
|
+
{
|
|
103
|
+
theme: h,
|
|
104
|
+
token: s,
|
|
105
|
+
hashId: r,
|
|
106
|
+
path: [e]
|
|
107
|
+
},
|
|
108
|
+
() => [
|
|
109
|
+
g(e, d),
|
|
110
|
+
u(a, s),
|
|
111
|
+
v(l, s),
|
|
112
|
+
C(c, s),
|
|
113
|
+
y(m, p)
|
|
114
|
+
]
|
|
115
|
+
);
|
|
113
116
|
const $ = n(e, a, r), f = n(e, l, r), S = n(e, c, r), x = n(e, m, r), b = n(p, r), z = n(d, r);
|
|
114
117
|
return {
|
|
115
118
|
gap: B,
|
|
@@ -8,7 +8,14 @@ const p = (r, s) => r == null ? void 0 : r.map((t) => {
|
|
|
8
8
|
return o != null && o.children && (o.children = p(o == null ? void 0 : o.children, s), o.popupClassName = s), o;
|
|
9
9
|
}), j = ({ menu: r, overlayClassName: s, ...t }) => {
|
|
10
10
|
const { popupClassName: o } = n(), a = m(() => p(r == null ? void 0 : r.items, o), [r == null ? void 0 : r.items]);
|
|
11
|
-
return e.jsx(
|
|
11
|
+
return /* @__PURE__ */ e.jsx(
|
|
12
|
+
c,
|
|
13
|
+
{
|
|
14
|
+
...t,
|
|
15
|
+
menu: { ...r, items: a },
|
|
16
|
+
overlayClassName: d(o, s)
|
|
17
|
+
}
|
|
18
|
+
);
|
|
12
19
|
};
|
|
13
20
|
export {
|
|
14
21
|
j as default
|
|
@@ -89,12 +89,15 @@ const P = () => {
|
|
|
89
89
|
}
|
|
90
90
|
];
|
|
91
91
|
};
|
|
92
|
-
C(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
C(
|
|
93
|
+
{
|
|
94
|
+
theme: c,
|
|
95
|
+
token: a,
|
|
96
|
+
hashId: i,
|
|
97
|
+
path: [o]
|
|
98
|
+
},
|
|
99
|
+
() => [w(o, m, a)]
|
|
100
|
+
);
|
|
98
101
|
const h = `${T}${m}`;
|
|
99
102
|
return {
|
|
100
103
|
popupClassName: y(o, h, i)
|
|
@@ -5,15 +5,28 @@ import { useMemo as m } from "react";
|
|
|
5
5
|
import c from "./style.mjs";
|
|
6
6
|
import d from "../Dropdown/style.mjs";
|
|
7
7
|
import x from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/CaretDownOutlined.mjs";
|
|
8
|
-
const
|
|
8
|
+
const a = (t, o) => t == null ? void 0 : t.map((e) => {
|
|
9
9
|
const r = { ...e };
|
|
10
|
-
return r != null && r.children && (r.children =
|
|
11
|
-
}), y = ({
|
|
10
|
+
return r != null && r.children && (r.children = a(r == null ? void 0 : r.children, o), r.popupClassName = o), r;
|
|
11
|
+
}), y = ({
|
|
12
|
+
...t
|
|
13
|
+
}) => {
|
|
12
14
|
const { btnClassName: o } = c();
|
|
13
|
-
return s.jsx(n, { className: o, type: "text", ...t });
|
|
15
|
+
return /* @__PURE__ */ s.jsx(n, { className: o, type: "text", ...t });
|
|
14
16
|
}, S = ({ menu: t, children: o }) => {
|
|
15
|
-
const { btnClassName: e } = c(), { popupClassName: r } = d(),
|
|
16
|
-
return
|
|
17
|
+
const { btnClassName: e } = c(), { popupClassName: r } = d(), i = m(() => a(t == null ? void 0 : t.items, r), [t == null ? void 0 : t.items]);
|
|
18
|
+
return /* @__PURE__ */ s.jsx(
|
|
19
|
+
p,
|
|
20
|
+
{
|
|
21
|
+
menu: { ...t, items: i },
|
|
22
|
+
overlayClassName: r,
|
|
23
|
+
trigger: ["click"],
|
|
24
|
+
children: /* @__PURE__ */ s.jsx(n, { className: e, type: "text", children: /* @__PURE__ */ s.jsxs(l, { size: 2, children: [
|
|
25
|
+
/* @__PURE__ */ s.jsx("span", { children: o }),
|
|
26
|
+
/* @__PURE__ */ s.jsx(x, {})
|
|
27
|
+
] }) })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
17
30
|
};
|
|
18
31
|
export {
|
|
19
32
|
y as BitzSelectionBarButton,
|
|
@@ -5,12 +5,18 @@ import { useContext as i, useMemo as p, useEffect as f } from "react";
|
|
|
5
5
|
import { BitzTableContext as C } from "../Store/index.mjs";
|
|
6
6
|
import u from "./style.mjs";
|
|
7
7
|
const v = ({ show: e, children: s }) => {
|
|
8
|
-
const {
|
|
8
|
+
const {
|
|
9
|
+
blockClassName: a,
|
|
10
|
+
showCls: o,
|
|
11
|
+
btnClassName: x,
|
|
12
|
+
batchOperationClassName: r,
|
|
13
|
+
alertContentClassName: N
|
|
14
|
+
} = u(), { setSelected: m } = i(C), l = p(() => n(a, {
|
|
9
15
|
[`${o}`]: e
|
|
10
16
|
}), [e]);
|
|
11
17
|
return f(() => {
|
|
12
18
|
m(e ?? !1);
|
|
13
|
-
}, [e]), t.jsx("div", { className: l, children: t.jsx(c.Compact, { className: r, children: s || t.jsx("div", {}) }) });
|
|
19
|
+
}, [e]), /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(c.Compact, { className: r, children: s || /* @__PURE__ */ t.jsx("div", {}) }) });
|
|
14
20
|
};
|
|
15
21
|
export {
|
|
16
22
|
v as default
|
|
@@ -98,14 +98,24 @@ const V = () => {
|
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
100
|
};
|
|
101
|
-
G(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
101
|
+
G(
|
|
102
|
+
{
|
|
103
|
+
theme: b,
|
|
104
|
+
token: i,
|
|
105
|
+
hashId: o,
|
|
106
|
+
path: [r]
|
|
107
|
+
},
|
|
108
|
+
() => [
|
|
109
|
+
g(
|
|
110
|
+
r,
|
|
111
|
+
l,
|
|
112
|
+
s,
|
|
113
|
+
m,
|
|
114
|
+
f,
|
|
115
|
+
i
|
|
116
|
+
)
|
|
117
|
+
]
|
|
118
|
+
);
|
|
109
119
|
const u = `${S}${r}`, d = n(r, u, o), T = n(m, o), x = n(f, o), w = n(s, o);
|
|
110
120
|
return {
|
|
111
121
|
blockClassName: d,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as ve } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Table as
|
|
2
|
+
import { Table as le } from "antd";
|
|
3
3
|
import N from "../../../hooks/useMergedState.mjs";
|
|
4
4
|
import { createContext as Ve, useRef as Oe, useState as fe, useContext as Ne, useEffect as S, useMemo as g, useCallback as z } from "react";
|
|
5
5
|
import { genColumnKey as re } from "./utils/index.mjs";
|
|
@@ -18,8 +18,8 @@ const Je = {
|
|
|
18
18
|
})
|
|
19
19
|
}, Ie = [
|
|
20
20
|
Je,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
le.SELECTION_COLUMN,
|
|
22
|
+
le.EXPAND_COLUMN
|
|
23
23
|
];
|
|
24
24
|
function Me(e) {
|
|
25
25
|
var H, k, R, L, P, U, D, _, G, Z, A, F, X, q, Q, W, Y, $, p, ee, te, ne, ie, ae, ce;
|
|
@@ -27,24 +27,30 @@ function Me(e) {
|
|
|
27
27
|
size: E,
|
|
28
28
|
zebra: ge,
|
|
29
29
|
bordered: Ce
|
|
30
|
-
}, [y, J] = N(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
}, [y, J] = N(
|
|
31
|
+
() => {
|
|
32
|
+
var n, o, c, l;
|
|
33
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.stylesConfigState || {};
|
|
34
|
+
if (i && t && typeof window < "u" && t !== "online") {
|
|
35
|
+
const f = window[t];
|
|
36
|
+
try {
|
|
37
|
+
const r = f == null ? void 0 : f.getItem(i);
|
|
38
|
+
if (r)
|
|
39
|
+
return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? C(
|
|
40
|
+
JSON.parse(r),
|
|
41
|
+
(o = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : o.defaultValue
|
|
42
|
+
) : JSON.parse(r);
|
|
43
|
+
} catch (r) {
|
|
44
|
+
console.warn(r);
|
|
45
|
+
}
|
|
41
46
|
}
|
|
47
|
+
return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((l = e.stylesConfigState) == null ? void 0 : l.defaultValue) || v;
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
|
|
51
|
+
onChange: ((k = e.stylesConfigState) == null ? void 0 : k.onChange) || e.onStylesConfigChange
|
|
42
52
|
}
|
|
43
|
-
|
|
44
|
-
}, {
|
|
45
|
-
value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
|
|
46
|
-
onChange: ((k = e.stylesConfigState) == null ? void 0 : k.onChange) || e.onStylesConfigChange
|
|
47
|
-
});
|
|
53
|
+
);
|
|
48
54
|
S(() => {
|
|
49
55
|
var a, n;
|
|
50
56
|
if (!((a = e.stylesConfigState) != null && a.persistenceKey) || !((n = e.stylesConfigState) != null && n.persistenceType) || typeof window > "u")
|
|
@@ -55,9 +61,9 @@ function Me(e) {
|
|
|
55
61
|
// onlineChange
|
|
56
62
|
} = e.stylesConfigState;
|
|
57
63
|
if (t !== "online") {
|
|
58
|
-
const
|
|
64
|
+
const o = window[t];
|
|
59
65
|
try {
|
|
60
|
-
|
|
66
|
+
o == null || o.setItem(i, JSON.stringify(y));
|
|
61
67
|
} catch (c) {
|
|
62
68
|
console.warn(c), M();
|
|
63
69
|
}
|
|
@@ -69,12 +75,14 @@ function Me(e) {
|
|
|
69
75
|
]), S(() => {
|
|
70
76
|
var t, i, a;
|
|
71
77
|
if ((t = e.stylesConfigState) != null && t.persistenceKey && ((i = e.stylesConfigState) == null ? void 0 : i.persistenceType) === "online") {
|
|
72
|
-
const { onlineGet: n, persistenceKey:
|
|
78
|
+
const { onlineGet: n, persistenceKey: o } = e.stylesConfigState;
|
|
73
79
|
try {
|
|
74
|
-
(a = n == null ? void 0 : n(
|
|
80
|
+
(a = n == null ? void 0 : n(o)) == null || a.then((c) => {
|
|
75
81
|
var f;
|
|
76
|
-
const
|
|
77
|
-
J(
|
|
82
|
+
const l = C(c ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
|
|
83
|
+
J(
|
|
84
|
+
Object.keys(l).length ? l : v
|
|
85
|
+
);
|
|
78
86
|
});
|
|
79
87
|
} catch (c) {
|
|
80
88
|
console.warn(c);
|
|
@@ -96,41 +104,52 @@ function Me(e) {
|
|
|
96
104
|
}
|
|
97
105
|
};
|
|
98
106
|
return s == null || s.forEach((a, n) => {
|
|
99
|
-
const { title:
|
|
100
|
-
|
|
101
|
-
field:
|
|
102
|
-
title:
|
|
107
|
+
const { title: o, isOperationCol: c } = a, l = re(a, n);
|
|
108
|
+
l && !c && t.fields.push({
|
|
109
|
+
field: l,
|
|
110
|
+
title: o,
|
|
103
111
|
show: !0
|
|
104
112
|
});
|
|
105
113
|
}), t;
|
|
106
|
-
}, [s]), [V, x] = N(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
}, [s]), [V, x] = N(
|
|
115
|
+
() => {
|
|
116
|
+
var n, o, c, l;
|
|
117
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.exportConfigState || {};
|
|
118
|
+
if (i && t && typeof window < "u" && t !== "online") {
|
|
119
|
+
const f = window[t];
|
|
120
|
+
try {
|
|
121
|
+
const r = f == null ? void 0 : f.getItem(i);
|
|
122
|
+
if (r)
|
|
123
|
+
return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? C(
|
|
124
|
+
JSON.parse(r),
|
|
125
|
+
(o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
|
|
126
|
+
) : JSON.parse(r);
|
|
127
|
+
} catch (r) {
|
|
128
|
+
console.warn(r);
|
|
129
|
+
}
|
|
117
130
|
}
|
|
131
|
+
return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((l = e.exportConfigState) == null ? void 0 : l.defaultValue) || w;
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
value: ((P = e.exportConfigState) == null ? void 0 : P.value) || e.exportConfig,
|
|
135
|
+
onChange: ((U = e.exportConfigState) == null ? void 0 : U.onChange) || e.onExportConfigChange
|
|
118
136
|
}
|
|
119
|
-
|
|
120
|
-
}, {
|
|
121
|
-
value: ((P = e.exportConfigState) == null ? void 0 : P.value) || e.exportConfig,
|
|
122
|
-
onChange: ((U = e.exportConfigState) == null ? void 0 : U.onChange) || e.onExportConfigChange
|
|
123
|
-
});
|
|
137
|
+
);
|
|
124
138
|
S(() => {
|
|
125
|
-
var n,
|
|
139
|
+
var n, o;
|
|
126
140
|
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.exportConfigState || {};
|
|
127
141
|
if (i && t && typeof window < "u" && t !== "online") {
|
|
128
142
|
const c = window[t];
|
|
129
143
|
try {
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
144
|
+
const l = c == null ? void 0 : c.getItem(i);
|
|
145
|
+
l ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(
|
|
146
|
+
C(
|
|
147
|
+
JSON.parse(l),
|
|
148
|
+
(o = e == null ? void 0 : e.exportConfigState) == null ? void 0 : o.defaultValue
|
|
149
|
+
)
|
|
150
|
+
) : x(JSON.parse(l)) : x(w);
|
|
151
|
+
} catch (l) {
|
|
152
|
+
console.warn(l);
|
|
134
153
|
}
|
|
135
154
|
}
|
|
136
155
|
}, [
|
|
@@ -147,9 +166,9 @@ function Me(e) {
|
|
|
147
166
|
// onlineChange
|
|
148
167
|
} = e.exportConfigState;
|
|
149
168
|
if (t !== "online") {
|
|
150
|
-
const
|
|
169
|
+
const o = window[t];
|
|
151
170
|
try {
|
|
152
|
-
|
|
171
|
+
o == null || o.setItem(i, JSON.stringify(V));
|
|
153
172
|
} catch (c) {
|
|
154
173
|
console.warn(c), B();
|
|
155
174
|
}
|
|
@@ -161,12 +180,14 @@ function Me(e) {
|
|
|
161
180
|
]), S(() => {
|
|
162
181
|
var t, i, a;
|
|
163
182
|
if ((t = e.exportConfigState) != null && t.persistenceKey && ((i = e.exportConfigState) == null ? void 0 : i.persistenceType) === "online") {
|
|
164
|
-
const { onlineGet: n, persistenceKey:
|
|
183
|
+
const { onlineGet: n, persistenceKey: o } = e.exportConfigState;
|
|
165
184
|
try {
|
|
166
|
-
(a = n == null ? void 0 : n(
|
|
185
|
+
(a = n == null ? void 0 : n(o)) == null || a.then((c) => {
|
|
167
186
|
var f;
|
|
168
|
-
const
|
|
169
|
-
x(
|
|
187
|
+
const l = C(c ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
|
|
188
|
+
x(
|
|
189
|
+
Object.keys(l).length ? l : w
|
|
190
|
+
);
|
|
170
191
|
});
|
|
171
192
|
} catch (c) {
|
|
172
193
|
console.warn(c);
|
|
@@ -174,47 +195,58 @@ function Me(e) {
|
|
|
174
195
|
}
|
|
175
196
|
}, []);
|
|
176
197
|
const h = g(() => {
|
|
177
|
-
var c,
|
|
198
|
+
var c, l, f, r;
|
|
178
199
|
if ((c = e == null ? void 0 : e.columnsState) != null && c.defaultValue)
|
|
179
200
|
return e.columnsState.defaultValue;
|
|
180
|
-
const t = ((
|
|
201
|
+
const t = ((l = s == null ? void 0 : s.filter((d) => d.fixed === "left")) == null ? void 0 : l.map((d, m) => ({ ...d, order: m }))) ?? [], i = ((f = s == null ? void 0 : s.filter((d) => d.fixed === "right")) == null ? void 0 : f.map((d, m) => ({ ...d, order: m }))) ?? [], a = ((r = s == null ? void 0 : s.filter((d) => !["left", "right"].includes(d.fixed))) == null ? void 0 : r.map((d, m) => ({ ...d, order: m }))) ?? [], n = [...t, ...a, ...i], o = {};
|
|
181
202
|
return n == null || n.forEach((d, m) => {
|
|
182
|
-
const { order: Te, fixed: Ke, disabled: be } = d,
|
|
183
|
-
|
|
203
|
+
const { order: Te, fixed: Ke, disabled: be } = d, oe = re(d, m);
|
|
204
|
+
oe && (o[oe] = {
|
|
184
205
|
show: !0,
|
|
185
206
|
order: Te,
|
|
186
207
|
fixed: Ke,
|
|
187
208
|
disabled: be
|
|
188
209
|
});
|
|
189
|
-
}),
|
|
190
|
-
}, [s]), [O, T] = N(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
210
|
+
}), o;
|
|
211
|
+
}, [s]), [O, T] = N(
|
|
212
|
+
() => {
|
|
213
|
+
var n, o, c, l;
|
|
214
|
+
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.columnsState || {};
|
|
215
|
+
if (i && t && typeof window < "u" && t !== "online") {
|
|
216
|
+
const f = window[t];
|
|
217
|
+
try {
|
|
218
|
+
const r = f == null ? void 0 : f.getItem(i);
|
|
219
|
+
if (r)
|
|
220
|
+
return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? C(
|
|
221
|
+
JSON.parse(r),
|
|
222
|
+
(o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
|
|
223
|
+
) : JSON.parse(r);
|
|
224
|
+
} catch (r) {
|
|
225
|
+
console.warn(r);
|
|
226
|
+
}
|
|
201
227
|
}
|
|
228
|
+
return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((l = e.columnsState) == null ? void 0 : l.defaultValue) || h;
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
value: ((A = e.columnsState) == null ? void 0 : A.value) || e.columnsStateMap,
|
|
232
|
+
onChange: ((F = e.columnsState) == null ? void 0 : F.onChange) || e.onColumnsStateChange
|
|
202
233
|
}
|
|
203
|
-
|
|
204
|
-
}, {
|
|
205
|
-
value: ((A = e.columnsState) == null ? void 0 : A.value) || e.columnsStateMap,
|
|
206
|
-
onChange: ((F = e.columnsState) == null ? void 0 : F.onChange) || e.onColumnsStateChange
|
|
207
|
-
});
|
|
234
|
+
);
|
|
208
235
|
S(() => {
|
|
209
|
-
var n,
|
|
236
|
+
var n, o;
|
|
210
237
|
const { persistenceType: t, persistenceKey: i, onlineGet: a } = e.columnsState || {};
|
|
211
238
|
if (i && t && typeof window < "u" && t !== "online") {
|
|
212
239
|
const c = window[t];
|
|
213
240
|
try {
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
241
|
+
const l = c == null ? void 0 : c.getItem(i);
|
|
242
|
+
l ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? T(
|
|
243
|
+
C(
|
|
244
|
+
JSON.parse(l),
|
|
245
|
+
(o = e == null ? void 0 : e.columnsState) == null ? void 0 : o.defaultValue
|
|
246
|
+
)
|
|
247
|
+
) : T(JSON.parse(l)) : T(h);
|
|
248
|
+
} catch (l) {
|
|
249
|
+
console.warn(l);
|
|
218
250
|
}
|
|
219
251
|
}
|
|
220
252
|
}, [
|
|
@@ -263,9 +295,9 @@ function Me(e) {
|
|
|
263
295
|
// onlineChange
|
|
264
296
|
} = e.columnsState;
|
|
265
297
|
if (t !== "online") {
|
|
266
|
-
const
|
|
298
|
+
const o = window[t];
|
|
267
299
|
try {
|
|
268
|
-
|
|
300
|
+
o == null || o.setItem(i, JSON.stringify(O));
|
|
269
301
|
} catch (c) {
|
|
270
302
|
console.warn(c), I();
|
|
271
303
|
}
|
|
@@ -277,12 +309,12 @@ function Me(e) {
|
|
|
277
309
|
]), S(() => {
|
|
278
310
|
var t, i, a;
|
|
279
311
|
if ((t = e.columnsState) != null && t.persistenceKey && ((i = e.columnsState) == null ? void 0 : i.persistenceType) === "online") {
|
|
280
|
-
const { onlineGet: n, persistenceKey:
|
|
312
|
+
const { onlineGet: n, persistenceKey: o } = e.columnsState;
|
|
281
313
|
try {
|
|
282
|
-
(a = n == null ? void 0 : n(
|
|
314
|
+
(a = n == null ? void 0 : n(o)) == null || a.then((c) => {
|
|
283
315
|
var f;
|
|
284
|
-
const
|
|
285
|
-
T(Object.keys(
|
|
316
|
+
const l = C(c ?? {}, (f = e == null ? void 0 : e.columnsState) == null ? void 0 : f.value);
|
|
317
|
+
T(Object.keys(l).length ? l : h);
|
|
286
318
|
});
|
|
287
319
|
} catch (c) {
|
|
288
320
|
console.warn(c);
|
|
@@ -335,7 +367,7 @@ function Me(e) {
|
|
|
335
367
|
}
|
|
336
368
|
const Be = Ve({}), _e = (e) => {
|
|
337
369
|
const K = Me(e.initValue);
|
|
338
|
-
return ve.jsx(Be.Provider, { value: K, children: e.children });
|
|
370
|
+
return /* @__PURE__ */ ve.jsx(Be.Provider, { value: K, children: e.children });
|
|
339
371
|
};
|
|
340
372
|
export {
|
|
341
373
|
Be as BitzTableContext,
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
let o = 0,
|
|
1
|
+
const u = (e, d) => {
|
|
2
|
+
let o = 0, r = 0;
|
|
3
3
|
return {
|
|
4
|
-
filterColumns: ((
|
|
5
|
-
const t =
|
|
6
|
-
return s && s.show === !1 ? (typeof
|
|
7
|
-
}))(e,
|
|
4
|
+
filterColumns: ((i, l) => i.map((n) => {
|
|
5
|
+
const t = h(n, n.index), s = l[t];
|
|
6
|
+
return s && s.show === !1 ? (typeof n.width == "number" ? o += n.width : r += 1, !1) : { ...n, ...s };
|
|
7
|
+
}))(e, d).filter(Boolean),
|
|
8
8
|
hiddenTotalWidth: Math.floor(o),
|
|
9
|
-
autoWidthColLength:
|
|
9
|
+
autoWidthColLength: r
|
|
10
10
|
};
|
|
11
|
-
},
|
|
12
|
-
var t, s,
|
|
13
|
-
const { fixed:
|
|
14
|
-
if (
|
|
11
|
+
}, h = (e, d) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${d}`, c = (e) => (d, o) => {
|
|
12
|
+
var t, s, x, y;
|
|
13
|
+
const { fixed: r, index: a } = d, { fixed: f, index: i } = o;
|
|
14
|
+
if (r === "left" && f !== "left" || f === "right" && r !== "right")
|
|
15
15
|
return -2;
|
|
16
|
-
if (f === "left" &&
|
|
16
|
+
if (f === "left" && r !== "left" || r === "right" && f !== "right")
|
|
17
17
|
return 2;
|
|
18
|
-
const l =
|
|
19
|
-
return (t = e[l]) != null && t.order || (s = e[
|
|
18
|
+
const l = d.key || `${a}`, n = o.key || `${i}`;
|
|
19
|
+
return (t = e[l]) != null && t.order || (s = e[n]) != null && s.order ? (((x = e[l]) == null ? void 0 : x.order) || 0) - (((y = e[n]) == null ? void 0 : y.order) || 0) : (d.index || 0) - (o.index || 0);
|
|
20
20
|
};
|
|
21
|
-
function k(e,
|
|
22
|
-
const
|
|
21
|
+
function k(e, d, o) {
|
|
22
|
+
const r = {};
|
|
23
23
|
let a = "";
|
|
24
|
-
const f = (
|
|
25
|
-
for (const t in
|
|
26
|
-
if (
|
|
27
|
-
const s =
|
|
28
|
-
|
|
24
|
+
const f = (i, l, n) => {
|
|
25
|
+
for (const t in i)
|
|
26
|
+
if (i.hasOwnProperty(t) && (typeof i[t] == "object" && i[t] !== null && (a = t, r[t] = { ...i[t] }, f(i[t], l, n)), t === l)) {
|
|
27
|
+
const s = r[a];
|
|
28
|
+
r[a] = {
|
|
29
29
|
...s,
|
|
30
|
-
[l]:
|
|
30
|
+
[l]: n
|
|
31
31
|
// [prop]: current.disabled || current.fixed ? true : val,
|
|
32
32
|
}, a = "";
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
return f(e,
|
|
35
|
+
return f(e, d, o), r;
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
38
|
c as columnSort,
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
h as genColumnKey,
|
|
40
|
+
u as loopFilter,
|
|
41
41
|
k as updateNestedObject
|
|
42
42
|
};
|