bitz-react-admin-ui 2.1.5 → 2.1.6

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 (31) 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/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  13. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  14. package/dist/components/BitzTable/Dropdown/index.mjs +16 -15
  15. package/dist/components/BitzTable/Store/index.d.ts +9 -0
  16. package/dist/components/BitzTable/Store/index.mjs +146 -139
  17. package/dist/components/BitzTable/Table/index.mjs +226 -229
  18. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +76 -73
  19. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +10 -4
  20. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.mjs +58 -50
  21. package/dist/components/BitzTable/ToolBar/ExportIcon/index.d.ts +0 -4
  22. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +45 -28
  23. package/dist/components/BitzTable/ToolBar/index.d.ts +4 -1
  24. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  25. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
  26. package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  27. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/utils/time.mjs +1 -1
  30. package/package.json +1 -1
  31. package/dist/_virtual/dayjs.min2.mjs +0 -4
@@ -1,7 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.mjs";
2
- import { __require as o } from "../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
3
- var t = o();
4
- const s = /* @__PURE__ */ r(t);
1
+ var a = { exports: {} };
5
2
  export {
6
- s as default
3
+ a as __module
7
4
  };
@@ -1,4 +1,4 @@
1
- var s = { exports: {} };
1
+ var p = { exports: {} };
2
2
  export {
3
- s as __module
3
+ p as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var p = { exports: {} };
1
+ var s = { exports: {} };
2
2
  export {
3
- p as __module
3
+ s as __module
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { j as n } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useRef as O, useEffect as R } from "react";
3
3
  import { Calendar as k, Select as a, Row as w, Col as y } from "antd";
4
- import N from "../../_virtual/dayjs.min.mjs";
4
+ import N from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import B from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/weekOfYear.mjs";
6
6
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
7
7
  N.extend(B);
@@ -1,4 +1,4 @@
1
- import t from "../../_virtual/dayjs.min.mjs";
1
+ import t from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
2
2
  import "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs";
3
3
  const m = {
4
4
  dayjs() {
@@ -1,5 +1,5 @@
1
1
  import { create as a } from "../../node_modules/.store/zustand@4.5.2/node_modules/zustand/esm/index.mjs";
2
- import o from "../../_virtual/dayjs.min.mjs";
2
+ import o from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
3
3
  var d = /* @__PURE__ */ ((e) => (e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum", e))(d || {});
4
4
  const i = a((e, k) => ({
5
5
  colHeight: 0,
@@ -1,7 +1,7 @@
1
1
  import { j as d } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useState as y, useEffect as j, useMemo as D } from "react";
3
3
  import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isToday.mjs";
4
- import n from "../../_virtual/dayjs.min.mjs";
4
+ import n from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import { useBitzFuiCalendarStore as S, CalendarTypeEnum as C } from "./BitzFuiCalendarStore.mjs";
6
6
  import N from "./CalendarAgendumItem.mjs";
7
7
  import x from "./CalendarAgendum.module.less.mjs";
@@ -1,7 +1,7 @@
1
1
  import { j as i } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { useMemo as a } from "react";
3
3
  import e from "./CalendarAgendum.module.less.mjs";
4
- import l from "../../_virtual/dayjs.min.mjs";
4
+ import l from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
5
5
  import { Button as c } from "antd";
6
6
  const d = (_, s) => {
7
7
  let t = s.diff(_, "minute"), m;
@@ -1,6 +1,6 @@
1
1
  import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
2
  import { memo as m, useMemo as r } from "react";
3
- import d from "../../_virtual/dayjs.min.mjs";
3
+ import d from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
4
4
  import i from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
5
  const n = (t) => {
6
6
  const { time: e } = t, s = r(() => e.isSame(d(), "day"), [e]);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { memo as C, useMemo as i } from "react";
3
3
  import { Space as c, Button as o, DatePicker as b, Dropdown as h } from "antd";
4
4
  import { useBitzFuiCalendarStore as w, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
5
- import g from "../../_virtual/dayjs.min.mjs";
5
+ import g from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
6
  import T from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
7
7
  import v from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
8
8
  import _ from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
@@ -4,7 +4,7 @@ import E from "./FuiCalendarItem.mjs";
4
4
  import b from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import F from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrBefore.mjs";
6
6
  import M from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
7
- import r from "../../_virtual/dayjs.min.mjs";
7
+ import r from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
8
8
  import { useBitzFuiCalendarStore as z } from "./BitzFuiCalendarStore.mjs";
9
9
  r.extend(M);
10
10
  r.extend(F);
@@ -3,7 +3,7 @@ import { useState as w, useMemo as x, useEffect as E } from "react";
3
3
  import A from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import H from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
5
5
  import D from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
6
- import e from "../../_virtual/dayjs.min.mjs";
6
+ import e from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
7
7
  import "./index.less.mjs";
8
8
  e.extend(A);
9
9
  e.extend(H);
@@ -2,7 +2,7 @@ import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/reac
2
2
  import { useMemo as d } from "react";
3
3
  import p from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/objectSupport.mjs";
4
4
  import T from "./BitzMeetingTimeItem.mjs";
5
- import m from "../../_virtual/dayjs.min.mjs";
5
+ import m from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
6
6
  import "./index.less.mjs";
7
7
  m.extend(p);
8
8
  const x = (a) => {
@@ -1,21 +1,22 @@
1
- import { j as a } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { Dropdown as e } from "antd";
3
- import { useMemo as d } from "react";
4
- import c from "./style.mjs";
5
- const p = (o, s) => o == null ? void 0 : o.map((t) => {
6
- const r = { ...t };
7
- return r != null && r.children && (r.children = p(r == null ? void 0 : r.children, s), r.popupClassName = s), r;
8
- }), m = ({ menu: o, ...s }) => {
9
- const { popupClassName: t } = c(), r = d(() => p(o == null ? void 0 : o.items, t), [o == null ? void 0 : o.items]);
10
- return /* @__PURE__ */ a.jsx(
11
- e,
1
+ import { j as e } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { Dropdown as c } from "antd";
3
+ import d from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
4
+ import { useMemo as m } from "react";
5
+ import n from "./style.mjs";
6
+ const p = (r, s) => r == null ? void 0 : r.map((t) => {
7
+ const o = { ...t };
8
+ return o != null && o.children && (o.children = p(o == null ? void 0 : o.children, s), o.popupClassName = s), o;
9
+ }), j = ({ menu: r, overlayClassName: s, ...t }) => {
10
+ const { popupClassName: o } = n(), a = m(() => p(r == null ? void 0 : r.items, o), [r == null ? void 0 : r.items]);
11
+ return /* @__PURE__ */ e.jsx(
12
+ c,
12
13
  {
13
- ...s,
14
- menu: { ...o, items: r },
15
- overlayClassName: t
14
+ ...t,
15
+ menu: { ...r, items: a },
16
+ overlayClassName: d(o, s)
16
17
  }
17
18
  );
18
19
  };
19
20
  export {
20
- m as default
21
+ j as default
21
22
  };
@@ -75,6 +75,7 @@ export type UseContainerProps<T = any> = {
75
75
  defaultExportConfig?: ExportConfigProps[];
76
76
  exportConfig?: ExportConfigProps[];
77
77
  onExportConfigChange?: (value: ExportConfigProps[]) => void;
78
+ rowHoverable?: boolean;
78
79
  };
79
80
  declare function useContainer(props: UseContainerProps): {
80
81
  uuid: string;
@@ -104,6 +105,10 @@ declare function useContainer(props: UseContainerProps): {
104
105
  exportStorageKey: any;
105
106
  onlineExportConfigChange: ((key: any, state: ExportConfigProps[]) => void) | undefined;
106
107
  clearExportConfigCache: () => void;
108
+ zebra: boolean | undefined;
109
+ rowHoverable: boolean;
110
+ showColumnBorder: boolean;
111
+ hideRowBorder: boolean;
107
112
  };
108
113
  declare const BitzTableContext: import("react").Context<{
109
114
  uuid: string;
@@ -133,6 +138,10 @@ declare const BitzTableContext: import("react").Context<{
133
138
  exportStorageKey: any;
134
139
  onlineExportConfigChange: ((key: any, state: ExportConfigProps[]) => void) | undefined;
135
140
  clearExportConfigCache: () => void;
141
+ zebra: boolean | undefined;
142
+ rowHoverable: boolean;
143
+ showColumnBorder: boolean;
144
+ hideRowBorder: boolean;
136
145
  }>;
137
146
  export type ContainerType = typeof useContainer;
138
147
  declare const Container: React.FC<{