@rokoyfa/calendar 0.1.0 → 1.1.0
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/CHANGELOG.md +21 -1
- package/README.md +107 -142
- package/api/openapi.yaml +10 -2
- package/dist-lib/cdn/calendar-widget.js +7 -7
- package/dist-lib/cdn/calendar-widget.js.map +1 -1
- package/dist-lib/cdn/de-BPZBZXaZ.js +2 -0
- package/dist-lib/cdn/de-BPZBZXaZ.js.map +1 -0
- package/dist-lib/cdn/es-DsIckdik.js +2 -0
- package/dist-lib/cdn/es-DsIckdik.js.map +1 -0
- package/dist-lib/cdn/fr-DWAs3O6J.js +2 -0
- package/dist-lib/cdn/fr-DWAs3O6J.js.map +1 -0
- package/dist-lib/cdn/it-CbhjxqIb.js +2 -0
- package/dist-lib/cdn/it-CbhjxqIb.js.map +1 -0
- package/dist-lib/cdn/nl-mjTHznX5.js +2 -0
- package/dist-lib/cdn/nl-mjTHznX5.js.map +1 -0
- package/dist-lib/cdn/pl-CXT0jb2D.js +2 -0
- package/dist-lib/cdn/pl-CXT0jb2D.js.map +1 -0
- package/dist-lib/cdn/pt-D0oXlVdU.js +2 -0
- package/dist-lib/cdn/pt-D0oXlVdU.js.map +1 -0
- package/dist-lib/npm/de-CCzGjeTd.js +573 -0
- package/dist-lib/npm/de-CCzGjeTd.js.map +1 -0
- package/dist-lib/npm/es-Ciaf66rH.js +559 -0
- package/dist-lib/npm/es-Ciaf66rH.js.map +1 -0
- package/dist-lib/npm/fr-CAqNm10Z.js +559 -0
- package/dist-lib/npm/fr-CAqNm10Z.js.map +1 -0
- package/dist-lib/npm/index.js +1159 -911
- package/dist-lib/npm/index.js.map +1 -1
- package/dist-lib/npm/it-Cqqdu2ua.js +565 -0
- package/dist-lib/npm/it-Cqqdu2ua.js.map +1 -0
- package/dist-lib/npm/nl-CkchSA8q.js +559 -0
- package/dist-lib/npm/nl-CkchSA8q.js.map +1 -0
- package/dist-lib/npm/pl-CCBDUr8k.js +565 -0
- package/dist-lib/npm/pl-CCBDUr8k.js.map +1 -0
- package/dist-lib/npm/pt-DucaCaoY.js +566 -0
- package/dist-lib/npm/pt-DucaCaoY.js.map +1 -0
- package/dist-lib/npm/types/components/DateTimeField.d.ts +2 -1
- package/dist-lib/npm/types/components/PageSection.d.ts +2 -1
- package/dist-lib/npm/types/config/routes.d.ts +1 -0
- package/dist-lib/npm/types/context/HostContext.d.ts +2 -0
- package/dist-lib/npm/types/features/calendar/components/DayColumn.d.ts +4 -1
- package/dist-lib/npm/types/features/calendar/components/EventChip.d.ts +3 -1
- package/dist-lib/npm/types/features/calendar/components/TimeGridView.d.ts +1 -1
- package/dist-lib/npm/types/features/calendar/context/DragContext.d.ts +2 -0
- package/dist-lib/npm/types/features/calendar/hooks/useEventDrag.d.ts +15 -0
- package/dist-lib/npm/types/features/calendar/types/view.d.ts +1 -0
- package/dist-lib/npm/types/features/calendar/utils/allDay.d.ts +12 -0
- package/dist-lib/npm/types/features/calendar/utils/eventDrag.d.ts +12 -0
- package/dist-lib/npm/types/features/calendar/utils/eventLabels.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/components/InvitationList.d.ts +1 -1
- package/dist-lib/npm/types/features/calendars/components/settings/RoleOverview.d.ts +1 -0
- package/dist-lib/npm/types/features/calendars/index.d.ts +1 -0
- package/dist-lib/npm/types/features/events/components/TimeZoneField.d.ts +6 -0
- package/dist-lib/npm/types/features/events/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/I18nContext.d.ts +1 -0
- package/dist-lib/npm/types/i18n/I18nProvider.d.ts +3 -1
- package/dist-lib/npm/types/i18n/index.d.ts +2 -2
- package/dist-lib/npm/types/i18n/locale.d.ts +13 -6
- package/dist-lib/npm/types/i18n/messages/en/calendars.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/en/events.d.ts +4 -0
- package/dist-lib/npm/types/i18n/messages/en/index.d.ts +8 -6
- package/dist-lib/npm/types/i18n/messages/en/settings.d.ts +2 -6
- package/dist-lib/npm/types/i18n/messages/es/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/fr/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/index.d.ts +473 -4
- package/dist-lib/npm/types/i18n/messages/it/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/nl/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/pl/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/pt/index.d.ts +2 -0
- package/dist-lib/npm/types/i18n/messages/types.d.ts +5 -0
- package/dist-lib/npm/types/lib/CalendarWidget.d.ts +1 -1
- package/dist-lib/npm/types/lib/config.d.ts +3 -0
- package/dist-lib/npm/types/lib/element.d.ts +4 -1
- package/dist-lib/npm/types/lib/index.d.ts +1 -0
- package/dist-lib/npm/types/utils/event.d.ts +19 -7
- package/dist-lib/npm/types/utils/preferences.d.ts +1 -2
- package/dist-lib/npm/types/utils/timeZone.d.ts +11 -0
- package/package.json +11 -5
|
@@ -1,4 +1,473 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { Messages } from './types.js';
|
|
3
|
-
export type { Messages } from './types.js';
|
|
4
|
-
export declare const
|
|
1
|
+
import { type Language } from '../locale.js';
|
|
2
|
+
import type { Messages, PartialMessages } from './types.js';
|
|
3
|
+
export type { DeepPartial, MessageOverrides, Messages, PartialMessages } from './types.js';
|
|
4
|
+
export declare const getLoadedMessages: (language: Language) => {
|
|
5
|
+
common: {
|
|
6
|
+
loading: string;
|
|
7
|
+
close: string;
|
|
8
|
+
cancel: string;
|
|
9
|
+
save: string;
|
|
10
|
+
saving: string;
|
|
11
|
+
saved: string;
|
|
12
|
+
delete: string;
|
|
13
|
+
deleting: string;
|
|
14
|
+
backToCalendar: string;
|
|
15
|
+
backToSettings: string;
|
|
16
|
+
settings: string;
|
|
17
|
+
progress: string;
|
|
18
|
+
next: string;
|
|
19
|
+
back: string;
|
|
20
|
+
};
|
|
21
|
+
errors: Record<"unknown" | "eventNotFound" | "accountRequired" | "saveEventsFailed" | "savePreferencesFailed" | "saveColorFailed" | "saveDecisionFailed" | "invalidLink" | "invalidResetLink" | "invalidCredentials" | "emailTaken" | "wrongCurrentPassword" | "wrongPassword" | "soleOwner" | "unauthorized" | "forbidden" | "notFound" | "serverError" | "payloadTooLarge" | "calendarNotFound" | "teamNotFound" | "memberNotFound" | "invitationNotFound" | "invitationExpired" | "tooManyLoginAttempts" | "seriesHasDetached" | "selfInvite" | "alreadyMember" | "alreadyInvited" | "personalTeam" | "lastOwner" | "alreadyOwner" | "lastCalendar" | "tooManyColors" | "managedByHost" | "unknownTenant" | "originNotAllowed" | "invalidUserToken", string> & {
|
|
22
|
+
status: Partial<Record<number, string>>;
|
|
23
|
+
serverError: string;
|
|
24
|
+
requestFailed: (status: number) => string;
|
|
25
|
+
kind: Record<Exclude<import("../../utils/apiError.ts").ApiErrorKind, "http">, string>;
|
|
26
|
+
};
|
|
27
|
+
validation: {
|
|
28
|
+
emailRequired: string;
|
|
29
|
+
emailInvalid: string;
|
|
30
|
+
integerRange: (min: number, max: number) => string;
|
|
31
|
+
titleRequired: string;
|
|
32
|
+
titleTooLong: (max: number) => string;
|
|
33
|
+
descriptionTooLong: (max: number) => string;
|
|
34
|
+
startDateInvalid: string;
|
|
35
|
+
startTimeInvalid: string;
|
|
36
|
+
endDateInvalid: string;
|
|
37
|
+
endTimeInvalid: string;
|
|
38
|
+
endDateBeforeStart: string;
|
|
39
|
+
endBeforeStart: string;
|
|
40
|
+
weekdaysRequired: string;
|
|
41
|
+
dateInvalid: string;
|
|
42
|
+
untilBeforeStart: string;
|
|
43
|
+
};
|
|
44
|
+
colors: {
|
|
45
|
+
blue: string;
|
|
46
|
+
red: string;
|
|
47
|
+
green: string;
|
|
48
|
+
yellow: string;
|
|
49
|
+
};
|
|
50
|
+
themes: {
|
|
51
|
+
system: string;
|
|
52
|
+
light: string;
|
|
53
|
+
dark: string;
|
|
54
|
+
};
|
|
55
|
+
recurrence: {
|
|
56
|
+
frequency: {
|
|
57
|
+
daily: string;
|
|
58
|
+
weekly: string;
|
|
59
|
+
monthly: string;
|
|
60
|
+
yearly: string;
|
|
61
|
+
};
|
|
62
|
+
units: {
|
|
63
|
+
daily: {
|
|
64
|
+
one: string;
|
|
65
|
+
many: string;
|
|
66
|
+
};
|
|
67
|
+
weekly: {
|
|
68
|
+
one: string;
|
|
69
|
+
many: string;
|
|
70
|
+
};
|
|
71
|
+
monthly: {
|
|
72
|
+
one: string;
|
|
73
|
+
many: string;
|
|
74
|
+
};
|
|
75
|
+
yearly: {
|
|
76
|
+
one: string;
|
|
77
|
+
many: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
every: (interval: number, unit: string) => string;
|
|
81
|
+
onWeekdays: (weekdays: string) => string;
|
|
82
|
+
onDate: (date: string) => string;
|
|
83
|
+
monthlyOnDay: (day: number) => string;
|
|
84
|
+
monthlyOnWeekday: (ordinal: number, weekday: string) => string;
|
|
85
|
+
monthlyOnLastWeekday: (weekday: string) => string;
|
|
86
|
+
until: (date: string) => string;
|
|
87
|
+
times: (count: number) => string;
|
|
88
|
+
};
|
|
89
|
+
views: {
|
|
90
|
+
label: string;
|
|
91
|
+
day: {
|
|
92
|
+
label: string;
|
|
93
|
+
previous: string;
|
|
94
|
+
next: string;
|
|
95
|
+
};
|
|
96
|
+
week: {
|
|
97
|
+
label: string;
|
|
98
|
+
previous: string;
|
|
99
|
+
next: string;
|
|
100
|
+
};
|
|
101
|
+
month: {
|
|
102
|
+
label: string;
|
|
103
|
+
previous: string;
|
|
104
|
+
next: string;
|
|
105
|
+
};
|
|
106
|
+
year: {
|
|
107
|
+
label: string;
|
|
108
|
+
previous: string;
|
|
109
|
+
next: string;
|
|
110
|
+
};
|
|
111
|
+
weekNumber: (week: number) => string;
|
|
112
|
+
weekNumberLong: (week: number) => string;
|
|
113
|
+
};
|
|
114
|
+
calendar: {
|
|
115
|
+
today: string;
|
|
116
|
+
newEvent: string;
|
|
117
|
+
now: (time: string) => string;
|
|
118
|
+
openDay: (date: string) => string;
|
|
119
|
+
moreEvents: (count: number) => string;
|
|
120
|
+
fromCalendar: (name: string) => string;
|
|
121
|
+
sharedEventNotice: (source: string) => string;
|
|
122
|
+
};
|
|
123
|
+
events: {
|
|
124
|
+
createTitle: string;
|
|
125
|
+
editTitle: string;
|
|
126
|
+
title: string;
|
|
127
|
+
startDate: string;
|
|
128
|
+
startTime: string;
|
|
129
|
+
endDate: string;
|
|
130
|
+
endTime: string;
|
|
131
|
+
allDay: string;
|
|
132
|
+
timeZone: string;
|
|
133
|
+
floatingTimeZone: string;
|
|
134
|
+
inYourTimeZone: (period: string) => string;
|
|
135
|
+
description: string;
|
|
136
|
+
color: string;
|
|
137
|
+
addCustomColor: string;
|
|
138
|
+
customColors: string;
|
|
139
|
+
customColorsDescription: (max: number) => string;
|
|
140
|
+
noCustomColors: string;
|
|
141
|
+
removeColor: (label: string) => string;
|
|
142
|
+
deleteTitle: string;
|
|
143
|
+
deleteSeriesMessage: (title: string) => string;
|
|
144
|
+
deleteMessage: (title: string) => string;
|
|
145
|
+
yes: string;
|
|
146
|
+
no: string;
|
|
147
|
+
scopeTitle: string;
|
|
148
|
+
scopeMessage: string;
|
|
149
|
+
scopes: {
|
|
150
|
+
single: string;
|
|
151
|
+
following: string;
|
|
152
|
+
all: string;
|
|
153
|
+
};
|
|
154
|
+
repeat: string;
|
|
155
|
+
never: string;
|
|
156
|
+
every: string;
|
|
157
|
+
onTheseDays: string;
|
|
158
|
+
inMonth: string;
|
|
159
|
+
ends: string;
|
|
160
|
+
endsOnDate: string;
|
|
161
|
+
endsAfterCount: string;
|
|
162
|
+
lastOccurrence: string;
|
|
163
|
+
after: string;
|
|
164
|
+
occurrences: {
|
|
165
|
+
one: string;
|
|
166
|
+
many: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
storage: {
|
|
170
|
+
importTitle: string;
|
|
171
|
+
importMessage: (count: number) => string;
|
|
172
|
+
importing: string;
|
|
173
|
+
importConfirm: string;
|
|
174
|
+
keepLocal: string;
|
|
175
|
+
};
|
|
176
|
+
settings: {
|
|
177
|
+
tabsLabel: string;
|
|
178
|
+
tabs: {
|
|
179
|
+
calendars: string;
|
|
180
|
+
invitations: string;
|
|
181
|
+
appearance: string;
|
|
182
|
+
account: string;
|
|
183
|
+
};
|
|
184
|
+
languageTitle: string;
|
|
185
|
+
languageDescription: string;
|
|
186
|
+
languageLabel: string;
|
|
187
|
+
languageAuto: string;
|
|
188
|
+
themeTitle: string;
|
|
189
|
+
themeLabel: string;
|
|
190
|
+
startViewTitle: string;
|
|
191
|
+
startViewDescription: string;
|
|
192
|
+
desktop: string;
|
|
193
|
+
mobile: string;
|
|
194
|
+
};
|
|
195
|
+
auth: {
|
|
196
|
+
name: string;
|
|
197
|
+
email: string;
|
|
198
|
+
password: string;
|
|
199
|
+
repeat: (label: string) => string;
|
|
200
|
+
passwordHint: (min: number) => string;
|
|
201
|
+
validation: {
|
|
202
|
+
nameRequired: string;
|
|
203
|
+
nameTooLong: (max: number) => string;
|
|
204
|
+
passwordRequired: string;
|
|
205
|
+
passwordTooShort: (min: number) => string;
|
|
206
|
+
passwordTooLong: (max: number) => string;
|
|
207
|
+
passwordMismatch: string;
|
|
208
|
+
passwordUnchanged: string;
|
|
209
|
+
};
|
|
210
|
+
login: {
|
|
211
|
+
title: string;
|
|
212
|
+
submit: string;
|
|
213
|
+
pending: string;
|
|
214
|
+
noAccount: string;
|
|
215
|
+
registerLink: string;
|
|
216
|
+
forgotPassword: string;
|
|
217
|
+
};
|
|
218
|
+
register: {
|
|
219
|
+
title: string;
|
|
220
|
+
submit: string;
|
|
221
|
+
pending: string;
|
|
222
|
+
hasAccount: string;
|
|
223
|
+
loginLink: string;
|
|
224
|
+
};
|
|
225
|
+
forgot: {
|
|
226
|
+
title: string;
|
|
227
|
+
remembered: string;
|
|
228
|
+
loginLink: string;
|
|
229
|
+
hint: string;
|
|
230
|
+
success: (email: string) => string;
|
|
231
|
+
submit: string;
|
|
232
|
+
pending: string;
|
|
233
|
+
};
|
|
234
|
+
reset: {
|
|
235
|
+
title: string;
|
|
236
|
+
newPassword: string;
|
|
237
|
+
incompleteLink: string;
|
|
238
|
+
requestNewLink: string;
|
|
239
|
+
success: string;
|
|
240
|
+
submit: string;
|
|
241
|
+
pending: string;
|
|
242
|
+
};
|
|
243
|
+
verify: {
|
|
244
|
+
title: string;
|
|
245
|
+
verifying: string;
|
|
246
|
+
incompleteLink: string;
|
|
247
|
+
success: string;
|
|
248
|
+
newLinkBefore: string;
|
|
249
|
+
newLinkSettings: string;
|
|
250
|
+
newLinkAfter: string;
|
|
251
|
+
bannerLabel: string;
|
|
252
|
+
bannerBefore: string;
|
|
253
|
+
bannerAfter: string;
|
|
254
|
+
resend: string;
|
|
255
|
+
resent: string;
|
|
256
|
+
sending: string;
|
|
257
|
+
};
|
|
258
|
+
continueToCalendar: string;
|
|
259
|
+
signInNow: string;
|
|
260
|
+
menu: {
|
|
261
|
+
signIn: string;
|
|
262
|
+
accountOf: (name: string) => string;
|
|
263
|
+
signOut: string;
|
|
264
|
+
signingOut: string;
|
|
265
|
+
};
|
|
266
|
+
account: {
|
|
267
|
+
profile: string;
|
|
268
|
+
savePending: string;
|
|
269
|
+
emailTitle: string;
|
|
270
|
+
verified: string;
|
|
271
|
+
unverified: string;
|
|
272
|
+
verificationSent: string;
|
|
273
|
+
resendVerification: string;
|
|
274
|
+
passwordTitle: string;
|
|
275
|
+
passwordDescription: string;
|
|
276
|
+
currentPassword: string;
|
|
277
|
+
newPassword: string;
|
|
278
|
+
passwordChanged: string;
|
|
279
|
+
passwordPending: string;
|
|
280
|
+
passwordSubmit: string;
|
|
281
|
+
deleteTitle: string;
|
|
282
|
+
deleteDescription: string;
|
|
283
|
+
deleteOpen: string;
|
|
284
|
+
deleteWarningBefore: string;
|
|
285
|
+
deleteWarningStrong: string;
|
|
286
|
+
deleteWarningAfter: string;
|
|
287
|
+
deletePassword: string;
|
|
288
|
+
deletePending: string;
|
|
289
|
+
deleteSubmit: string;
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
calendars: {
|
|
293
|
+
personalName: string;
|
|
294
|
+
roles: {
|
|
295
|
+
owner: string;
|
|
296
|
+
admin: string;
|
|
297
|
+
manager: string;
|
|
298
|
+
editor: string;
|
|
299
|
+
member: string;
|
|
300
|
+
contributor: string;
|
|
301
|
+
viewer: string;
|
|
302
|
+
};
|
|
303
|
+
roleDescriptions: {
|
|
304
|
+
owner: string;
|
|
305
|
+
admin: string;
|
|
306
|
+
manager: string;
|
|
307
|
+
editor: string;
|
|
308
|
+
member: string;
|
|
309
|
+
contributor: string;
|
|
310
|
+
viewer: string;
|
|
311
|
+
};
|
|
312
|
+
roleOverview: string;
|
|
313
|
+
roleHint: (role: string, description: string) => string;
|
|
314
|
+
kind: {
|
|
315
|
+
personal: string;
|
|
316
|
+
team: string;
|
|
317
|
+
teamWithName: (team: string) => string;
|
|
318
|
+
};
|
|
319
|
+
indicator: {
|
|
320
|
+
onlyYou: string;
|
|
321
|
+
team: (role: string) => string;
|
|
322
|
+
current: (name: string) => string;
|
|
323
|
+
};
|
|
324
|
+
switcher: {
|
|
325
|
+
open: string;
|
|
326
|
+
title: string;
|
|
327
|
+
personal: string;
|
|
328
|
+
teams: string;
|
|
329
|
+
active: string;
|
|
330
|
+
openInvitations: (count: number) => string;
|
|
331
|
+
view: string;
|
|
332
|
+
noTeams: string;
|
|
333
|
+
newCalendar: string;
|
|
334
|
+
};
|
|
335
|
+
invitations: {
|
|
336
|
+
title: string;
|
|
337
|
+
description: string;
|
|
338
|
+
empty: string;
|
|
339
|
+
invitedBy: (name: string) => string;
|
|
340
|
+
invited: string;
|
|
341
|
+
validUntil: (date: string) => string;
|
|
342
|
+
decline: string;
|
|
343
|
+
declining: string;
|
|
344
|
+
accept: string;
|
|
345
|
+
accepting: string;
|
|
346
|
+
};
|
|
347
|
+
list: {
|
|
348
|
+
title: string;
|
|
349
|
+
description: string;
|
|
350
|
+
settingsFor: (name: string) => string;
|
|
351
|
+
personalHint: string;
|
|
352
|
+
showInPersonal: string;
|
|
353
|
+
leave: string;
|
|
354
|
+
ownerCannotLeave: string;
|
|
355
|
+
noTeamCalendars: string;
|
|
356
|
+
create: string;
|
|
357
|
+
};
|
|
358
|
+
leave: {
|
|
359
|
+
title: string;
|
|
360
|
+
confirm: string;
|
|
361
|
+
pending: string;
|
|
362
|
+
message: (team: string) => string;
|
|
363
|
+
};
|
|
364
|
+
create: {
|
|
365
|
+
title: string;
|
|
366
|
+
steps: {
|
|
367
|
+
label: string;
|
|
368
|
+
title: string;
|
|
369
|
+
hint: string;
|
|
370
|
+
}[];
|
|
371
|
+
stepCount: (step: number, total: number) => string;
|
|
372
|
+
next: string;
|
|
373
|
+
pending: string;
|
|
374
|
+
submit: string;
|
|
375
|
+
};
|
|
376
|
+
details: {
|
|
377
|
+
name: string;
|
|
378
|
+
namePlaceholder: string;
|
|
379
|
+
description: string;
|
|
380
|
+
descriptionOptional: string;
|
|
381
|
+
descriptionPlaceholder: string;
|
|
382
|
+
yourRole: string;
|
|
383
|
+
invitations: string;
|
|
384
|
+
none: string;
|
|
385
|
+
};
|
|
386
|
+
invite: {
|
|
387
|
+
email: string;
|
|
388
|
+
role: string;
|
|
389
|
+
add: string;
|
|
390
|
+
nobodyYet: string;
|
|
391
|
+
remove: (email: string) => string;
|
|
392
|
+
};
|
|
393
|
+
validation: {
|
|
394
|
+
nameRequired: string;
|
|
395
|
+
nameTooLong: (max: number) => string;
|
|
396
|
+
tooManyInvitations: (max: number) => string;
|
|
397
|
+
selfInvite: string;
|
|
398
|
+
alreadyInvited: string;
|
|
399
|
+
alreadyMember: string;
|
|
400
|
+
};
|
|
401
|
+
settings: {
|
|
402
|
+
title: string;
|
|
403
|
+
pageTitle: (name: string) => string;
|
|
404
|
+
notFound: string;
|
|
405
|
+
tabsLabel: string;
|
|
406
|
+
withCount: (label: string, count: number) => string;
|
|
407
|
+
tabs: {
|
|
408
|
+
general: string;
|
|
409
|
+
members: string;
|
|
410
|
+
invitations: string;
|
|
411
|
+
danger: string;
|
|
412
|
+
};
|
|
413
|
+
displayTitle: string;
|
|
414
|
+
displayDescription: string;
|
|
415
|
+
personalTitle: string;
|
|
416
|
+
personalHint: string;
|
|
417
|
+
};
|
|
418
|
+
general: {
|
|
419
|
+
title: string;
|
|
420
|
+
teamDescription: string;
|
|
421
|
+
personalDescription: string;
|
|
422
|
+
pending: string;
|
|
423
|
+
};
|
|
424
|
+
members: {
|
|
425
|
+
title: string;
|
|
426
|
+
description: string;
|
|
427
|
+
you: string;
|
|
428
|
+
roleOf: (name: string) => string;
|
|
429
|
+
remove: string;
|
|
430
|
+
removeTitle: string;
|
|
431
|
+
removing: string;
|
|
432
|
+
removeMessage: (name: string, calendar: string) => string;
|
|
433
|
+
};
|
|
434
|
+
teamInvitations: {
|
|
435
|
+
title: string;
|
|
436
|
+
description: string;
|
|
437
|
+
revoke: string;
|
|
438
|
+
revoking: string;
|
|
439
|
+
submit: string;
|
|
440
|
+
sending: string;
|
|
441
|
+
sent: (email: string) => string;
|
|
442
|
+
none: string;
|
|
443
|
+
};
|
|
444
|
+
danger: {
|
|
445
|
+
title: string;
|
|
446
|
+
transferHint: string;
|
|
447
|
+
transferUnavailable: string;
|
|
448
|
+
transfer: string;
|
|
449
|
+
lastOwnerHint: string;
|
|
450
|
+
leaveHint: string;
|
|
451
|
+
deleteHint: (team: string) => string;
|
|
452
|
+
deleteTeam: string;
|
|
453
|
+
transferConfirmTitle: string;
|
|
454
|
+
transferConfirm: string;
|
|
455
|
+
transferring: string;
|
|
456
|
+
transferMessage: (name: string, email: string, team: string, role: string) => string;
|
|
457
|
+
deleteTitle: string;
|
|
458
|
+
deleteConfirm: string;
|
|
459
|
+
deleting: string;
|
|
460
|
+
deleteMessage: (team: string, count: number) => string;
|
|
461
|
+
};
|
|
462
|
+
transfer: {
|
|
463
|
+
title: string;
|
|
464
|
+
search: string;
|
|
465
|
+
searchPlaceholder: string;
|
|
466
|
+
noResults: string;
|
|
467
|
+
newOwner: string;
|
|
468
|
+
confirm: string;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
} | null;
|
|
472
|
+
export declare function loadMessages(language: Language): Promise<Messages>;
|
|
473
|
+
export declare const mergeMessages: (base: Messages, override: PartialMessages | undefined) => Messages;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import type { en } from './en/index.js';
|
|
2
2
|
export type Messages = typeof en;
|
|
3
|
+
export type DeepPartial<T> = T extends (...args: never[]) => unknown ? T : T extends readonly unknown[] ? T : T extends object ? {
|
|
4
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
5
|
+
} : T;
|
|
6
|
+
export type PartialMessages = DeepPartial<Messages>;
|
|
7
|
+
export type MessageOverrides = Readonly<Record<string, PartialMessages>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type CalendarProps } from './config.js';
|
|
2
|
-
export declare function CalendarWidget({ dataSource: providedDataSource, tenant, getUserToken, storageMode, apiBaseUrl, apiTimeoutMs, features, routing, basename, initialPath, linkParam, locale, theme, initialView, onEventCreate, onEventUpdate, onEventDelete, className, style, }: CalendarProps): import("react").JSX.Element;
|
|
2
|
+
export declare function CalendarWidget({ dataSource: providedDataSource, tenant, getUserToken, storageMode, apiBaseUrl, apiTimeoutMs, features, routing, basename, initialPath, linkParam, locale, messages, theme, initialView, timeZone, onEventCreate, onEventUpdate, onEventDelete, className, style, }: CalendarProps): import("react").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { MessageOverrides } from '../i18n/index.js';
|
|
1
2
|
import type { CSSProperties } from 'react';
|
|
2
3
|
import type { CalendarDataSource } from '../data/index.js';
|
|
3
4
|
import type { HostTheme } from '../context/HostContext.js';
|
|
@@ -21,8 +22,10 @@ export type CalendarProps = EventCallbacks & {
|
|
|
21
22
|
initialPath?: string;
|
|
22
23
|
linkParam?: string | false;
|
|
23
24
|
locale?: string;
|
|
25
|
+
messages?: MessageOverrides;
|
|
24
26
|
theme?: HostTheme;
|
|
25
27
|
initialView?: CalendarView;
|
|
28
|
+
timeZone?: string;
|
|
26
29
|
className?: string;
|
|
27
30
|
style?: CSSProperties;
|
|
28
31
|
};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type { CalendarDataSource } from '../data/index.js';
|
|
2
2
|
import type { UserTokenProvider } from '../features/authorization/index.js';
|
|
3
|
+
import type { MessageOverrides } from '../i18n/index.js';
|
|
3
4
|
export declare const DEFAULT_ELEMENT_NAME = "calendar-widget";
|
|
4
5
|
export declare class CalendarElement extends HTMLElement {
|
|
5
6
|
#private;
|
|
6
|
-
static observedAttributes: readonly ["storage-mode", "api-base-url", "api-timeout-ms", "auth", "teams", "initial-path", "locale", "tenant", "theme", "initial-view", "link-param"];
|
|
7
|
+
static observedAttributes: readonly ["storage-mode", "api-base-url", "api-timeout-ms", "auth", "teams", "initial-path", "locale", "tenant", "theme", "initial-view", "link-param", "time-zone"];
|
|
7
8
|
static readonly version: string;
|
|
8
9
|
get dataSource(): CalendarDataSource | undefined;
|
|
9
10
|
set dataSource(value: CalendarDataSource | undefined);
|
|
10
11
|
get getUserToken(): UserTokenProvider | undefined;
|
|
11
12
|
set getUserToken(value: UserTokenProvider | undefined);
|
|
13
|
+
get messages(): MessageOverrides | undefined;
|
|
14
|
+
set messages(value: MessageOverrides | undefined);
|
|
12
15
|
connectedCallback(): void;
|
|
13
16
|
disconnectedCallback(): void;
|
|
14
17
|
attributeChangedCallback(): void;
|
|
@@ -5,6 +5,7 @@ export type { CalendarFeatures, CalendarProps, CalendarRouting, StorageMode } fr
|
|
|
5
5
|
export type { DeletedEvent, EventCallbacks } from './eventCallbacks.js';
|
|
6
6
|
export type { HostTheme } from '../context/HostContext.js';
|
|
7
7
|
export type { CalendarView } from '../utils/calendarView.js';
|
|
8
|
+
export type { DeepPartial, MessageOverrides, Messages, PartialMessages } from '../i18n/index.js';
|
|
8
9
|
export { localDataSource, restDataSource, TENANT_HEADER, tenantDataSource } from '../data/index.js';
|
|
9
10
|
export type { CalendarDataSource, DataRepositories, DataSession, DataSourceContext, RestDataSourceOptions, TenantDataSourceOptions, } from '../data/index.js';
|
|
10
11
|
export type { AuthMethod, AuthRepository, User, UserTokenProvider } from '../features/authorization/index.js';
|
|
@@ -16,6 +16,8 @@ export type CalendarEvent = {
|
|
|
16
16
|
start: string;
|
|
17
17
|
endDate: string;
|
|
18
18
|
end: string;
|
|
19
|
+
allDay: boolean;
|
|
20
|
+
timeZone: string | null;
|
|
19
21
|
description: string;
|
|
20
22
|
color: EventColor;
|
|
21
23
|
recurrence: Recurrence | null;
|
|
@@ -25,18 +27,20 @@ export type CalendarEvent = {
|
|
|
25
27
|
createdAt: string;
|
|
26
28
|
updatedAt: string;
|
|
27
29
|
};
|
|
28
|
-
declare const EVENT_INPUT_KEYS: readonly ["title", "startDate", "start", "endDate", "end", "description", "color", "recurrence", "excludedDates", "seriesId", "originalDate"];
|
|
30
|
+
declare const EVENT_INPUT_KEYS: readonly ["title", "startDate", "start", "endDate", "end", "allDay", "timeZone", "description", "color", "recurrence", "excludedDates", "seriesId", "originalDate"];
|
|
29
31
|
export type EventInput = Pick<CalendarEvent, (typeof EVENT_INPUT_KEYS)[number]>;
|
|
30
32
|
export declare const NO_SERIES_LINK: {
|
|
31
33
|
readonly seriesId: null;
|
|
32
34
|
readonly originalDate: null;
|
|
33
35
|
};
|
|
36
|
+
export type EventPeriod = Pick<CalendarEvent, 'startDate' | 'start' | 'endDate' | 'end'>;
|
|
34
37
|
export type EventOccurrence = CalendarEvent & {
|
|
35
38
|
occurrenceKey: string;
|
|
39
|
+
occurrenceDate: string;
|
|
36
40
|
seriesStartDate: string;
|
|
41
|
+
source: EventPeriod;
|
|
37
42
|
};
|
|
38
43
|
export type EditScope = 'single' | 'following' | 'all';
|
|
39
|
-
export type EventPeriod = Pick<CalendarEvent, 'startDate' | 'start' | 'endDate' | 'end'>;
|
|
40
44
|
export type SeriesRule = Pick<CalendarEvent, 'startDate' | 'recurrence' | 'excludedDates'>;
|
|
41
45
|
export type EventValidationErrors = Partial<Record<Exclude<keyof EventInput, 'recurrence'>, string>> & {
|
|
42
46
|
recurrence?: RecurrenceValidationErrors;
|
|
@@ -53,11 +57,16 @@ export type HourSlot = {
|
|
|
53
57
|
date: string;
|
|
54
58
|
hour: number;
|
|
55
59
|
};
|
|
56
|
-
export declare const
|
|
57
|
-
export declare const
|
|
60
|
+
export declare const ALL_DAY_TIME = "00:00";
|
|
61
|
+
export declare const createEventInputForSlots: (first: HourSlot, last: HourSlot, timeZone: string | null) => EventInput;
|
|
62
|
+
export declare const createEventInput: (date: string, hour: number, timeZone: string | null) => EventInput;
|
|
63
|
+
export declare const createAllDayEventInput: (startDate: string, endDate?: string) => EventInput;
|
|
58
64
|
export declare const toEventInput: (event: CalendarEvent) => EventInput;
|
|
59
65
|
export declare const normalizeEventInput: (input: EventInput) => EventInput;
|
|
60
|
-
export declare const
|
|
66
|
+
export declare const toOccurrenceInput: (occurrence: EventOccurrence) => EventInput;
|
|
67
|
+
export declare const getEventDuration: (period: EventPeriod & {
|
|
68
|
+
allDay?: boolean;
|
|
69
|
+
}) => number;
|
|
61
70
|
export declare const isMultiDayEvent: ({ startDate, endDate }: Pick<EventPeriod, "startDate" | "endDate">) => boolean;
|
|
62
71
|
export declare const getSpanDays: ({ startDate, endDate }: Pick<EventPeriod, "startDate" | "endDate">) => number;
|
|
63
72
|
export declare const moveToStartDate: (period: Pick<EventPeriod, "startDate" | "endDate">, startDate: string) => {
|
|
@@ -67,8 +76,11 @@ export declare const moveToStartDate: (period: Pick<EventPeriod, "startDate" | "
|
|
|
67
76
|
export declare const getActiveOccurrenceDates: ({ startDate, recurrence, excludedDates }: SeriesRule, from: string, to: string) => string[];
|
|
68
77
|
export declare const eventOccursInRange: (event: CalendarEvent, from: string, to: string) => boolean;
|
|
69
78
|
export declare const toSeriesRule: (occurrence: EventOccurrence) => SeriesRule;
|
|
70
|
-
export declare const
|
|
71
|
-
export declare const
|
|
79
|
+
export declare const toViewerPeriod: (period: EventPeriod, timeZone: string | null, viewerTimeZone: string | null) => EventPeriod;
|
|
80
|
+
export declare const expandEvents: (events: readonly CalendarEvent[], from: string, to: string, viewerTimeZone?: string | null) => EventOccurrence[];
|
|
81
|
+
export declare const formatEventPeriod: (event: EventPeriod & {
|
|
82
|
+
allDay?: boolean;
|
|
83
|
+
}, { m, format }: Pick<I18n, "m" | "format">) => string;
|
|
72
84
|
export declare const validateEventInput: (input: EventInput, m: Messages) => EventValidationErrors;
|
|
73
85
|
export declare const hasValidationErrors: ({ recurrence, ...fields }: EventValidationErrors) => boolean;
|
|
74
86
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type LocaleChoice } from '../i18n/locale.js';
|
|
2
1
|
import { type CalendarView } from './calendarView.js';
|
|
3
2
|
export declare const THEMES: readonly ["system", "light", "dark"];
|
|
4
3
|
export type Theme = (typeof THEMES)[number];
|
|
@@ -6,7 +5,7 @@ export type Preferences = {
|
|
|
6
5
|
theme: Theme;
|
|
7
6
|
defaultView: CalendarView;
|
|
8
7
|
mobileDefaultView: CalendarView;
|
|
9
|
-
locale:
|
|
8
|
+
locale: string;
|
|
10
9
|
};
|
|
11
10
|
export declare const DEFAULT_PREFERENCES: Preferences;
|
|
12
11
|
export declare const COMPACT_MAX_WIDTH = 700;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type WallTime = {
|
|
2
|
+
date: string;
|
|
3
|
+
time: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const isTimeZone: (value: unknown) => value is string;
|
|
6
|
+
export declare const getBrowserTimeZone: () => string;
|
|
7
|
+
export declare const listTimeZones: () => string[];
|
|
8
|
+
export declare const toInstant: (wallTime: WallTime, timeZone: string) => number;
|
|
9
|
+
export declare const fromInstant: (instant: number, timeZone: string) => WallTime;
|
|
10
|
+
export declare const convertWallTime: (wallTime: WallTime, from: string, to: string) => WallTime;
|
|
11
|
+
export declare const formatTimeZoneOffset: (timeZone: string, at?: number) => string;
|