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,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.5/node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
7
7
  import v from "../../node_modules/.store/@ant-design_icons@5.3.5/node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
8
8
  import _ from "../../node_modules/.store/@ant-design_icons@5.3.5/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);
@@ -1,29 +1,32 @@
1
- import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { Typography as o } from "antd";
3
- import g from "./style.mjs";
4
- import j from "./chunks.mjs";
5
- const v = ({
6
- autoEscape: a = !0,
7
- caseSensitive: i = !1,
8
- sourceString: r,
9
- keywords: l,
10
- highlightClass: m,
11
- unhighlightClass: h = ""
1
+ import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useMemo as N, Fragment as C } from "react";
3
+ import { Typography as i } from "antd";
4
+ import b from "./style.mjs";
5
+ import v from "./chunks.mjs";
6
+ const H = ({
7
+ autoEscape: l = !0,
8
+ caseSensitive: a = !1,
9
+ sourceString: e,
10
+ keywords: p,
11
+ tag: r = C,
12
+ tagClass: o,
13
+ highlightClass: c,
14
+ unhighlightClass: f = ""
12
15
  }) => {
13
- const { highlightClassName: c } = g({
16
+ const { highlightClassName: h } = b({
14
17
  tagClass: void 0,
15
- highlightClass: m
16
- }), t = j(
17
- a,
18
- i,
18
+ highlightClass: c
19
+ }), t = v(
19
20
  l,
20
- r
21
- ), p = () => t != null && t.length ? t.map((f, s) => {
22
- const { start: u, end: x, highlight: d } = f, n = r.slice(u, x);
23
- return d ? /* @__PURE__ */ e.jsx(o.Text, { className: c, children: n }, s) : /* @__PURE__ */ e.jsx(o.Text, { className: h, children: n }, s);
24
- }) : r;
25
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: p() });
21
+ a,
22
+ p,
23
+ e
24
+ ), u = () => t != null && t.length ? t.map((d, n) => {
25
+ const { start: j, end: y, highlight: g } = d, m = e.slice(j, y);
26
+ return g ? /* @__PURE__ */ s.jsx(i.Text, { className: h, children: m }, n) : /* @__PURE__ */ s.jsx(i.Text, { className: f, children: m }, n);
27
+ }) : e, x = N(() => typeof r == "symbol" ? {} : { className: o }, [r, o]);
28
+ return /* @__PURE__ */ s.jsx(r, { ...x, children: u() });
26
29
  };
27
30
  export {
28
- v as default
31
+ H as default
29
32
  };
@@ -32,7 +32,7 @@ interface BitzHighlightProps {
32
32
  unhighlightClass?: string;
33
33
  }
34
34
  /** Highlight Child属性 */
35
- type BitzHighlightChildProps = Omit<BitzHighlightProps, 'type' | 'tag' | 'tagClass' | 'highlightTag' | 'unhighlightTag'>;
35
+ type BitzHighlightChildProps = Omit<BitzHighlightProps, 'type' | 'highlightTag' | 'unhighlightTag'>;
36
36
  type CompoundedComponent = React.ForwardRefExoticComponent<BitzHighlightProps> & {
37
37
  Child: typeof BitzHighlightChild;
38
38
  };
@@ -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,39 +1,39 @@
1
1
  import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import j from "../../BitzButton/index.mjs";
3
- import { Space as t, Flex as a } from "antd";
4
- import d from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
2
+ import d from "../../BitzButton/index.mjs";
3
+ import { Space as t, Flex as l } from "antd";
4
+ import j from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
5
  import { useMemo as h } from "react";
6
6
  import C from "./style.mjs";
7
7
  const B = ({
8
8
  show: e,
9
- num: l,
9
+ num: a,
10
10
  onClear: r,
11
11
  children: n
12
12
  }) => {
13
13
  const {
14
- blockClassName: o,
15
- showCls: i,
16
- btnClassName: m,
17
- batchOperationClassName: c,
14
+ blockClassName: i,
15
+ showCls: o,
16
+ btnClassName: c,
17
+ batchOperationClassName: m,
18
18
  alertContentClassName: p
19
- } = C(), x = h(() => d(o, {
20
- [`${i}`]: e
19
+ } = C(), x = h(() => j(i, {
20
+ [`${o}`]: e
21
21
  }), [e]);
22
22
  return /* @__PURE__ */ s.jsxs("div", { className: x, children: [
23
- /* @__PURE__ */ s.jsx(t.Compact, { className: c, children: n }),
24
- /* @__PURE__ */ s.jsxs(a, { gap: 7, className: p, children: [
25
- /* @__PURE__ */ s.jsxs(a, { gap: 20, align: "center", children: [
23
+ /* @__PURE__ */ s.jsx(t.Compact, { className: m, children: n || /* @__PURE__ */ s.jsx("div", {}) }),
24
+ /* @__PURE__ */ s.jsxs(l, { gap: 7, className: p, children: [
25
+ /* @__PURE__ */ s.jsxs(l, { gap: 20, align: "center", children: [
26
26
  /* @__PURE__ */ s.jsxs(t, { size: 10, children: [
27
27
  /* @__PURE__ */ s.jsx("span", { children: "已选中" }),
28
- /* @__PURE__ */ s.jsx("strong", { children: l ?? 0 })
28
+ /* @__PURE__ */ s.jsx("strong", { children: a ?? 0 })
29
29
  ] }),
30
30
  /* @__PURE__ */ s.jsx("span", { style: { verticalAlign: "-0.14em" }, children: "/" })
31
31
  ] }),
32
32
  /* @__PURE__ */ s.jsx(
33
- j,
33
+ d,
34
34
  {
35
35
  type: "text",
36
- className: m,
36
+ className: c,
37
37
  onClick: r,
38
38
  style: { lineHeight: "normal" },
39
39
  children: "取消选中"
@@ -11,6 +11,10 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
11
11
  * 是否开启rowHover样式
12
12
  */
13
13
  rowHoverable?: boolean;
14
+ /**
15
+ * 是否开启斑马纹样式
16
+ */
17
+ fillEvenRow?: boolean;
14
18
  /**
15
19
  * PC端:是否显示分页
16
20
  */
@@ -127,7 +131,7 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
127
131
  */
128
132
  columnsState?: ColumnStateType;
129
133
  /**
130
- * 自定义行类名,自定义行类名会使rowHoverable属性失效
134
+ * 自定义行类名
131
135
  */
132
136
  rowClassName?: RowClassName<RecordType>;
133
137
  /**