@baishuyun/ui-base 6.7.0 → 6.7.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/Amap/AmapMarker/index.js +2 -2
- package/dist/Amap/AmapMarker-CMlzx_nj.js +153 -0
- package/dist/Amap/AmapMarkerCluster/index.js +2 -2
- package/dist/Amap/{AmapMarkerCluster-DvXchCC0.js → AmapMarkerCluster-MDUfcIqP.js} +27 -28
- package/dist/Amap/AmapProvider/index.js +1 -1
- package/dist/Amap/{AmapProvider-XCrqzo9W.js → AmapProvider-CGedZdvQ.js} +21 -21
- package/dist/Amap/index.js +4 -4
- package/dist/Amap/{useMarkerInfoWindowController-G-Bg-NDJ.js → useMarkerInfoWindowController-BvP2jo7K.js} +21 -21
- package/dist/Calendar/{AllDaySection-DOMayJvh.js → AllDaySection-Bd5Po_DI.js} +3 -3
- package/dist/Calendar/{Calendar-DSqL58yh.js → Calendar-Bs4S-6rW.js} +9 -9
- package/dist/Calendar/{EventCard-BGDwQ-c7.js → EventCard-CvEnWcKd.js} +2 -2
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +13 -13
- package/dist/Calendar/subcomponents/AllDaySection/index.js +5 -5
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +3 -3
- package/dist/Calendar/subcomponents/EventCard/index.js +4 -4
- package/dist/Calendar/subcomponents/TimeAxis/index.js +3 -3
- package/dist/Calendar/subcomponents/TimeGrid/index.js +1 -1
- package/dist/Calendar/{theme-qcYESlpU.js → theme-BRVmxhqD.js} +1 -1
- package/dist/Calendar/utils/index.js +3 -3
- package/dist/Calendar/utils/layout/index.js +2 -2
- package/dist/Calendar/utils/theme/index.js +1 -1
- package/dist/DatePicker/{DatePicker-DnH3zblC.js → DatePicker-C_ssCNGN.js} +3 -3
- package/dist/DatePicker/{DatePickerPanel-CQGrY4wT.js → DatePickerPanel-DNDw-H39.js} +2 -2
- package/dist/DatePicker/index.js +4 -4
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DropDown/{DropDown-D_Zh6fGX.js → DropDown-DYhDwsNm.js} +21 -21
- package/dist/DropDown/index.js +4 -3
- package/dist/DropDown/style/index.js +1 -1
- package/dist/Editor/{Buttons-De6NyZQs.js → Buttons-D1fP8aYo.js} +1 -1
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +5 -4
- package/dist/Editor/index.js +5 -4
- package/dist/Gantt/GanttChart/index.js +10 -9
- package/dist/Gantt/{GanttChart-MwVs4NFd.js → GanttChart-VoKzDvu-.js} +6 -6
- package/dist/Gantt/GanttTable/index.js +8 -7
- package/dist/Gantt/{GanttTable-DoDMELyN.js → GanttTable-l-pMVjWe.js} +5 -5
- package/dist/Gantt/GanttToolBar/index.js +7 -6
- package/dist/Gantt/{GanttToolBar-BAAQMT0x.js → GanttToolBar-Bm_4cVHF.js} +2 -2
- package/dist/Gantt/{collapseKeys-VeqoqKwC.js → collapseKeys-_ShTXPKt.js} +2 -2
- package/dist/Gantt/index.js +17 -16
- package/dist/Gantt/{timelineViewConfig-C1T1exJd.js → timelineViewConfig-CLIpppp0.js} +1 -1
- package/dist/Gantt/utils/index.js +5 -5
- package/dist/Gantt/utils/theme/index.js +1 -1
- package/dist/InputTag/{InputTag-C4iRY5Mw.js → InputTag-25vFChWE.js} +7 -7
- package/dist/InputTag/index.js +3 -2
- package/dist/Loading/index.js +1 -1
- package/dist/ScrollBar/{ScrollBar-C4-PtPBc.js → ScrollBar-CnwYQfXM.js} +0 -1
- package/dist/ScrollBar/index.js +2 -1
- package/dist/ScrollBar/style-B1NkMGtS.js +1 -0
- package/dist/Select/{Select-CAoozrW7.js → Select-CwABtVnS.js} +82 -82
- package/dist/Select/index.js +4 -3
- package/dist/Table/{Table-BZspRsYV.js → Table-ByNcMkaT.js} +4 -4
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/{hooks-5ETrGbzY.js → hooks-uCDY9dqx.js} +1 -1
- package/dist/Table/index.js +6 -5
- package/dist/Table/{processRowspan-CSW5J9Rs.js → processRowspan-nIGqGyHh.js} +1 -1
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-sag2ofoG.js → Tabs-ZRWBbBdF.js} +1 -1
- package/dist/Tabs/index.js +2 -2
- package/dist/components/Amap/Amap.d.ts +1 -1
- package/dist/components/Amap/AmapMarkerCluster/utils.d.ts +0 -1
- package/dist/components/Amap/AmapProvider/AmapProvider.d.ts +1 -1
- package/dist/components/Amap/utils/constants.d.ts +2 -0
- package/dist/components/Calendar/Calendar.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/AllDaySection/AllDaySection.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/CalendarHeader/CalendarHeader.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/CalendarHeaderLeft/CalendarHeaderLeft.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/CurrentTimeIndicator/CurrentTimeIndicator.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/DateDisplay/DateDisplay.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/DayView/DayView.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthCell/MonthCell.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthCell/MonthCellPopover/MonthCellPopover.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthHeader/MonthHeader.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthView/MonthView.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/NavButton/NavButton.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/TimeAxis/TimeAxis.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/TimeGrid/TimeGrid.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/TodayButton/TodayButton.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekAllDaySection/WeekAllDaySection.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekEventLayer/MoreButton.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekEventLayer/WeekEventLayer.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekHeader/WeekHeader.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekView/WeekView.d.ts +1 -1
- package/dist/components/CheckBox/CheckboxIcon.d.ts +1 -1
- package/dist/components/Gantt/Gantt.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/GanttBarTooltip/GanttBarTooltip.d.ts +2 -1
- package/dist/components/Gantt/GanttChart/GanttChart.d.ts +2 -2
- package/dist/components/Gantt/GanttChart/GanttSummaryBar/GanttSummaryBar.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/GanttTaskBar/GanttTaskBar.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/GanttTimelineHeader/GanttTimelineHeader.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/GanttTimelineHeader/HeaderStickyTopLabel.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/OffscreenTaskIndicators.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/TodayIndicator/TodayIndicator.d.ts +2 -1
- package/dist/components/Gantt/GanttChart/hooks/useGanttRowVirtualScroll.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/utils/buildSummaryBarTooltipContent.d.ts +2 -1
- package/dist/components/Gantt/GanttResizeIndicator.d.ts +2 -1
- package/dist/components/Gantt/GanttTable/GanttTable.d.ts +2 -1
- package/dist/components/Gantt/GanttToolBar/GanttToolBar.d.ts +2 -1
- package/dist/components/Gantt/internal/GanttLayout.d.ts +1 -1
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/ScrollBar/style.d.ts +0 -0
- package/dist/components/Segmented/Segmented.d.ts +1 -1
- package/dist/components/Table/components/HeaderCell.d.ts +1 -1
- package/dist/components/Table/components/TableBody.d.ts +1 -1
- package/dist/components/Table/components/TableFooter.d.ts +1 -1
- package/dist/components/Table/hooks/useTableVirtual.d.ts +5 -4
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tree/Tree.d.ts +1 -1
- package/dist/components/Tree/TreeNode/TreeNode.d.ts +2 -1
- package/dist/index.js +43 -42
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/Amap/AmapMarker-CB66dQIG.js +0 -152
- /package/dist/Calendar/{CurrentTimeIndicator-CgDrVXin.js → CurrentTimeIndicator-twXtFHIp.js} +0 -0
- /package/dist/Calendar/{TimeAxis-f40447Et.js → TimeAxis-D7bgZDKs.js} +0 -0
- /package/dist/Calendar/{TimeGrid-KeZ4RsDq.js → TimeGrid-DPtU6Qvo.js} +0 -0
- /package/dist/Calendar/{colorUtils-Be9RqvDV.js → colorUtils-lXNjGoCk.js} +0 -0
- /package/dist/Calendar/{context-BrzVkPeC.js → context-CBJnz0IH.js} +0 -0
- /package/dist/Calendar/{layout-rnPhDP7c.js → layout-BglMom3m.js} +0 -0
- /package/dist/DatePicker/{ensureDayjsPlugins-Bz70Nzmi.js → ensureDayjsPlugins-CVL-fnAl.js} +0 -0
- /package/dist/DatePicker/{pickerLocale-g90uglxB.js → pickerLocale-BeMlfhKu.js} +0 -0
- /package/dist/DatePicker/{style-BlAisgTN.js → style-BwmM26RP.js} +0 -0
- /package/dist/DropDown/{style-WiojFVQn.js → style-BSgosymi.js} +0 -0
- /package/dist/Gantt/{GanttHighlightContext-CMXYFPyz.js → GanttHighlightContext-grda5bhd.js} +0 -0
- /package/dist/Gantt/{columnResize-1nSds2g5.js → columnResize-DV1tSBx_.js} +0 -0
- /package/dist/Gantt/{constants-BSCH_s3S.js → constants-BObDP0h6.js} +0 -0
- /package/dist/Gantt/{highlightTarget-EEsL61Qd.js → highlightTarget-DrP0_NrM.js} +0 -0
- /package/dist/Gantt/{theme-DLS8mdri.js → theme-CiMD9Y6i.js} +0 -0
- /package/dist/Loading/{Loading-CV5GuhWQ.js → Loading--cdn92gm.js} +0 -0
- /package/dist/Table/{constants-BZfNf-UU.js → constants-CcwjDbe7.js} +0 -0
- /package/dist/Table/{style-qi0sTT0x.js → style-x9xfw6te.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-CsNiNirJ.js → useFloatingPortal-C8V67X0v.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../AmapContext-CFmsMycg.js";
|
|
2
2
|
import "../hooks-DwRvpafb.js";
|
|
3
|
-
import "../useMarkerInfoWindowController-
|
|
4
|
-
import { t as e } from "../AmapMarker-
|
|
3
|
+
import "../useMarkerInfoWindowController-BvP2jo7K.js";
|
|
4
|
+
import { t as e } from "../AmapMarker-CMlzx_nj.js";
|
|
5
5
|
export { e as AmapMarker, e as default };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { n as e } from "./hooks-DwRvpafb.js";
|
|
2
|
+
import { n as t, t as n } from "./useMarkerInfoWindowController-BvP2jo7K.js";
|
|
3
|
+
import { Fragment as r, jsx as i } from "react/jsx-runtime";
|
|
4
|
+
import { useCallback as a, useEffect as o, useRef as s } from "react";
|
|
5
|
+
import { createRoot as c } from "react-dom/client";
|
|
6
|
+
//#region src/components/Amap/AmapMarker/useMarkerInfoWindow.tsx
|
|
7
|
+
var l = ({ AMap: e, map: t, mapReady: r, markerRef: i, infoWindow: s }) => {
|
|
8
|
+
let { scheduleInfoWindowOpen: c, scheduleInfoWindowClose: l, closeInfoWindow: u } = n({
|
|
9
|
+
AMap: e,
|
|
10
|
+
map: t,
|
|
11
|
+
mapReady: r
|
|
12
|
+
}), d = a(() => {
|
|
13
|
+
if (!s) return;
|
|
14
|
+
let e = i.current;
|
|
15
|
+
e && c(e, s);
|
|
16
|
+
}, [
|
|
17
|
+
s,
|
|
18
|
+
i,
|
|
19
|
+
c
|
|
20
|
+
]);
|
|
21
|
+
return o(() => {
|
|
22
|
+
if (s) return () => {
|
|
23
|
+
u();
|
|
24
|
+
};
|
|
25
|
+
}, [u, s]), {
|
|
26
|
+
scheduleInfoWindowOpen: d,
|
|
27
|
+
scheduleInfoWindowClose: l,
|
|
28
|
+
closeInfoWindow: u
|
|
29
|
+
};
|
|
30
|
+
}, u = (e) => typeof e == "string" || typeof e == "number", d = (e) => e != null && typeof e != "boolean", f = (e) => d(e) && !u(e), p = (e) => {
|
|
31
|
+
queueMicrotask(() => e.unmount());
|
|
32
|
+
};
|
|
33
|
+
function m(n) {
|
|
34
|
+
let { AMap: a, map: m, mapReady: h } = e(), { content: g, infoWindow: _, options: v = {}, onClick: y, onMouseEnter: b, onMouseLeave: x } = n, S = !!_, C = s(null), w = s(null), T = s(null), E = s(!0), D = s(!0), O = s({
|
|
35
|
+
content: g,
|
|
36
|
+
infoWindow: _,
|
|
37
|
+
options: v
|
|
38
|
+
});
|
|
39
|
+
O.current = {
|
|
40
|
+
content: g,
|
|
41
|
+
infoWindow: _,
|
|
42
|
+
options: v
|
|
43
|
+
};
|
|
44
|
+
let { scheduleInfoWindowOpen: k, scheduleInfoWindowClose: A, closeInfoWindow: j } = l({
|
|
45
|
+
AMap: a,
|
|
46
|
+
map: m,
|
|
47
|
+
mapReady: h,
|
|
48
|
+
markerRef: C,
|
|
49
|
+
infoWindow: _
|
|
50
|
+
});
|
|
51
|
+
return o(() => {
|
|
52
|
+
if (!a || !m || !h || C.current) return;
|
|
53
|
+
let e = O.current, n = {
|
|
54
|
+
anchor: t,
|
|
55
|
+
...e.options,
|
|
56
|
+
map: m
|
|
57
|
+
};
|
|
58
|
+
if (u(e.content)) {
|
|
59
|
+
let t = document.createElement("div");
|
|
60
|
+
t.textContent = String(e.content), T.current = t, n.content = t;
|
|
61
|
+
} else if (f(e.content)) {
|
|
62
|
+
let e = document.createElement("div");
|
|
63
|
+
T.current = e, n.content = e;
|
|
64
|
+
}
|
|
65
|
+
let o = new a.Marker(n);
|
|
66
|
+
if (C.current = o, f(e.content) && T.current) {
|
|
67
|
+
let t = c(T.current);
|
|
68
|
+
w.current = t, t.render(/* @__PURE__ */ i(r, { children: e.content }));
|
|
69
|
+
}
|
|
70
|
+
return () => {
|
|
71
|
+
let e = w.current;
|
|
72
|
+
e && p(e), w.current = null, T.current = null, j(), o.setMap(null), C.current = null;
|
|
73
|
+
};
|
|
74
|
+
}, [
|
|
75
|
+
a,
|
|
76
|
+
j,
|
|
77
|
+
m,
|
|
78
|
+
h
|
|
79
|
+
]), o(() => {
|
|
80
|
+
let e = v.position;
|
|
81
|
+
if (!e) return;
|
|
82
|
+
let t = C.current?.getPosition?.(), n = t?.getLng?.() ?? t?.lng, r = t?.getLat?.() ?? t?.lat, i = Array.isArray(e) ? e[0] : e.lng, a = Array.isArray(e) ? e[1] : e.lat;
|
|
83
|
+
n === i && r === a || C.current?.setPosition(e);
|
|
84
|
+
}, [v.position]), o(() => {
|
|
85
|
+
if (D.current) {
|
|
86
|
+
D.current = !1;
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
let e = C.current;
|
|
90
|
+
e && (v.visible === !1 ? e.hide?.() : v.visible === !0 && e.show?.());
|
|
91
|
+
}, [v.visible]), o(() => {
|
|
92
|
+
if (E.current) {
|
|
93
|
+
E.current = !1;
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
let e = C.current;
|
|
97
|
+
if (e) {
|
|
98
|
+
if (!d(g)) {
|
|
99
|
+
w.current && p(w.current), w.current = null, T.current = null, e.setContent?.("");
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (u(g)) {
|
|
103
|
+
if (w.current) {
|
|
104
|
+
let t = w.current;
|
|
105
|
+
p(t), w.current = null, T.current = document.createElement("div"), e.setContent?.(T.current);
|
|
106
|
+
}
|
|
107
|
+
T.current || (T.current = document.createElement("div"), e.setContent?.(T.current)), T.current.textContent = String(g);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
T.current || (T.current = document.createElement("div"), e.setContent?.(T.current)), w.current ||= c(T.current), w.current.render(/* @__PURE__ */ i(r, { children: g }));
|
|
111
|
+
}
|
|
112
|
+
}, [g]), o(() => {
|
|
113
|
+
let e = C.current;
|
|
114
|
+
if (!e) return;
|
|
115
|
+
let t = () => ({
|
|
116
|
+
marker: e,
|
|
117
|
+
AMap: a,
|
|
118
|
+
map: m
|
|
119
|
+
}), n = [];
|
|
120
|
+
if (y) {
|
|
121
|
+
let r = () => {
|
|
122
|
+
y?.(t());
|
|
123
|
+
};
|
|
124
|
+
e.on("click", r), n.push(() => e.off("click", r));
|
|
125
|
+
}
|
|
126
|
+
if (b || S) {
|
|
127
|
+
let r = () => {
|
|
128
|
+
S && k(), b?.(t());
|
|
129
|
+
};
|
|
130
|
+
e.on("mouseover", r), n.push(() => e.off("mouseover", r));
|
|
131
|
+
}
|
|
132
|
+
if (x || S) {
|
|
133
|
+
let r = () => {
|
|
134
|
+
S && A(), x?.(t());
|
|
135
|
+
};
|
|
136
|
+
e.on("mouseout", r), n.push(() => e.off("mouseout", r));
|
|
137
|
+
}
|
|
138
|
+
return () => {
|
|
139
|
+
n.forEach((e) => e());
|
|
140
|
+
};
|
|
141
|
+
}, [
|
|
142
|
+
a,
|
|
143
|
+
S,
|
|
144
|
+
m,
|
|
145
|
+
y,
|
|
146
|
+
b,
|
|
147
|
+
x,
|
|
148
|
+
A,
|
|
149
|
+
k
|
|
150
|
+
]), null;
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
export { m as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../AmapContext-CFmsMycg.js";
|
|
2
2
|
import "../hooks-DwRvpafb.js";
|
|
3
|
-
import "../useMarkerInfoWindowController-
|
|
4
|
-
import { t as e } from "../AmapMarkerCluster-
|
|
3
|
+
import "../useMarkerInfoWindowController-BvP2jo7K.js";
|
|
4
|
+
import { t as e } from "../AmapMarkerCluster-MDUfcIqP.js";
|
|
5
5
|
export { e as AmapMarkerCluster, e as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./hooks-DwRvpafb.js";
|
|
2
|
-
import { t } from "./useMarkerInfoWindowController-
|
|
3
|
-
import { useCallback as
|
|
2
|
+
import { n as t, t as n } from "./useMarkerInfoWindowController-BvP2jo7K.js";
|
|
3
|
+
import { useCallback as r, useEffect as i, useMemo as a, useRef as o } from "react";
|
|
4
4
|
//#region src/components/Amap/AmapMarkerCluster/utils.ts
|
|
5
|
-
var
|
|
5
|
+
var s = "[ui-base] AmapMarkerCluster requires AMap.MarkerCluster plugin. Please add \"AMap.MarkerCluster\" to AmapProvider plugins.", c = {}, l = /* @__PURE__ */ new WeakMap(), u = 0, d = (e) => Array.isArray(e) && e.length === 2 && Number.isFinite(e[0]) && Number.isFinite(e[1]), f = (e) => Array.isArray(e) ? e : [], p = (e) => e?.extData, m = (e) => {
|
|
6
6
|
let t = { ...e };
|
|
7
7
|
return delete t.renderMarker, delete t.renderClusterMarker, t;
|
|
8
8
|
}, h = (e) => l.get(e) || (u += 1, l.set(e, u), u), g = (e) => e === void 0 ? "empty" : typeof e == "string" ? `string:${e}` : `element:${h(e)}`, _ = (e) => e.map((e) => [
|
|
@@ -35,15 +35,14 @@ var o = "[ui-base] AmapMarkerCluster requires AMap.MarkerCluster plugin. Please
|
|
|
35
35
|
`, x = (e, t, n = g(t)) => {
|
|
36
36
|
t === void 0 || e.__bsyAmapMarkerClusterContentSignature === n || (e.setContent?.(t), e.__bsyAmapMarkerClusterContentSignature = n);
|
|
37
37
|
}, S = (e) => {
|
|
38
|
-
e.setAnchor?.(
|
|
38
|
+
e.setAnchor?.(t);
|
|
39
39
|
}, C = (e, t, n) => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
t.setOffset?.(n);
|
|
40
|
+
let r = n ?? [0, 0];
|
|
41
|
+
if (Array.isArray(r) && typeof e.Pixel == "function") {
|
|
42
|
+
t.setOffset?.(new e.Pixel(r[0], r[1]));
|
|
43
|
+
return;
|
|
46
44
|
}
|
|
45
|
+
t.setOffset?.(r);
|
|
47
46
|
}, w = (e) => {
|
|
48
47
|
let t = e.__bsyAmapMarkerClusterRuntime;
|
|
49
48
|
if (!t) return;
|
|
@@ -52,16 +51,16 @@ var o = "[ui-base] AmapMarkerCluster requires AMap.MarkerCluster plugin. Please
|
|
|
52
51
|
};
|
|
53
52
|
//#endregion
|
|
54
53
|
//#region src/components/Amap/AmapMarkerCluster/AmapMarkerCluster.tsx
|
|
55
|
-
function T(
|
|
56
|
-
let { AMap: l, map: u, mapReady: h } = e(), { data: T, getKey: E, getPosition: D, renderMarker: O, renderCluster: k, clusterOptions: A =
|
|
54
|
+
function T(t) {
|
|
55
|
+
let { AMap: l, map: u, mapReady: h } = e(), { data: T, getKey: E, getPosition: D, renderMarker: O, renderCluster: k, clusterOptions: A = c, markerOffset: j, onError: M } = t, { scheduleInfoWindowOpen: N, scheduleInfoWindowClose: P, closeInfoWindow: F } = n({
|
|
57
56
|
AMap: l,
|
|
58
57
|
map: u,
|
|
59
58
|
mapReady: h
|
|
60
|
-
}), I =
|
|
61
|
-
H.current =
|
|
62
|
-
|
|
63
|
-
}, [F,
|
|
64
|
-
let G =
|
|
59
|
+
}), I = o(null), L = o(/* @__PURE__ */ new Set()), R = o(/* @__PURE__ */ new Map()), z = o(null), B = o(""), V = o(""), H = o(t), U = o([]), W = o(!0);
|
|
60
|
+
H.current = t, i(() => {
|
|
61
|
+
t.markerInfoWindow || F();
|
|
62
|
+
}, [F, t.markerInfoWindow]);
|
|
63
|
+
let G = a(() => {
|
|
65
64
|
let e = [];
|
|
66
65
|
return T.forEach((t, n) => {
|
|
67
66
|
let r = D(t);
|
|
@@ -80,25 +79,25 @@ function T(c) {
|
|
|
80
79
|
D
|
|
81
80
|
]);
|
|
82
81
|
U.current = G.validItems;
|
|
83
|
-
let K =
|
|
82
|
+
let K = r((e) => {
|
|
84
83
|
let t = H.current, n = v(e), r = _(e);
|
|
85
84
|
n !== B.current && (B.current = n, t.onVisibleItemsChange?.(e.map((e) => e.item))), r !== V.current && (V.current = r, t.onMarkerRuntimeChange?.(e));
|
|
86
|
-
}, []), q =
|
|
85
|
+
}, []), q = r(() => {
|
|
87
86
|
B.current = "", V.current = "";
|
|
88
87
|
let e = H.current;
|
|
89
88
|
e.onVisibleItemsChange?.([]), e.onMarkerRuntimeChange?.([]);
|
|
90
|
-
}, []), J =
|
|
89
|
+
}, []), J = r(() => {
|
|
91
90
|
!H.current.onVisibleItemsChange && !H.current.onMarkerRuntimeChange || (z.current && clearTimeout(z.current), z.current = setTimeout(() => {
|
|
92
91
|
z.current = null, K(Array.from(R.current.values()));
|
|
93
92
|
}, 0));
|
|
94
|
-
}, [K]), Y =
|
|
93
|
+
}, [K]), Y = r(() => {
|
|
95
94
|
R.current.clear(), J();
|
|
96
95
|
}, [J]);
|
|
97
|
-
return
|
|
96
|
+
return i(() => {
|
|
98
97
|
if (!l || !u || !h) return;
|
|
99
98
|
let e = l.MarkerCluster || l.MarkerClusterer, t = R.current;
|
|
100
99
|
if (!e) {
|
|
101
|
-
M?.(Error(
|
|
100
|
+
M?.(Error(s));
|
|
102
101
|
return;
|
|
103
102
|
}
|
|
104
103
|
let n = () => {
|
|
@@ -148,8 +147,8 @@ function T(c) {
|
|
|
148
147
|
}
|
|
149
148
|
let r = n.map((e) => new l.Marker({ position: e }));
|
|
150
149
|
u.setFitView?.(r, !1, t.fitOptions?.padding, t.fitOptions?.maxZoom), r.forEach((e) => e.setMap?.(null));
|
|
151
|
-
},
|
|
152
|
-
|
|
150
|
+
}, o = m(A);
|
|
151
|
+
o.renderMarker = (e) => {
|
|
153
152
|
let n = f(e.data)[0], a = H.current;
|
|
154
153
|
if (e.marker) {
|
|
155
154
|
let o = e.marker;
|
|
@@ -170,7 +169,7 @@ function T(c) {
|
|
|
170
169
|
}), J();
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
|
-
},
|
|
172
|
+
}, o.renderClusterMarker = (e) => {
|
|
174
173
|
let t = H.current, n = f(e.data).map((e) => e.extData?.item).filter(Boolean);
|
|
175
174
|
if (e.marker) {
|
|
176
175
|
let i = e.marker;
|
|
@@ -182,7 +181,7 @@ function T(c) {
|
|
|
182
181
|
S(i), x(i, o, s);
|
|
183
182
|
}
|
|
184
183
|
};
|
|
185
|
-
let c = new e(u, U.current,
|
|
184
|
+
let c = new e(u, U.current, o);
|
|
186
185
|
I.current = c, W.current = !0;
|
|
187
186
|
let _ = (e) => {
|
|
188
187
|
let t = e?.marker || e?.target, n = f(e?.clusterData || e?.data).map((e) => e.extData?.item).filter(Boolean);
|
|
@@ -220,7 +219,7 @@ function T(c) {
|
|
|
220
219
|
q,
|
|
221
220
|
P,
|
|
222
221
|
N
|
|
223
|
-
]),
|
|
222
|
+
]), i(() => {
|
|
224
223
|
if (I.current) {
|
|
225
224
|
if (W.current) {
|
|
226
225
|
W.current = !1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../vendors/LocaleContext-CBcJzvUD.js";
|
|
2
2
|
import "../../vendors/ConfigProvider-AQTr7T_c.js";
|
|
3
3
|
import "../AmapContext-CFmsMycg.js";
|
|
4
|
-
import { t as e } from "../AmapProvider-
|
|
4
|
+
import { t as e } from "../AmapProvider-CGedZdvQ.js";
|
|
5
5
|
export { e as AmapProvider, e as default };
|
|
@@ -3,13 +3,13 @@ import { n as t } from "./AmapContext-CFmsMycg.js";
|
|
|
3
3
|
import { Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect as i, useState as a } from "react";
|
|
5
5
|
//#region src/components/Amap/loader.ts
|
|
6
|
-
var o = "2.0", s = "[ui-base] AMap has already been loaded with a different key, version, or securityJsCode.", c = null, l = null, u = null, d = /* @__PURE__ */ new Map(), f = (e = []) => Array.from(new Set(e.filter(Boolean))), p = (e) => e || void 0, m =
|
|
6
|
+
var o = "2.0", s = "[ui-base] AMap has already been loaded with a different key, version, or securityJsCode.", c = null, l = null, u = null, d = /* @__PURE__ */ new Map(), f = (e = []) => Array.from(new Set(e.filter(Boolean))), p = (e) => e || void 0, m = (e) => {
|
|
7
7
|
if (l && (l.key !== e.key || l.version !== e.version || p(l.securityJsCode) !== p(e.securityJsCode))) throw Error(s);
|
|
8
|
-
},
|
|
8
|
+
}, h = (e) => {
|
|
9
9
|
f(e).forEach((e) => {
|
|
10
10
|
d.set(e, { status: "loaded" });
|
|
11
11
|
});
|
|
12
|
-
},
|
|
12
|
+
}, g = async (e, t) => {
|
|
13
13
|
let n = f(t).filter((e) => d.get(e)?.status !== "loaded");
|
|
14
14
|
await Promise.all(n.map((t) => {
|
|
15
15
|
let n = d.get(t);
|
|
@@ -28,7 +28,7 @@ var o = "2.0", s = "[ui-base] AMap has already been loaded with a different key,
|
|
|
28
28
|
promise: r
|
|
29
29
|
}), r;
|
|
30
30
|
}));
|
|
31
|
-
},
|
|
31
|
+
}, _ = async (e) => {
|
|
32
32
|
let t = e.version || o, n = f(e.plugins), r = {
|
|
33
33
|
key: e.key,
|
|
34
34
|
securityJsCode: p(e.securityJsCode),
|
|
@@ -36,43 +36,43 @@ var o = "2.0", s = "[ui-base] AMap has already been loaded with a different key,
|
|
|
36
36
|
};
|
|
37
37
|
if (!e.key) throw Error("[ui-base] AMap key is required.");
|
|
38
38
|
if (typeof window > "u") throw Error("[ui-base] AMap can only be loaded in the browser.");
|
|
39
|
-
if (window.AMap || (u = null, l = null, c = null, d.clear()),
|
|
39
|
+
if (window.AMap || (u = null, l = null, c = null, d.clear()), m(r), r.securityJsCode && (window._AMapSecurityConfig = { securityJsCode: r.securityJsCode }), u || window.AMap) {
|
|
40
40
|
let e = u || window.AMap;
|
|
41
|
-
return u = e, l = r, await
|
|
41
|
+
return u = e, l = r, await g(e, n), e;
|
|
42
42
|
}
|
|
43
|
-
c ||= (
|
|
43
|
+
c ||= import("@amap/amap-jsapi-loader").then((r) => (r.default ?? r).load({
|
|
44
44
|
key: e.key,
|
|
45
45
|
version: t,
|
|
46
46
|
plugins: n
|
|
47
|
-
}).then((e) => (u = e, l = r, window.AMap = e,
|
|
47
|
+
})).then((e) => (u = e, l = r, window.AMap = e, h(n), e)).catch((e) => {
|
|
48
48
|
throw c = null, u = null, l = null, d.clear(), e;
|
|
49
49
|
});
|
|
50
50
|
let i = await c;
|
|
51
|
-
return await
|
|
52
|
-
},
|
|
53
|
-
function
|
|
54
|
-
let s = e(), { amapKey: c, securityJsCode: l, version: u, plugins: d =
|
|
51
|
+
return await g(i, n), i;
|
|
52
|
+
}, v = (e = []) => Array.from(new Set(e.filter(Boolean))), y = [], b = "", x = (e, t) => typeof e == "function" ? e(t) : e ?? null, S = (e) => e ? v(e.split(b)) : y;
|
|
53
|
+
function C(o) {
|
|
54
|
+
let s = e(), { amapKey: c, securityJsCode: l, version: u, plugins: d = y, fallback: f = null, errorFallback: p = null, children: m } = o, h = s.amap, g = [...h?.plugins || y, ...d].filter(Boolean).join(b), [v, C] = a({
|
|
55
55
|
AMap: null,
|
|
56
56
|
status: "idle",
|
|
57
57
|
loading: !1,
|
|
58
58
|
error: null,
|
|
59
|
-
plugins:
|
|
59
|
+
plugins: S(g)
|
|
60
60
|
});
|
|
61
61
|
return i(() => {
|
|
62
|
-
let e = !1, t =
|
|
63
|
-
return
|
|
62
|
+
let e = !1, t = S(g);
|
|
63
|
+
return C({
|
|
64
64
|
AMap: null,
|
|
65
65
|
status: "loading",
|
|
66
66
|
loading: !0,
|
|
67
67
|
error: null,
|
|
68
68
|
plugins: t
|
|
69
|
-
}),
|
|
69
|
+
}), _({
|
|
70
70
|
key: c || h?.key || "",
|
|
71
71
|
securityJsCode: l ?? h?.securityJsCode,
|
|
72
72
|
version: u || h?.version,
|
|
73
73
|
plugins: t
|
|
74
74
|
}).then((n) => {
|
|
75
|
-
e ||
|
|
75
|
+
e || C({
|
|
76
76
|
AMap: n,
|
|
77
77
|
status: "success",
|
|
78
78
|
loading: !1,
|
|
@@ -80,7 +80,7 @@ function w(o) {
|
|
|
80
80
|
plugins: t
|
|
81
81
|
});
|
|
82
82
|
}).catch((n) => {
|
|
83
|
-
e ||
|
|
83
|
+
e || C({
|
|
84
84
|
AMap: null,
|
|
85
85
|
status: "error",
|
|
86
86
|
loading: !1,
|
|
@@ -98,10 +98,10 @@ function w(o) {
|
|
|
98
98
|
g,
|
|
99
99
|
l,
|
|
100
100
|
u
|
|
101
|
-
]),
|
|
102
|
-
value:
|
|
101
|
+
]), v.loading ? /* @__PURE__ */ r(n, { children: f }) : v.error ? /* @__PURE__ */ r(n, { children: x(p, v.error) }) : v.status === "success" ? /* @__PURE__ */ r(t.Provider, {
|
|
102
|
+
value: v,
|
|
103
103
|
children: m
|
|
104
104
|
}) : null;
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
|
-
export {
|
|
107
|
+
export { C as t };
|
package/dist/Amap/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../vendors/LocaleContext-CBcJzvUD.js";
|
|
2
2
|
import "../vendors/ConfigProvider-AQTr7T_c.js";
|
|
3
3
|
import "./AmapContext-CFmsMycg.js";
|
|
4
|
-
import { t as e } from "./AmapProvider-
|
|
4
|
+
import { t as e } from "./AmapProvider-CGedZdvQ.js";
|
|
5
5
|
import { t } from "./Amap-Dnvu_pUP.js";
|
|
6
6
|
import { n, t as r } from "./hooks-DwRvpafb.js";
|
|
7
7
|
import { t as i } from "./AmapCircle-Wfn43qco.js";
|
|
8
|
-
import "./useMarkerInfoWindowController-
|
|
9
|
-
import { t as a } from "./AmapMarker-
|
|
10
|
-
import { t as o } from "./AmapMarkerCluster-
|
|
8
|
+
import "./useMarkerInfoWindowController-BvP2jo7K.js";
|
|
9
|
+
import { t as a } from "./AmapMarker-CMlzx_nj.js";
|
|
10
|
+
import { t as o } from "./AmapMarkerCluster-MDUfcIqP.js";
|
|
11
11
|
export { t as Amap, i as AmapCircle, a as AmapMarker, o as AmapMarkerCluster, e as AmapProvider, n as useAmap, r as useCurrentLocation };
|
|
@@ -2,10 +2,10 @@ import { Fragment as e, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { useCallback as n, useEffect as r, useRef as i } from "react";
|
|
3
3
|
import { createRoot as a } from "react-dom/client";
|
|
4
4
|
import { flushSync as o } from "react-dom";
|
|
5
|
-
//#region src/components/Amap/
|
|
6
|
-
var s = (e) => {
|
|
5
|
+
//#region src/components/Amap/utils/constants.ts
|
|
6
|
+
var s = "bottom-center", c = (e) => {
|
|
7
7
|
queueMicrotask(() => e.unmount());
|
|
8
|
-
},
|
|
8
|
+
}, l = "bottom-center", u = 250, d = (e, t) => Array.isArray(t) && typeof e.Pixel == "function" ? new e.Pixel(t[0], t[1]) : t, f = (e) => e.options?.offset !== void 0 && e.options?.offset !== null, p = ({ AMap: s, map: p, mapReady: m }) => {
|
|
9
9
|
let h = i(null), g = i(null), _ = i(null), v = i(null), y = i(!1), b = i({
|
|
10
10
|
openDelay: null,
|
|
11
11
|
openFrame: null,
|
|
@@ -17,18 +17,18 @@ var s = (e) => {
|
|
|
17
17
|
}, []), w = n(() => {
|
|
18
18
|
S(), C(), v.current = null, x.current = !1, h.current?.close?.();
|
|
19
19
|
}, [C, S]), T = n(() => {
|
|
20
|
-
w(), _.current && (_.current.onmouseenter = null, _.current.onmouseleave = null), g.current &&
|
|
20
|
+
w(), _.current && (_.current.onmouseenter = null, _.current.onmouseleave = null), g.current && c(g.current), g.current = null, _.current = null, h.current = null, y.current = !1;
|
|
21
21
|
}, [w]), E = n(() => {
|
|
22
22
|
S(), C(), b.current.closeDelay = window.setTimeout(() => {
|
|
23
23
|
b.current.closeDelay = null, !x.current && w();
|
|
24
|
-
},
|
|
24
|
+
}, u);
|
|
25
25
|
}, [
|
|
26
26
|
C,
|
|
27
27
|
S,
|
|
28
28
|
w
|
|
29
29
|
]), D = n((e) => {
|
|
30
|
-
if (!e || !
|
|
31
|
-
let t =
|
|
30
|
+
if (!e || !s || !p || !m) return null;
|
|
31
|
+
let t = f(e);
|
|
32
32
|
if (y.current && !t && h.current && _.current && g.current && T(), h.current && _.current && g.current) return {
|
|
33
33
|
infoWindow: h.current,
|
|
34
34
|
contentElement: _.current,
|
|
@@ -38,10 +38,10 @@ var s = (e) => {
|
|
|
38
38
|
...e.options,
|
|
39
39
|
autoMove: !1,
|
|
40
40
|
isCustom: !0,
|
|
41
|
-
anchor:
|
|
41
|
+
anchor: l
|
|
42
42
|
};
|
|
43
|
-
t && (r.offset =
|
|
44
|
-
let i = new
|
|
43
|
+
t && (r.offset = d(s, e.options?.offset));
|
|
44
|
+
let i = new s.InfoWindow(r), o = a(n);
|
|
45
45
|
return n.onmouseenter = () => {
|
|
46
46
|
x.current = !0, C();
|
|
47
47
|
}, n.onmouseleave = () => {
|
|
@@ -52,30 +52,30 @@ var s = (e) => {
|
|
|
52
52
|
contentRoot: o
|
|
53
53
|
};
|
|
54
54
|
}, [
|
|
55
|
-
|
|
55
|
+
s,
|
|
56
56
|
C,
|
|
57
57
|
p,
|
|
58
58
|
m,
|
|
59
59
|
T,
|
|
60
60
|
E
|
|
61
61
|
]), O = n((n, r) => {
|
|
62
|
-
!n || !r || !
|
|
62
|
+
!n || !r || !s || !p || !m || (v.current = n, C(), S(), b.current.openDelay = window.setTimeout(() => {
|
|
63
63
|
b.current.openDelay = null;
|
|
64
64
|
let i = D(r);
|
|
65
65
|
if (!i || v.current !== n) return;
|
|
66
|
-
let { infoWindow: a, contentElement:
|
|
67
|
-
if (a.setAnchor?.(
|
|
68
|
-
let e =
|
|
66
|
+
let { infoWindow: a, contentElement: c, contentRoot: u } = i, m = f(r);
|
|
67
|
+
if (a.setAnchor?.(l), m) {
|
|
68
|
+
let e = d(s, r.options?.offset);
|
|
69
69
|
a.setOffset?.(e);
|
|
70
70
|
}
|
|
71
71
|
o(() => {
|
|
72
|
-
|
|
73
|
-
}), a.setContent?.(
|
|
72
|
+
u.render(/* @__PURE__ */ t(e, { children: r.content }));
|
|
73
|
+
}), a.setContent?.(c), b.current.openFrame = window.requestAnimationFrame(() => {
|
|
74
74
|
b.current.openFrame = null, v.current === n && a.open?.(p, n.getPosition?.());
|
|
75
75
|
});
|
|
76
|
-
},
|
|
76
|
+
}, u));
|
|
77
77
|
}, [
|
|
78
|
-
|
|
78
|
+
s,
|
|
79
79
|
C,
|
|
80
80
|
S,
|
|
81
81
|
D,
|
|
@@ -83,7 +83,7 @@ var s = (e) => {
|
|
|
83
83
|
m
|
|
84
84
|
]);
|
|
85
85
|
return r(() => () => {
|
|
86
|
-
w(), _.current && (_.current.onmouseenter = null, _.current.onmouseleave = null), g.current &&
|
|
86
|
+
w(), _.current && (_.current.onmouseenter = null, _.current.onmouseleave = null), g.current && c(g.current), g.current = null, _.current = null, h.current = null, y.current = !1;
|
|
87
87
|
}, [w]), {
|
|
88
88
|
scheduleInfoWindowOpen: O,
|
|
89
89
|
scheduleInfoWindowClose: E,
|
|
@@ -91,4 +91,4 @@ var s = (e) => {
|
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
//#endregion
|
|
94
|
-
export {
|
|
94
|
+
export { s as n, p as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
-
import { n as t } from "./context-
|
|
3
|
-
import { p as n } from "./layout-
|
|
2
|
+
import { n as t } from "./context-CBJnz0IH.js";
|
|
3
|
+
import { p as n } from "./layout-BglMom3m.js";
|
|
4
4
|
import { getTimeZoneLabel as r } from "./utils/index.js";
|
|
5
|
-
import { n as i, t as a } from "./EventCard-
|
|
5
|
+
import { n as i, t as a } from "./EventCard-CvEnWcKd.js";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
import { useMemo as c, useState as l } from "react";
|
|
8
8
|
import u from "clsx";
|
|
@@ -2,16 +2,16 @@ import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
|
2
2
|
import { t } from "../vendors/useLocale-DZ8XW2VL.js";
|
|
3
3
|
import { t as n } from "../Segmented/Segmented-Ck2ZmfF7.js";
|
|
4
4
|
import { t as r } from "../Tooltip/Tooltip-DWWWYn1a.js";
|
|
5
|
-
import { i, n as a, r as o, t as s } from "./context-
|
|
6
|
-
import { t as c } from "../DatePicker/DatePicker-
|
|
7
|
-
import { C as l, S as u, _ as d, a as f, b as p, d as m, i as h, o as g, p as _, r as v, s as y, t as b, x, y as S } from "./layout-
|
|
5
|
+
import { i, n as a, r as o, t as s } from "./context-CBJnz0IH.js";
|
|
6
|
+
import { t as c } from "../DatePicker/DatePicker-C_ssCNGN.js";
|
|
7
|
+
import { C as l, S as u, _ as d, a as f, b as p, d as m, i as h, o as g, p as _, r as v, s as y, t as b, x, y as S } from "./layout-BglMom3m.js";
|
|
8
8
|
import { formatCalendarDayNumber as C, formatFullDate as w, formatWeekEndDate as T, formatYearMonth as E, getCurrentTimeInTZ as D, getDynamicMonthViewDates as O, getTimeZoneLabel as k, getTotalHeight as A, getVisibleRangeByMode as ee, getWeekEnd as te, getWeekStart as j, getZoomConfig as M, isCurrentMonth as N, layoutTimedEventsForWeek as P, shiftDateByMode as ne } from "./utils/index.js";
|
|
9
|
-
import { t as F } from "./TimeAxis-
|
|
10
|
-
import { t as I } from "./TimeGrid-
|
|
11
|
-
import { t as L } from "./CurrentTimeIndicator-
|
|
12
|
-
import { n as R, r as z, t as B } from "./EventCard-
|
|
13
|
-
import { t as V } from "./AllDaySection-
|
|
14
|
-
import { a as re, i as ie, r as ae } from "./theme-
|
|
9
|
+
import { t as F } from "./TimeAxis-D7bgZDKs.js";
|
|
10
|
+
import { t as I } from "./TimeGrid-DPtU6Qvo.js";
|
|
11
|
+
import { t as L } from "./CurrentTimeIndicator-twXtFHIp.js";
|
|
12
|
+
import { n as R, r as z, t as B } from "./EventCard-CvEnWcKd.js";
|
|
13
|
+
import { t as V } from "./AllDaySection-Bd5Po_DI.js";
|
|
14
|
+
import { a as re, i as ie, r as ae } from "./theme-BRVmxhqD.js";
|
|
15
15
|
import { jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
16
16
|
import { useCallback as W, useEffect as G, useMemo as K, useRef as q, useState as J } from "react";
|
|
17
17
|
import Y from "clsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../Tooltip/Tooltip-DWWWYn1a.js";
|
|
2
|
-
import { i as t, n, t as r } from "./context-
|
|
3
|
-
import { m as i } from "./layout-
|
|
2
|
+
import { i as t, n, t as r } from "./context-CBJnz0IH.js";
|
|
3
|
+
import { m as i } from "./layout-BglMom3m.js";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
import { memo as s, useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
6
6
|
import p from "clsx";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../context-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../context-CBJnz0IH.js";
|
|
2
2
|
export { n as CalendarDispatchContext, e as CalendarStateContext, r as useCalendarDispatchSelector, t as useCalendarStateSelector };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -5,17 +5,17 @@ import "../vendors/useLocale-DZ8XW2VL.js";
|
|
|
5
5
|
import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
6
6
|
import "../Segmented/Segmented-Ck2ZmfF7.js";
|
|
7
7
|
import "../Tooltip/Tooltip-DWWWYn1a.js";
|
|
8
|
-
import "./context-
|
|
9
|
-
import { t as e } from "./Calendar-
|
|
10
|
-
import "../DatePicker/DatePicker-
|
|
11
|
-
import "../DatePicker/ensureDayjsPlugins-
|
|
12
|
-
import "../DatePicker/pickerLocale-
|
|
13
|
-
import "../DatePicker/style-
|
|
14
|
-
import "./layout-
|
|
15
|
-
import "./TimeAxis-
|
|
16
|
-
import "./TimeGrid-
|
|
17
|
-
import "./CurrentTimeIndicator-
|
|
18
|
-
import "./EventCard-
|
|
19
|
-
import "./AllDaySection-
|
|
20
|
-
import { a as t, n } from "./theme-
|
|
8
|
+
import "./context-CBJnz0IH.js";
|
|
9
|
+
import { t as e } from "./Calendar-Bs4S-6rW.js";
|
|
10
|
+
import "../DatePicker/DatePicker-C_ssCNGN.js";
|
|
11
|
+
import "../DatePicker/ensureDayjsPlugins-CVL-fnAl.js";
|
|
12
|
+
import "../DatePicker/pickerLocale-BeMlfhKu.js";
|
|
13
|
+
import "../DatePicker/style-BwmM26RP.js";
|
|
14
|
+
import "./layout-BglMom3m.js";
|
|
15
|
+
import "./TimeAxis-D7bgZDKs.js";
|
|
16
|
+
import "./TimeGrid-DPtU6Qvo.js";
|
|
17
|
+
import "./CurrentTimeIndicator-twXtFHIp.js";
|
|
18
|
+
import "./EventCard-CvEnWcKd.js";
|
|
19
|
+
import "./AllDaySection-Bd5Po_DI.js";
|
|
20
|
+
import { a as t, n } from "./theme-BRVmxhqD.js";
|
|
21
21
|
export { e as Calendar, e as default, t as resolveCalendarThemeVars, n as resolvePlatformCalendarTheme };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../Icon/Icon-SQ5tu-yG.js";
|
|
2
2
|
import "../../../Tooltip/Tooltip-DWWWYn1a.js";
|
|
3
|
-
import "../../context-
|
|
4
|
-
import "../../../DatePicker/ensureDayjsPlugins-
|
|
5
|
-
import "../../layout-
|
|
6
|
-
import "../../EventCard-
|
|
7
|
-
import { t as e } from "../../AllDaySection-
|
|
3
|
+
import "../../context-CBJnz0IH.js";
|
|
4
|
+
import "../../../DatePicker/ensureDayjsPlugins-CVL-fnAl.js";
|
|
5
|
+
import "../../layout-BglMom3m.js";
|
|
6
|
+
import "../../EventCard-CvEnWcKd.js";
|
|
7
|
+
import { t as e } from "../../AllDaySection-Bd5Po_DI.js";
|
|
8
8
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../Tooltip/Tooltip-DWWWYn1a.js";
|
|
2
|
-
import "../../../DatePicker/ensureDayjsPlugins-
|
|
3
|
-
import "../../layout-
|
|
4
|
-
import { t as e } from "../../CurrentTimeIndicator-
|
|
2
|
+
import "../../../DatePicker/ensureDayjsPlugins-CVL-fnAl.js";
|
|
3
|
+
import "../../layout-BglMom3m.js";
|
|
4
|
+
import { t as e } from "../../CurrentTimeIndicator-twXtFHIp.js";
|
|
5
5
|
export { e as default };
|