bitz-react-admin-ui 2.8.0 → 2.8.2
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 +25 -4
- package/dist/assets/iconfont/IconClose.mjs +24 -3
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
- package/dist/assets/iconfont/IconCuowu.mjs +23 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
- package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
- package/dist/assets/iconfont/IconFabu.mjs +35 -5
- package/dist/assets/iconfont/IconFanhui.mjs +25 -4
- package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
- package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
- package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
- package/dist/assets/iconfont/IconIcon21.mjs +25 -4
- package/dist/assets/iconfont/IconJincoude.mjs +25 -4
- package/dist/assets/iconfont/IconJinggao.mjs +25 -4
- package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
- package/dist/assets/iconfont/IconMore.mjs +41 -4
- package/dist/assets/iconfont/IconShanchu.mjs +27 -6
- package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
- package/dist/assets/iconfont/IconSousuo.mjs +27 -6
- package/dist/assets/iconfont/IconTejincou.mjs +25 -4
- package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
- package/dist/assets/iconfont/IconTishi1.mjs +27 -6
- package/dist/assets/iconfont/IconTuodong.mjs +28 -7
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
- package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
- package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
- package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
- 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/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/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +6 -6
- 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 +47 -15
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
- 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 +80 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +182 -44
- 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 +11 -4
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +103 -62
- package/dist/components/BitzTable/Store/utils/index.mjs +5 -5
- package/dist/components/BitzTable/SubTable/index.mjs +122 -73
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +43 -21
- package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/TdCell.mjs +16 -5
- package/dist/components/BitzTable/Table/index.mjs +494 -246
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +105 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +346 -159
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +135 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +18 -5
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +121 -49
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +62 -18
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +59 -16
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +20 -5
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +46 -14
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -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 +90 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
- package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
- package/dist/components/BitzTableSelect/index.mjs +65 -14
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +41 -14
- package/dist/components/BitzText/utils.mjs +3 -3
- 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/BitzTooltip/index.mjs +59 -20
- package/dist/components/BitzTooltip/style.mjs +9 -6
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- 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 +9 -3
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -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/dayjs/dayjs.min.mjs";
|
|
|
6
6
|
import p from "../../node_modules/dayjs/plugin/isoWeek.mjs";
|
|
7
7
|
f.extend(p);
|
|
8
8
|
const j = () => {
|
|
9
|
-
const {
|
|
9
|
+
const {
|
|
10
|
+
CalendarType: o,
|
|
11
|
+
currentDay: t
|
|
12
|
+
} = u((e) => e), n = d(() => {
|
|
10
13
|
if (o === s.day)
|
|
11
14
|
return [t];
|
|
12
15
|
if (o === s.workWeek) {
|
|
@@ -23,7 +26,7 @@ const j = () => {
|
|
|
23
26
|
}
|
|
24
27
|
return [t];
|
|
25
28
|
}, [o, t]);
|
|
26
|
-
return i.jsx("div", { className: "bitzFuiCalendarHead", children: n.map((e, a) => i.jsx(m, { time: e }, a)) });
|
|
29
|
+
return /* @__PURE__ */ i.jsx("div", { className: "bitzFuiCalendarHead", children: n.map((e, a) => /* @__PURE__ */ i.jsx(m, { time: e }, a)) });
|
|
27
30
|
};
|
|
28
31
|
export {
|
|
29
32
|
j as default
|
|
@@ -4,9 +4,18 @@ import d from "../../node_modules/dayjs/dayjs.min.mjs";
|
|
|
4
4
|
import i from "../../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,14 +1,19 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { useMemo as s } from "react";
|
|
3
|
-
import { Space as c, Button as i, DatePicker as h, Dropdown as
|
|
3
|
+
import { Space as c, Button as i, DatePicker as h, Dropdown as C } from "antd";
|
|
4
4
|
import { useBitzFuiCalendarStore as b, CalendarTypeEnum as a } from "./BitzFuiCalendarStore.mjs";
|
|
5
5
|
import w from "../../node_modules/dayjs/dayjs.min.mjs";
|
|
6
6
|
import g from "../../node_modules/@ant-design/icons/es/icons/AppstoreOutlined.mjs";
|
|
7
7
|
import v from "../../node_modules/@ant-design/icons/es/icons/LeftOutlined.mjs";
|
|
8
8
|
import T from "../../node_modules/@ant-design/icons/es/icons/RightOutlined.mjs";
|
|
9
9
|
import _ from "../../node_modules/@ant-design/icons/es/icons/DownOutlined.mjs";
|
|
10
|
-
const
|
|
11
|
-
const {
|
|
10
|
+
const B = () => {
|
|
11
|
+
const {
|
|
12
|
+
CalendarType: n,
|
|
13
|
+
currentDay: d,
|
|
14
|
+
toggleCalendarType: u,
|
|
15
|
+
setCurrentDay: l
|
|
16
|
+
} = b((r) => r), o = [
|
|
12
17
|
{
|
|
13
18
|
key: a.day,
|
|
14
19
|
label: "日"
|
|
@@ -26,10 +31,10 @@ const E = () => {
|
|
|
26
31
|
key: a.agendum,
|
|
27
32
|
label: "议程"
|
|
28
33
|
}
|
|
29
|
-
],
|
|
34
|
+
], m = s(() => {
|
|
30
35
|
var r;
|
|
31
36
|
return ((r = o.find((t) => (t == null ? void 0 : t.key) === n)) == null ? void 0 : r.label) ?? "";
|
|
32
|
-
}, [n, o]),
|
|
37
|
+
}, [n, o]), k = (r) => {
|
|
33
38
|
u(r.key);
|
|
34
39
|
}, f = s(() => {
|
|
35
40
|
switch (n) {
|
|
@@ -46,20 +51,47 @@ const E = () => {
|
|
|
46
51
|
}
|
|
47
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(w().startOf("date"));
|
|
55
60
|
};
|
|
56
|
-
return
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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(i, { onClick: j, type: "text", icon: /* @__PURE__ */ e.jsx(g, {}), children: "今天" }) }),
|
|
64
|
+
/* @__PURE__ */ e.jsx(i, { onClick: x, icon: /* @__PURE__ */ e.jsx(v, {}) }),
|
|
65
|
+
/* @__PURE__ */ e.jsx(i, { onClick: p, icon: /* @__PURE__ */ e.jsx(T, {}) }),
|
|
66
|
+
/* @__PURE__ */ e.jsx(
|
|
67
|
+
h,
|
|
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
|
+
C,
|
|
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(_, {})
|
|
90
|
+
] }) })
|
|
91
|
+
}
|
|
92
|
+
) }) })
|
|
93
|
+
] });
|
|
62
94
|
};
|
|
63
95
|
export {
|
|
64
|
-
|
|
96
|
+
B as default
|
|
65
97
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as C } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { memo as
|
|
2
|
+
import { memo as _, useRef as H, useState as D, useEffect as O } from "react";
|
|
3
3
|
import E from "./FuiCalendarItem.mjs";
|
|
4
4
|
import b from "../../node_modules/dayjs/plugin/isSameOrAfter.mjs";
|
|
5
5
|
import F from "../../node_modules/dayjs/plugin/isSameOrBefore.mjs";
|
|
@@ -9,7 +9,7 @@ import { useBitzFuiCalendarStore as z } from "./BitzFuiCalendarStore.mjs";
|
|
|
9
9
|
r.extend(M);
|
|
10
10
|
r.extend(F);
|
|
11
11
|
r.extend(b);
|
|
12
|
-
const
|
|
12
|
+
const S = 1440, y = 194.4;
|
|
13
13
|
function w(s) {
|
|
14
14
|
const m = [];
|
|
15
15
|
return s.forEach((c) => {
|
|
@@ -34,7 +34,10 @@ function w(s) {
|
|
|
34
34
|
}), m;
|
|
35
35
|
}
|
|
36
36
|
const N = (s) => {
|
|
37
|
-
const { time: m } = s, {
|
|
37
|
+
const { time: m } = s, {
|
|
38
|
+
colHeight: c,
|
|
39
|
+
setColHeight: l
|
|
40
|
+
} = z((i) => i), f = H(null), [d, h] = D([]);
|
|
38
41
|
O(() => {
|
|
39
42
|
var i, t;
|
|
40
43
|
if ((i = s == null ? void 0 : s.list) != null && i.length) {
|
|
@@ -61,20 +64,33 @@ const N = (s) => {
|
|
|
61
64
|
e.isBefore(u) && (e = u);
|
|
62
65
|
const T = m.endOf("day");
|
|
63
66
|
a.isAfter(T) && (a = T);
|
|
64
|
-
const B = e.hour() * 60 + e.minute(), x = a.diff(e, "minute"), $ = B /
|
|
67
|
+
const B = e.hour() * 60 + e.minute(), x = a.diff(e, "minute"), $ = B / S * y, j = x / S * y, k = y / S * x, A = (o - n - 1) / o * 100, R = n / o * 100;
|
|
65
68
|
return {
|
|
66
69
|
right: `${A}%`,
|
|
67
|
-
left: `${
|
|
70
|
+
left: `${R}%`,
|
|
68
71
|
top: `${$}rem`,
|
|
69
72
|
height: `${j}rem`,
|
|
70
73
|
maxHeight: `${k}rem`
|
|
71
74
|
};
|
|
72
75
|
};
|
|
73
|
-
return C.jsx("div", { className: "bitzFuiCalendarBody__content__row__list2", ref: f, children: d.map((i, t) => i.map((n, o) => {
|
|
74
|
-
const { maxHeight: e, ...a } = g(
|
|
75
|
-
|
|
76
|
+
return /* @__PURE__ */ C.jsx("div", { className: "bitzFuiCalendarBody__content__row__list2", ref: f, children: d.map((i, t) => i.map((n, o) => {
|
|
77
|
+
const { maxHeight: e, ...a } = g(
|
|
78
|
+
n.startTime,
|
|
79
|
+
n.endTime,
|
|
80
|
+
t,
|
|
81
|
+
d.length
|
|
82
|
+
), u = `${t}-${o}`;
|
|
83
|
+
return /* @__PURE__ */ C.jsx(
|
|
84
|
+
E,
|
|
85
|
+
{
|
|
86
|
+
event: n,
|
|
87
|
+
style: a,
|
|
88
|
+
maxHeight: e
|
|
89
|
+
},
|
|
90
|
+
u
|
|
91
|
+
);
|
|
76
92
|
})) });
|
|
77
|
-
}, U =
|
|
93
|
+
}, U = _(N);
|
|
78
94
|
export {
|
|
79
95
|
U as default
|
|
80
96
|
};
|
|
@@ -1,17 +1,53 @@
|
|
|
1
1
|
import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import a from "./FuiCalendarItem.module.less.mjs";
|
|
3
3
|
import x from "../../node_modules/classnames/index.mjs";
|
|
4
|
-
import { Avatar as j, Tag as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { Avatar as j, Tag as n, Button as l, Popover as h } from "antd";
|
|
5
|
+
import N from "../../node_modules/@ant-design/icons/es/icons/ClockCircleOutlined.mjs";
|
|
6
|
+
import u from "../../node_modules/@ant-design/icons/es/icons/MinusCircleOutlined.mjs";
|
|
7
7
|
import v from "../../node_modules/@ant-design/icons/es/icons/CheckOutlined.mjs";
|
|
8
8
|
import f from "../../node_modules/@ant-design/icons/es/icons/EditOutlined.mjs";
|
|
9
9
|
import p from "../../node_modules/@ant-design/icons/es/icons/DeleteOutlined.mjs";
|
|
10
|
-
const
|
|
11
|
-
var r, c, t,
|
|
12
|
-
const { event: i } = s, m = () => e.jsx(e.Fragment, {}), o =
|
|
13
|
-
|
|
10
|
+
const I = (s) => {
|
|
11
|
+
var r, c, t, d;
|
|
12
|
+
const { event: i } = s, m = () => /* @__PURE__ */ e.jsx(e.Fragment, {}), o = /* @__PURE__ */ e.jsxs("div", { className: "bitzFuiCalendarBlock-pop-contianer", children: [
|
|
13
|
+
/* @__PURE__ */ e.jsxs("div", { className: "pop-header", children: [
|
|
14
|
+
/* @__PURE__ */ e.jsx("div", { className: "pop-avatar", children: /* @__PURE__ */ e.jsx(j, { size: 40, children: i == null ? void 0 : i.creationUserName }) }),
|
|
15
|
+
/* @__PURE__ */ e.jsxs("div", { className: "pop-header-rihgt", children: [
|
|
16
|
+
/* @__PURE__ */ e.jsx("div", { className: "name", children: /* @__PURE__ */ e.jsx("div", { className: "", style: { marginRight: "10px" }, children: i == null ? void 0 : i.creationUserName }) }),
|
|
17
|
+
/* @__PURE__ */ e.jsxs("div", { className: "", children: [
|
|
18
|
+
/* @__PURE__ */ e.jsx(n, { bordered: !1, icon: /* @__PURE__ */ e.jsx(N, {}), color: "default", children: "waiting" }),
|
|
19
|
+
/* @__PURE__ */ e.jsx(n, { bordered: !1, icon: /* @__PURE__ */ e.jsx(u, {}), color: "default", children: "stop" })
|
|
20
|
+
] })
|
|
21
|
+
] })
|
|
22
|
+
] }),
|
|
23
|
+
/* @__PURE__ */ e.jsx("div", { className: "pop-content", children: i == null ? void 0 : i.subject }),
|
|
24
|
+
/* @__PURE__ */ e.jsx("div", { className: "pop-period", children: m() }),
|
|
25
|
+
/* @__PURE__ */ e.jsx("div", { className: "pop-tag", children: /* @__PURE__ */ e.jsx("div", {}) }),
|
|
26
|
+
/* @__PURE__ */ e.jsxs("div", { className: "pop-footer", children: [
|
|
27
|
+
/* @__PURE__ */ e.jsx(l, { type: "primary", icon: /* @__PURE__ */ e.jsx(v, {}), size: "small", children: "查看" }),
|
|
28
|
+
/* @__PURE__ */ e.jsx(l, { type: "primary", icon: /* @__PURE__ */ e.jsx(f, {}), size: "small", children: "修改" }),
|
|
29
|
+
/* @__PURE__ */ e.jsx(l, { danger: !0, type: "primary", icon: /* @__PURE__ */ e.jsx(p, {}), size: "small", children: "删除" })
|
|
30
|
+
] })
|
|
31
|
+
] });
|
|
32
|
+
return /* @__PURE__ */ e.jsx(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
style: s == null ? void 0 : s.style,
|
|
36
|
+
className: x(a.FuiCalendarItemBlock, "FuiCalendarItemBlock"),
|
|
37
|
+
children: /* @__PURE__ */ e.jsx(h, { content: o, className: "bitzPopover", children: /* @__PURE__ */ e.jsxs("div", { className: a.container, children: [
|
|
38
|
+
/* @__PURE__ */ e.jsx("div", { className: a.verticalLine }),
|
|
39
|
+
/* @__PURE__ */ e.jsx("div", { className: a.card, children: /* @__PURE__ */ e.jsxs("div", { className: a.cardBody, style: { maxHeight: s == null ? void 0 : s.maxHeight }, children: [
|
|
40
|
+
((r = s.event) == null ? void 0 : r.subject) && /* @__PURE__ */ e.jsx("span", { className: a.text, children: (c = s.event) == null ? void 0 : c.subject }),
|
|
41
|
+
/* @__PURE__ */ e.jsxs("span", { className: a.text2, children: [
|
|
42
|
+
(t = s.event) == null ? void 0 : t.location,
|
|
43
|
+
" ",
|
|
44
|
+
(d = s.event) == null ? void 0 : d.organizerName
|
|
45
|
+
] })
|
|
46
|
+
] }) })
|
|
47
|
+
] }) })
|
|
48
|
+
}
|
|
49
|
+
);
|
|
14
50
|
};
|
|
15
51
|
export {
|
|
16
|
-
|
|
52
|
+
I as default
|
|
17
53
|
};
|
|
@@ -7,7 +7,13 @@ import m from "./CalendarAgendum.mjs";
|
|
|
7
7
|
import { useBitzFuiCalendarStore as o, CalendarTypeEnum as d } from "./BitzFuiCalendarStore.mjs";
|
|
8
8
|
const z = (e) => {
|
|
9
9
|
const { CalendarType: n } = o((i) => i);
|
|
10
|
-
return a.jsx("div", { className: "bitzFuiCalendarBlock", children:
|
|
10
|
+
return /* @__PURE__ */ a.jsx("div", { className: "bitzFuiCalendarBlock", children: /* @__PURE__ */ a.jsxs("div", { className: "bitzFuiCalendarContainer", children: [
|
|
11
|
+
/* @__PURE__ */ a.jsx(t, {}),
|
|
12
|
+
/* @__PURE__ */ a.jsxs("div", { className: "bitzFuiCalendarConent", children: [
|
|
13
|
+
n === d.agendum ? null : /* @__PURE__ */ a.jsx(r, {}),
|
|
14
|
+
n === d.agendum ? /* @__PURE__ */ a.jsx(m, { list: e == null ? void 0 : e.data }) : /* @__PURE__ */ a.jsx(l, { data: e == null ? void 0 : e.data })
|
|
15
|
+
] })
|
|
16
|
+
] }) });
|
|
11
17
|
};
|
|
12
18
|
export {
|
|
13
19
|
z as default
|
|
@@ -7,19 +7,22 @@ import F from "../../node_modules/classnames/index.mjs";
|
|
|
7
7
|
import { css as g } from "../../node_modules/@emotion/css/dist/emotion-css.esm.mjs";
|
|
8
8
|
import h from "../../node_modules/@ant-design/icons/es/icons/FullscreenExitOutlined.mjs";
|
|
9
9
|
import j from "../../node_modules/@ant-design/icons/es/icons/FullscreenOutlined.mjs";
|
|
10
|
-
const v = ({ className: n, style:
|
|
11
|
-
const { token: c } = p.useToken(), [
|
|
10
|
+
const v = ({ className: n, style: l }) => {
|
|
11
|
+
const { token: c } = p.useToken(), [r, o] = u(e.isFullscreen);
|
|
12
12
|
f(() => {
|
|
13
|
-
e.on("change", () => (e.isFullscreen ?
|
|
13
|
+
e.on("change", () => (e.isFullscreen ? o(!0) : o(!1), () => e.off("change", () => {
|
|
14
14
|
})));
|
|
15
15
|
}, []);
|
|
16
16
|
const i = () => {
|
|
17
17
|
e.isEnabled || d.warning("当前您的浏览器不支持全屏"), e.toggle();
|
|
18
|
-
}, m = a(() =>
|
|
18
|
+
}, m = a(() => r ? "退出全屏" : "全屏", [r]), t = F(
|
|
19
|
+
g`
|
|
19
20
|
font-size: 22px;
|
|
20
21
|
color: ${c.colorText};
|
|
21
|
-
`,
|
|
22
|
-
|
|
22
|
+
`,
|
|
23
|
+
n
|
|
24
|
+
);
|
|
25
|
+
return /* @__PURE__ */ s.jsx(x, { title: m, children: /* @__PURE__ */ s.jsx("div", { className: "fullScreenBlock", onClick: i, children: r ? /* @__PURE__ */ s.jsx(h, { className: t, style: l }) : /* @__PURE__ */ s.jsx(j, { className: t, style: l }) }) });
|
|
23
26
|
};
|
|
24
27
|
export {
|
|
25
28
|
v as default
|
|
@@ -2,17 +2,31 @@ import { j as s } from "../../node_modules/react/jsx-runtime.mjs";
|
|
|
2
2
|
import { useMemo as N, Fragment as C } from "react";
|
|
3
3
|
import { Typography as i } from "antd";
|
|
4
4
|
import b from "./style.mjs";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
|
|
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 = ""
|
|
15
|
+
}) => {
|
|
16
|
+
const { highlightClassName: h } = b({
|
|
8
17
|
tagClass: void 0,
|
|
9
18
|
highlightClass: c
|
|
10
|
-
}), t =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
}), t = v(
|
|
20
|
+
l,
|
|
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() });
|
|
15
29
|
};
|
|
16
30
|
export {
|
|
17
|
-
|
|
31
|
+
H as default
|
|
18
32
|
};
|
|
@@ -3,14 +3,35 @@ import E from "../../node_modules/classnames/index.mjs";
|
|
|
3
3
|
import { useMemo as G } from "react";
|
|
4
4
|
import H from "./chunks.mjs";
|
|
5
5
|
import M from "./style.mjs";
|
|
6
|
-
const w = ({
|
|
7
|
-
|
|
6
|
+
const w = ({
|
|
7
|
+
autoEscape: m = !0,
|
|
8
|
+
caseSensitive: l = !1,
|
|
9
|
+
type: e = "primary",
|
|
10
|
+
sourceString: t,
|
|
11
|
+
keywords: o,
|
|
12
|
+
tag: i = "div",
|
|
13
|
+
tagClass: c,
|
|
14
|
+
highlightTag: h = "span",
|
|
15
|
+
highlightClass: g,
|
|
16
|
+
unhighlightTag: u = "span",
|
|
17
|
+
unhighlightClass: p = ""
|
|
18
|
+
}) => {
|
|
19
|
+
const {
|
|
20
|
+
tagClassName: f,
|
|
21
|
+
secondaryClassName: d,
|
|
22
|
+
highlightClassName: N
|
|
23
|
+
} = M({ tagClass: c, highlightClass: g }), x = G(() => E(f, {
|
|
8
24
|
[`${d}`]: e === "secondary"
|
|
9
|
-
}), [e]), s = H(
|
|
25
|
+
}), [e]), s = H(
|
|
26
|
+
m,
|
|
27
|
+
l,
|
|
28
|
+
o,
|
|
29
|
+
t
|
|
30
|
+
), C = () => s != null && s.length ? s.map((j, r) => {
|
|
10
31
|
const { start: y, end: T, highlight: v } = j, n = t.slice(y, T);
|
|
11
|
-
return v ? a.jsx(h, { className: N, children: n }, r) : a.jsx(u, { className: p, children: n }, r);
|
|
32
|
+
return v ? /* @__PURE__ */ a.jsx(h, { className: N, children: n }, r) : /* @__PURE__ */ a.jsx(u, { className: p, children: n }, r);
|
|
12
33
|
}) : t;
|
|
13
|
-
return a.jsx(i, { className: x, children: C() });
|
|
34
|
+
return /* @__PURE__ */ a.jsx(i, { className: x, children: C() });
|
|
14
35
|
};
|
|
15
36
|
export {
|
|
16
37
|
w as default
|
|
@@ -5,24 +5,27 @@ const c = (a, f, r, g) => p(() => {
|
|
|
5
5
|
if (Array.isArray(r) && !r.every((t) => typeof t == "string"))
|
|
6
6
|
throw new Error("参数`keywords`必须是string[]类型");
|
|
7
7
|
const d = f ? "g" : "gi";
|
|
8
|
-
let h = (Array.isArray(r) ? r : [r]).filter((t) => t).reduce(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
let h = (Array.isArray(r) ? r : [r]).filter((t) => t).reduce(
|
|
9
|
+
(t, e) => {
|
|
10
|
+
a && (e = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
|
|
11
|
+
const n = new RegExp(e, d);
|
|
12
|
+
let i;
|
|
13
|
+
for (; i = n.exec(g); ) {
|
|
14
|
+
const s = i.index, o = n.lastIndex;
|
|
15
|
+
if (s >= o) {
|
|
16
|
+
n.lastIndex++;
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
t.push({
|
|
20
|
+
start: s,
|
|
21
|
+
end: o,
|
|
22
|
+
highlight: !0
|
|
23
|
+
});
|
|
17
24
|
}
|
|
18
|
-
t
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
}, []);
|
|
25
|
+
return t;
|
|
26
|
+
},
|
|
27
|
+
[]
|
|
28
|
+
);
|
|
26
29
|
h = h.sort((t, e) => t.start - e.start).reduce((t, e) => {
|
|
27
30
|
const n = t[t.length - 1];
|
|
28
31
|
if (!n || e.start > n.end) {
|
|
@@ -12,7 +12,10 @@ import d from "../../node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.
|
|
|
12
12
|
import "../../node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
13
13
|
import c from "../../node_modules/classnames/index.mjs";
|
|
14
14
|
import f from "../BitzTheme/index.mjs";
|
|
15
|
-
const R = ({
|
|
15
|
+
const R = ({
|
|
16
|
+
tagClass: a = "",
|
|
17
|
+
highlightClass: p = ""
|
|
18
|
+
}) => {
|
|
16
19
|
const { theme: h, token: i, hashId: t } = f.useToken(), r = "bitzHighlightBlock", e = "bitzHighlightTag", s = "bitzHighlightSecondary", g = (l, S, m, o) => [
|
|
17
20
|
{
|
|
18
21
|
[`.${l}`]: {
|
|
@@ -7,7 +7,7 @@ function i(t, o) {
|
|
|
7
7
|
o.hasOwnProperty(r) && (n[r] = o[r]);
|
|
8
8
|
return n;
|
|
9
9
|
}
|
|
10
|
-
const s = ({ ...t }) => e.jsx(m, { ...t }), u = i(s, { previewImage: a });
|
|
10
|
+
const s = ({ ...t }) => /* @__PURE__ */ e.jsx(m, { ...t }), u = i(s, { previewImage: a });
|
|
11
11
|
export {
|
|
12
12
|
i as attachPropertiesToComponent,
|
|
13
13
|
u as default
|
|
@@ -7,12 +7,19 @@ const v = (e) => {
|
|
|
7
7
|
const t = document.createElement("div"), o = l.createRoot(t);
|
|
8
8
|
let i = {
|
|
9
9
|
visible: !0,
|
|
10
|
-
closeIcon: n.jsx(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
closeIcon: /* @__PURE__ */ n.jsx(
|
|
11
|
+
c,
|
|
12
|
+
{
|
|
13
|
+
onClick: () => {
|
|
14
|
+
var m;
|
|
15
|
+
(m = e.onClose) == null || m.call(e), o.unmount(), t.remove();
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
)
|
|
14
19
|
};
|
|
15
|
-
e.items.length <= 1 && (i.countRender = () => null), o.render(
|
|
20
|
+
e.items.length <= 1 && (i.countRender = () => null), o.render(
|
|
21
|
+
/* @__PURE__ */ n.jsx(r.PreviewGroup, { preview: i, items: e.items })
|
|
22
|
+
), document.body.appendChild(t);
|
|
16
23
|
};
|
|
17
24
|
export {
|
|
18
25
|
v as default
|
|
@@ -16,9 +16,20 @@ const j = ({ onChange: o = () => {
|
|
|
16
16
|
], t = (a) => {
|
|
17
17
|
n(a.key), o(a.key);
|
|
18
18
|
};
|
|
19
|
-
return e.jsxs("div", { className: "bitzLanguageTabsBlock", children: [
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "bitzLanguageTabsBlock", children: [
|
|
20
|
+
/* @__PURE__ */ e.jsx("div", { className: "languagesBox", children: c.map((a, r) => /* @__PURE__ */ e.jsx("div", { className: `item ${i == a.key ? "itemActive" : ""}`, children: /* @__PURE__ */ e.jsx(
|
|
21
|
+
"img",
|
|
22
|
+
{
|
|
23
|
+
src: a.icon,
|
|
24
|
+
alt: a.label,
|
|
25
|
+
height: 16,
|
|
26
|
+
onClick: () => {
|
|
27
|
+
t(a);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
) }, r)) }),
|
|
31
|
+
/* @__PURE__ */ e.jsx("div", { className: "copyBox", children: s })
|
|
32
|
+
] });
|
|
22
33
|
};
|
|
23
34
|
export {
|
|
24
35
|
j as default
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { j as r } from "../../node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Suspense as t } from "react";
|
|
3
|
-
const o = (s) =>
|
|
3
|
+
const o = (s) => /* @__PURE__ */ r.jsx(
|
|
4
|
+
t,
|
|
5
|
+
{
|
|
6
|
+
fallback: /* @__PURE__ */ r.jsx(r.Fragment, {}),
|
|
7
|
+
children: /* @__PURE__ */ r.jsx(s, {})
|
|
8
|
+
}
|
|
9
|
+
);
|
|
4
10
|
export {
|
|
5
11
|
o as default
|
|
6
12
|
};
|
|
@@ -3,11 +3,25 @@ import { forwardRef as t } from "react";
|
|
|
3
3
|
import { clsx as i } from "../../node_modules/clsx/dist/clsx.mjs";
|
|
4
4
|
import f from "./LoadMore.mjs";
|
|
5
5
|
import { mergeProps as d } from "../../utils/get-default-props.mjs";
|
|
6
|
-
const p = t((
|
|
7
|
-
const
|
|
6
|
+
const p = t((e, r) => {
|
|
7
|
+
const o = d(e, {
|
|
8
8
|
offset: 300
|
|
9
9
|
});
|
|
10
|
-
return s.jsx(
|
|
10
|
+
return /* @__PURE__ */ s.jsx(
|
|
11
|
+
f,
|
|
12
|
+
{
|
|
13
|
+
ref: r,
|
|
14
|
+
className: i(o.className),
|
|
15
|
+
style: o.style,
|
|
16
|
+
onLoad: o.onLoad,
|
|
17
|
+
threshold: o.offset,
|
|
18
|
+
finished: o.finished,
|
|
19
|
+
finishedText: o.finishedText,
|
|
20
|
+
loadingText: o.loadingText,
|
|
21
|
+
errorText: o.errorText,
|
|
22
|
+
children: o.children
|
|
23
|
+
}
|
|
24
|
+
);
|
|
11
25
|
});
|
|
12
26
|
export {
|
|
13
27
|
p as default
|