@burdenoff/microfe-calendar 2026.626.2 → 2026.704.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/components/EventBlock.js +6 -5
- package/dist/components/EventBlock.js.map +1 -1
- package/dist/components/TaskEventDetail.js +107 -0
- package/dist/components/TaskEventDetail.js.map +1 -0
- package/dist/graphql/calendarDocuments.js +50 -24
- package/dist/graphql/calendarDocuments.js.map +1 -1
- package/dist/hooks/useEvents.js +149 -46
- package/dist/hooks/useEvents.js.map +1 -1
- package/dist/hooks/useOpenEvent.js +9 -5
- package/dist/hooks/useOpenEvent.js.map +1 -1
- package/dist/pages/CalendarPage.js +192 -141
- package/dist/pages/CalendarPage.js.map +1 -1
- package/dist/pages/ResourcesPage.js.map +1 -1
- package/dist/providers/CalendarProvider.js +12 -10
- package/dist/providers/CalendarProvider.js.map +1 -1
- package/dist/store/calendarStore.js +3 -0
- package/dist/store/calendarStore.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useCalendar as e } from "../providers/CalendarProvider.js";
|
|
2
2
|
import { useGetCalendarsQuery as t } from "../generated/wspace-operations.js";
|
|
3
3
|
import { useCalendarStore as n } from "../store/calendarStore.js";
|
|
4
|
-
import { useSafePermissions as
|
|
5
|
-
import { formatDate as
|
|
6
|
-
import { WeekView as
|
|
4
|
+
import { useSafePermissions as r } from "../hooks/useSafePermissions.js";
|
|
5
|
+
import { formatDate as i } from "../utils/dateHelpers.js";
|
|
6
|
+
import { WeekView as ee } from "../components/WeekView.js";
|
|
7
7
|
import { MonthView as a } from "../components/MonthView.js";
|
|
8
8
|
import { DayView as o } from "../components/DayView.js";
|
|
9
9
|
import { AgendaView as s } from "../components/AgendaView.js";
|
|
@@ -11,290 +11,341 @@ import { YearView as c } from "../components/YearView.js";
|
|
|
11
11
|
import { TimelineView as l } from "../components/TimelineView.js";
|
|
12
12
|
import { ViewSwitcher as u } from "../components/ViewSwitcher.js";
|
|
13
13
|
import { MiniCalendar as d } from "../components/MiniCalendar.js";
|
|
14
|
-
import { EventFormModal as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
14
|
+
import { EventFormModal as f } from "../components/EventFormModal.js";
|
|
15
|
+
import { TaskEventDetail as p } from "../components/TaskEventDetail.js";
|
|
16
|
+
import { CALENDAR_PERMISSIONS as m } from "../constants/permissions.js";
|
|
17
|
+
import { useEffect as h, useState as g } from "react";
|
|
18
|
+
import { AccessDenied as _ } from "@burdenoff/fe-libs/shared/components";
|
|
19
|
+
import { useI18n as v } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
20
|
+
import { CalendarPlus as y, ChevronLeft as b, ChevronRight as te, DoorOpen as ne, PanelLeft as re, Plus as ie, Rss as ae, Search as oe, Settings2 as x } from "lucide-react";
|
|
21
|
+
import { useParams as se } from "react-router-dom";
|
|
22
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
23
|
+
import { AuroraBackground as w, GradientText as T, NextSteps as E, PagePurpose as D } from "@burdenoff/fe-libs/ui";
|
|
23
24
|
//#region src/pages/CalendarPage.tsx
|
|
24
|
-
function
|
|
25
|
-
let { viewType:
|
|
26
|
-
let n =
|
|
25
|
+
function O() {
|
|
26
|
+
let { viewType: O } = se(), { hasPermission: k, isLoading: A } = r(), { navigate: j, basePath: M, taskOverlay: N } = e(), P = n((e) => e.currentView), F = n((e) => e.currentDate), I = n((e) => e.setView), L = n((e) => e.navigateDate), ce = n((e) => e.miniCalendarVisible), R = n((e) => e.toggleMiniCalendar), z = n((e) => e.visibleCalendars), B = n((e) => e.setVisibleCalendars), V = n((e) => e.eventFilter), H = n((e) => e.updateEventFilter), { t: U } = v(), W = (e, t) => {
|
|
27
|
+
let n = U(e);
|
|
27
28
|
return n === e ? t : n;
|
|
28
|
-
}, [
|
|
29
|
-
|
|
29
|
+
}, [G, K] = g(!1), [q, J] = g(null), Y = k(m.CALENDAR_EVENT_CREATE), X = Y ? (e, t) => {
|
|
30
|
+
J({
|
|
30
31
|
date: e,
|
|
31
32
|
hour: t ?? 9
|
|
32
|
-
}),
|
|
33
|
-
} : void 0, { data:
|
|
33
|
+
}), K(!0);
|
|
34
|
+
} : void 0, { data: le } = t({
|
|
34
35
|
variables: { pagination: { limit: 50 } },
|
|
35
|
-
skip:
|
|
36
|
-
}),
|
|
37
|
-
let t = new Set(
|
|
38
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
36
|
+
skip: A
|
|
37
|
+
}), Z = le?.calendars?.calendars ?? [], Q = z.size > 0 ? z : new Set(Z.map((e) => e.id)), $ = (e) => {
|
|
38
|
+
let t = new Set(Q);
|
|
39
|
+
t.has(e) ? t.delete(e) : t.add(e), B(Array.from(t));
|
|
39
40
|
};
|
|
40
|
-
return
|
|
41
|
-
|
|
41
|
+
return h(() => {
|
|
42
|
+
O && O !== P && I(O);
|
|
42
43
|
}, [
|
|
43
|
-
|
|
44
|
+
O,
|
|
44
45
|
P,
|
|
45
46
|
I
|
|
46
|
-
]),
|
|
47
|
+
]), A ? /* @__PURE__ */ S("div", {
|
|
47
48
|
className: "@container min-h-screen bg-bg-canvas flex items-center justify-center",
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ S("p", {
|
|
49
50
|
className: "font-text-md text-text-secondary",
|
|
50
|
-
children:
|
|
51
|
+
children: W("calendar.loading", "Loading...")
|
|
51
52
|
})
|
|
52
|
-
}) :
|
|
53
|
+
}) : k(m.CALENDAR_READ) ? /* @__PURE__ */ C("div", {
|
|
53
54
|
className: "@container min-h-screen bg-bg-canvas",
|
|
54
55
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ C("header", {
|
|
56
57
|
className: "relative overflow-hidden border-b border-border-seam bg-bg-surface px-page-padding py-element-padding",
|
|
57
58
|
children: [
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ S(w, { intensity: "subtle" }),
|
|
60
|
+
/* @__PURE__ */ C("div", {
|
|
60
61
|
className: "flex flex-col @lg:flex-row @lg:items-center @lg:justify-between gap-stack-gap",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
62
|
+
children: [/* @__PURE__ */ C("div", {
|
|
62
63
|
className: "flex items-center gap-inline-gap",
|
|
63
64
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ S("button", {
|
|
65
66
|
type: "button",
|
|
66
|
-
onClick:
|
|
67
|
+
onClick: R,
|
|
67
68
|
className: "size-9 inline-flex items-center justify-center rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary transition-colors",
|
|
68
|
-
"aria-label":
|
|
69
|
-
children: /* @__PURE__ */
|
|
69
|
+
"aria-label": W("calendar.toggleSidebar", "Toggle sidebar"),
|
|
70
|
+
children: /* @__PURE__ */ S(re, { className: "size-4" })
|
|
70
71
|
}),
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ S("button", {
|
|
72
73
|
type: "button",
|
|
73
74
|
onClick: () => L("today"),
|
|
74
75
|
className: "px-element-padding py-element-padding-sm rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated font-text-sm font-weight-medium text-text-primary transition-colors",
|
|
75
|
-
children:
|
|
76
|
+
children: W("calendar.today", "Today")
|
|
76
77
|
}),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ C("div", {
|
|
78
79
|
className: "flex items-center gap-inline-gap-sm",
|
|
79
|
-
children: [/* @__PURE__ */
|
|
80
|
+
children: [/* @__PURE__ */ S("button", {
|
|
80
81
|
type: "button",
|
|
81
82
|
onClick: () => L("prev"),
|
|
82
83
|
className: "size-9 inline-flex items-center justify-center rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary transition-colors",
|
|
83
|
-
"aria-label":
|
|
84
|
-
children: /* @__PURE__ */
|
|
85
|
-
}), /* @__PURE__ */
|
|
84
|
+
"aria-label": W("calendar.previous", "Previous"),
|
|
85
|
+
children: /* @__PURE__ */ S(b, { className: "size-4" })
|
|
86
|
+
}), /* @__PURE__ */ S("button", {
|
|
86
87
|
type: "button",
|
|
87
88
|
onClick: () => L("next"),
|
|
88
89
|
className: "size-9 inline-flex items-center justify-center rounded-radius-md border border-border-default bg-bg-surface hover:bg-bg-elevated text-text-primary transition-colors",
|
|
89
|
-
"aria-label":
|
|
90
|
-
children: /* @__PURE__ */
|
|
90
|
+
"aria-label": W("calendar.next", "Next"),
|
|
91
|
+
children: /* @__PURE__ */ S(te, { className: "size-4" })
|
|
91
92
|
})]
|
|
92
93
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ S("h2", {
|
|
94
95
|
className: "font-heading-md text-text-primary tabular-nums",
|
|
95
|
-
children: /* @__PURE__ */
|
|
96
|
+
children: /* @__PURE__ */ S(T, { children: i(F) })
|
|
96
97
|
})
|
|
97
98
|
]
|
|
98
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ C("div", {
|
|
99
100
|
className: "flex items-center gap-inline-gap",
|
|
100
|
-
children: [/* @__PURE__ */
|
|
101
|
+
children: [/* @__PURE__ */ S(u, {}), Y ? /* @__PURE__ */ C("button", {
|
|
101
102
|
type: "button",
|
|
102
103
|
onClick: () => {
|
|
103
|
-
|
|
104
|
+
J(null), K(!0);
|
|
104
105
|
},
|
|
105
106
|
className: "inline-flex items-center gap-inline-gap-sm px-element-padding py-element-padding-sm rounded-radius-md bg-action-primary-bg text-action-primary-fg font-text-sm font-weight-medium hover:bg-action-primary-bg-hover transition-colors",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ S(ie, { className: "size-4" }), /* @__PURE__ */ S("span", {
|
|
107
108
|
className: "hidden @sm:inline",
|
|
108
|
-
children:
|
|
109
|
+
children: W("calendar.createEvent", "Create Event")
|
|
109
110
|
})]
|
|
110
111
|
}) : null]
|
|
111
112
|
})]
|
|
112
113
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ S(D, {
|
|
114
115
|
className: "relative mt-element-padding max-w-3xl",
|
|
115
|
-
children:
|
|
116
|
+
children: W("calendar.pagePurpose", "Your shared schedule. See, create, and manage events across day, week, month, agenda, and timeline views — then toggle calendars, search, and overlay scheduled jobs from the sidebar so the whole team stays in sync.")
|
|
116
117
|
})
|
|
117
118
|
]
|
|
118
119
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
+
/* @__PURE__ */ C("div", {
|
|
120
121
|
className: "flex min-h-0 flex-1",
|
|
121
|
-
children: [
|
|
122
|
+
children: [ce && /* @__PURE__ */ C("aside", {
|
|
122
123
|
className: "hidden @lg:block w-72 border-r border-border-seam bg-bg-surface p-section-padding space-y-5",
|
|
123
124
|
children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ S(d, {}),
|
|
126
|
+
/* @__PURE__ */ C("div", {
|
|
126
127
|
className: "space-y-3",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
128
|
+
children: [/* @__PURE__ */ C("div", {
|
|
128
129
|
className: "flex items-center gap-2",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ S(oe, { className: "size-4 text-text-secondary" }), /* @__PURE__ */ S("input", {
|
|
130
131
|
type: "search",
|
|
131
|
-
value:
|
|
132
|
-
onChange: (e) =>
|
|
133
|
-
placeholder:
|
|
134
|
-
"aria-label":
|
|
132
|
+
value: V.search ?? "",
|
|
133
|
+
onChange: (e) => H({ search: e.target.value.trim() || void 0 }),
|
|
134
|
+
placeholder: W("calendar.searchEvents", "Search events, tags, or calendars"),
|
|
135
|
+
"aria-label": W("calendar.searchEvents", "Search events, tags, or calendars"),
|
|
135
136
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
|
|
136
137
|
})]
|
|
137
|
-
}), /* @__PURE__ */
|
|
138
|
-
value:
|
|
139
|
-
onChange: (e) =>
|
|
138
|
+
}), /* @__PURE__ */ C("select", {
|
|
139
|
+
value: V.status?.[0] ?? "",
|
|
140
|
+
onChange: (e) => H({ status: e.target.value ? [e.target.value] : void 0 }),
|
|
140
141
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
141
142
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ S("option", {
|
|
143
144
|
value: "",
|
|
144
|
-
children:
|
|
145
|
+
children: W("calendar.allStatuses", "All statuses")
|
|
145
146
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ S("option", {
|
|
147
148
|
value: "CONFIRMED",
|
|
148
|
-
children:
|
|
149
|
+
children: W("calendar.eventStatusConfirmed", "Confirmed")
|
|
149
150
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ S("option", {
|
|
151
152
|
value: "TENTATIVE",
|
|
152
|
-
children:
|
|
153
|
+
children: W("calendar.eventStatusTentative", "Tentative")
|
|
153
154
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ S("option", {
|
|
155
156
|
value: "CANCELLED",
|
|
156
|
-
children:
|
|
157
|
+
children: W("calendar.eventStatusCancelled", "Cancelled")
|
|
157
158
|
})
|
|
158
159
|
]
|
|
159
160
|
})]
|
|
160
161
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ C("div", {
|
|
162
163
|
className: "space-y-3",
|
|
163
164
|
children: [
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ C("div", {
|
|
165
166
|
className: "flex items-center justify-between",
|
|
166
|
-
children: [/* @__PURE__ */
|
|
167
|
+
children: [/* @__PURE__ */ S("h3", {
|
|
167
168
|
className: "font-text-sm font-weight-semibold text-text-primary",
|
|
168
|
-
children:
|
|
169
|
-
}), /* @__PURE__ */
|
|
169
|
+
children: W("calendar.visibleCalendars", "Visible calendars")
|
|
170
|
+
}), /* @__PURE__ */ S("button", {
|
|
170
171
|
type: "button",
|
|
171
|
-
onClick: () =>
|
|
172
|
+
onClick: () => B([]),
|
|
172
173
|
className: "font-text-xs text-action-primary-bg hover:underline",
|
|
173
|
-
children:
|
|
174
|
+
children: W("calendar.showAll", "Show all")
|
|
174
175
|
})]
|
|
175
176
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ S("div", {
|
|
177
178
|
className: "space-y-2 max-h-[280px] overflow-auto pr-1",
|
|
178
|
-
children:
|
|
179
|
+
children: Z.map((e) => /* @__PURE__ */ C("label", {
|
|
179
180
|
className: "flex items-center gap-3 rounded-radius-md border border-border-subtle px-3 py-2 hover:bg-bg-canvas",
|
|
180
181
|
children: [
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ S("input", {
|
|
182
183
|
type: "checkbox",
|
|
183
|
-
checked:
|
|
184
|
-
onChange: () =>
|
|
184
|
+
checked: Q.has(e.id),
|
|
185
|
+
onChange: () => $(e.id),
|
|
185
186
|
className: "size-4 rounded border-border-default",
|
|
186
187
|
"aria-label": e.name
|
|
187
188
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ S("span", {
|
|
189
190
|
className: "size-3 rounded-full shrink-0",
|
|
190
191
|
style: { backgroundColor: e.color ?? "var(--color-action-primary-bg)" }
|
|
191
192
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ S("span", {
|
|
193
194
|
className: "min-w-0 flex-1 truncate font-text-sm text-text-primary",
|
|
194
195
|
children: e.name
|
|
195
196
|
})
|
|
196
197
|
]
|
|
197
198
|
}, e.id))
|
|
198
199
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ C("div", {
|
|
200
201
|
className: "rounded-radius-md border border-border-subtle bg-bg-canvas px-3 py-2",
|
|
201
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ S("p", {
|
|
202
203
|
className: "font-text-xs font-weight-semibold text-text-primary mb-1",
|
|
203
|
-
children:
|
|
204
|
-
}), /* @__PURE__ */
|
|
204
|
+
children: W("calendar.schedulerOverlay", "Scheduler overlay")
|
|
205
|
+
}), /* @__PURE__ */ S("p", {
|
|
205
206
|
className: "font-text-xs text-text-secondary",
|
|
206
|
-
children:
|
|
207
|
+
children: W("calendar.schedulerOverlayDescription", "Scheduled jobs from scheduler are shown in calendar views and deep-link to /scheduler.")
|
|
207
208
|
})]
|
|
209
|
+
}),
|
|
210
|
+
N && /* @__PURE__ */ C("div", {
|
|
211
|
+
className: "space-y-2 rounded-radius-md border border-border-subtle px-3 py-2",
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ S("p", {
|
|
214
|
+
className: "font-text-xs font-weight-semibold text-text-primary",
|
|
215
|
+
children: W("calendar.taskOverlay", "Tasks & milestones")
|
|
216
|
+
}),
|
|
217
|
+
/* @__PURE__ */ C("label", {
|
|
218
|
+
className: "flex items-center gap-3 py-1",
|
|
219
|
+
children: [
|
|
220
|
+
/* @__PURE__ */ S("input", {
|
|
221
|
+
type: "checkbox",
|
|
222
|
+
checked: V.showTasks !== !1,
|
|
223
|
+
onChange: (e) => H({ showTasks: e.target.checked }),
|
|
224
|
+
className: "size-4 rounded border-border-default",
|
|
225
|
+
"aria-label": W("calendar.showTasks", "Show tasks")
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ S("span", {
|
|
228
|
+
className: "size-3 rounded-full shrink-0",
|
|
229
|
+
style: { backgroundColor: "var(--color-accent-blue)" }
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ S("span", {
|
|
232
|
+
className: "min-w-0 flex-1 truncate font-text-sm text-text-primary",
|
|
233
|
+
children: W("calendar.showTasks", "Show tasks")
|
|
234
|
+
})
|
|
235
|
+
]
|
|
236
|
+
}),
|
|
237
|
+
/* @__PURE__ */ C("label", {
|
|
238
|
+
className: "flex items-center gap-3 py-1",
|
|
239
|
+
children: [
|
|
240
|
+
/* @__PURE__ */ S("input", {
|
|
241
|
+
type: "checkbox",
|
|
242
|
+
checked: V.showMilestones !== !1,
|
|
243
|
+
onChange: (e) => H({ showMilestones: e.target.checked }),
|
|
244
|
+
className: "size-4 rounded border-border-default",
|
|
245
|
+
"aria-label": W("calendar.showMilestones", "Show milestones")
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ S("span", {
|
|
248
|
+
className: "size-3 rounded-full shrink-0",
|
|
249
|
+
style: { backgroundColor: "var(--color-accent-purple)" }
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ S("span", {
|
|
252
|
+
className: "min-w-0 flex-1 truncate font-text-sm text-text-primary",
|
|
253
|
+
children: W("calendar.showMilestones", "Show milestones")
|
|
254
|
+
})
|
|
255
|
+
]
|
|
256
|
+
})
|
|
257
|
+
]
|
|
208
258
|
})
|
|
209
259
|
]
|
|
210
260
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ C("div", {
|
|
212
262
|
className: "space-y-2 pt-2 border-t border-border-subtle",
|
|
213
263
|
children: [
|
|
214
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ C("button", {
|
|
215
265
|
type: "button",
|
|
216
|
-
onClick: () =>
|
|
266
|
+
onClick: () => j(`${M}/settings`),
|
|
217
267
|
className: "w-full inline-flex items-center gap-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas hover:bg-bg-elevated text-text-primary font-text-sm",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ S(x, { className: "size-4" }), W("calendar.manageCalendarSettings", "Manage calendar settings")]
|
|
219
269
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ S("button", {
|
|
221
271
|
type: "button",
|
|
222
|
-
onClick: () =>
|
|
272
|
+
onClick: () => j(`${M}/resources`),
|
|
223
273
|
className: "w-full inline-flex items-center gap-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas hover:bg-bg-elevated text-text-primary font-text-sm",
|
|
224
|
-
children:
|
|
274
|
+
children: W("calendar.openResources", "Open resources")
|
|
225
275
|
}),
|
|
226
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ S("button", {
|
|
227
277
|
type: "button",
|
|
228
|
-
onClick: () =>
|
|
278
|
+
onClick: () => j(`${M}/subscriptions`),
|
|
229
279
|
className: "w-full inline-flex items-center gap-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-canvas hover:bg-bg-elevated text-text-primary font-text-sm",
|
|
230
|
-
children:
|
|
280
|
+
children: W("calendar.exportAndSubscriptions", "Export and subscriptions")
|
|
231
281
|
})
|
|
232
282
|
]
|
|
233
283
|
})
|
|
234
284
|
]
|
|
235
|
-
}), /* @__PURE__ */
|
|
285
|
+
}), /* @__PURE__ */ C("div", {
|
|
236
286
|
className: "min-w-0 flex-1 p-page-padding",
|
|
237
287
|
children: [
|
|
238
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ S(E, {
|
|
239
289
|
storageKey: "calendar-overview",
|
|
240
290
|
className: "mb-stack-gap",
|
|
241
291
|
steps: [
|
|
242
|
-
...
|
|
292
|
+
...Y ? [{
|
|
243
293
|
id: "create-event",
|
|
244
|
-
label:
|
|
245
|
-
description:
|
|
246
|
-
icon: /* @__PURE__ */
|
|
294
|
+
label: W("calendar.nextStepCreateEvent", "Create your first event"),
|
|
295
|
+
description: W("calendar.nextStepCreateEventDesc", "Add a meeting, reminder, or all-day event to this calendar."),
|
|
296
|
+
icon: /* @__PURE__ */ S(y, { className: "size-4" }),
|
|
247
297
|
onClick: () => {
|
|
248
|
-
|
|
298
|
+
J(null), K(!0);
|
|
249
299
|
}
|
|
250
300
|
}] : [],
|
|
251
301
|
{
|
|
252
302
|
id: "book-resources",
|
|
253
|
-
label:
|
|
254
|
-
description:
|
|
255
|
-
icon: /* @__PURE__ */
|
|
256
|
-
onClick: () =>
|
|
303
|
+
label: W("calendar.nextStepResources", "Book rooms and resources"),
|
|
304
|
+
description: W("calendar.nextStepResourcesDesc", "Reserve conference rooms, equipment, and desks for your events."),
|
|
305
|
+
icon: /* @__PURE__ */ S(ne, { className: "size-4" }),
|
|
306
|
+
onClick: () => j(`${M}/resources`)
|
|
257
307
|
},
|
|
258
308
|
{
|
|
259
309
|
id: "export-subscribe",
|
|
260
|
-
label:
|
|
261
|
-
description:
|
|
262
|
-
icon: /* @__PURE__ */
|
|
263
|
-
onClick: () =>
|
|
310
|
+
label: W("calendar.nextStepSubscriptions", "Export or subscribe"),
|
|
311
|
+
description: W("calendar.nextStepSubscriptionsDesc", "Download ICS files to sync with Google, Apple, or Outlook calendars."),
|
|
312
|
+
icon: /* @__PURE__ */ S(ae, { className: "size-4" }),
|
|
313
|
+
onClick: () => j(`${M}/subscriptions`)
|
|
264
314
|
},
|
|
265
315
|
{
|
|
266
316
|
id: "tune-settings",
|
|
267
|
-
label:
|
|
268
|
-
description:
|
|
269
|
-
icon: /* @__PURE__ */
|
|
270
|
-
onClick: () =>
|
|
317
|
+
label: W("calendar.nextStepSettings", "Tune your calendar settings"),
|
|
318
|
+
description: W("calendar.nextStepSettingsDesc", "Set availability, sharing, booking pages, and default view."),
|
|
319
|
+
icon: /* @__PURE__ */ S(x, { className: "size-4" }),
|
|
320
|
+
onClick: () => j(`${M}/settings`)
|
|
271
321
|
}
|
|
272
322
|
]
|
|
273
323
|
}),
|
|
274
|
-
P === "day" && /* @__PURE__ */
|
|
275
|
-
P === "week" && /* @__PURE__ */
|
|
276
|
-
P === "month" && /* @__PURE__ */
|
|
277
|
-
P === "year" && /* @__PURE__ */
|
|
278
|
-
P === "agenda" && /* @__PURE__ */
|
|
279
|
-
P === "timeline" && /* @__PURE__ */
|
|
324
|
+
P === "day" && /* @__PURE__ */ S(o, { onCreateSlot: X }),
|
|
325
|
+
P === "week" && /* @__PURE__ */ S(ee, { onCreateSlot: X }),
|
|
326
|
+
P === "month" && /* @__PURE__ */ S(a, { onCreateSlot: X }),
|
|
327
|
+
P === "year" && /* @__PURE__ */ S(c, {}),
|
|
328
|
+
P === "agenda" && /* @__PURE__ */ S(s, {}),
|
|
329
|
+
P === "timeline" && /* @__PURE__ */ S(l, {})
|
|
280
330
|
]
|
|
281
331
|
})]
|
|
282
332
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
open:
|
|
285
|
-
defaultDate:
|
|
286
|
-
defaultStartHour:
|
|
333
|
+
/* @__PURE__ */ S(f, {
|
|
334
|
+
open: G,
|
|
335
|
+
defaultDate: q?.date ?? F,
|
|
336
|
+
defaultStartHour: q?.hour,
|
|
287
337
|
onClose: () => {
|
|
288
|
-
|
|
338
|
+
K(!1), J(null);
|
|
289
339
|
}
|
|
290
|
-
})
|
|
340
|
+
}),
|
|
341
|
+
/* @__PURE__ */ S(p, {})
|
|
291
342
|
]
|
|
292
|
-
}) : /* @__PURE__ */
|
|
293
|
-
title:
|
|
294
|
-
description:
|
|
343
|
+
}) : /* @__PURE__ */ S(_, {
|
|
344
|
+
title: W("calendar.accessDenied", "Access Denied"),
|
|
345
|
+
description: W("calendar.noPermissionViewCalendar", "You don't have permission to view the calendar.")
|
|
295
346
|
});
|
|
296
347
|
}
|
|
297
348
|
//#endregion
|
|
298
|
-
export {
|
|
349
|
+
export { O as CalendarPage };
|
|
299
350
|
|
|
300
351
|
//# sourceMappingURL=CalendarPage.js.map
|