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.
Files changed (32) hide show
  1. package/dist/_virtual/dayjs.min.mjs +2 -5
  2. package/dist/_virtual/index.mjs +2 -2
  3. package/dist/_virtual/index2.mjs +2 -2
  4. package/dist/components/BitzCalendar/index.mjs +1 -1
  5. package/dist/components/BitzDayJs/index.mjs +1 -1
  6. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  7. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  12. package/dist/components/BitzHighlight/Child.mjs +26 -23
  13. package/dist/components/BitzHighlight/index.d.ts +1 -1
  14. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  15. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  16. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +16 -16
  17. package/dist/components/BitzTable/Table/index.d.ts +5 -1
  18. package/dist/components/BitzTable/Table/index.mjs +280 -229
  19. package/dist/components/BitzTable/Table/style.d.ts +5 -4
  20. package/dist/components/BitzTable/Table/style.mjs +15 -14
  21. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +42 -38
  22. package/dist/components/BitzTable/ToolBar/index.d.ts +2 -0
  23. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  24. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  25. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  26. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/utils/time.mjs +1 -1
  29. package/package.json +1 -1
  30. package/dist/_virtual/dayjs.min2.mjs +0 -4
  31. package/dist/components/BitzTable/TableSkeleton/index.d.ts +0 -9
  32. package/dist/components/BitzTable/TableSkeleton/index.mjs +0 -99
@@ -1,9 +1,10 @@
1
- export declare const getCssVar: ({ height, fillEvenRow, colorBgContainer, table, gap, }: {
1
+ export declare const getCssVar: ({ height, evenRowBgColor, colorBgContainer, table, gap, borderColor, }: {
2
2
  height: any;
3
- fillEvenRow: any;
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
- '--tbodyRow-borderColor': any;
18
- '--container-gap': any;
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
- fillEvenRow: w,
4
- colorBgContainer: R,
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, r, x, n, T, d, p, s, $, H, m, C, S, k, f, z, B, c;
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": R,
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
- "--tbodyRow-borderColor": o == null ? void 0 : o.borderColor,
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": `${(r = o == null ? void 0 : o.smTable) == null ? void 0 : r.fontSize}px`,
25
- "--xsTable-fontSize": `${(x = o == null ? void 0 : o.xsTable) == null ? void 0 : x.fontSize}px`,
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": `${(d = o == null ? void 0 : o.mdTable) == null ? void 0 : d.height}px`,
29
- "--smTable-height": `${(p = o == null ? void 0 : o.smTable) == null ? void 0 : p.height}px`,
30
- "--xsTable-height": `${(s = o == null ? void 0 : o.xsTable) == null ? void 0 : s.height}px`,
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": `${(C = o == null ? void 0 : o.smTable) == null ? void 0 : C.lineHeight}px`,
35
- "--xsTable-lineHeight": `${(S = o == null ? void 0 : o.xsTable) == null ? void 0 : S.lineHeight}px`,
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 e } from "../../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { memo as w, useContext as x, useMemo as l } from "react";
3
- import { Space as a } from "antd";
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 C from "../ColConfigIcon/index.mjs";
6
- import g from "../DensityIcon/index.mjs";
7
- import j from "../FullscreenIcon/index.mjs";
8
- import z from "../ExportIcon/index.mjs";
9
- import { BitzConfigContext as I } from "../../../BitzConfigProvider/context.mjs";
10
- const B = [
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
- ], E = ({
16
+ ], T = ({
17
17
  size: k,
18
- tools: c,
19
- loading: f,
20
- onExport: i,
21
- onRefresh: h,
22
- onSizeChange: m,
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 } = x(I), s = l(() => c || (r == null ? void 0 : r.toolbar) || B, [r == null ? void 0 : r.toolbar]), o = l(() => {
26
- const t = {
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 s.forEach((n, p) => {
34
- t[n].order = p + 1, t[n].show = s.includes(n);
35
- }), t;
36
- }, [s]);
37
- return /* @__PURE__ */ e.jsxs(a.Compact, { style: { height: "100%" }, children: [
38
- /* @__PURE__ */ e.jsx(
39
- z,
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: f,
44
- onClick: i
47
+ loading: i,
48
+ onClick: m
45
49
  }
46
50
  ),
47
- /* @__PURE__ */ e.jsx(
51
+ /* @__PURE__ */ s.jsx(
48
52
  u,
49
53
  {
50
54
  order: o.refresh.order,
51
55
  show: o.refresh.show,
52
- loading: f,
53
- onClick: h
56
+ loading: i,
57
+ onClick: c
54
58
  }
55
59
  ),
56
- /* @__PURE__ */ e.jsx(
57
- g,
60
+ /* @__PURE__ */ s.jsx(
61
+ j,
58
62
  {
59
63
  order: o.size.order,
60
64
  show: o.size.show,
61
- onChange: m
65
+ onChange: p
62
66
  }
63
67
  ),
64
- /* @__PURE__ */ e.jsx(
65
- j,
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__ */ e.jsx(
72
- C,
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
- }, A = w(E);
84
+ }, G = a(T);
81
85
  export {
82
- A as default
86
+ G as default
83
87
  };
@@ -13,6 +13,8 @@ export interface BitzTableToolBarProps {
13
13
  size?: DensitySize;
14
14
  /** 控制tool按钮的排序和显隐,根据索引排序,不在tools数组中的不显示 */
15
15
  tools?: ToolEnum[];
16
+ /** 需要隐藏的tool按钮 */
17
+ exclude?: ToolEnum[];
16
18
  loading?: boolean;
17
19
  /**
18
20
  * 导出按钮下拉菜单的点击事件,通过key值判断是导出为excel或其他格式的文件
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
2
- import { __module as i } from "../../../../../_virtual/index.mjs";
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