bitz-react-admin-ui 2.2.8 → 2.2.9
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/assets/iconfont/IconChenggong.mjs +10 -4
- package/dist/assets/iconfont/IconClose.mjs +7 -1
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
- package/dist/assets/iconfont/IconCuowu.mjs +8 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
- package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
- package/dist/assets/iconfont/IconFabu.mjs +18 -3
- package/dist/assets/iconfont/IconFanhui.mjs +11 -5
- package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
- package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
- package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
- package/dist/assets/iconfont/IconIcon21.mjs +8 -2
- package/dist/assets/iconfont/IconJincoude.mjs +9 -3
- package/dist/assets/iconfont/IconJinggao.mjs +8 -2
- package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
- package/dist/assets/iconfont/IconMore.mjs +26 -4
- package/dist/assets/iconfont/IconShanchu.mjs +11 -5
- package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
- package/dist/assets/iconfont/IconSousuo.mjs +10 -4
- package/dist/assets/iconfont/IconTejincou.mjs +7 -1
- package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
- package/dist/assets/iconfont/IconTishi1.mjs +12 -6
- package/dist/assets/iconfont/IconTuodong.mjs +12 -6
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
- package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
- package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
- package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +51 -19
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +30 -14
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +121 -89
- package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
- package/dist/components/BitzTable/SubTable/index.mjs +100 -52
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
- package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +395 -187
- package/dist/components/BitzTable/Table/style.mjs +11 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
- package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
- package/dist/components/BitzTableSelect/index.mjs +61 -13
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -12
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { j as l } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Dropdown as
|
|
3
|
-
import
|
|
4
|
-
const m = ({
|
|
2
|
+
import { Dropdown as a, Tooltip as h } from "antd";
|
|
3
|
+
import k, { useMemo as j } from "react";
|
|
4
|
+
const m = ({
|
|
5
|
+
children: e,
|
|
6
|
+
...t
|
|
7
|
+
}) => {
|
|
5
8
|
var s, c, r;
|
|
6
9
|
const { menu: o } = t, i = j(() => {
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
if (((
|
|
10
|
-
const
|
|
11
|
-
o.onClick && (
|
|
10
|
+
var n, d;
|
|
11
|
+
let p;
|
|
12
|
+
if (((n = o == null ? void 0 : o.items) == null ? void 0 : n.length) === 1) {
|
|
13
|
+
const x = ((d = o.items[0]) == null ? void 0 : d.key) || "";
|
|
14
|
+
o.onClick && (p = () => {
|
|
12
15
|
var f;
|
|
13
|
-
return (f = o.onClick) == null ? void 0 : f.call(o, { key:
|
|
16
|
+
return (f = o.onClick) == null ? void 0 : f.call(o, { key: x });
|
|
14
17
|
});
|
|
15
18
|
}
|
|
16
|
-
return
|
|
19
|
+
return k.cloneElement(e, { onClick: p });
|
|
17
20
|
}, [o == null ? void 0 : o.items, o == null ? void 0 : o.onClick, e]);
|
|
18
|
-
return (((s = o == null ? void 0 : o.items) == null ? void 0 : s.length) || 0) > 1 ? l.jsx(
|
|
21
|
+
return (((s = o == null ? void 0 : o.items) == null ? void 0 : s.length) || 0) > 1 ? /* @__PURE__ */ l.jsx(a, { ...t, children: t.showTootip ? /* @__PURE__ */ l.jsx(h, { title: t.tipText, children: i }) : i }) : t.showTootip ? /* @__PURE__ */ l.jsx(h, { title: ((r = (c = o == null ? void 0 : o.items) == null ? void 0 : c[0]) == null ? void 0 : r.label) || "", children: i }) : i;
|
|
19
22
|
};
|
|
20
23
|
export {
|
|
21
24
|
m as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as o } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import r from "./DropdownToButton/index.mjs";
|
|
3
|
-
const t = () => o.jsx(o.Fragment, {});
|
|
3
|
+
const t = () => /* @__PURE__ */ o.jsx(o.Fragment, {});
|
|
4
4
|
process.env.NODE_ENV !== "production" && (t.displayName = "BitzConvert");
|
|
5
5
|
t.DropdownToButton = r;
|
|
6
6
|
export {
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { j as s } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Descriptions as r } from "antd";
|
|
3
|
-
const e = (t) =>
|
|
3
|
+
const e = (t) => /* @__PURE__ */ s.jsx(
|
|
4
|
+
r,
|
|
5
|
+
{
|
|
6
|
+
...t
|
|
7
|
+
}
|
|
8
|
+
), o = (t) => /* @__PURE__ */ s.jsx(
|
|
9
|
+
r.Item,
|
|
10
|
+
{
|
|
11
|
+
...t
|
|
12
|
+
}
|
|
13
|
+
);
|
|
4
14
|
e.Item = o;
|
|
5
15
|
export {
|
|
6
16
|
e as default
|
|
@@ -4,8 +4,23 @@ import i from "../BitzButton/index.mjs";
|
|
|
4
4
|
import "./index.less.mjs";
|
|
5
5
|
const c = ({ open: e = !1, placement: a = "right", ...t }) => {
|
|
6
6
|
const l = { open: e, placement: a, ...t };
|
|
7
|
-
return r.jsx(n, { className: "bitzDrawerBlock", ...l, children: t.children });
|
|
8
|
-
}, h = (e) =>
|
|
7
|
+
return /* @__PURE__ */ r.jsx(n, { className: "bitzDrawerBlock", ...l, children: t.children });
|
|
8
|
+
}, h = (e) => /* @__PURE__ */ r.jsx(
|
|
9
|
+
c,
|
|
10
|
+
{
|
|
11
|
+
open: e.open,
|
|
12
|
+
placement: "bottom",
|
|
13
|
+
closable: !1,
|
|
14
|
+
className: "bitzPickDrawerheaderwrap",
|
|
15
|
+
destroyOnClose: !0,
|
|
16
|
+
title: /* @__PURE__ */ r.jsxs("div", { className: "bitzPickDrawerheader", children: [
|
|
17
|
+
/* @__PURE__ */ r.jsx(i, { type: "text", onClick: e.handleCancel, children: "取消" }),
|
|
18
|
+
/* @__PURE__ */ r.jsx(i, { type: "link", onClick: e.handleOk, children: "确认" })
|
|
19
|
+
] }),
|
|
20
|
+
...e,
|
|
21
|
+
children: /* @__PURE__ */ r.jsx("div", { className: "bitzPickDrawerContent", children: e.children })
|
|
22
|
+
}
|
|
23
|
+
);
|
|
9
24
|
export {
|
|
10
25
|
h as BitzPickDrawer,
|
|
11
26
|
c as default
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { j as n } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Empty as e } from "antd";
|
|
3
|
-
const p = ({
|
|
3
|
+
const p = ({
|
|
4
|
+
description: o = "暂无数据",
|
|
5
|
+
image: m = "https://www.ailinkedlaw.com/Common/Images/nodata.png",
|
|
6
|
+
...t
|
|
7
|
+
}) => {
|
|
4
8
|
const r = { description: o, image: m, ...t };
|
|
5
|
-
return n.jsx(e, { ...r, children: t.children });
|
|
9
|
+
return /* @__PURE__ */ n.jsx(e, { ...r, children: t.children });
|
|
6
10
|
};
|
|
7
11
|
export {
|
|
8
12
|
p as default
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { j as o } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Result as r } from "antd";
|
|
3
|
-
const i = (t) => o.jsx(
|
|
3
|
+
const i = (t) => /* @__PURE__ */ o.jsx(
|
|
4
|
+
r,
|
|
5
|
+
{
|
|
6
|
+
...t
|
|
7
|
+
}
|
|
8
|
+
);
|
|
4
9
|
export {
|
|
5
10
|
i as default
|
|
6
11
|
};
|
|
@@ -13,7 +13,16 @@ const [_, a] = u("bitzFloatLayoutBlock"), b = (s) => {
|
|
|
13
13
|
l == null || l(!1);
|
|
14
14
|
}, 300);
|
|
15
15
|
};
|
|
16
|
-
return e.jsxs("div", { className: d(a({ active: n }), c), style: { zIndex: m }, children: [
|
|
16
|
+
return /* @__PURE__ */ e.jsxs("div", { className: d(a({ active: n }), c), style: { zIndex: m }, children: [
|
|
17
|
+
i ? /* @__PURE__ */ e.jsx("div", { onClick: o, className: a("overlay") }) : null,
|
|
18
|
+
/* @__PURE__ */ e.jsxs("div", { className: a("container"), children: [
|
|
19
|
+
t ? /* @__PURE__ */ e.jsxs("div", { className: a("header"), children: [
|
|
20
|
+
/* @__PURE__ */ e.jsx("div", { className: a("header__title"), children: t }),
|
|
21
|
+
/* @__PURE__ */ e.jsx("div", { onClick: o, className: a("header__close") })
|
|
22
|
+
] }) : null,
|
|
23
|
+
/* @__PURE__ */ e.jsx("div", { className: a("body"), children: s == null ? void 0 : s.children })
|
|
24
|
+
] })
|
|
25
|
+
] });
|
|
17
26
|
};
|
|
18
27
|
export {
|
|
19
28
|
b as default
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import { create as
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
(
|
|
5
|
-
e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum";
|
|
6
|
-
})(t || (t = {}));
|
|
7
|
-
const i = o((e, d) => ({
|
|
1
|
+
import { create as a } from "../../node_modules/.store/zustand@4.5.2/node_modules/zustand/esm/index.mjs";
|
|
2
|
+
import o from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
3
|
+
var d = /* @__PURE__ */ ((e) => (e.day = "day", e.workWeek = "workWeek", e.week = "week", e.agendum = "agendum", e))(d || {});
|
|
4
|
+
const i = a((e, k) => ({
|
|
8
5
|
colHeight: 0,
|
|
9
|
-
currentDay:
|
|
10
|
-
CalendarType:
|
|
6
|
+
currentDay: o(),
|
|
7
|
+
CalendarType: "workWeek",
|
|
11
8
|
// 切换日历类型
|
|
12
|
-
toggleCalendarType: (r) => e((
|
|
13
|
-
...
|
|
9
|
+
toggleCalendarType: (r) => e((t) => ({
|
|
10
|
+
...t,
|
|
14
11
|
CalendarType: r
|
|
15
12
|
})),
|
|
16
13
|
// 设置时间
|
|
17
|
-
setCurrentDay: (r) => e((
|
|
18
|
-
...
|
|
14
|
+
setCurrentDay: (r) => e((t) => ({
|
|
15
|
+
...t,
|
|
19
16
|
currentDay: r
|
|
20
17
|
})),
|
|
21
|
-
setColHeight: (r) => e((
|
|
22
|
-
...
|
|
18
|
+
setColHeight: (r) => e((t) => ({
|
|
19
|
+
...t,
|
|
23
20
|
colHeight: r
|
|
24
21
|
})),
|
|
25
22
|
preCalendar: () => e({}),
|
|
26
23
|
nextCalendar: () => e({})
|
|
27
24
|
}));
|
|
28
25
|
export {
|
|
29
|
-
|
|
26
|
+
d as CalendarTypeEnum,
|
|
30
27
|
i as default,
|
|
31
28
|
i as useBitzFuiCalendarStore
|
|
32
29
|
};
|
|
@@ -2,18 +2,18 @@ import { j as d } from "../../node_modules/.store/react@18.2.0/node_modules/reac
|
|
|
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
4
|
import n from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs";
|
|
5
|
-
import { useBitzFuiCalendarStore as
|
|
6
|
-
import
|
|
5
|
+
import { useBitzFuiCalendarStore as M, CalendarTypeEnum as S } from "./BitzFuiCalendarStore.mjs";
|
|
6
|
+
import C from "./CalendarAgendumItem.mjs";
|
|
7
7
|
import x from "./CalendarAgendum.module.less.mjs";
|
|
8
8
|
import N from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
9
|
-
import
|
|
9
|
+
import z from "../BitzNoData/index.mjs";
|
|
10
10
|
n.extend(D);
|
|
11
|
-
const
|
|
11
|
+
const A = (e) => e.reduce((s, r) => {
|
|
12
12
|
const c = n(r.startTime).format("YYYY-MM-DD");
|
|
13
13
|
let i = s.find((t) => t.date === c);
|
|
14
14
|
return i || (i = { date: c, list: [] }, s.push(i)), i.list.push(r), s;
|
|
15
15
|
}, []), L = (e) => {
|
|
16
|
-
const { CalendarType: u, currentDay: s } =
|
|
16
|
+
const { CalendarType: u, currentDay: s } = M((t) => t), [r, c] = y([]);
|
|
17
17
|
g(() => {
|
|
18
18
|
var t, f;
|
|
19
19
|
if ((t = e == null ? void 0 : e.list) != null && t.length) {
|
|
@@ -25,23 +25,29 @@ const E = (e) => e.reduce((s, r) => {
|
|
|
25
25
|
startTime: n(a.startTime).utc(),
|
|
26
26
|
endTime: n(a.endTime).utc()
|
|
27
27
|
}));
|
|
28
|
-
m.sort((a, o) => n(a.startTime).isAfter(n(o.startTime)) ? 1 : -1), c(
|
|
28
|
+
m.sort((a, o) => n(a.startTime).isAfter(n(o.startTime)) ? 1 : -1), c(A(m));
|
|
29
29
|
}
|
|
30
30
|
}, [e == null ? void 0 : e.list, s]);
|
|
31
|
-
const i = j(() => u ===
|
|
32
|
-
return d.jsxs("ul", { className: "calendarAgendumBlock", children: [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
const i = j(() => u === S.agendum ? s.locale("zh-cn").format("MM月DD日dddd") : "", [s, u]);
|
|
32
|
+
return /* @__PURE__ */ d.jsxs("ul", { className: "calendarAgendumBlock", children: [
|
|
33
|
+
r == null ? void 0 : r.map((t, f) => {
|
|
34
|
+
var o;
|
|
35
|
+
const l = n(t == null ? void 0 : t.date), m = l.locale("zh-cn").format("DD日dddd"), a = n().isSame(l, "day");
|
|
36
|
+
return [
|
|
37
|
+
/* @__PURE__ */ d.jsxs("div", { className: N(x.timeContainer, {
|
|
38
|
+
[x.istoday]: a
|
|
39
|
+
}), children: [
|
|
40
|
+
/* @__PURE__ */ d.jsx("span", { children: m }),
|
|
41
|
+
a ? [
|
|
42
|
+
/* @__PURE__ */ d.jsx("span", { className: x.splitLine, children: " | " }, "1"),
|
|
43
|
+
/* @__PURE__ */ d.jsx("span", { children: "今天" }, "1")
|
|
44
|
+
] : null
|
|
45
|
+
] }, t == null ? void 0 : t.date),
|
|
46
|
+
(o = t == null ? void 0 : t.list) == null ? void 0 : o.map((T, h) => /* @__PURE__ */ d.jsx(C, { data: T }, h))
|
|
47
|
+
];
|
|
48
|
+
}),
|
|
49
|
+
r.length ? null : /* @__PURE__ */ d.jsx(z, { title: `你在 ${i} 没有任何会议。` })
|
|
50
|
+
] });
|
|
45
51
|
};
|
|
46
52
|
export {
|
|
47
53
|
L as default
|
|
@@ -13,10 +13,28 @@ const d = (_, s) => {
|
|
|
13
13
|
n > 0 ? m = `${l}小时 ${n}分钟` : m = `${l}小时`;
|
|
14
14
|
}
|
|
15
15
|
return m;
|
|
16
|
-
},
|
|
16
|
+
}, u = (_) => {
|
|
17
17
|
const { data: s } = _, t = c(() => d(r(s == null ? void 0 : s.startTime), r(s == null ? void 0 : s.endTime)), [s]);
|
|
18
|
-
return i.jsx("li", { className: e.CalendarAgendumItem, children: i.jsx("div", { className: e["ui-list__item__main"], children:
|
|
18
|
+
return /* @__PURE__ */ i.jsx("li", { className: e.CalendarAgendumItem, children: /* @__PURE__ */ i.jsx("div", { className: e["ui-list__item__main"], children: /* @__PURE__ */ i.jsx("div", { className: e["ui-list__item__contentWrapper"], children: /* @__PURE__ */ i.jsx("div", { className: e["ui-list__itemcontent"], children: /* @__PURE__ */ i.jsx("div", { className: e["ui-list__item__container"], children: /* @__PURE__ */ i.jsx("div", { className: e["ui-list__item__container__wrap"], children: /* @__PURE__ */ i.jsxs("div", { className: e["ui-list__item__container__item"], children: [
|
|
19
|
+
/* @__PURE__ */ i.jsxs("div", { className: e["ui-list__item__container__item_left"], children: [
|
|
20
|
+
/* @__PURE__ */ i.jsx("div", { className: e.item_left_1, children: /* @__PURE__ */ i.jsx("div", { className: e.item_left_1_1 }) }),
|
|
21
|
+
/* @__PURE__ */ i.jsxs("div", { className: e.item_left_2, children: [
|
|
22
|
+
/* @__PURE__ */ i.jsx("div", { className: e.item_left_2_1, children: r(s == null ? void 0 : s.startTime).format("HH:mm") }),
|
|
23
|
+
/* @__PURE__ */ i.jsx("div", { className: e.item_left_2_2, children: t })
|
|
24
|
+
] })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ i.jsxs("div", { className: e["ui-list__item__container__item_right"], children: [
|
|
27
|
+
/* @__PURE__ */ i.jsxs("div", { className: e.item_right_1, children: [
|
|
28
|
+
/* @__PURE__ */ i.jsxs("div", { children: [
|
|
29
|
+
/* @__PURE__ */ i.jsx("div", { className: e.item_right_1_1, children: /* @__PURE__ */ i.jsx("span", { children: "23423423423" }) }),
|
|
30
|
+
/* @__PURE__ */ i.jsx("div", { className: e.item_right_1_2, children: "Microsoft Teams Meeting" })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ i.jsx("div", { className: e.item_right_1_3, children: /* @__PURE__ */ i.jsx(a, { children: "聊天" }) })
|
|
33
|
+
] }),
|
|
34
|
+
/* @__PURE__ */ i.jsx("div", { className: e.item_right_2 })
|
|
35
|
+
] })
|
|
36
|
+
] }) }) }) }) }) }) });
|
|
19
37
|
};
|
|
20
38
|
export {
|
|
21
|
-
|
|
39
|
+
u as default
|
|
22
40
|
};
|
|
@@ -30,10 +30,33 @@ const N = (n) => {
|
|
|
30
30
|
}
|
|
31
31
|
return [r];
|
|
32
32
|
}, [s, r]);
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
return /* @__PURE__ */ a.jsx("div", { className: "bitzFuiCalendarBody", children: /* @__PURE__ */ a.jsxs("div", { className: "bitzFuiCalendarBodyContainer", children: [
|
|
34
|
+
/* @__PURE__ */ a.jsx("div", { className: "bitzFuiCalendarBody__time", children: l.map((e, t) => /* @__PURE__ */ a.jsxs(
|
|
35
|
+
"span",
|
|
36
|
+
{
|
|
37
|
+
className: "bitzFuiCalendarBody__time__item",
|
|
38
|
+
children: [
|
|
39
|
+
t,
|
|
40
|
+
"时"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
t + "b"
|
|
44
|
+
)) }),
|
|
45
|
+
/* @__PURE__ */ a.jsx("div", { className: "bitzFuiCalendarBody__content", children: u.map((e, t) => /* @__PURE__ */ a.jsxs("div", { className: "bitzFuiCalendarBody__content__row", children: [
|
|
46
|
+
/* @__PURE__ */ a.jsx("div", { className: "bitzFuiCalendarBody__content__row__list", children: m.map((i, d) => /* @__PURE__ */ a.jsx(
|
|
47
|
+
"div",
|
|
48
|
+
{
|
|
49
|
+
className: "bitzFuiCalendarBody__content__row__item",
|
|
50
|
+
style: {
|
|
51
|
+
minHeight: "4.05rem",
|
|
52
|
+
borderBottomStyle: d % 2 ? "solid" : "dashed"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
d
|
|
56
|
+
)) }),
|
|
57
|
+
/* @__PURE__ */ a.jsx(C, { time: e, list: n == null ? void 0 : n.data })
|
|
58
|
+
] }, t)) })
|
|
59
|
+
] }) });
|
|
37
60
|
};
|
|
38
61
|
export {
|
|
39
62
|
N as default
|
|
@@ -6,7 +6,10 @@ import f from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.
|
|
|
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 = () => {
|
|
9
|
-
const {
|
|
9
|
+
const {
|
|
10
|
+
CalendarType: a,
|
|
11
|
+
currentDay: t
|
|
12
|
+
} = u((e) => e), i = d(() => {
|
|
10
13
|
if (a === n.day)
|
|
11
14
|
return [t];
|
|
12
15
|
if (a === n.workWeek) {
|
|
@@ -24,7 +27,7 @@ const x = () => {
|
|
|
24
27
|
}
|
|
25
28
|
return [t];
|
|
26
29
|
}, [a, t]);
|
|
27
|
-
return s.jsx("div", { className: "bitzFuiCalendarHead", children: i.map((e, o) => s.jsx(m, { time: e }, o)) });
|
|
30
|
+
return /* @__PURE__ */ s.jsx("div", { className: "bitzFuiCalendarHead", children: i.map((e, o) => /* @__PURE__ */ s.jsx(m, { time: e }, o)) });
|
|
28
31
|
};
|
|
29
32
|
export {
|
|
30
33
|
x as default
|
|
@@ -4,9 +4,18 @@ import d from "../../node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.
|
|
|
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]);
|
|
7
|
-
return a.jsx(
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
return /* @__PURE__ */ a.jsx(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
className: i("bitzFuiCalendarHeadItem", {
|
|
11
|
+
bitzFuiCalendarHeadItem_active: s
|
|
12
|
+
}),
|
|
13
|
+
children: /* @__PURE__ */ a.jsxs("div", { className: "bitzFuiCalendarHeadItem__content", children: [
|
|
14
|
+
/* @__PURE__ */ a.jsx("span", { className: "bitzFuiCalendarHeadItem__num", children: e.format("DD") }),
|
|
15
|
+
/* @__PURE__ */ a.jsx("span", { className: "bitzFuiCalendarHeadItem__week", children: e.locale("zh-cn").format("dddd") })
|
|
16
|
+
] })
|
|
17
|
+
}
|
|
18
|
+
);
|
|
10
19
|
}, p = m(n);
|
|
11
20
|
export {
|
|
12
21
|
p as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
3
|
-
import { Space as c, Button as
|
|
2
|
+
import { memo as C, useMemo as i } from "react";
|
|
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
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";
|
|
@@ -8,7 +8,12 @@ import v from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@a
|
|
|
8
8
|
import _ from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
|
|
9
9
|
import D from "../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/DownOutlined.mjs";
|
|
10
10
|
const z = () => {
|
|
11
|
-
const {
|
|
11
|
+
const {
|
|
12
|
+
CalendarType: n,
|
|
13
|
+
currentDay: d,
|
|
14
|
+
toggleCalendarType: u,
|
|
15
|
+
setCurrentDay: l
|
|
16
|
+
} = w((r) => r), o = [
|
|
12
17
|
{
|
|
13
18
|
key: a.day,
|
|
14
19
|
label: "日"
|
|
@@ -26,12 +31,12 @@ const z = () => {
|
|
|
26
31
|
key: a.agendum,
|
|
27
32
|
label: "议程"
|
|
28
33
|
}
|
|
29
|
-
], m =
|
|
34
|
+
], m = i(() => {
|
|
30
35
|
var r;
|
|
31
|
-
return ((r =
|
|
32
|
-
}, [n,
|
|
36
|
+
return ((r = o.find((t) => (t == null ? void 0 : t.key) === n)) == null ? void 0 : r.label) ?? "";
|
|
37
|
+
}, [n, o]), k = (r) => {
|
|
33
38
|
u(r.key);
|
|
34
|
-
}, f =
|
|
39
|
+
}, f = i(() => {
|
|
35
40
|
switch (n) {
|
|
36
41
|
case a.day:
|
|
37
42
|
return "date";
|
|
@@ -44,22 +49,49 @@ const z = () => {
|
|
|
44
49
|
default:
|
|
45
50
|
return "date";
|
|
46
51
|
}
|
|
47
|
-
}, [n]), y = (r,
|
|
52
|
+
}, [n]), y = (r, t) => {
|
|
48
53
|
r && l(r);
|
|
49
|
-
}, p = () => {
|
|
50
|
-
[a.day, a.agendum].includes(n) && l(d.add(-1, "day")), [a.workWeek, a.week].includes(n) && l(d.add(-7, "day"));
|
|
51
54
|
}, x = () => {
|
|
55
|
+
[a.day, a.agendum].includes(n) && l(d.add(-1, "day")), [a.workWeek, a.week].includes(n) && l(d.add(-7, "day"));
|
|
56
|
+
}, p = () => {
|
|
52
57
|
[a.day, a.agendum].includes(n) && l(d.add(1, "day")), [a.workWeek, a.week].includes(n) && l(d.add(7, "day"));
|
|
53
|
-
},
|
|
58
|
+
}, j = () => {
|
|
54
59
|
l(g().startOf("date"));
|
|
55
60
|
};
|
|
56
|
-
return
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "bitzFuiCalendarToolbar", children: [
|
|
62
|
+
/* @__PURE__ */ e.jsx("div", { className: "bitzFuiCalendarToolbar__left", children: /* @__PURE__ */ e.jsxs(c, { children: [
|
|
63
|
+
/* @__PURE__ */ e.jsx("div", { className: "bitzFuiCalendarToolbar__today", children: /* @__PURE__ */ e.jsx(s, { onClick: j, type: "text", icon: /* @__PURE__ */ e.jsx(T, {}), children: "今天" }) }),
|
|
64
|
+
/* @__PURE__ */ e.jsx(s, { onClick: x, icon: /* @__PURE__ */ e.jsx(v, {}) }),
|
|
65
|
+
/* @__PURE__ */ e.jsx(s, { onClick: p, icon: /* @__PURE__ */ e.jsx(_, {}) }),
|
|
66
|
+
/* @__PURE__ */ e.jsx(
|
|
67
|
+
b,
|
|
68
|
+
{
|
|
69
|
+
onChange: y,
|
|
70
|
+
format: "YYYY月MM月",
|
|
71
|
+
allowClear: !1,
|
|
72
|
+
picker: f,
|
|
73
|
+
value: d,
|
|
74
|
+
bordered: !1
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] }) }),
|
|
78
|
+
/* @__PURE__ */ e.jsx("div", { className: "bitzFuiCalendarToolbar__right", children: /* @__PURE__ */ e.jsx("div", { className: "bitzFuiCalendarToolbar__right_dropdown", children: /* @__PURE__ */ e.jsx(
|
|
79
|
+
h,
|
|
80
|
+
{
|
|
81
|
+
menu: {
|
|
82
|
+
items: o,
|
|
83
|
+
selectable: !0,
|
|
84
|
+
defaultSelectedKeys: [n],
|
|
85
|
+
onClick: k
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ e.jsx("a", { onClick: (r) => r.preventDefault(), children: /* @__PURE__ */ e.jsxs(c, { children: [
|
|
88
|
+
/* @__PURE__ */ e.jsx("div", { children: m }),
|
|
89
|
+
/* @__PURE__ */ e.jsx(D, {})
|
|
90
|
+
] }) })
|
|
91
|
+
}
|
|
92
|
+
) }) })
|
|
93
|
+
] });
|
|
94
|
+
}, P = C(z);
|
|
63
95
|
export {
|
|
64
|
-
|
|
96
|
+
P as default
|
|
65
97
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as C } from "../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
2
|
+
import { memo as $, useRef as k, useState as H, useEffect as O } from "react";
|
|
3
3
|
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";
|
|
@@ -9,7 +9,7 @@ import { useBitzFuiCalendarStore as F } from "./BitzFuiCalendarStore.mjs";
|
|
|
9
9
|
n.extend(b);
|
|
10
10
|
n.extend(Y);
|
|
11
11
|
n.extend(E);
|
|
12
|
-
const
|
|
12
|
+
const x = 1440;
|
|
13
13
|
function z(i) {
|
|
14
14
|
const a = [];
|
|
15
15
|
return i.forEach((c) => {
|
|
@@ -34,13 +34,16 @@ function z(i) {
|
|
|
34
34
|
}), a;
|
|
35
35
|
}
|
|
36
36
|
const w = (i) => {
|
|
37
|
-
const { time: a } = i, {
|
|
37
|
+
const { time: a } = i, {
|
|
38
|
+
colHeight: c,
|
|
39
|
+
setColHeight: l
|
|
40
|
+
} = F((e) => e), f = k(null), u = 194.4, [d, h] = H([]);
|
|
38
41
|
O(() => {
|
|
39
42
|
var e, r;
|
|
40
43
|
if ((e = i == null ? void 0 : i.list) != null && e.length) {
|
|
41
44
|
const t = (r = i == null ? void 0 : i.list) == null ? void 0 : r.filter((o) => {
|
|
42
|
-
const T = n(o.startTime),
|
|
43
|
-
return T.isSame(a, "day") ||
|
|
45
|
+
const T = n(o.startTime), S = n(o.endTime);
|
|
46
|
+
return T.isSame(a, "day") || S.isSame(a, "day");
|
|
44
47
|
}), s = t == null ? void 0 : t.map((o) => ({
|
|
45
48
|
...o,
|
|
46
49
|
startTime: n(o.startTime),
|
|
@@ -59,22 +62,35 @@ const w = (i) => {
|
|
|
59
62
|
let m = n(e), o = n(r);
|
|
60
63
|
const T = a.startOf("day");
|
|
61
64
|
m.isBefore(T) && (m = T);
|
|
62
|
-
const
|
|
63
|
-
o.isAfter(
|
|
64
|
-
const B = m.hour() * 60 + m.minute(), y = o.diff(m, "minute"), j = B /
|
|
65
|
+
const S = a.endOf("day");
|
|
66
|
+
o.isAfter(S) && (o = S);
|
|
67
|
+
const B = m.hour() * 60 + m.minute(), y = o.diff(m, "minute"), j = B / x * u, A = y / x * u, D = u / x * y, R = (s - t - 1) / s * 100, _ = t / s * 100;
|
|
65
68
|
return {
|
|
66
|
-
right: `${
|
|
67
|
-
left: `${
|
|
69
|
+
right: `${R}%`,
|
|
70
|
+
left: `${_}%`,
|
|
68
71
|
top: `${j}rem`,
|
|
69
72
|
height: `${A}rem`,
|
|
70
73
|
maxHeight: `${D}rem`
|
|
71
74
|
};
|
|
72
75
|
};
|
|
73
|
-
return C.jsx("div", { className: "bitzFuiCalendarBody__content__row__list2", ref: f, children: d.map((e, r) => e.map((t, s) => {
|
|
74
|
-
const { maxHeight: m, ...o } = g(
|
|
75
|
-
|
|
76
|
+
return /* @__PURE__ */ C.jsx("div", { className: "bitzFuiCalendarBody__content__row__list2", ref: f, children: d.map((e, r) => e.map((t, s) => {
|
|
77
|
+
const { maxHeight: m, ...o } = g(
|
|
78
|
+
t.startTime,
|
|
79
|
+
t.endTime,
|
|
80
|
+
r,
|
|
81
|
+
d.length
|
|
82
|
+
);
|
|
83
|
+
return /* @__PURE__ */ C.jsx(
|
|
84
|
+
M,
|
|
85
|
+
{
|
|
86
|
+
event: t,
|
|
87
|
+
style: o,
|
|
88
|
+
maxHeight: m
|
|
89
|
+
},
|
|
90
|
+
s
|
|
91
|
+
);
|
|
76
92
|
})) });
|
|
77
|
-
}, Q =
|
|
93
|
+
}, Q = $(w);
|
|
78
94
|
export {
|
|
79
95
|
Q as default
|
|
80
96
|
};
|