@rokoyfa/calendar 1.0.0 → 1.2.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.
Files changed (181) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +85 -3
  3. package/api/openapi.yaml +359 -3
  4. package/dist-lib/cdn/calendar-widget.js +11 -7
  5. package/dist-lib/cdn/calendar-widget.js.map +1 -1
  6. package/dist-lib/cdn/de-BjzK4Pgn.js +2 -0
  7. package/dist-lib/cdn/de-BjzK4Pgn.js.map +1 -0
  8. package/dist-lib/cdn/es-TA5DvEsw.js +2 -0
  9. package/dist-lib/cdn/es-TA5DvEsw.js.map +1 -0
  10. package/dist-lib/cdn/fr-Dx-nmhQ7.js +2 -0
  11. package/dist-lib/cdn/fr-Dx-nmhQ7.js.map +1 -0
  12. package/dist-lib/cdn/it-D_2eA3dT.js +2 -0
  13. package/dist-lib/cdn/it-D_2eA3dT.js.map +1 -0
  14. package/dist-lib/cdn/nl-dC1zae2Z.js +2 -0
  15. package/dist-lib/cdn/nl-dC1zae2Z.js.map +1 -0
  16. package/dist-lib/cdn/pl-9TYRPoy1.js +2 -0
  17. package/dist-lib/cdn/pl-9TYRPoy1.js.map +1 -0
  18. package/dist-lib/cdn/pt-CvBN-qx1.js +2 -0
  19. package/dist-lib/cdn/pt-CvBN-qx1.js.map +1 -0
  20. package/dist-lib/cdn/rolldown-runtime-CrjiCqGf.js +1 -0
  21. package/dist-lib/cdn/src-l8Q4aJRr.js +12 -0
  22. package/dist-lib/cdn/src-l8Q4aJRr.js.map +1 -0
  23. package/dist-lib/npm/{de-CCzGjeTd.js → de-Cuz-uz3s.js} +133 -8
  24. package/dist-lib/npm/de-Cuz-uz3s.js.map +1 -0
  25. package/dist-lib/npm/{es-Ciaf66rH.js → es-BnRzdU90.js} +133 -8
  26. package/dist-lib/npm/es-BnRzdU90.js.map +1 -0
  27. package/dist-lib/npm/{fr-CAqNm10Z.js → fr-B-nmvStg.js} +133 -8
  28. package/dist-lib/npm/fr-B-nmvStg.js.map +1 -0
  29. package/dist-lib/npm/index.js +5632 -2473
  30. package/dist-lib/npm/index.js.map +1 -1
  31. package/dist-lib/npm/{it-Cqqdu2ua.js → it-DMTpE4GO.js} +133 -8
  32. package/dist-lib/npm/it-DMTpE4GO.js.map +1 -0
  33. package/dist-lib/npm/{nl-CkchSA8q.js → nl-DQkyEt9Z.js} +133 -8
  34. package/dist-lib/npm/nl-DQkyEt9Z.js.map +1 -0
  35. package/dist-lib/npm/{pl-CCBDUr8k.js → pl-CcjU41yx.js} +133 -8
  36. package/dist-lib/npm/pl-CcjU41yx.js.map +1 -0
  37. package/dist-lib/npm/{pt-DucaCaoY.js → pt-Dulais2f.js} +133 -8
  38. package/dist-lib/npm/pt-Dulais2f.js.map +1 -0
  39. package/dist-lib/npm/types/components/Button.d.ts +1 -1
  40. package/dist-lib/npm/types/components/Icons.d.ts +5 -0
  41. package/dist-lib/npm/types/components/SegmentedControl.d.ts +2 -2
  42. package/dist-lib/npm/types/components/SegmentedField.d.ts +2 -11
  43. package/dist-lib/npm/types/components/StatusMessage.d.ts +0 -1
  44. package/dist-lib/npm/types/components/Tabs.d.ts +3 -1
  45. package/dist-lib/npm/types/config/routes.d.ts +1 -1
  46. package/dist-lib/npm/types/context/HostContext.d.ts +2 -1
  47. package/dist-lib/npm/types/context/TimeZoneContext.d.ts +3 -0
  48. package/dist-lib/npm/types/data/restDataSource.d.ts +4 -1
  49. package/dist-lib/npm/types/data/tenantDataSource.d.ts +3 -1
  50. package/dist-lib/npm/types/data/types.d.ts +3 -1
  51. package/dist-lib/npm/types/features/authorization/hooks/useAuth.d.ts +2 -1
  52. package/dist-lib/npm/types/features/authorization/hooks/useRedirectTarget.d.ts +4 -0
  53. package/dist-lib/npm/types/features/authorization/index.d.ts +1 -1
  54. package/dist-lib/npm/types/features/authorization/repositories/HostTokenAuthRepository.d.ts +2 -0
  55. package/dist-lib/npm/types/features/authorization/repositories/RemoteAuthRepository.d.ts +2 -0
  56. package/dist-lib/npm/types/features/authorization/types/auth.d.ts +3 -0
  57. package/dist-lib/npm/types/features/calendar/components/Calendar.d.ts +14 -1
  58. package/dist-lib/npm/types/features/calendar/components/CalendarHeader.d.ts +2 -1
  59. package/dist-lib/npm/types/features/calendar/components/DayColumn.d.ts +2 -1
  60. package/dist-lib/npm/types/features/calendar/components/EventLinks.d.ts +7 -0
  61. package/dist-lib/npm/types/features/calendar/components/EventLocation.d.ts +3 -0
  62. package/dist-lib/npm/types/features/calendar/components/EventSearchModal.d.ts +9 -0
  63. package/dist-lib/npm/types/features/calendar/components/EventTitle.d.ts +2 -1
  64. package/dist-lib/npm/types/features/calendar/components/MiniMonth.d.ts +2 -1
  65. package/dist-lib/npm/types/features/calendar/components/UndoNotice.d.ts +7 -0
  66. package/dist-lib/npm/types/features/calendar/constants/views.d.ts +3 -0
  67. package/dist-lib/npm/types/features/calendar/context/CurrentUserContext.d.ts +3 -0
  68. package/dist-lib/npm/types/features/calendar/context/HolidaysContext.d.ts +4 -0
  69. package/dist-lib/npm/types/features/calendar/hooks/useAttendeeCandidates.d.ts +3 -0
  70. package/dist-lib/npm/types/features/calendar/hooks/useEventDrag.d.ts +1 -1
  71. package/dist-lib/npm/types/features/calendar/hooks/useEventSearch.d.ts +7 -0
  72. package/dist-lib/npm/types/features/calendar/hooks/useEventSource.d.ts +2 -1
  73. package/dist-lib/npm/types/features/calendar/hooks/usePressDrag.d.ts +23 -0
  74. package/dist-lib/npm/types/features/calendar/hooks/useSegmentAttributes.d.ts +15 -0
  75. package/dist-lib/npm/types/features/calendar/hooks/useSlotSelection.d.ts +1 -4
  76. package/dist-lib/npm/types/features/calendar/index.d.ts +1 -2
  77. package/dist-lib/npm/types/features/calendar/types/editor.d.ts +3 -0
  78. package/dist-lib/npm/types/features/calendar/types/view.d.ts +1 -1
  79. package/dist-lib/npm/types/features/calendar/utils/eventDrag.d.ts +0 -1
  80. package/dist-lib/npm/types/features/calendar/utils/eventLabels.d.ts +0 -3
  81. package/dist-lib/npm/types/features/calendar/utils/search.d.ts +11 -0
  82. package/dist-lib/npm/types/features/calendars/components/ShowInPersonalSwitch.d.ts +4 -0
  83. package/dist-lib/npm/types/features/calendars/components/settings/ExchangeSection.d.ts +4 -0
  84. package/dist-lib/npm/types/features/calendars/components/settings/SubscribeSection.d.ts +4 -0
  85. package/dist-lib/npm/types/features/calendars/context/CalendarsProvider.d.ts +2 -1
  86. package/dist-lib/npm/types/features/calendars/index.d.ts +2 -2
  87. package/dist-lib/npm/types/features/calendars/repositories/LocalCalendarRepository.d.ts +12 -1
  88. package/dist-lib/npm/types/features/calendars/repositories/RemoteCalendarRepository.d.ts +3 -0
  89. package/dist-lib/npm/types/features/calendars/types/calendar.d.ts +5 -1
  90. package/dist-lib/npm/types/features/calendars/utils/activeCalendarStorage.d.ts +2 -0
  91. package/dist-lib/npm/types/features/calendars/utils/permissions.d.ts +1 -2
  92. package/dist-lib/npm/types/features/chat/components/ChatPanel.d.ts +8 -0
  93. package/dist-lib/npm/types/features/chat/components/ChatProvider.d.ts +13 -0
  94. package/dist-lib/npm/types/features/chat/components/UnreadBadge.d.ts +4 -0
  95. package/dist-lib/npm/types/features/chat/context/ChatContext.d.ts +14 -0
  96. package/dist-lib/npm/types/features/chat/hooks/useChatMessages.d.ts +13 -0
  97. package/dist-lib/npm/types/features/chat/hooks/useChatUnread.d.ts +7 -0
  98. package/dist-lib/npm/types/features/chat/index.d.ts +4 -0
  99. package/dist-lib/npm/types/features/chat/utils/time.d.ts +2 -0
  100. package/dist-lib/npm/types/features/events/components/AttendeesField.d.ts +15 -0
  101. package/dist-lib/npm/types/features/events/components/EventModal.d.ts +19 -3
  102. package/dist-lib/npm/types/features/events/components/LinksField.d.ts +8 -0
  103. package/dist-lib/npm/types/features/events/components/ReminderField.d.ts +6 -0
  104. package/dist-lib/npm/types/features/events/hooks/useEvents.d.ts +6 -3
  105. package/dist-lib/npm/types/features/events/index.d.ts +3 -1
  106. package/dist-lib/npm/types/features/events/utils/icalExchange.d.ts +11 -0
  107. package/dist-lib/npm/types/features/events/utils/undo.d.ts +7 -0
  108. package/dist-lib/npm/types/features/holidays/components/HolidaySettings.d.ts +1 -0
  109. package/dist-lib/npm/types/features/holidays/hooks/useHolidays.d.ts +3 -0
  110. package/dist-lib/npm/types/features/holidays/index.d.ts +2 -0
  111. package/dist-lib/npm/types/features/holidays/utils/holidayLibrary.d.ts +8 -0
  112. package/dist-lib/npm/types/features/preferences/components/NotificationSettings.d.ts +3 -0
  113. package/dist-lib/npm/types/features/preferences/index.d.ts +1 -0
  114. package/dist-lib/npm/types/features/reminders/ReminderNotices.d.ts +1 -0
  115. package/dist-lib/npm/types/features/reminders/useReminders.d.ts +2 -0
  116. package/dist-lib/npm/types/features/storage/hooks/useStorage.d.ts +1 -2
  117. package/dist-lib/npm/types/features/storage/index.d.ts +4 -2
  118. package/dist-lib/npm/types/features/storage/repositories/LocalEventRepository.d.ts +2 -1
  119. package/dist-lib/npm/types/features/storage/repositories/RemoteChatRepository.d.ts +18 -0
  120. package/dist-lib/npm/types/features/storage/repositories/RemoteEventRepository.d.ts +5 -2
  121. package/dist-lib/npm/types/features/storage/repositories/RemoteHolidayRepository.d.ts +7 -0
  122. package/dist-lib/npm/types/features/storage/types/storage.d.ts +30 -2
  123. package/dist-lib/npm/types/hooks/useDebouncedValue.d.ts +1 -0
  124. package/dist-lib/npm/types/hooks/useForm.d.ts +5 -0
  125. package/dist-lib/npm/types/hooks/useFormState.d.ts +5 -0
  126. package/dist-lib/npm/types/hooks/useKeyboardShortcuts.d.ts +3 -0
  127. package/dist-lib/npm/types/hooks/useLocationUrl.d.ts +1 -0
  128. package/dist-lib/npm/types/i18n/format.d.ts +1 -0
  129. package/dist-lib/npm/types/i18n/index.d.ts +0 -1
  130. package/dist-lib/npm/types/i18n/locale.d.ts +0 -2
  131. package/dist-lib/npm/types/i18n/messages/en/calendar.d.ts +17 -0
  132. package/dist-lib/npm/types/i18n/messages/en/calendars.d.ts +25 -0
  133. package/dist-lib/npm/types/i18n/messages/en/core.d.ts +2 -0
  134. package/dist-lib/npm/types/i18n/messages/en/events.d.ts +63 -3
  135. package/dist-lib/npm/types/i18n/messages/en/index.d.ts +128 -3
  136. package/dist-lib/npm/types/i18n/messages/en/settings.d.ts +21 -0
  137. package/dist-lib/npm/types/i18n/messages/index.d.ts +128 -3
  138. package/dist-lib/npm/types/lib/CalendarWidget.d.ts +1 -1
  139. package/dist-lib/npm/types/lib/config.d.ts +6 -2
  140. package/dist-lib/npm/types/lib/defaults.d.ts +2 -0
  141. package/dist-lib/npm/types/lib/element.d.ts +1 -1
  142. package/dist-lib/npm/types/lib/index.d.ts +4 -3
  143. package/dist-lib/npm/types/pages/RespondPage.d.ts +1 -0
  144. package/dist-lib/npm/types/utils/api.d.ts +4 -5
  145. package/dist-lib/npm/types/utils/apiError.d.ts +0 -2
  146. package/dist-lib/npm/types/utils/appError.d.ts +2 -1
  147. package/dist-lib/npm/types/utils/chat.d.ts +44 -0
  148. package/dist-lib/npm/types/utils/color.d.ts +0 -1
  149. package/dist-lib/npm/types/utils/date.d.ts +0 -6
  150. package/dist-lib/npm/types/utils/event.d.ts +41 -5
  151. package/dist-lib/npm/types/utils/holidays.d.ts +18 -0
  152. package/dist-lib/npm/types/utils/ical.d.ts +11 -0
  153. package/dist-lib/npm/types/utils/location.d.ts +4 -0
  154. package/dist-lib/npm/types/utils/notifications.d.ts +3 -0
  155. package/dist-lib/npm/types/utils/preferences.d.ts +7 -1
  156. package/dist-lib/npm/types/utils/recurrence.d.ts +3 -4
  157. package/dist-lib/npm/types/utils/reminders.d.ts +13 -0
  158. package/dist-lib/npm/types/utils/timeZone.d.ts +1 -1
  159. package/package.json +4 -1
  160. package/dist-lib/cdn/de-BPZBZXaZ.js +0 -2
  161. package/dist-lib/cdn/de-BPZBZXaZ.js.map +0 -1
  162. package/dist-lib/cdn/es-DsIckdik.js +0 -2
  163. package/dist-lib/cdn/es-DsIckdik.js.map +0 -1
  164. package/dist-lib/cdn/fr-DWAs3O6J.js +0 -2
  165. package/dist-lib/cdn/fr-DWAs3O6J.js.map +0 -1
  166. package/dist-lib/cdn/it-CbhjxqIb.js +0 -2
  167. package/dist-lib/cdn/it-CbhjxqIb.js.map +0 -1
  168. package/dist-lib/cdn/nl-mjTHznX5.js +0 -2
  169. package/dist-lib/cdn/nl-mjTHznX5.js.map +0 -1
  170. package/dist-lib/cdn/pl-CXT0jb2D.js +0 -2
  171. package/dist-lib/cdn/pl-CXT0jb2D.js.map +0 -1
  172. package/dist-lib/cdn/pt-D0oXlVdU.js +0 -2
  173. package/dist-lib/cdn/pt-D0oXlVdU.js.map +0 -1
  174. package/dist-lib/npm/de-CCzGjeTd.js.map +0 -1
  175. package/dist-lib/npm/es-Ciaf66rH.js.map +0 -1
  176. package/dist-lib/npm/fr-CAqNm10Z.js.map +0 -1
  177. package/dist-lib/npm/it-Cqqdu2ua.js.map +0 -1
  178. package/dist-lib/npm/nl-CkchSA8q.js.map +0 -1
  179. package/dist-lib/npm/pl-CCBDUr8k.js.map +0 -1
  180. package/dist-lib/npm/pt-DucaCaoY.js.map +0 -1
  181. package/dist-lib/npm/types/hooks/useArrowKeyNavigation.d.ts +0 -6
@@ -37,6 +37,8 @@ export declare const en: {
37
37
  weekdaysRequired: string;
38
38
  dateInvalid: string;
39
39
  untilBeforeStart: string;
40
+ locationTooLong: (max: number) => string;
41
+ linkInvalid: string;
40
42
  };
41
43
  colors: {
42
44
  blue: string;
@@ -114,8 +116,25 @@ export declare const en: {
114
116
  now: (time: string) => string;
115
117
  openDay: (date: string) => string;
116
118
  moreEvents: (count: number) => string;
119
+ moreLinks: (count: number) => string;
120
+ holiday: (name: string) => string;
117
121
  fromCalendar: (name: string) => string;
118
122
  sharedEventNotice: (source: string) => string;
123
+ dismiss: string;
124
+ undo: {
125
+ action: string;
126
+ ctrlZ: string;
127
+ deleted: (title: string) => string;
128
+ moved: (title: string) => string;
129
+ };
130
+ search: {
131
+ open: string;
132
+ title: string;
133
+ placeholder: string;
134
+ hint: string;
135
+ empty: string;
136
+ searching: string;
137
+ };
119
138
  };
120
139
  events: {
121
140
  createTitle: string;
@@ -138,9 +157,6 @@ export declare const en: {
138
157
  removeColor: (label: string) => string;
139
158
  deleteTitle: string;
140
159
  deleteSeriesMessage: (title: string) => string;
141
- deleteMessage: (title: string) => string;
142
- yes: string;
143
- no: string;
144
160
  scopeTitle: string;
145
161
  scopeMessage: string;
146
162
  scopes: {
@@ -162,6 +178,69 @@ export declare const en: {
162
178
  one: string;
163
179
  many: string;
164
180
  };
181
+ location: string;
182
+ reminder: string;
183
+ noReminder: string;
184
+ reminderAtStart: string;
185
+ reminderBefore: (duration: string) => string;
186
+ reminderDue: (title: string, time: string) => string;
187
+ reminderBlocked: string;
188
+ attendees: string;
189
+ addAttendee: string;
190
+ inviteAll: (count: number) => string;
191
+ removeAttendee: (name: string) => string;
192
+ allMembersInvited: string;
193
+ attendeeStatus: {
194
+ needsAction: string;
195
+ accepted: string;
196
+ tentative: string;
197
+ declined: string;
198
+ };
199
+ yourResponse: string;
200
+ respond: {
201
+ accepted: string;
202
+ tentative: string;
203
+ declined: string;
204
+ };
205
+ attendeeSummary: (accepted: number, total: number) => string;
206
+ tabsLabel: string;
207
+ tabs: {
208
+ general: string;
209
+ recurrence: string;
210
+ attendees: string;
211
+ details: string;
212
+ };
213
+ links: string;
214
+ addLink: string;
215
+ linkUrl: string;
216
+ linkLabel: string;
217
+ openLink: (name: string) => string;
218
+ removeLink: (name: string) => string;
219
+ openMap: (location: string) => string;
220
+ chat: {
221
+ tab: string;
222
+ empty: string;
223
+ placeholder: string;
224
+ send: string;
225
+ sendHint: string;
226
+ edit: string;
227
+ edited: string;
228
+ confirmDelete: string;
229
+ loadOlder: string;
230
+ unread: (count: number) => string;
231
+ offline: string;
232
+ you: string;
233
+ removedAuthor: string;
234
+ };
235
+ duplicate: string;
236
+ duplicateNotice: (title: string) => string;
237
+ respondPage: {
238
+ title: string;
239
+ sending: string;
240
+ incompleteLink: string;
241
+ recurring: string;
242
+ saved: (status: string) => string;
243
+ };
165
244
  };
166
245
  storage: {
167
246
  importTitle: string;
@@ -177,11 +256,32 @@ export declare const en: {
177
256
  invitations: string;
178
257
  appearance: string;
179
258
  account: string;
259
+ notifications: string;
180
260
  };
181
261
  languageTitle: string;
182
262
  languageDescription: string;
183
263
  languageLabel: string;
184
264
  languageAuto: string;
265
+ timeZoneTitle: string;
266
+ timeZoneDescription: string;
267
+ timeZoneLabel: string;
268
+ timeZoneAuto: (zone: string) => string;
269
+ holidaysTitle: string;
270
+ holidaysDescription: string;
271
+ holidaysCountry: string;
272
+ holidaysRegion: string;
273
+ holidaysAuto: (name: string) => string;
274
+ holidaysOff: string;
275
+ holidaysWholeCountry: string;
276
+ notifications: {
277
+ title: string;
278
+ description: string;
279
+ unverified: string;
280
+ emailInvites: string;
281
+ emailChanges: string;
282
+ emailReminders: string;
283
+ emailChat: string;
284
+ };
185
285
  themeTitle: string;
186
286
  themeLabel: string;
187
287
  startViewTitle: string;
@@ -406,6 +506,7 @@ export declare const en: {
406
506
  members: string;
407
507
  invitations: string;
408
508
  danger: string;
509
+ exchange: string;
409
510
  };
410
511
  displayTitle: string;
411
512
  displayDescription: string;
@@ -456,6 +557,30 @@ export declare const en: {
456
557
  deleting: string;
457
558
  deleteMessage: (team: string, count: number) => string;
458
559
  };
560
+ feed: {
561
+ title: string;
562
+ description: string;
563
+ label: string;
564
+ create: string;
565
+ copy: string;
566
+ copied: string;
567
+ openApp: string;
568
+ warning: string;
569
+ renew: string;
570
+ remove: string;
571
+ };
572
+ ical: {
573
+ title: string;
574
+ description: string;
575
+ exportLabel: string;
576
+ exporting: string;
577
+ importLabel: string;
578
+ importing: string;
579
+ imported: (created: number, updated: number) => string;
580
+ skipped: (count: number) => string;
581
+ importFailed: string;
582
+ noEvents: string;
583
+ };
459
584
  transfer: {
460
585
  title: string;
461
586
  search: string;
@@ -5,11 +5,32 @@ export declare const settings: {
5
5
  invitations: string;
6
6
  appearance: string;
7
7
  account: string;
8
+ notifications: string;
8
9
  };
9
10
  languageTitle: string;
10
11
  languageDescription: string;
11
12
  languageLabel: string;
12
13
  languageAuto: string;
14
+ timeZoneTitle: string;
15
+ timeZoneDescription: string;
16
+ timeZoneLabel: string;
17
+ timeZoneAuto: (zone: string) => string;
18
+ holidaysTitle: string;
19
+ holidaysDescription: string;
20
+ holidaysCountry: string;
21
+ holidaysRegion: string;
22
+ holidaysAuto: (name: string) => string;
23
+ holidaysOff: string;
24
+ holidaysWholeCountry: string;
25
+ notifications: {
26
+ title: string;
27
+ description: string;
28
+ unverified: string;
29
+ emailInvites: string;
30
+ emailChanges: string;
31
+ emailReminders: string;
32
+ emailChat: string;
33
+ };
13
34
  themeTitle: string;
14
35
  themeLabel: string;
15
36
  startViewTitle: string;
@@ -40,6 +40,8 @@ export declare const getLoadedMessages: (language: Language) => {
40
40
  weekdaysRequired: string;
41
41
  dateInvalid: string;
42
42
  untilBeforeStart: string;
43
+ locationTooLong: (max: number) => string;
44
+ linkInvalid: string;
43
45
  };
44
46
  colors: {
45
47
  blue: string;
@@ -117,8 +119,25 @@ export declare const getLoadedMessages: (language: Language) => {
117
119
  now: (time: string) => string;
118
120
  openDay: (date: string) => string;
119
121
  moreEvents: (count: number) => string;
122
+ moreLinks: (count: number) => string;
123
+ holiday: (name: string) => string;
120
124
  fromCalendar: (name: string) => string;
121
125
  sharedEventNotice: (source: string) => string;
126
+ dismiss: string;
127
+ undo: {
128
+ action: string;
129
+ ctrlZ: string;
130
+ deleted: (title: string) => string;
131
+ moved: (title: string) => string;
132
+ };
133
+ search: {
134
+ open: string;
135
+ title: string;
136
+ placeholder: string;
137
+ hint: string;
138
+ empty: string;
139
+ searching: string;
140
+ };
122
141
  };
123
142
  events: {
124
143
  createTitle: string;
@@ -141,9 +160,6 @@ export declare const getLoadedMessages: (language: Language) => {
141
160
  removeColor: (label: string) => string;
142
161
  deleteTitle: string;
143
162
  deleteSeriesMessage: (title: string) => string;
144
- deleteMessage: (title: string) => string;
145
- yes: string;
146
- no: string;
147
163
  scopeTitle: string;
148
164
  scopeMessage: string;
149
165
  scopes: {
@@ -165,6 +181,69 @@ export declare const getLoadedMessages: (language: Language) => {
165
181
  one: string;
166
182
  many: string;
167
183
  };
184
+ location: string;
185
+ reminder: string;
186
+ noReminder: string;
187
+ reminderAtStart: string;
188
+ reminderBefore: (duration: string) => string;
189
+ reminderDue: (title: string, time: string) => string;
190
+ reminderBlocked: string;
191
+ attendees: string;
192
+ addAttendee: string;
193
+ inviteAll: (count: number) => string;
194
+ removeAttendee: (name: string) => string;
195
+ allMembersInvited: string;
196
+ attendeeStatus: {
197
+ needsAction: string;
198
+ accepted: string;
199
+ tentative: string;
200
+ declined: string;
201
+ };
202
+ yourResponse: string;
203
+ respond: {
204
+ accepted: string;
205
+ tentative: string;
206
+ declined: string;
207
+ };
208
+ attendeeSummary: (accepted: number, total: number) => string;
209
+ tabsLabel: string;
210
+ tabs: {
211
+ general: string;
212
+ recurrence: string;
213
+ attendees: string;
214
+ details: string;
215
+ };
216
+ links: string;
217
+ addLink: string;
218
+ linkUrl: string;
219
+ linkLabel: string;
220
+ openLink: (name: string) => string;
221
+ removeLink: (name: string) => string;
222
+ openMap: (location: string) => string;
223
+ chat: {
224
+ tab: string;
225
+ empty: string;
226
+ placeholder: string;
227
+ send: string;
228
+ sendHint: string;
229
+ edit: string;
230
+ edited: string;
231
+ confirmDelete: string;
232
+ loadOlder: string;
233
+ unread: (count: number) => string;
234
+ offline: string;
235
+ you: string;
236
+ removedAuthor: string;
237
+ };
238
+ duplicate: string;
239
+ duplicateNotice: (title: string) => string;
240
+ respondPage: {
241
+ title: string;
242
+ sending: string;
243
+ incompleteLink: string;
244
+ recurring: string;
245
+ saved: (status: string) => string;
246
+ };
168
247
  };
169
248
  storage: {
170
249
  importTitle: string;
@@ -180,11 +259,32 @@ export declare const getLoadedMessages: (language: Language) => {
180
259
  invitations: string;
181
260
  appearance: string;
182
261
  account: string;
262
+ notifications: string;
183
263
  };
184
264
  languageTitle: string;
185
265
  languageDescription: string;
186
266
  languageLabel: string;
187
267
  languageAuto: string;
268
+ timeZoneTitle: string;
269
+ timeZoneDescription: string;
270
+ timeZoneLabel: string;
271
+ timeZoneAuto: (zone: string) => string;
272
+ holidaysTitle: string;
273
+ holidaysDescription: string;
274
+ holidaysCountry: string;
275
+ holidaysRegion: string;
276
+ holidaysAuto: (name: string) => string;
277
+ holidaysOff: string;
278
+ holidaysWholeCountry: string;
279
+ notifications: {
280
+ title: string;
281
+ description: string;
282
+ unverified: string;
283
+ emailInvites: string;
284
+ emailChanges: string;
285
+ emailReminders: string;
286
+ emailChat: string;
287
+ };
188
288
  themeTitle: string;
189
289
  themeLabel: string;
190
290
  startViewTitle: string;
@@ -409,6 +509,7 @@ export declare const getLoadedMessages: (language: Language) => {
409
509
  members: string;
410
510
  invitations: string;
411
511
  danger: string;
512
+ exchange: string;
412
513
  };
413
514
  displayTitle: string;
414
515
  displayDescription: string;
@@ -459,6 +560,30 @@ export declare const getLoadedMessages: (language: Language) => {
459
560
  deleting: string;
460
561
  deleteMessage: (team: string, count: number) => string;
461
562
  };
563
+ feed: {
564
+ title: string;
565
+ description: string;
566
+ label: string;
567
+ create: string;
568
+ copy: string;
569
+ copied: string;
570
+ openApp: string;
571
+ warning: string;
572
+ renew: string;
573
+ remove: string;
574
+ };
575
+ ical: {
576
+ title: string;
577
+ description: string;
578
+ exportLabel: string;
579
+ exporting: string;
580
+ importLabel: string;
581
+ importing: string;
582
+ imported: (created: number, updated: number) => string;
583
+ skipped: (count: number) => string;
584
+ importFailed: string;
585
+ noEvents: string;
586
+ };
462
587
  transfer: {
463
588
  title: string;
464
589
  search: string;
@@ -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, messages, theme, initialView, timeZone, 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, holidays, holidaySource, mapUrl, onEventCreate, onEventUpdate, onEventDelete, className, style, }: CalendarProps): import("react").JSX.Element;
@@ -5,9 +5,10 @@ import type { HostTheme } from '../context/HostContext.js';
5
5
  import type { UserTokenProvider } from '../features/authorization/index.js';
6
6
  import type { CalendarView } from '../utils/calendarView.js';
7
7
  import type { EventCallbacks } from './eventCallbacks.js';
8
- import type { CalendarFeatures, StorageMode } from './defaults.js';
8
+ import type { CalendarFeatures, HolidaySource, StorageMode } from './defaults.js';
9
9
  export { DEFAULT_CONFIG, STORAGE_MODES } from './defaults.js';
10
- export type { CalendarConfig, CalendarFeatures, StorageMode } from './defaults.js';
10
+ export { HOLIDAY_SOURCES } from './defaults.js';
11
+ export type { CalendarFeatures, HolidaySource, StorageMode } from './defaults.js';
11
12
  export type CalendarRouting = 'memory' | 'browser';
12
13
  export type CalendarProps = EventCallbacks & {
13
14
  dataSource?: CalendarDataSource;
@@ -26,6 +27,9 @@ export type CalendarProps = EventCallbacks & {
26
27
  theme?: HostTheme;
27
28
  initialView?: CalendarView;
28
29
  timeZone?: string;
30
+ holidays?: string;
31
+ holidaySource?: HolidaySource;
32
+ mapUrl?: string;
29
33
  className?: string;
30
34
  style?: CSSProperties;
31
35
  };
@@ -1,5 +1,7 @@
1
1
  export declare const STORAGE_MODES: readonly ["local", "remote"];
2
2
  export type StorageMode = (typeof STORAGE_MODES)[number];
3
+ export declare const HOLIDAY_SOURCES: readonly ["library", "backend"];
4
+ export type HolidaySource = (typeof HOLIDAY_SOURCES)[number];
3
5
  export type CalendarFeatures = {
4
6
  auth: boolean;
5
7
  teams: boolean;
@@ -4,7 +4,7 @@ import type { MessageOverrides } from '../i18n/index.js';
4
4
  export declare const DEFAULT_ELEMENT_NAME = "calendar-widget";
5
5
  export declare class CalendarElement extends HTMLElement {
6
6
  #private;
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
+ static observedAttributes: readonly ["storage-mode", "api-base-url", "api-timeout-ms", "auth", "teams", "initial-path", "locale", "tenant", "theme", "initial-view", "link-param", "time-zone", "holidays", "holiday-source", "map-url"];
8
8
  static readonly version: string;
9
9
  get dataSource(): CalendarDataSource | undefined;
10
10
  set dataSource(value: CalendarDataSource | undefined);
@@ -1,7 +1,7 @@
1
1
  export { CalendarWidget as Calendar } from './CalendarWidget.js';
2
2
  export { VERSION } from './version.js';
3
3
  export { CalendarElement, DEFAULT_ELEMENT_NAME, defineCalendarElement } from './element.js';
4
- export type { CalendarFeatures, CalendarProps, CalendarRouting, StorageMode } from './config.js';
4
+ export type { CalendarFeatures, CalendarProps, CalendarRouting, HolidaySource, StorageMode } from './config.js';
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';
@@ -10,8 +10,9 @@ export { localDataSource, restDataSource, TENANT_HEADER, tenantDataSource } from
10
10
  export type { CalendarDataSource, DataRepositories, DataSession, DataSourceContext, RestDataSourceOptions, TenantDataSourceOptions, } from '../data/index.js';
11
11
  export type { AuthMethod, AuthRepository, User, UserTokenProvider } from '../features/authorization/index.js';
12
12
  export type { CalendarChanges, CalendarDraft, CalendarRepository, CalendarSummary, Invitation, PendingInvitation, TeamChanges, TeamInvitation, TeamMember, TeamRole, } from '../features/calendars/index.js';
13
- export type { ColorRepository, EventQuery, EventRepository, PreferencesRepository, } from '../features/storage/index.js';
14
- export type { CalendarEvent, EventInput } from '../utils/event.js';
13
+ export type { ColorRepository, EventQuery, EventRepository, EventSearchQuery, HolidayQuery, HolidayRepository, PreferencesRepository, } from '../features/storage/index.js';
14
+ export type { Attendee, AttendeeStatus, CalendarEvent, EventInput, EventLink } from '../utils/event.js';
15
15
  export type { Preferences } from '../utils/preferences.js';
16
+ export type { PublicHoliday } from '../utils/holidays.js';
16
17
  export type { Recurrence } from '../utils/recurrence.js';
17
18
  export type { HexColor } from '../utils/color.js';
@@ -0,0 +1 @@
1
+ export declare function RespondPage(): import("react").JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { ApiError } from './apiError.js';
2
- export type QueryValue = string | number | boolean | null | undefined;
2
+ type QueryValue = string | number | boolean | null | undefined;
3
3
  export type QueryParams = Record<string, QueryValue | readonly QueryValue[]>;
4
- export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
5
- export type ApiRequestOptions = {
4
+ type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
5
+ type ApiRequestOptions = {
6
6
  query?: QueryParams;
7
7
  body?: unknown;
8
8
  headers?: HeadersInit;
@@ -26,7 +26,6 @@ export type ApiClient = {
26
26
  patch<T>(path: string, body?: unknown, options?: Omit<ApiRequestOptions, 'body'>): Promise<T>;
27
27
  delete<T = void>(path: string, options?: Omit<ApiRequestOptions, 'body'>): Promise<T>;
28
28
  };
29
- export declare const buildQueryString: (query?: QueryParams) => string;
30
- export declare const joinUrl: (baseUrl: string, path: string) => string;
31
29
  export declare const encodePathSegment: (value: string | number) => string;
32
30
  export declare function createApiClient({ baseUrl, timeoutMs: defaultTimeoutMs, credentials, headers: defaultHeaders, getAccessToken, getLanguage, onUnauthorized, }: ApiClientOptions): ApiClient;
31
+ export {};
@@ -7,8 +7,6 @@ type ApiErrorOptions = {
7
7
  body?: unknown;
8
8
  cause?: unknown;
9
9
  };
10
- export declare const getServerMessage: (body: unknown) => string | null;
11
- export declare const getServerCode: (body: unknown) => "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" | undefined;
12
10
  export declare class ApiError extends Error {
13
11
  readonly kind: ApiErrorKind;
14
12
  readonly status: number | null;
@@ -1,4 +1,4 @@
1
- export declare const ERROR_CODES: readonly ["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"];
1
+ declare const ERROR_CODES: readonly ["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"];
2
2
  export declare const isErrorCode: (value: unknown) => value is ErrorCode;
3
3
  export type ErrorCode = (typeof ERROR_CODES)[number];
4
4
  export declare class AppError extends Error {
@@ -8,3 +8,4 @@ export declare class AppError extends Error {
8
8
  });
9
9
  }
10
10
  export declare const isAppError: (error: unknown) => error is AppError;
11
+ export {};
@@ -0,0 +1,44 @@
1
+ import type { EventOccurrence } from './event.js';
2
+ export declare const CHAT_MESSAGE_MAX_LENGTH = 2000;
3
+ export type ChatKey = {
4
+ eventId: string;
5
+ occurrenceDate: string | null;
6
+ };
7
+ export type ChatMessage = ChatKey & {
8
+ id: string;
9
+ calendarId: string;
10
+ author: {
11
+ id: string;
12
+ name: string;
13
+ } | null;
14
+ text: string;
15
+ createdAt: string;
16
+ editedAt: string | null;
17
+ };
18
+ export type ChatPage = {
19
+ messages: ChatMessage[];
20
+ hasMore: boolean;
21
+ };
22
+ export type ChatUnread = ChatKey & {
23
+ count: number;
24
+ };
25
+ export type ChatEvent = {
26
+ type: 'message.created' | 'message.updated';
27
+ message: ChatMessage;
28
+ } | ({
29
+ type: 'message.deleted';
30
+ id: string;
31
+ calendarId: string;
32
+ } & ChatKey) | {
33
+ type: 'connected';
34
+ } | {
35
+ type: 'disconnected';
36
+ };
37
+ export declare const getChatKey: (occurrence: EventOccurrence) => ChatKey;
38
+ export declare const getChatId: ({ eventId, occurrenceDate }: ChatKey) => string;
39
+ export declare const isSameChat: (a: ChatKey, b: ChatKey) => boolean;
40
+ export declare const parseChatMessage: (value: unknown) => ChatMessage | null;
41
+ export declare const parseChatPage: (value: unknown) => ChatPage;
42
+ export declare const parseChatUnread: (value: unknown) => ChatUnread[];
43
+ export declare const parseChatEvent: (value: unknown) => ChatEvent | null;
44
+ export declare const toSocketUrl: (baseUrl: string, path: string, base?: string) => string;
@@ -1,5 +1,4 @@
1
1
  export type HexColor = `#${string}`;
2
2
  export declare const isHexColor: (value: unknown) => value is HexColor;
3
3
  export declare const normalizeHexColor: (value: HexColor) => HexColor;
4
- export declare const getRelativeLuminance: (color: HexColor) => number;
5
4
  export declare const getReadableTextColor: (background: HexColor) => "#222222" | "#ffffff";
@@ -6,8 +6,6 @@ export type DateRange = {
6
6
  from: string;
7
7
  to: string;
8
8
  };
9
- export declare const ISO_DATE_PATTERN: RegExp;
10
- export declare const TIME_PATTERN: RegExp;
11
9
  export declare const isISODate: (value: unknown) => value is string;
12
10
  export declare const isTime: (value: unknown) => value is string;
13
11
  export declare const toISODate: (date: Date) => string;
@@ -28,13 +26,9 @@ export declare const listISODates: (from: string, to: string) => string[];
28
26
  export declare const daysBetween: (fromIsoDate: string, toIsoDate: string) => number;
29
27
  export declare const daysInMonth: (year: number, monthIndex: number) => number;
30
28
  export declare const getWeekdayIndex: (date: Date) => number;
31
- export declare const MONDAY = 1;
32
- export declare const startOfWeek: (date: Date, firstDay?: number) => Date;
33
29
  export declare const startOfWeekISO: (isoDate: string, firstDay?: number) => string;
34
30
  export declare const endOfWeekISO: (isoDate: string, firstDay?: number) => string;
35
31
  export declare const getMonthWeeks: (isoDate: string, firstDay?: number) => string[][];
36
- export declare const isSameDay: (a: Date, b: Date) => boolean;
37
- export declare const getWeekDays: (weekStart: Date) => Date[];
38
32
  type WeekRule = {
39
33
  firstDay: number;
40
34
  minimalDays: number;