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