@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,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useTr as e } from "../shared/hooks/useTr.js";
|
|
2
|
+
import { useCreateEventMutation as t, useGetCalendarsQuery as n, useUpdateEventMutation as r } from "../generated/wspace-operations.js";
|
|
3
|
+
import { useEffect as i, useMemo as a, useState as o } from "react";
|
|
4
4
|
import { AlignLeft as s, Calendar as c, Clock as l, MapPin as u, Tag as d } from "lucide-react";
|
|
5
5
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
6
|
import { Button as m, OptionalFields as h, ResponsiveDialog as g, ResponsiveDialogContent as _, ResponsiveDialogFooter as v, ResponsiveDialogHeader as y, ResponsiveDialogTitle as b } from "@burdenoff/fe-libs/ui";
|
|
@@ -15,30 +15,27 @@ function C(e, t) {
|
|
|
15
15
|
return (/* @__PURE__ */ new Date(`${e}T${t}:00`)).toISOString();
|
|
16
16
|
}
|
|
17
17
|
var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, onSuccess: k }) => {
|
|
18
|
-
let A = !!T,
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
let A = !!T, j = e(), M = {
|
|
19
|
+
MEETING: j("calendar.meeting", "Meeting"),
|
|
20
|
+
TASK: j("calendar.task", "Task"),
|
|
21
|
+
MILESTONE: j("calendar.milestone", "Milestone"),
|
|
22
|
+
PROMPT: j("calendar.prompt", "Prompt")
|
|
21
23
|
}, N = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
PROMPT: M("calendar.prompt", "Prompt")
|
|
24
|
+
PUBLIC: j("calendar.visibilityPublic", "Public"),
|
|
25
|
+
PRIVATE: j("calendar.visibilityPrivate", "Private"),
|
|
26
|
+
CONFIDENTIAL: j("calendar.visibilityConfidential", "Confidential")
|
|
26
27
|
}, P = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
PHYSICAL: j("calendar.locationPhysical", "Physical"),
|
|
29
|
+
ONLINE: j("calendar.locationOnline", "Online"),
|
|
30
|
+
HYBRID: j("calendar.locationHybrid", "Hybrid"),
|
|
31
|
+
TBD: j("calendar.locationTbd", "To be decided")
|
|
30
32
|
}, F = {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
GOOGLE_MEET: "Google Meet",
|
|
38
|
-
MICROSOFT_TEAMS: "Microsoft Teams",
|
|
39
|
-
WEBEX: "Webex",
|
|
40
|
-
CUSTOM: M("calendar.customMeetingProvider", "Custom")
|
|
41
|
-
}, { data: L } = t({ variables: { pagination: { limit: 50 } } }), R = i(() => L?.calendars?.calendars ?? [], [L?.calendars?.calendars]), [z, { loading: B, error: V }] = e(), [H, { loading: U, error: W }] = n(), G = B || U, K = V || W, { defaultStart: q, defaultEnd: J } = i(() => {
|
|
33
|
+
ZOOM: j("calendar.providerZoom", "Zoom"),
|
|
34
|
+
GOOGLE_MEET: j("calendar.providerGoogleMeet", "Google Meet"),
|
|
35
|
+
MICROSOFT_TEAMS: j("calendar.providerMicrosoftTeams", "Microsoft Teams"),
|
|
36
|
+
WEBEX: j("calendar.providerWebex", "Webex"),
|
|
37
|
+
CUSTOM: j("calendar.customMeetingProvider", "Custom")
|
|
38
|
+
}, { data: I } = n({ variables: { pagination: { limit: 50 } } }), L = a(() => I?.calendars?.calendars ?? [], [I?.calendars?.calendars]), [R, { loading: z, error: B }] = t(), [V, { loading: H, error: U }] = r(), W = z || H, G = B || U, { defaultStart: K, defaultEnd: q } = a(() => {
|
|
42
39
|
let e = E ?? /* @__PURE__ */ new Date(), t = D ?? e.getHours() + 1, n = new Date(e);
|
|
43
40
|
n.setHours(t, 0, 0, 0);
|
|
44
41
|
let r = new Date(n);
|
|
@@ -46,14 +43,14 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
46
43
|
defaultStart: n,
|
|
47
44
|
defaultEnd: r
|
|
48
45
|
};
|
|
49
|
-
}, [E, D]), [
|
|
46
|
+
}, [E, D]), [J, Y] = o({
|
|
50
47
|
title: "",
|
|
51
48
|
description: "",
|
|
52
49
|
calendarId: "",
|
|
53
|
-
startDate: x(
|
|
54
|
-
startTime: S(
|
|
55
|
-
endDate: x(
|
|
56
|
-
endTime: S(
|
|
50
|
+
startDate: x(K),
|
|
51
|
+
startTime: S(K),
|
|
52
|
+
endDate: x(q),
|
|
53
|
+
endTime: S(q),
|
|
57
54
|
allDay: !1,
|
|
58
55
|
location: "",
|
|
59
56
|
locationAddress: "",
|
|
@@ -71,11 +68,11 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
71
68
|
tagsText: "",
|
|
72
69
|
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
73
70
|
});
|
|
74
|
-
|
|
71
|
+
i(() => {
|
|
75
72
|
if (T) {
|
|
76
73
|
let e = T;
|
|
77
74
|
Promise.resolve().then(() => {
|
|
78
|
-
|
|
75
|
+
Y({
|
|
79
76
|
title: e.title,
|
|
80
77
|
description: e.description ?? "",
|
|
81
78
|
calendarId: e.calendarId,
|
|
@@ -102,9 +99,9 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
102
99
|
});
|
|
103
100
|
});
|
|
104
101
|
} else {
|
|
105
|
-
let e =
|
|
102
|
+
let e = L.find((e) => e.isDefault) ?? L[0];
|
|
106
103
|
Promise.resolve().then(() => {
|
|
107
|
-
|
|
104
|
+
Y((t) => ({
|
|
108
105
|
...t,
|
|
109
106
|
title: "",
|
|
110
107
|
description: "",
|
|
@@ -113,10 +110,10 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
113
110
|
locationAddress: "",
|
|
114
111
|
locationUrl: "",
|
|
115
112
|
locationType: "PHYSICAL",
|
|
116
|
-
startDate: x(
|
|
117
|
-
startTime: S(
|
|
118
|
-
endDate: x(
|
|
119
|
-
endTime: S(
|
|
113
|
+
startDate: x(K),
|
|
114
|
+
startTime: S(K),
|
|
115
|
+
endDate: x(q),
|
|
116
|
+
endTime: S(q),
|
|
120
117
|
allDay: !1,
|
|
121
118
|
status: "CONFIRMED",
|
|
122
119
|
visibility: "PUBLIC",
|
|
@@ -132,12 +129,12 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
132
129
|
}
|
|
133
130
|
}, [
|
|
134
131
|
T,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
L,
|
|
133
|
+
K,
|
|
134
|
+
q
|
|
138
135
|
]);
|
|
139
|
-
let
|
|
140
|
-
|
|
136
|
+
let X = (e, t) => {
|
|
137
|
+
Y((n) => ({
|
|
141
138
|
...n,
|
|
142
139
|
[e]: t
|
|
143
140
|
}));
|
|
@@ -149,75 +146,75 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
149
146
|
},
|
|
150
147
|
children: /* @__PURE__ */ p(_, {
|
|
151
148
|
className: "max-w-lg",
|
|
152
|
-
children: [/* @__PURE__ */ f(y, { children: /* @__PURE__ */ f(b, { children: A ?
|
|
149
|
+
children: [/* @__PURE__ */ f(y, { children: /* @__PURE__ */ f(b, { children: A ? j("calendar.editEvent", "Edit Event") : j("calendar.createEvent", "Create Event") }) }), /* @__PURE__ */ p("form", {
|
|
153
150
|
onSubmit: async (e) => {
|
|
154
|
-
if (e.preventDefault(), !
|
|
155
|
-
let t =
|
|
156
|
-
if (A && T) await
|
|
151
|
+
if (e.preventDefault(), !J.title.trim()) return;
|
|
152
|
+
let t = J.allDay ? (/* @__PURE__ */ new Date(`${J.startDate}T00:00:00`)).toISOString() : C(J.startDate, J.startTime), n = J.allDay ? (/* @__PURE__ */ new Date(`${J.endDate}T23:59:59`)).toISOString() : C(J.endDate, J.endTime);
|
|
153
|
+
if (A && T) await V({ variables: {
|
|
157
154
|
id: T.id,
|
|
158
155
|
input: {
|
|
159
|
-
title:
|
|
160
|
-
description:
|
|
161
|
-
location:
|
|
162
|
-
locationAddress:
|
|
163
|
-
locationUrl:
|
|
164
|
-
locationType:
|
|
156
|
+
title: J.title,
|
|
157
|
+
description: J.description || void 0,
|
|
158
|
+
location: J.location || void 0,
|
|
159
|
+
locationAddress: J.locationAddress || void 0,
|
|
160
|
+
locationUrl: J.locationUrl || void 0,
|
|
161
|
+
locationType: J.locationType,
|
|
165
162
|
startTime: t,
|
|
166
163
|
endTime: n,
|
|
167
|
-
allDay:
|
|
168
|
-
status:
|
|
169
|
-
visibility:
|
|
170
|
-
onlineMeetingProvider:
|
|
171
|
-
onlineMeetingUrl:
|
|
172
|
-
maxAttendees:
|
|
173
|
-
checkInEnabled:
|
|
174
|
-
tags:
|
|
164
|
+
allDay: J.allDay,
|
|
165
|
+
status: J.status,
|
|
166
|
+
visibility: J.visibility,
|
|
167
|
+
onlineMeetingProvider: J.onlineMeetingProvider,
|
|
168
|
+
onlineMeetingUrl: J.onlineMeetingUrl || void 0,
|
|
169
|
+
maxAttendees: J.maxAttendees ? parseInt(J.maxAttendees, 10) : void 0,
|
|
170
|
+
checkInEnabled: J.checkInEnabled,
|
|
171
|
+
tags: J.tagsText.split(",").flatMap((e) => {
|
|
175
172
|
let t = e.trim();
|
|
176
173
|
return t ? [t] : [];
|
|
177
174
|
}),
|
|
178
|
-
rrule:
|
|
179
|
-
timezone:
|
|
175
|
+
rrule: J.isRecurring && J.rrule.trim() ? J.rrule.trim() : void 0,
|
|
176
|
+
timezone: J.timezone
|
|
180
177
|
}
|
|
181
178
|
} });
|
|
182
179
|
else {
|
|
183
|
-
let e = (await
|
|
184
|
-
title:
|
|
185
|
-
description:
|
|
186
|
-
calendarId:
|
|
187
|
-
location:
|
|
188
|
-
locationAddress:
|
|
189
|
-
locationUrl:
|
|
190
|
-
locationType:
|
|
180
|
+
let e = (await R({ variables: { input: {
|
|
181
|
+
title: J.title,
|
|
182
|
+
description: J.description || void 0,
|
|
183
|
+
calendarId: J.calendarId,
|
|
184
|
+
location: J.location || void 0,
|
|
185
|
+
locationAddress: J.locationAddress || void 0,
|
|
186
|
+
locationUrl: J.locationUrl || void 0,
|
|
187
|
+
locationType: J.locationType,
|
|
191
188
|
startTime: t,
|
|
192
189
|
endTime: n,
|
|
193
|
-
allDay:
|
|
194
|
-
eventType:
|
|
195
|
-
status:
|
|
196
|
-
onlineMeetingProvider:
|
|
197
|
-
onlineMeetingUrl:
|
|
198
|
-
maxAttendees:
|
|
199
|
-
checkInEnabled:
|
|
200
|
-
isRecurring:
|
|
201
|
-
rrule:
|
|
202
|
-
tags:
|
|
190
|
+
allDay: J.allDay,
|
|
191
|
+
eventType: J.eventType,
|
|
192
|
+
status: J.status,
|
|
193
|
+
onlineMeetingProvider: J.onlineMeetingProvider,
|
|
194
|
+
onlineMeetingUrl: J.onlineMeetingUrl || void 0,
|
|
195
|
+
maxAttendees: J.maxAttendees ? parseInt(J.maxAttendees, 10) : void 0,
|
|
196
|
+
checkInEnabled: J.checkInEnabled,
|
|
197
|
+
isRecurring: J.isRecurring,
|
|
198
|
+
rrule: J.isRecurring && J.rrule.trim() ? J.rrule.trim() : void 0,
|
|
199
|
+
tags: J.tagsText.split(",").flatMap((e) => {
|
|
203
200
|
let t = e.trim();
|
|
204
201
|
return t ? [t] : [];
|
|
205
202
|
}),
|
|
206
|
-
timezone:
|
|
203
|
+
timezone: J.timezone
|
|
207
204
|
} } })).data?.createEvent.id;
|
|
208
|
-
e &&
|
|
205
|
+
e && J.visibility !== "PUBLIC" && await V({ variables: {
|
|
209
206
|
id: e,
|
|
210
|
-
input: { visibility:
|
|
207
|
+
input: { visibility: J.visibility }
|
|
211
208
|
} });
|
|
212
209
|
}
|
|
213
210
|
k?.(), O();
|
|
214
211
|
},
|
|
215
212
|
children: [
|
|
216
|
-
|
|
213
|
+
G && /* @__PURE__ */ f("div", {
|
|
217
214
|
className: "mb-4 p-3 rounded-radius-md bg-red-50 dark:bg-red-950/20 border border-red-200 dark:border-red-800",
|
|
218
215
|
children: /* @__PURE__ */ f("p", {
|
|
219
216
|
className: "font-text-sm text-red-700 dark:text-red-300",
|
|
220
|
-
children:
|
|
217
|
+
children: G.message
|
|
221
218
|
})
|
|
222
219
|
}),
|
|
223
220
|
/* @__PURE__ */ p("div", {
|
|
@@ -227,7 +224,7 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
227
224
|
htmlFor: "event-title",
|
|
228
225
|
className: "block font-text-sm font-weight-medium text-text-primary mb-1",
|
|
229
226
|
children: [
|
|
230
|
-
|
|
227
|
+
j("calendar.title", "Title"),
|
|
231
228
|
" ",
|
|
232
229
|
/* @__PURE__ */ f("span", {
|
|
233
230
|
className: "text-red-500",
|
|
@@ -238,25 +235,25 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
238
235
|
id: "event-title",
|
|
239
236
|
type: "text",
|
|
240
237
|
required: !0,
|
|
241
|
-
value:
|
|
242
|
-
onChange: (e) =>
|
|
243
|
-
placeholder:
|
|
244
|
-
"aria-label":
|
|
238
|
+
value: J.title,
|
|
239
|
+
onChange: (e) => X("title", e.target.value),
|
|
240
|
+
placeholder: j("calendar.addTitle", "Add title"),
|
|
241
|
+
"aria-label": j("calendar.title", "Title"),
|
|
245
242
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
|
|
246
243
|
})] }),
|
|
247
244
|
!A && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
248
245
|
htmlFor: "event-calendar",
|
|
249
246
|
className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
|
|
250
|
-
children: [/* @__PURE__ */ f(c, { className: "size-4 text-text-secondary" }),
|
|
247
|
+
children: [/* @__PURE__ */ f(c, { className: "size-4 text-text-secondary" }), j("calendar.calendar", "Calendar")]
|
|
251
248
|
}), /* @__PURE__ */ p("select", {
|
|
252
249
|
id: "event-calendar",
|
|
253
|
-
value:
|
|
254
|
-
onChange: (e) =>
|
|
250
|
+
value: J.calendarId,
|
|
251
|
+
onChange: (e) => X("calendarId", e.target.value),
|
|
255
252
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
256
253
|
children: [/* @__PURE__ */ f("option", {
|
|
257
254
|
value: "",
|
|
258
|
-
children:
|
|
259
|
-
}),
|
|
255
|
+
children: j("calendar.selectCalendar", "Select calendar")
|
|
256
|
+
}), L.map((e) => /* @__PURE__ */ f("option", {
|
|
260
257
|
value: e.id,
|
|
261
258
|
children: e.name
|
|
262
259
|
}, e.id))]
|
|
@@ -264,41 +261,41 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
264
261
|
!A && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
265
262
|
htmlFor: "event-type",
|
|
266
263
|
className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
|
|
267
|
-
children: [/* @__PURE__ */ f(d, { className: "size-4 text-text-secondary" }),
|
|
264
|
+
children: [/* @__PURE__ */ f(d, { className: "size-4 text-text-secondary" }), j("calendar.eventType", "Event Type")]
|
|
268
265
|
}), /* @__PURE__ */ p("select", {
|
|
269
266
|
id: "event-type",
|
|
270
|
-
value:
|
|
271
|
-
onChange: (e) =>
|
|
267
|
+
value: J.eventType,
|
|
268
|
+
onChange: (e) => X("eventType", e.target.value),
|
|
272
269
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
273
270
|
children: [
|
|
274
271
|
/* @__PURE__ */ f("option", {
|
|
275
272
|
value: "MEETING",
|
|
276
|
-
children:
|
|
273
|
+
children: M.MEETING
|
|
277
274
|
}),
|
|
278
275
|
/* @__PURE__ */ f("option", {
|
|
279
276
|
value: "TASK",
|
|
280
|
-
children:
|
|
277
|
+
children: M.TASK
|
|
281
278
|
}),
|
|
282
279
|
/* @__PURE__ */ f("option", {
|
|
283
280
|
value: "MILESTONE",
|
|
284
|
-
children:
|
|
281
|
+
children: M.MILESTONE
|
|
285
282
|
}),
|
|
286
283
|
/* @__PURE__ */ f("option", {
|
|
287
284
|
value: "PROMPT",
|
|
288
|
-
children:
|
|
285
|
+
children: M.PROMPT
|
|
289
286
|
})
|
|
290
287
|
]
|
|
291
288
|
})] }),
|
|
292
289
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
293
290
|
htmlFor: "event-visibility",
|
|
294
291
|
className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
|
|
295
|
-
children: [/* @__PURE__ */ f(d, { className: "size-4 text-text-secondary" }),
|
|
292
|
+
children: [/* @__PURE__ */ f(d, { className: "size-4 text-text-secondary" }), j("calendar.visibility", "Visibility")]
|
|
296
293
|
}), /* @__PURE__ */ f("select", {
|
|
297
294
|
id: "event-visibility",
|
|
298
|
-
value:
|
|
299
|
-
onChange: (e) =>
|
|
295
|
+
value: J.visibility,
|
|
296
|
+
onChange: (e) => X("visibility", e.target.value),
|
|
300
297
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
301
|
-
children: Object.entries(
|
|
298
|
+
children: Object.entries(N).map(([e, t]) => /* @__PURE__ */ f("option", {
|
|
302
299
|
value: e,
|
|
303
300
|
children: t
|
|
304
301
|
}, e))
|
|
@@ -308,14 +305,14 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
308
305
|
children: [/* @__PURE__ */ f("input", {
|
|
309
306
|
id: "event-allday",
|
|
310
307
|
type: "checkbox",
|
|
311
|
-
checked:
|
|
312
|
-
onChange: (e) =>
|
|
308
|
+
checked: J.allDay,
|
|
309
|
+
onChange: (e) => X("allDay", e.target.checked),
|
|
313
310
|
className: "size-4 rounded border-border-default",
|
|
314
|
-
"aria-label":
|
|
311
|
+
"aria-label": j("calendar.allDayEvent", "All day event")
|
|
315
312
|
}), /* @__PURE__ */ f("label", {
|
|
316
313
|
htmlFor: "event-allday",
|
|
317
314
|
className: "font-text-sm text-text-primary",
|
|
318
|
-
children:
|
|
315
|
+
children: j("calendar.allDayEvent", "All day event")
|
|
319
316
|
})]
|
|
320
317
|
}),
|
|
321
318
|
/* @__PURE__ */ p("div", {
|
|
@@ -324,43 +321,43 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
324
321
|
/* @__PURE__ */ p("label", {
|
|
325
322
|
htmlFor: "event-start-date",
|
|
326
323
|
className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
|
|
327
|
-
children: [/* @__PURE__ */ f(l, { className: "size-4 text-text-secondary" }),
|
|
324
|
+
children: [/* @__PURE__ */ f(l, { className: "size-4 text-text-secondary" }), j("calendar.start", "Start")]
|
|
328
325
|
}),
|
|
329
326
|
/* @__PURE__ */ f("input", {
|
|
330
327
|
id: "event-start-date",
|
|
331
328
|
type: "date",
|
|
332
|
-
value:
|
|
333
|
-
onChange: (e) =>
|
|
329
|
+
value: J.startDate,
|
|
330
|
+
onChange: (e) => X("startDate", e.target.value),
|
|
334
331
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
335
|
-
"aria-label":
|
|
332
|
+
"aria-label": j("calendar.start", "Start")
|
|
336
333
|
}),
|
|
337
|
-
!
|
|
334
|
+
!J.allDay && /* @__PURE__ */ f("input", {
|
|
338
335
|
type: "time",
|
|
339
|
-
value:
|
|
340
|
-
onChange: (e) =>
|
|
336
|
+
value: J.startTime,
|
|
337
|
+
onChange: (e) => X("startTime", e.target.value),
|
|
341
338
|
className: "w-full mt-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
342
|
-
"aria-label":
|
|
339
|
+
"aria-label": j("calendar.startTime", "Start time")
|
|
343
340
|
})
|
|
344
341
|
] }), /* @__PURE__ */ p("div", { children: [
|
|
345
342
|
/* @__PURE__ */ f("label", {
|
|
346
343
|
htmlFor: "event-end-date",
|
|
347
344
|
className: "font-text-sm font-weight-medium text-text-primary mb-1 block",
|
|
348
|
-
children:
|
|
345
|
+
children: j("calendar.end", "End")
|
|
349
346
|
}),
|
|
350
347
|
/* @__PURE__ */ f("input", {
|
|
351
348
|
id: "event-end-date",
|
|
352
349
|
type: "date",
|
|
353
|
-
value:
|
|
354
|
-
onChange: (e) =>
|
|
350
|
+
value: J.endDate,
|
|
351
|
+
onChange: (e) => X("endDate", e.target.value),
|
|
355
352
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
356
|
-
"aria-label":
|
|
353
|
+
"aria-label": j("calendar.end", "End")
|
|
357
354
|
}),
|
|
358
|
-
!
|
|
355
|
+
!J.allDay && /* @__PURE__ */ f("input", {
|
|
359
356
|
type: "time",
|
|
360
|
-
value:
|
|
361
|
-
onChange: (e) =>
|
|
357
|
+
value: J.endTime,
|
|
358
|
+
onChange: (e) => X("endTime", e.target.value),
|
|
362
359
|
className: "w-full mt-2 px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
363
|
-
"aria-label":
|
|
360
|
+
"aria-label": j("calendar.endTime", "End time")
|
|
364
361
|
})
|
|
365
362
|
] })]
|
|
366
363
|
}),
|
|
@@ -370,14 +367,14 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
370
367
|
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("label", {
|
|
371
368
|
htmlFor: "event-location",
|
|
372
369
|
className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
|
|
373
|
-
children: [/* @__PURE__ */ f(u, { className: "size-4 text-text-secondary" }),
|
|
370
|
+
children: [/* @__PURE__ */ f(u, { className: "size-4 text-text-secondary" }), j("calendar.location", "Location")]
|
|
374
371
|
}), /* @__PURE__ */ f("input", {
|
|
375
372
|
id: "event-location",
|
|
376
373
|
type: "text",
|
|
377
|
-
value:
|
|
378
|
-
onChange: (e) =>
|
|
379
|
-
placeholder:
|
|
380
|
-
"aria-label":
|
|
374
|
+
value: J.location,
|
|
375
|
+
onChange: (e) => X("location", e.target.value),
|
|
376
|
+
placeholder: j("calendar.addLocation", "Add location"),
|
|
377
|
+
"aria-label": j("calendar.location", "Location"),
|
|
381
378
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
|
|
382
379
|
})] }),
|
|
383
380
|
/* @__PURE__ */ p("div", {
|
|
@@ -385,78 +382,78 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
385
382
|
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
386
383
|
htmlFor: "event-location-type",
|
|
387
384
|
className: "block font-text-sm font-weight-medium text-text-primary mb-1",
|
|
388
|
-
children:
|
|
385
|
+
children: j("calendar.locationType", "Location type")
|
|
389
386
|
}), /* @__PURE__ */ f("select", {
|
|
390
387
|
id: "event-location-type",
|
|
391
|
-
value:
|
|
392
|
-
onChange: (e) =>
|
|
388
|
+
value: J.locationType,
|
|
389
|
+
onChange: (e) => X("locationType", e.target.value),
|
|
393
390
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
394
|
-
children: Object.entries(
|
|
391
|
+
children: Object.entries(P).map(([e, t]) => /* @__PURE__ */ f("option", {
|
|
395
392
|
value: e,
|
|
396
393
|
children: t
|
|
397
394
|
}, e))
|
|
398
395
|
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
399
396
|
htmlFor: "event-max-attendees",
|
|
400
397
|
className: "block font-text-sm font-weight-medium text-text-primary mb-1",
|
|
401
|
-
children:
|
|
398
|
+
children: j("calendar.maxAttendees", "Max attendees")
|
|
402
399
|
}), /* @__PURE__ */ f("input", {
|
|
403
400
|
id: "event-max-attendees",
|
|
404
401
|
type: "number",
|
|
405
402
|
min: "1",
|
|
406
|
-
value:
|
|
407
|
-
onChange: (e) =>
|
|
403
|
+
value: J.maxAttendees,
|
|
404
|
+
onChange: (e) => X("maxAttendees", e.target.value),
|
|
408
405
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
409
|
-
"aria-label":
|
|
406
|
+
"aria-label": j("calendar.maxAttendees", "Max attendees")
|
|
410
407
|
})] })]
|
|
411
408
|
}),
|
|
412
409
|
/* @__PURE__ */ f("input", {
|
|
413
410
|
type: "text",
|
|
414
|
-
value:
|
|
415
|
-
onChange: (e) =>
|
|
416
|
-
placeholder:
|
|
411
|
+
value: J.locationAddress,
|
|
412
|
+
onChange: (e) => X("locationAddress", e.target.value),
|
|
413
|
+
placeholder: j("calendar.locationAddress", "Location address or room details"),
|
|
417
414
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
418
|
-
"aria-label":
|
|
415
|
+
"aria-label": j("calendar.locationAddress", "Location address or room details")
|
|
419
416
|
}),
|
|
420
417
|
/* @__PURE__ */ f("input", {
|
|
421
418
|
type: "url",
|
|
422
|
-
value:
|
|
423
|
-
onChange: (e) =>
|
|
424
|
-
placeholder:
|
|
419
|
+
value: J.locationUrl,
|
|
420
|
+
onChange: (e) => X("locationUrl", e.target.value),
|
|
421
|
+
placeholder: j("calendar.locationUrl", "Location URL"),
|
|
425
422
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
426
|
-
"aria-label":
|
|
423
|
+
"aria-label": j("calendar.locationUrl", "Location URL")
|
|
427
424
|
})
|
|
428
425
|
]
|
|
429
426
|
}),
|
|
430
427
|
/* @__PURE__ */ p(h, {
|
|
431
|
-
title:
|
|
432
|
-
description:
|
|
428
|
+
title: j("calendar.advancedTitle", "Advanced"),
|
|
429
|
+
description: j("calendar.advancedDescription", "Meeting provider, recurrence, timezone and other options"),
|
|
433
430
|
children: [
|
|
434
431
|
/* @__PURE__ */ p("div", {
|
|
435
432
|
className: "grid grid-cols-1 gap-3 @md:grid-cols-2",
|
|
436
433
|
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
437
434
|
htmlFor: "event-meeting-provider",
|
|
438
435
|
className: "block font-text-sm font-weight-medium text-text-primary mb-1",
|
|
439
|
-
children:
|
|
436
|
+
children: j("calendar.meetingProvider", "Meeting provider")
|
|
440
437
|
}), /* @__PURE__ */ f("select", {
|
|
441
438
|
id: "event-meeting-provider",
|
|
442
|
-
value:
|
|
443
|
-
onChange: (e) =>
|
|
439
|
+
value: J.onlineMeetingProvider,
|
|
440
|
+
onChange: (e) => X("onlineMeetingProvider", e.target.value),
|
|
444
441
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm focus:outline-none focus:ring-2 focus:ring-action-primary-border",
|
|
445
|
-
children: Object.entries(
|
|
442
|
+
children: Object.entries(F).map(([e, t]) => /* @__PURE__ */ f("option", {
|
|
446
443
|
value: e,
|
|
447
444
|
children: t
|
|
448
445
|
}, e))
|
|
449
446
|
})] }), /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
450
447
|
htmlFor: "event-meeting-url",
|
|
451
448
|
className: "block font-text-sm font-weight-medium text-text-primary mb-1",
|
|
452
|
-
children:
|
|
449
|
+
children: j("calendar.meetingUrl", "Meeting URL")
|
|
453
450
|
}), /* @__PURE__ */ f("input", {
|
|
454
451
|
id: "event-meeting-url",
|
|
455
452
|
type: "url",
|
|
456
|
-
value:
|
|
457
|
-
onChange: (e) =>
|
|
458
|
-
placeholder:
|
|
459
|
-
"aria-label":
|
|
453
|
+
value: J.onlineMeetingUrl,
|
|
454
|
+
onChange: (e) => X("onlineMeetingUrl", e.target.value),
|
|
455
|
+
placeholder: j("calendar.addMeetingLink", "Add meeting link"),
|
|
456
|
+
"aria-label": j("calendar.meetingUrl", "Meeting URL"),
|
|
460
457
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
|
|
461
458
|
})] })]
|
|
462
459
|
}),
|
|
@@ -464,20 +461,20 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
464
461
|
/* @__PURE__ */ p("label", {
|
|
465
462
|
htmlFor: "event-description",
|
|
466
463
|
className: "flex items-center gap-2 font-text-sm font-weight-medium text-text-primary mb-1",
|
|
467
|
-
children: [/* @__PURE__ */ f(s, { className: "size-4 text-text-secondary" }),
|
|
464
|
+
children: [/* @__PURE__ */ f(s, { className: "size-4 text-text-secondary" }), j("calendar.description", "Description")]
|
|
468
465
|
}),
|
|
469
466
|
/* @__PURE__ */ f("textarea", {
|
|
470
467
|
id: "event-description",
|
|
471
|
-
value:
|
|
472
|
-
onChange: (e) =>
|
|
473
|
-
placeholder:
|
|
468
|
+
value: J.description,
|
|
469
|
+
onChange: (e) => X("description", e.target.value),
|
|
470
|
+
placeholder: j("calendar.addDescription", "Add markdown notes or event description"),
|
|
474
471
|
rows: 4,
|
|
475
|
-
"aria-label":
|
|
472
|
+
"aria-label": j("calendar.description", "Description"),
|
|
476
473
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border resize-none"
|
|
477
474
|
}),
|
|
478
475
|
/* @__PURE__ */ f("p", {
|
|
479
476
|
className: "mt-1 font-text-xs text-text-tertiary",
|
|
480
|
-
children:
|
|
477
|
+
children: j("calendar.descriptionMarkdownHint", "Supports markdown-style notes and formatting text.")
|
|
481
478
|
})
|
|
482
479
|
] }),
|
|
483
480
|
/* @__PURE__ */ p("div", {
|
|
@@ -485,28 +482,28 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
485
482
|
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
486
483
|
htmlFor: "event-tags",
|
|
487
484
|
className: "block font-text-sm font-weight-medium text-text-primary mb-1",
|
|
488
|
-
children:
|
|
485
|
+
children: j("calendar.tags", "Tags")
|
|
489
486
|
}), /* @__PURE__ */ f("input", {
|
|
490
487
|
id: "event-tags",
|
|
491
488
|
type: "text",
|
|
492
|
-
value:
|
|
493
|
-
onChange: (e) =>
|
|
494
|
-
placeholder:
|
|
495
|
-
"aria-label":
|
|
489
|
+
value: J.tagsText,
|
|
490
|
+
onChange: (e) => X("tagsText", e.target.value),
|
|
491
|
+
placeholder: j("calendar.tagsPlaceholder", "e.g. planning, roadmap, leadership"),
|
|
492
|
+
"aria-label": j("calendar.tags", "Tags"),
|
|
496
493
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
|
|
497
494
|
})] }), /* @__PURE__ */ p("div", {
|
|
498
495
|
className: "flex items-center gap-3 self-end",
|
|
499
496
|
children: [/* @__PURE__ */ f("input", {
|
|
500
497
|
id: "event-checkin-enabled",
|
|
501
498
|
type: "checkbox",
|
|
502
|
-
checked:
|
|
503
|
-
onChange: (e) =>
|
|
499
|
+
checked: J.checkInEnabled,
|
|
500
|
+
onChange: (e) => X("checkInEnabled", e.target.checked),
|
|
504
501
|
className: "size-4 rounded border-border-default",
|
|
505
|
-
"aria-label":
|
|
502
|
+
"aria-label": j("calendar.enableCheckIn", "Enable attendee check-in")
|
|
506
503
|
}), /* @__PURE__ */ f("label", {
|
|
507
504
|
htmlFor: "event-checkin-enabled",
|
|
508
505
|
className: "font-text-sm text-text-primary",
|
|
509
|
-
children:
|
|
506
|
+
children: j("calendar.enableCheckIn", "Enable attendee check-in")
|
|
510
507
|
})]
|
|
511
508
|
})]
|
|
512
509
|
}),
|
|
@@ -517,26 +514,26 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
517
514
|
children: [/* @__PURE__ */ f("input", {
|
|
518
515
|
id: "event-recurring",
|
|
519
516
|
type: "checkbox",
|
|
520
|
-
checked:
|
|
521
|
-
onChange: (e) =>
|
|
517
|
+
checked: J.isRecurring,
|
|
518
|
+
onChange: (e) => X("isRecurring", e.target.checked),
|
|
522
519
|
className: "size-4 rounded border-border-default",
|
|
523
|
-
"aria-label":
|
|
520
|
+
"aria-label": j("calendar.recurringEvent", "Recurring event")
|
|
524
521
|
}), /* @__PURE__ */ f("label", {
|
|
525
522
|
htmlFor: "event-recurring",
|
|
526
523
|
className: "font-text-sm text-text-primary",
|
|
527
|
-
children:
|
|
524
|
+
children: j("calendar.recurringEvent", "Recurring event")
|
|
528
525
|
})]
|
|
529
|
-
}),
|
|
526
|
+
}), J.isRecurring && /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("label", {
|
|
530
527
|
htmlFor: "event-rrule",
|
|
531
528
|
className: "block font-text-sm font-weight-medium text-text-primary mb-1",
|
|
532
|
-
children:
|
|
529
|
+
children: j("calendar.rrule", "Recurrence rule (RRULE)")
|
|
533
530
|
}), /* @__PURE__ */ f("input", {
|
|
534
531
|
id: "event-rrule",
|
|
535
532
|
type: "text",
|
|
536
|
-
value:
|
|
537
|
-
onChange: (e) =>
|
|
538
|
-
"aria-label":
|
|
539
|
-
placeholder:
|
|
533
|
+
value: J.rrule,
|
|
534
|
+
onChange: (e) => X("rrule", e.target.value),
|
|
535
|
+
"aria-label": j("calendar.rrule", "Recurrence rule (RRULE)"),
|
|
536
|
+
placeholder: j("calendar.rrulePlaceholder", "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;INTERVAL=1"),
|
|
540
537
|
className: "w-full px-3 py-2 rounded-radius-md border border-border-default bg-bg-surface text-text-primary font-text-sm placeholder:text-text-tertiary focus:outline-none focus:ring-2 focus:ring-action-primary-border"
|
|
541
538
|
})] })]
|
|
542
539
|
})
|
|
@@ -548,12 +545,12 @@ var w = ({ open: w, event: T, defaultDate: E, defaultStartHour: D, onClose: O, o
|
|
|
548
545
|
type: "button",
|
|
549
546
|
variant: "outline",
|
|
550
547
|
onClick: O,
|
|
551
|
-
disabled:
|
|
552
|
-
children:
|
|
548
|
+
disabled: W,
|
|
549
|
+
children: j("calendar.cancel", "Cancel")
|
|
553
550
|
}), /* @__PURE__ */ f(m, {
|
|
554
551
|
type: "submit",
|
|
555
|
-
disabled:
|
|
556
|
-
children:
|
|
552
|
+
disabled: W || !J.title.trim(),
|
|
553
|
+
children: W ? j("calendar.saving", "Saving...") : A ? j("calendar.updateEvent", "Update Event") : j("calendar.createEvent", "Create Event")
|
|
557
554
|
})] })
|
|
558
555
|
]
|
|
559
556
|
})]
|