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