bitz-react-admin-ui 2.3.3 → 2.3.4
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/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/CalendarBody.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHead.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/ActionCol/index.mjs +1 -1
- package/dist/components/BitzTable/ActionCol/style.mjs +8 -7
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +16 -24
- package/dist/components/BitzTable/Table/index.mjs +137 -133
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +43 -45
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +49 -49
- 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,4 +1,7 @@
|
|
|
1
|
-
|
|
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);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
s as default
|
|
4
7
|
};
|
|
@@ -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 "../../
|
|
4
|
+
import N from "../../_virtual/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,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 "../../
|
|
2
|
+
import o from "../../_virtual/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 g, useMemo as j } from "react";
|
|
3
3
|
import D from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isToday.mjs";
|
|
4
|
-
import n from "../../
|
|
4
|
+
import n from "../../_virtual/dayjs.min.mjs";
|
|
5
5
|
import { useBitzFuiCalendarStore as M, CalendarTypeEnum as S } from "./BitzFuiCalendarStore.mjs";
|
|
6
6
|
import C 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 c } from "react";
|
|
3
3
|
import e from "./CalendarAgendum.module.less.mjs";
|
|
4
|
-
import r from "../../
|
|
4
|
+
import r from "../../_virtual/dayjs.min.mjs";
|
|
5
5
|
import { Button as a } from "antd";
|
|
6
6
|
const d = (_, s) => {
|
|
7
7
|
const t = s.diff(_, "minute");
|
|
@@ -2,7 +2,7 @@ import { j as a } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import { useState as _, useEffect as y, useMemo as f } from "react";
|
|
3
3
|
import C from "./ColumnData.mjs";
|
|
4
4
|
import { useBitzFuiCalendarStore as h, CalendarTypeEnum as o } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import j from "../../
|
|
5
|
+
import j from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import x from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isoWeek.mjs";
|
|
7
7
|
j.extend(x);
|
|
8
8
|
const N = (n) => {
|
|
@@ -2,7 +2,7 @@ import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
2
2
|
import m from "./CalendarHeadItem.mjs";
|
|
3
3
|
import { useMemo as d } from "react";
|
|
4
4
|
import { useBitzFuiCalendarStore as u, CalendarTypeEnum as n } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import f from "../../
|
|
5
|
+
import f from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import l from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isoWeek.mjs";
|
|
7
7
|
f.extend(l);
|
|
8
8
|
const x = () => {
|
|
@@ -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 "../../
|
|
3
|
+
import d from "../../_virtual/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 s, DatePicker as b, Dropdown as h } from "antd";
|
|
4
4
|
import { useBitzFuiCalendarStore as w, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
|
|
5
|
-
import g from "../../
|
|
5
|
+
import g from "../../_virtual/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 M from "./FuiCalendarItem.mjs";
|
|
|
4
4
|
import E from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import Y from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/isSameOrBefore.mjs";
|
|
6
6
|
import b from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/plugin/utc.mjs";
|
|
7
|
-
import n from "../../
|
|
7
|
+
import n from "../../_virtual/dayjs.min.mjs";
|
|
8
8
|
import { useBitzFuiCalendarStore as F } from "./BitzFuiCalendarStore.mjs";
|
|
9
9
|
n.extend(b);
|
|
10
10
|
n.extend(Y);
|
|
@@ -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 "../../
|
|
6
|
+
import e from "../../_virtual/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 "../../
|
|
5
|
+
import m from "../../_virtual/dayjs.min.mjs";
|
|
6
6
|
import "./index.less.mjs";
|
|
7
7
|
m.extend(p);
|
|
8
8
|
const x = (a) => {
|
|
@@ -91,7 +91,7 @@ function E({
|
|
|
91
91
|
}
|
|
92
92
|
function K(l) {
|
|
93
93
|
var m;
|
|
94
|
-
const { actionGroup: n, loading: c, ...d } = l, x = ((m = w.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? R, o = I(null), s = B(o), i = u(() => s != null && s.width ? s.width + x * 2 + 1 :
|
|
94
|
+
const { actionGroup: n, loading: c, ...d } = l, x = ((m = w.useToken().token.Table) == null ? void 0 : m.cellPaddingInline) ?? R, o = I(null), s = B(o), i = u(() => s != null && s.width ? s.width + x * 2 + 1 : 141, [s, x]);
|
|
95
95
|
return u(() => ({
|
|
96
96
|
width: Math.floor(i),
|
|
97
97
|
mobileHide: !0,
|
|
@@ -14,9 +14,9 @@ import { BitzTableContext as T } from "../Store/index.mjs";
|
|
|
14
14
|
import n from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
15
|
import E from "../../BitzTheme/index.mjs";
|
|
16
16
|
const O = () => {
|
|
17
|
-
const { tableSize:
|
|
18
|
-
H(() =>
|
|
19
|
-
const { theme: B, hashId: r, token:
|
|
17
|
+
const { tableSize: i } = z(T);
|
|
18
|
+
H(() => i ?? "lg", [i]);
|
|
19
|
+
const { theme: B, hashId: r, token: s } = E.useToken(), e = "actionTextBtn", a = "primaryBtn", l = "delBtn", c = "dropdownBtn", m = "skeletonBtn", p = "skeleton", d = "actionColMask", h = (t, o) => [
|
|
20
20
|
{
|
|
21
21
|
[`.${t}`]: {
|
|
22
22
|
fontSize: "inherit",
|
|
@@ -36,6 +36,7 @@ const O = () => {
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
[`.${o}`]: {
|
|
39
|
+
cursor: "default",
|
|
39
40
|
position: "absolute",
|
|
40
41
|
insetBlock: -1,
|
|
41
42
|
insetInline: 0,
|
|
@@ -101,15 +102,15 @@ const O = () => {
|
|
|
101
102
|
N(
|
|
102
103
|
{
|
|
103
104
|
theme: B,
|
|
104
|
-
token:
|
|
105
|
+
token: s,
|
|
105
106
|
hashId: r,
|
|
106
107
|
path: [e]
|
|
107
108
|
},
|
|
108
109
|
() => [
|
|
109
110
|
h(e, d),
|
|
110
|
-
u(a,
|
|
111
|
-
g(l,
|
|
112
|
-
C(c,
|
|
111
|
+
u(a, s),
|
|
112
|
+
g(l, s),
|
|
113
|
+
C(c, s),
|
|
113
114
|
v(m, p)
|
|
114
115
|
]
|
|
115
116
|
);
|
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Space as
|
|
3
|
-
import
|
|
4
|
-
import { useContext as
|
|
5
|
-
import { BitzTableContext as
|
|
1
|
+
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Space as c } from "antd";
|
|
3
|
+
import i from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
4
|
+
import { useContext as n, useMemo as p } from "react";
|
|
5
|
+
import { BitzTableContext as x } from "../Store/index.mjs";
|
|
6
6
|
import d from "./style.mjs";
|
|
7
|
-
const
|
|
8
|
-
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
alertContentClassName: N
|
|
14
|
-
} = d(), { setSelected: m, toolbarWidth: s } = p(C), c = f(() => n(o, {
|
|
15
|
-
[`${r}`]: t
|
|
16
|
-
}), [t]);
|
|
17
|
-
return x(() => {
|
|
18
|
-
m(t ?? !1);
|
|
19
|
-
}, [t]), /* @__PURE__ */ e.jsx("div", { className: c, children: /* @__PURE__ */ e.jsx(
|
|
20
|
-
i.Compact,
|
|
7
|
+
const N = ({ children: o }) => {
|
|
8
|
+
const { blockClassName: r, showCls: a, batchOperationClassName: m } = d(), { selected: s, toolbarWidth: e } = n(x), l = p(() => i(r, {
|
|
9
|
+
[`${a}`]: s
|
|
10
|
+
}), [s]);
|
|
11
|
+
return /* @__PURE__ */ t.jsx("div", { className: l, children: /* @__PURE__ */ t.jsx(
|
|
12
|
+
c.Compact,
|
|
21
13
|
{
|
|
22
|
-
className:
|
|
14
|
+
className: m,
|
|
23
15
|
style: {
|
|
24
|
-
...
|
|
25
|
-
width: `calc(100% - 50px - ${
|
|
16
|
+
...e && {
|
|
17
|
+
width: `calc(100% - 50px - ${e}px)`
|
|
26
18
|
}
|
|
27
19
|
},
|
|
28
|
-
children:
|
|
20
|
+
children: o || /* @__PURE__ */ t.jsx("div", {})
|
|
29
21
|
}
|
|
30
22
|
) });
|
|
31
23
|
};
|
|
32
24
|
export {
|
|
33
|
-
|
|
25
|
+
N as default
|
|
34
26
|
};
|