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