bitz-react-admin-ui 2.0.1 → 2.0.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.
- package/dist/_virtual/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzConfigProvider/context.d.ts +6 -3
- package/dist/components/BitzConfigProvider/index.mjs +22 -9
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/Store/index.d.ts +9 -9
- package/dist/components/BitzTable/Store/index.mjs +126 -148
- package/dist/components/BitzTable/Table/index.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.mjs +30 -24
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +53 -51
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +67 -65
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +4 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +17 -17
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +32 -32
- package/dist/components/BitzTable/ToolBar/index.mjs +4 -4
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import { j as n } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { Space as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { memo as d, useContext as w, useMemo as h } from "react";
|
|
3
|
+
import { Space as g } from "antd";
|
|
4
|
+
import u from "../RefreshIcon/index.mjs";
|
|
5
|
+
import C from "../ColConfigIcon/index.mjs";
|
|
6
6
|
import x from "../FullscreenIcon/index.mjs";
|
|
7
7
|
import j from "../ExportIcon/index.mjs";
|
|
8
|
-
import { BitzConfigContext as
|
|
9
|
-
const
|
|
8
|
+
import { BitzConfigContext as z } from "../../../BitzConfigProvider/context.mjs";
|
|
9
|
+
const B = [
|
|
10
10
|
"export",
|
|
11
11
|
"refresh",
|
|
12
12
|
"fullscreen",
|
|
13
|
-
"
|
|
14
|
-
],
|
|
13
|
+
"config"
|
|
14
|
+
], E = ({
|
|
15
15
|
size: I,
|
|
16
|
-
tools:
|
|
17
|
-
exclude:
|
|
18
|
-
loading:
|
|
19
|
-
onExport:
|
|
20
|
-
onRefresh:
|
|
21
|
-
onSizeChange:
|
|
16
|
+
tools: m,
|
|
17
|
+
exclude: s,
|
|
18
|
+
loading: i,
|
|
19
|
+
onExport: c,
|
|
20
|
+
onRefresh: l,
|
|
21
|
+
onSizeChange: T,
|
|
22
22
|
onColumnChange: p
|
|
23
23
|
}) => {
|
|
24
|
-
const { Table: r } =
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
}, [r == null ? void 0 : r.toolbar,
|
|
28
|
-
const
|
|
24
|
+
const { Table: r } = w(z), f = h(() => {
|
|
25
|
+
const e = m || (r == null ? void 0 : r.toolbar) || B;
|
|
26
|
+
return s != null && s.length ? e.filter((t) => !s.includes(t)) : e;
|
|
27
|
+
}, [r == null ? void 0 : r.toolbar, s]), o = h(() => {
|
|
28
|
+
const e = {
|
|
29
29
|
export: { order: 1, show: !1 },
|
|
30
30
|
refresh: { order: 2, show: !1 },
|
|
31
31
|
fullscreen: { order: 3, show: !1 },
|
|
32
|
-
|
|
32
|
+
config: { order: 4, show: !1 }
|
|
33
33
|
};
|
|
34
34
|
return f.forEach((t, a) => {
|
|
35
|
-
|
|
36
|
-
}),
|
|
35
|
+
e[t].order = a + 1, e[t].show = f.includes(t);
|
|
36
|
+
}), e;
|
|
37
37
|
}, [f]);
|
|
38
|
-
return /* @__PURE__ */ n.jsxs(
|
|
38
|
+
return /* @__PURE__ */ n.jsxs(g.Compact, { style: { height: "100%" }, children: [
|
|
39
39
|
/* @__PURE__ */ n.jsx(
|
|
40
40
|
j,
|
|
41
41
|
{
|
|
42
42
|
order: o.export.order,
|
|
43
43
|
show: o.export.show,
|
|
44
|
-
loading:
|
|
45
|
-
onClick:
|
|
44
|
+
loading: i,
|
|
45
|
+
onClick: c
|
|
46
46
|
}
|
|
47
47
|
),
|
|
48
48
|
/* @__PURE__ */ n.jsx(
|
|
49
|
-
|
|
49
|
+
u,
|
|
50
50
|
{
|
|
51
51
|
order: o.refresh.order,
|
|
52
52
|
show: o.refresh.show,
|
|
53
|
-
loading:
|
|
54
|
-
onClick:
|
|
53
|
+
loading: i,
|
|
54
|
+
onClick: l
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
57
|
/* @__PURE__ */ n.jsx(
|
|
@@ -62,15 +62,15 @@ const z = [
|
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
/* @__PURE__ */ n.jsx(
|
|
65
|
-
|
|
65
|
+
C,
|
|
66
66
|
{
|
|
67
|
-
order: o.
|
|
68
|
-
show: o.
|
|
67
|
+
order: o.config.order,
|
|
68
|
+
show: o.config.show,
|
|
69
69
|
onChange: p
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
] });
|
|
73
|
-
}, A =
|
|
73
|
+
}, A = d(E);
|
|
74
74
|
export {
|
|
75
75
|
A as default
|
|
76
76
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import r from "./Wrapper/index.mjs";
|
|
2
2
|
import e from "./ExportIcon/index.mjs";
|
|
3
3
|
import n from "./RefreshIcon/index.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import l from "./ColConfigIcon/index.mjs";
|
|
5
|
+
import t from "./FullscreenIcon/index.mjs";
|
|
6
6
|
const o = r;
|
|
7
7
|
process.env.NODE_ENV !== "production" && (o.displayName = "BitzTableToolBar");
|
|
8
8
|
o.ExportIcon = e;
|
|
9
9
|
o.RefreshIcon = n;
|
|
10
|
-
o.FullscreenIcon =
|
|
11
|
-
o.ColConfigIcon =
|
|
10
|
+
o.FullscreenIcon = t;
|
|
11
|
+
o.ColConfigIcon = l;
|
|
12
12
|
export {
|
|
13
13
|
o as default
|
|
14
14
|
};
|