bitz-react-admin-ui 1.9.2 → 1.9.5
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 +2 -5
- package/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzCalendar/index.mjs +1 -1
- 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/BitzHighlight/Child.mjs +26 -23
- package/dist/components/BitzHighlight/index.d.ts +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +16 -16
- package/dist/components/BitzTable/Table/index.d.ts +5 -1
- package/dist/components/BitzTable/Table/index.mjs +280 -229
- package/dist/components/BitzTable/Table/style.d.ts +5 -4
- package/dist/components/BitzTable/Table/style.mjs +15 -14
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +42 -38
- package/dist/components/BitzTable/ToolBar/index.d.ts +2 -0
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- 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/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
- package/dist/_virtual/dayjs.min2.mjs +0 -4
- package/dist/components/BitzTable/TableSkeleton/index.d.ts +0 -9
- package/dist/components/BitzTable/TableSkeleton/index.mjs +0 -99
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export declare const getCssVar: ({ height,
|
|
1
|
+
export declare const getCssVar: ({ height, evenRowBgColor, colorBgContainer, table, gap, borderColor, }: {
|
|
2
2
|
height: any;
|
|
3
|
-
|
|
3
|
+
evenRowBgColor: any;
|
|
4
4
|
colorBgContainer: any;
|
|
5
5
|
table: any;
|
|
6
6
|
gap: any;
|
|
7
|
+
borderColor: any;
|
|
7
8
|
}) => {
|
|
8
9
|
height: any;
|
|
9
10
|
'--toolbar-bgColor': any;
|
|
@@ -14,8 +15,8 @@ export declare const getCssVar: ({ height, fillEvenRow, colorBgContainer, table,
|
|
|
14
15
|
'--radioCheckbox-borderColor': any;
|
|
15
16
|
'--expandIcon-borderColor': any;
|
|
16
17
|
'--rowHover-bgColor': any;
|
|
17
|
-
'--
|
|
18
|
-
'--container-gap':
|
|
18
|
+
'--borderColor': any;
|
|
19
|
+
'--container-gap': string;
|
|
19
20
|
'--xlTable-fontSize': string;
|
|
20
21
|
'--lgTable-fontSize': string;
|
|
21
22
|
'--mdTable-fontSize': string;
|
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
const u = ({
|
|
2
2
|
height: v,
|
|
3
|
-
|
|
4
|
-
colorBgContainer:
|
|
3
|
+
evenRowBgColor: w,
|
|
4
|
+
colorBgContainer: e,
|
|
5
5
|
table: o,
|
|
6
|
-
gap: I
|
|
6
|
+
gap: I,
|
|
7
|
+
borderColor: R
|
|
7
8
|
}) => {
|
|
8
|
-
var h, i, g,
|
|
9
|
+
var h, i, g, x, r, n, T, p, s, d, $, H, m, S, C, k, f, z, B, c;
|
|
9
10
|
return {
|
|
10
11
|
height: v,
|
|
11
12
|
"--toolbar-bgColor": o == null ? void 0 : o.toolbarBgColor,
|
|
12
13
|
"--thead-bgColor": o == null ? void 0 : o.headerBg,
|
|
13
14
|
"--thead-hoverBgColor": o == null ? void 0 : o.headerSortHoverBg,
|
|
14
15
|
"--evenRow-BgColor": w,
|
|
15
|
-
"--oddRow-BgColor":
|
|
16
|
+
"--oddRow-BgColor": e,
|
|
16
17
|
"--radioCheckbox-borderColor": o == null ? void 0 : o.radioCheckboxBorderColor,
|
|
17
18
|
"--expandIcon-borderColor": o == null ? void 0 : o.expandIconBorderColor,
|
|
18
19
|
"--rowHover-bgColor": o == null ? void 0 : o.rowHoverBg,
|
|
19
|
-
"--
|
|
20
|
-
"--container-gap": I
|
|
20
|
+
"--borderColor": R,
|
|
21
|
+
"--container-gap": `${I}px`,
|
|
21
22
|
"--xlTable-fontSize": `${(h = o == null ? void 0 : o.xlTable) == null ? void 0 : h.fontSize}px`,
|
|
22
23
|
"--lgTable-fontSize": `${(i = o == null ? void 0 : o.lgTable) == null ? void 0 : i.fontSize}px`,
|
|
23
24
|
"--mdTable-fontSize": `${(g = o == null ? void 0 : o.mdTable) == null ? void 0 : g.fontSize}px`,
|
|
24
|
-
"--smTable-fontSize": `${(
|
|
25
|
-
"--xsTable-fontSize": `${(
|
|
25
|
+
"--smTable-fontSize": `${(x = o == null ? void 0 : o.smTable) == null ? void 0 : x.fontSize}px`,
|
|
26
|
+
"--xsTable-fontSize": `${(r = o == null ? void 0 : o.xsTable) == null ? void 0 : r.fontSize}px`,
|
|
26
27
|
"--xlTable-height": `${(n = o == null ? void 0 : o.xlTable) == null ? void 0 : n.height}px`,
|
|
27
28
|
"--lgTable-height": `${(T = o == null ? void 0 : o.lgTable) == null ? void 0 : T.height}px`,
|
|
28
|
-
"--mdTable-height": `${(
|
|
29
|
-
"--smTable-height": `${(
|
|
30
|
-
"--xsTable-height": `${(
|
|
29
|
+
"--mdTable-height": `${(p = o == null ? void 0 : o.mdTable) == null ? void 0 : p.height}px`,
|
|
30
|
+
"--smTable-height": `${(s = o == null ? void 0 : o.smTable) == null ? void 0 : s.height}px`,
|
|
31
|
+
"--xsTable-height": `${(d = o == null ? void 0 : o.xsTable) == null ? void 0 : d.height}px`,
|
|
31
32
|
"--xlTable-lineHeight": `${($ = o == null ? void 0 : o.xlTable) == null ? void 0 : $.lineHeight}px`,
|
|
32
33
|
"--lgTable-lineHeight": `${(H = o == null ? void 0 : o.lgTable) == null ? void 0 : H.lineHeight}px`,
|
|
33
34
|
"--mdTable-lineHeight": `${(m = o == null ? void 0 : o.mdTable) == null ? void 0 : m.lineHeight}px`,
|
|
34
|
-
"--smTable-lineHeight": `${(
|
|
35
|
-
"--xsTable-lineHeight": `${(
|
|
35
|
+
"--smTable-lineHeight": `${(S = o == null ? void 0 : o.smTable) == null ? void 0 : S.lineHeight}px`,
|
|
36
|
+
"--xsTable-lineHeight": `${(C = o == null ? void 0 : o.xsTable) == null ? void 0 : C.lineHeight}px`,
|
|
36
37
|
"--xlSkeleton-height": `${(k = o == null ? void 0 : o.xlTable) == null ? void 0 : k.skeletonHeight}px`,
|
|
37
38
|
"--lgSkeleton-height": `${(f = o == null ? void 0 : o.lgTable) == null ? void 0 : f.skeletonHeight}px`,
|
|
38
39
|
"--mdSkeleton-height": `${(z = o == null ? void 0 : o.mdTable) == null ? void 0 : z.skeletonHeight}px`,
|
|
@@ -1,75 +1,79 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { Space as
|
|
1
|
+
import { j as s } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { memo as a, useContext as C, useMemo as h } from "react";
|
|
3
|
+
import { Space as g } from "antd";
|
|
4
4
|
import u from "../RefreshIcon/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { BitzConfigContext as
|
|
10
|
-
const
|
|
5
|
+
import x from "../ColConfigIcon/index.mjs";
|
|
6
|
+
import j from "../DensityIcon/index.mjs";
|
|
7
|
+
import z from "../FullscreenIcon/index.mjs";
|
|
8
|
+
import I from "../ExportIcon/index.mjs";
|
|
9
|
+
import { BitzConfigContext as B } from "../../../BitzConfigProvider/context.mjs";
|
|
10
|
+
const E = [
|
|
11
11
|
"export",
|
|
12
12
|
"refresh",
|
|
13
13
|
"size",
|
|
14
14
|
"fullscreen",
|
|
15
15
|
"colConfig"
|
|
16
|
-
],
|
|
16
|
+
], T = ({
|
|
17
17
|
size: k,
|
|
18
|
-
tools:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
tools: l,
|
|
19
|
+
exclude: t,
|
|
20
|
+
loading: i,
|
|
21
|
+
onExport: m,
|
|
22
|
+
onRefresh: c,
|
|
23
|
+
onSizeChange: p,
|
|
23
24
|
onColumnChange: d
|
|
24
25
|
}) => {
|
|
25
|
-
const { Table: r } =
|
|
26
|
-
const
|
|
26
|
+
const { Table: r } = C(B), f = h(() => {
|
|
27
|
+
const e = l || (r == null ? void 0 : r.toolbar) || E;
|
|
28
|
+
return t != null && t.length ? e.filter((n) => !t.includes(n)) : e;
|
|
29
|
+
}, [r == null ? void 0 : r.toolbar, t]), o = h(() => {
|
|
30
|
+
const e = {
|
|
27
31
|
export: { order: 1, show: !1 },
|
|
28
32
|
refresh: { order: 2, show: !1 },
|
|
29
33
|
size: { order: 3, show: !1 },
|
|
30
34
|
fullscreen: { order: 4, show: !1 },
|
|
31
35
|
colConfig: { order: 5, show: !1 }
|
|
32
36
|
};
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
}),
|
|
36
|
-
}, [
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
37
|
+
return f.forEach((n, w) => {
|
|
38
|
+
e[n].order = w + 1, e[n].show = f.includes(n);
|
|
39
|
+
}), e;
|
|
40
|
+
}, [f]);
|
|
41
|
+
return /* @__PURE__ */ s.jsxs(g.Compact, { style: { height: "100%" }, children: [
|
|
42
|
+
/* @__PURE__ */ s.jsx(
|
|
43
|
+
I,
|
|
40
44
|
{
|
|
41
45
|
order: o.export.order,
|
|
42
46
|
show: o.export.show,
|
|
43
|
-
loading:
|
|
44
|
-
onClick:
|
|
47
|
+
loading: i,
|
|
48
|
+
onClick: m
|
|
45
49
|
}
|
|
46
50
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ s.jsx(
|
|
48
52
|
u,
|
|
49
53
|
{
|
|
50
54
|
order: o.refresh.order,
|
|
51
55
|
show: o.refresh.show,
|
|
52
|
-
loading:
|
|
53
|
-
onClick:
|
|
56
|
+
loading: i,
|
|
57
|
+
onClick: c
|
|
54
58
|
}
|
|
55
59
|
),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
60
|
+
/* @__PURE__ */ s.jsx(
|
|
61
|
+
j,
|
|
58
62
|
{
|
|
59
63
|
order: o.size.order,
|
|
60
64
|
show: o.size.show,
|
|
61
|
-
onChange:
|
|
65
|
+
onChange: p
|
|
62
66
|
}
|
|
63
67
|
),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
68
|
+
/* @__PURE__ */ s.jsx(
|
|
69
|
+
z,
|
|
66
70
|
{
|
|
67
71
|
order: o.fullscreen.order,
|
|
68
72
|
show: o.fullscreen.show
|
|
69
73
|
}
|
|
70
74
|
),
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
|
|
75
|
+
/* @__PURE__ */ s.jsx(
|
|
76
|
+
x,
|
|
73
77
|
{
|
|
74
78
|
order: o.colConfig.order,
|
|
75
79
|
show: o.colConfig.show,
|
|
@@ -77,7 +81,7 @@ const B = [
|
|
|
77
81
|
}
|
|
78
82
|
)
|
|
79
83
|
] });
|
|
80
|
-
},
|
|
84
|
+
}, G = a(T);
|
|
81
85
|
export {
|
|
82
|
-
|
|
86
|
+
G as default
|
|
83
87
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../../../../_virtual/
|
|
2
|
+
import { __module as i } from "../../../../../_virtual/index2.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|