@rokoyfa/calendar 0.0.0-stage → 1.0.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 (259) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/LICENSE +21 -0
  3. package/README.md +159 -3
  4. package/api/openapi.yaml +919 -0
  5. package/dist-lib/cdn/calendar-widget.js +14 -0
  6. package/dist-lib/cdn/calendar-widget.js.map +1 -0
  7. package/dist-lib/cdn/de-BPZBZXaZ.js +2 -0
  8. package/dist-lib/cdn/de-BPZBZXaZ.js.map +1 -0
  9. package/dist-lib/cdn/es-DsIckdik.js +2 -0
  10. package/dist-lib/cdn/es-DsIckdik.js.map +1 -0
  11. package/dist-lib/cdn/fr-DWAs3O6J.js +2 -0
  12. package/dist-lib/cdn/fr-DWAs3O6J.js.map +1 -0
  13. package/dist-lib/cdn/it-CbhjxqIb.js +2 -0
  14. package/dist-lib/cdn/it-CbhjxqIb.js.map +1 -0
  15. package/dist-lib/cdn/nl-mjTHznX5.js +2 -0
  16. package/dist-lib/cdn/nl-mjTHznX5.js.map +1 -0
  17. package/dist-lib/cdn/pl-CXT0jb2D.js +2 -0
  18. package/dist-lib/cdn/pl-CXT0jb2D.js.map +1 -0
  19. package/dist-lib/cdn/pt-D0oXlVdU.js +2 -0
  20. package/dist-lib/cdn/pt-D0oXlVdU.js.map +1 -0
  21. package/dist-lib/npm/de-CCzGjeTd.js +573 -0
  22. package/dist-lib/npm/de-CCzGjeTd.js.map +1 -0
  23. package/dist-lib/npm/es-Ciaf66rH.js +559 -0
  24. package/dist-lib/npm/es-Ciaf66rH.js.map +1 -0
  25. package/dist-lib/npm/fr-CAqNm10Z.js +559 -0
  26. package/dist-lib/npm/fr-CAqNm10Z.js.map +1 -0
  27. package/dist-lib/npm/index.d.ts +1 -0
  28. package/dist-lib/npm/index.js +13277 -0
  29. package/dist-lib/npm/index.js.map +1 -0
  30. package/dist-lib/npm/it-Cqqdu2ua.js +565 -0
  31. package/dist-lib/npm/it-Cqqdu2ua.js.map +1 -0
  32. package/dist-lib/npm/nl-CkchSA8q.js +559 -0
  33. package/dist-lib/npm/nl-CkchSA8q.js.map +1 -0
  34. package/dist-lib/npm/pl-CCBDUr8k.js +565 -0
  35. package/dist-lib/npm/pl-CCBDUr8k.js.map +1 -0
  36. package/dist-lib/npm/pt-DucaCaoY.js +566 -0
  37. package/dist-lib/npm/pt-DucaCaoY.js.map +1 -0
  38. package/dist-lib/npm/types/components/Button.d.ts +17 -0
  39. package/dist-lib/npm/types/components/ChoiceChip.d.ts +13 -0
  40. package/dist-lib/npm/types/components/ConfirmModal.d.ts +11 -0
  41. package/dist-lib/npm/types/components/DateTimeField.d.ts +15 -0
  42. package/dist-lib/npm/types/components/Form.d.ts +8 -0
  43. package/dist-lib/npm/types/components/FormField.d.ts +10 -0
  44. package/dist-lib/npm/types/components/IconButton.d.ts +11 -0
  45. package/dist-lib/npm/types/components/Icons.d.ts +10 -0
  46. package/dist-lib/npm/types/components/Modal.d.ts +10 -0
  47. package/dist-lib/npm/types/components/NumberField.d.ts +12 -0
  48. package/dist-lib/npm/types/components/PageLayout.d.ts +13 -0
  49. package/dist-lib/npm/types/components/PageSection.d.ts +10 -0
  50. package/dist-lib/npm/types/components/PasswordField.d.ts +4 -0
  51. package/dist-lib/npm/types/components/SegmentedControl.d.ts +11 -0
  52. package/dist-lib/npm/types/components/SegmentedField.d.ts +11 -0
  53. package/dist-lib/npm/types/components/SelectField.d.ts +13 -0
  54. package/dist-lib/npm/types/components/StatusMessage.d.ts +13 -0
  55. package/dist-lib/npm/types/components/Stepper.d.ts +9 -0
  56. package/dist-lib/npm/types/components/Switch.d.ts +8 -0
  57. package/dist-lib/npm/types/components/Tabs.d.ts +14 -0
  58. package/dist-lib/npm/types/components/TeamsGate.d.ts +4 -0
  59. package/dist-lib/npm/types/components/TextField.d.ts +9 -0
  60. package/dist-lib/npm/types/config/calendars.d.ts +1 -0
  61. package/dist-lib/npm/types/config/routes.d.ts +18 -0
  62. package/dist-lib/npm/types/context/HostContext.d.ts +11 -0
  63. package/dist-lib/npm/types/context/RootElementContext.d.ts +2 -0
  64. package/dist-lib/npm/types/data/index.d.ts +4 -0
  65. package/dist-lib/npm/types/data/localDataSource.d.ts +3 -0
  66. package/dist-lib/npm/types/data/restDataSource.d.ts +11 -0
  67. package/dist-lib/npm/types/data/tenantDataSource.d.ts +10 -0
  68. package/dist-lib/npm/types/data/types.d.ts +21 -0
  69. package/dist-lib/npm/types/features/authorization/components/AccountMenu.d.ts +6 -0
  70. package/dist-lib/npm/types/features/authorization/components/AuthFields.d.ts +26 -0
  71. package/dist-lib/npm/types/features/authorization/components/AuthGate.d.ts +7 -0
  72. package/dist-lib/npm/types/features/authorization/components/ContinueLink.d.ts +1 -0
  73. package/dist-lib/npm/types/features/authorization/components/EmailVerificationBanner.d.ts +1 -0
  74. package/dist-lib/npm/types/features/authorization/components/ForgotPasswordPage.d.ts +1 -0
  75. package/dist-lib/npm/types/features/authorization/components/LoginPage.d.ts +1 -0
  76. package/dist-lib/npm/types/features/authorization/components/RegisterPage.d.ts +1 -0
  77. package/dist-lib/npm/types/features/authorization/components/ResendVerificationButton.d.ts +4 -0
  78. package/dist-lib/npm/types/features/authorization/components/ResetPasswordPage.d.ts +1 -0
  79. package/dist-lib/npm/types/features/authorization/components/VerifyEmailPage.d.ts +1 -0
  80. package/dist-lib/npm/types/features/authorization/components/account/AccountSettings.d.ts +1 -0
  81. package/dist-lib/npm/types/features/authorization/components/account/DeleteAccountSection.d.ts +1 -0
  82. package/dist-lib/npm/types/features/authorization/components/account/EmailSection.d.ts +4 -0
  83. package/dist-lib/npm/types/features/authorization/components/account/PasswordSection.d.ts +1 -0
  84. package/dist-lib/npm/types/features/authorization/components/account/ProfileSection.d.ts +4 -0
  85. package/dist-lib/npm/types/features/authorization/context/AuthContext.d.ts +2 -0
  86. package/dist-lib/npm/types/features/authorization/context/AuthProvider.d.ts +8 -0
  87. package/dist-lib/npm/types/features/authorization/hooks/useAuth.d.ts +18 -0
  88. package/dist-lib/npm/types/features/authorization/index.d.ts +14 -0
  89. package/dist-lib/npm/types/features/authorization/repositories/HostTokenAuthRepository.d.ts +18 -0
  90. package/dist-lib/npm/types/features/authorization/repositories/RemoteAuthRepository.d.ts +18 -0
  91. package/dist-lib/npm/types/features/authorization/types/auth.d.ts +52 -0
  92. package/dist-lib/npm/types/features/authorization/utils/validation.d.ts +22 -0
  93. package/dist-lib/npm/types/features/calendar/components/Calendar.d.ts +14 -0
  94. package/dist-lib/npm/types/features/calendar/components/CalendarHeader.d.ts +16 -0
  95. package/dist-lib/npm/types/features/calendar/components/DayColumn.d.ts +21 -0
  96. package/dist-lib/npm/types/features/calendar/components/EventBlock.d.ts +10 -0
  97. package/dist-lib/npm/types/features/calendar/components/EventChip.d.ts +10 -0
  98. package/dist-lib/npm/types/features/calendar/components/EventTitle.d.ts +8 -0
  99. package/dist-lib/npm/types/features/calendar/components/MiniMonth.d.ts +9 -0
  100. package/dist-lib/npm/types/features/calendar/components/MonthGrid.d.ts +8 -0
  101. package/dist-lib/npm/types/features/calendar/components/MonthView.d.ts +2 -0
  102. package/dist-lib/npm/types/features/calendar/components/NowIndicator.d.ts +6 -0
  103. package/dist-lib/npm/types/features/calendar/components/TimeColumn.d.ts +1 -0
  104. package/dist-lib/npm/types/features/calendar/components/TimeGridView.d.ts +2 -0
  105. package/dist-lib/npm/types/features/calendar/components/YearView.d.ts +2 -0
  106. package/dist-lib/npm/types/features/calendar/constants/grid.d.ts +4 -0
  107. package/dist-lib/npm/types/features/calendar/constants/views.d.ts +7 -0
  108. package/dist-lib/npm/types/features/calendar/context/DragContext.d.ts +2 -0
  109. package/dist-lib/npm/types/features/calendar/context/EventSourcesContext.d.ts +3 -0
  110. package/dist-lib/npm/types/features/calendar/hooks/useCalendarView.d.ts +19 -0
  111. package/dist-lib/npm/types/features/calendar/hooks/useEventDrag.d.ts +15 -0
  112. package/dist-lib/npm/types/features/calendar/hooks/useEventSource.d.ts +2 -0
  113. package/dist-lib/npm/types/features/calendar/hooks/useNow.d.ts +1 -0
  114. package/dist-lib/npm/types/features/calendar/hooks/useSlotSelection.d.ts +6 -0
  115. package/dist-lib/npm/types/features/calendar/index.d.ts +4 -0
  116. package/dist-lib/npm/types/features/calendar/types/editor.d.ts +5 -0
  117. package/dist-lib/npm/types/features/calendar/types/eventLayout.d.ts +14 -0
  118. package/dist-lib/npm/types/features/calendar/types/eventSource.d.ts +6 -0
  119. package/dist-lib/npm/types/features/calendar/types/view.d.ts +27 -0
  120. package/dist-lib/npm/types/features/calendar/utils/allDay.d.ts +12 -0
  121. package/dist-lib/npm/types/features/calendar/utils/eventDrag.d.ts +12 -0
  122. package/dist-lib/npm/types/features/calendar/utils/eventGeometry.d.ts +3 -0
  123. package/dist-lib/npm/types/features/calendar/utils/eventLabels.d.ts +16 -0
  124. package/dist-lib/npm/types/features/calendar/utils/layoutEvents.d.ts +3 -0
  125. package/dist-lib/npm/types/features/calendar/utils/segmentEvents.d.ts +5 -0
  126. package/dist-lib/npm/types/features/calendar/utils/slotSelection.d.ts +17 -0
  127. package/dist-lib/npm/types/features/calendars/components/ActiveCalendarIndicator.d.ts +1 -0
  128. package/dist-lib/npm/types/features/calendars/components/CalendarPreview.d.ts +4 -0
  129. package/dist-lib/npm/types/features/calendars/components/CalendarSettings.d.ts +1 -0
  130. package/dist-lib/npm/types/features/calendars/components/CalendarSwitcher.d.ts +1 -0
  131. package/dist-lib/npm/types/features/calendars/components/InvitationList.d.ts +1 -0
  132. package/dist-lib/npm/types/features/calendars/components/create/ColorStep.d.ts +7 -0
  133. package/dist-lib/npm/types/features/calendars/components/create/CreateCalendarPage.d.ts +1 -0
  134. package/dist-lib/npm/types/features/calendars/components/create/DetailsStep.d.ts +12 -0
  135. package/dist-lib/npm/types/features/calendars/components/create/MembersStep.d.ts +8 -0
  136. package/dist-lib/npm/types/features/calendars/components/create/ReviewStep.d.ts +4 -0
  137. package/dist-lib/npm/types/features/calendars/components/settings/CalendarSettingsPage.d.ts +1 -0
  138. package/dist-lib/npm/types/features/calendars/components/settings/DangerSection.d.ts +9 -0
  139. package/dist-lib/npm/types/features/calendars/components/settings/GeneralSection.d.ts +4 -0
  140. package/dist-lib/npm/types/features/calendars/components/settings/MembersSection.d.ts +11 -0
  141. package/dist-lib/npm/types/features/calendars/components/settings/RoleOverview.d.ts +1 -0
  142. package/dist-lib/npm/types/features/calendars/components/settings/TeamInvitationsSection.d.ts +12 -0
  143. package/dist-lib/npm/types/features/calendars/components/settings/TransferOwnershipModal.d.ts +8 -0
  144. package/dist-lib/npm/types/features/calendars/constants/calendars.d.ts +9 -0
  145. package/dist-lib/npm/types/features/calendars/context/CalendarsContext.d.ts +2 -0
  146. package/dist-lib/npm/types/features/calendars/context/CalendarsProvider.d.ts +8 -0
  147. package/dist-lib/npm/types/features/calendars/hooks/useCalendars.d.ts +1 -0
  148. package/dist-lib/npm/types/features/calendars/hooks/useTeam.d.ts +12 -0
  149. package/dist-lib/npm/types/features/calendars/index.d.ts +12 -0
  150. package/dist-lib/npm/types/features/calendars/repositories/LocalCalendarRepository.d.ts +20 -0
  151. package/dist-lib/npm/types/features/calendars/repositories/RemoteCalendarRepository.d.ts +23 -0
  152. package/dist-lib/npm/types/features/calendars/types/calendar.d.ts +91 -0
  153. package/dist-lib/npm/types/features/calendars/utils/draft.d.ts +7 -0
  154. package/dist-lib/npm/types/features/calendars/utils/permissions.d.ts +13 -0
  155. package/dist-lib/npm/types/features/events/components/ColorPicker.d.ts +7 -0
  156. package/dist-lib/npm/types/features/events/components/CustomColorSettings.d.ts +1 -0
  157. package/dist-lib/npm/types/features/events/components/DeleteEventModal.d.ts +8 -0
  158. package/dist-lib/npm/types/features/events/components/EventModal.d.ts +11 -0
  159. package/dist-lib/npm/types/features/events/components/RecurrenceFields.d.ts +9 -0
  160. package/dist-lib/npm/types/features/events/components/RecurrenceScopeModal.d.ts +8 -0
  161. package/dist-lib/npm/types/features/events/components/ScopeButtons.d.ts +10 -0
  162. package/dist-lib/npm/types/features/events/components/TimeZoneField.d.ts +6 -0
  163. package/dist-lib/npm/types/features/events/constants/colors.d.ts +3 -0
  164. package/dist-lib/npm/types/features/events/hooks/useCustomColors.d.ts +8 -0
  165. package/dist-lib/npm/types/features/events/hooks/useEvents.d.ts +15 -0
  166. package/dist-lib/npm/types/features/events/index.d.ts +7 -0
  167. package/dist-lib/npm/types/features/events/types/eventModal.d.ts +1 -0
  168. package/dist-lib/npm/types/features/events/utils/scopeOptions.d.ts +3 -0
  169. package/dist-lib/npm/types/features/events/utils/seriesActions.d.ts +4 -0
  170. package/dist-lib/npm/types/features/preferences/components/PreferencesSettings.d.ts +1 -0
  171. package/dist-lib/npm/types/features/preferences/context/PreferencesContext.d.ts +6 -0
  172. package/dist-lib/npm/types/features/preferences/context/PreferencesProvider.d.ts +4 -0
  173. package/dist-lib/npm/types/features/preferences/hooks/usePreferences.d.ts +1 -0
  174. package/dist-lib/npm/types/features/preferences/index.d.ts +3 -0
  175. package/dist-lib/npm/types/features/storage/components/LocalImportPrompt.d.ts +5 -0
  176. package/dist-lib/npm/types/features/storage/context/StorageContext.d.ts +2 -0
  177. package/dist-lib/npm/types/features/storage/context/StorageProvider.d.ts +8 -0
  178. package/dist-lib/npm/types/features/storage/hooks/useStorage.d.ts +7 -0
  179. package/dist-lib/npm/types/features/storage/index.d.ts +10 -0
  180. package/dist-lib/npm/types/features/storage/repositories/LocalColorRepository.d.ts +9 -0
  181. package/dist-lib/npm/types/features/storage/repositories/LocalEventRepository.d.ts +13 -0
  182. package/dist-lib/npm/types/features/storage/repositories/LocalPreferencesRepository.d.ts +8 -0
  183. package/dist-lib/npm/types/features/storage/repositories/RemoteColorRepository.d.ts +10 -0
  184. package/dist-lib/npm/types/features/storage/repositories/RemoteEventRepository.d.ts +12 -0
  185. package/dist-lib/npm/types/features/storage/repositories/RemotePreferencesRepository.d.ts +9 -0
  186. package/dist-lib/npm/types/features/storage/types/storage.d.ts +35 -0
  187. package/dist-lib/npm/types/features/storage/utils/copyEvents.d.ts +3 -0
  188. package/dist-lib/npm/types/features/storage/utils/localStorageList.d.ts +5 -0
  189. package/dist-lib/npm/types/features/storage/utils/localStorageValue.d.ts +9 -0
  190. package/dist-lib/npm/types/hooks/useArrowKeyNavigation.d.ts +6 -0
  191. package/dist-lib/npm/types/hooks/useAsyncAction.d.ts +6 -0
  192. package/dist-lib/npm/types/hooks/useAsyncResource.d.ts +9 -0
  193. package/dist-lib/npm/types/hooks/useForm.d.ts +21 -0
  194. package/dist-lib/npm/types/hooks/useFormState.d.ts +8 -0
  195. package/dist-lib/npm/types/hooks/useRequiredContext.d.ts +2 -0
  196. package/dist-lib/npm/types/hooks/useTabParam.d.ts +3 -0
  197. package/dist-lib/npm/types/i18n/I18nContext.d.ts +16 -0
  198. package/dist-lib/npm/types/i18n/I18nProvider.d.ts +9 -0
  199. package/dist-lib/npm/types/i18n/errorMessage.d.ts +2 -0
  200. package/dist-lib/npm/types/i18n/format.d.ts +28 -0
  201. package/dist-lib/npm/types/i18n/index.d.ts +8 -0
  202. package/dist-lib/npm/types/i18n/locale.d.ts +21 -0
  203. package/dist-lib/npm/types/i18n/messages/de/auth.d.ts +2 -0
  204. package/dist-lib/npm/types/i18n/messages/de/calendar.d.ts +3 -0
  205. package/dist-lib/npm/types/i18n/messages/de/calendars.d.ts +2 -0
  206. package/dist-lib/npm/types/i18n/messages/de/core.d.ts +7 -0
  207. package/dist-lib/npm/types/i18n/messages/de/events.d.ts +2 -0
  208. package/dist-lib/npm/types/i18n/messages/de/index.d.ts +2 -0
  209. package/dist-lib/npm/types/i18n/messages/de/settings.d.ts +2 -0
  210. package/dist-lib/npm/types/i18n/messages/de/storage.d.ts +2 -0
  211. package/dist-lib/npm/types/i18n/messages/en/auth.d.ts +97 -0
  212. package/dist-lib/npm/types/i18n/messages/en/calendar.d.ts +34 -0
  213. package/dist-lib/npm/types/i18n/messages/en/calendars.d.ts +179 -0
  214. package/dist-lib/npm/types/i18n/messages/en/core.d.ts +86 -0
  215. package/dist-lib/npm/types/i18n/messages/en/events.d.ts +46 -0
  216. package/dist-lib/npm/types/i18n/messages/en/index.d.ts +468 -0
  217. package/dist-lib/npm/types/i18n/messages/en/settings.d.ts +19 -0
  218. package/dist-lib/npm/types/i18n/messages/en/storage.d.ts +7 -0
  219. package/dist-lib/npm/types/i18n/messages/es/index.d.ts +2 -0
  220. package/dist-lib/npm/types/i18n/messages/fr/index.d.ts +2 -0
  221. package/dist-lib/npm/types/i18n/messages/index.d.ts +473 -0
  222. package/dist-lib/npm/types/i18n/messages/it/index.d.ts +2 -0
  223. package/dist-lib/npm/types/i18n/messages/nl/index.d.ts +2 -0
  224. package/dist-lib/npm/types/i18n/messages/pl/index.d.ts +2 -0
  225. package/dist-lib/npm/types/i18n/messages/pt/index.d.ts +2 -0
  226. package/dist-lib/npm/types/i18n/messages/types.d.ts +7 -0
  227. package/dist-lib/npm/types/i18n/useI18n.d.ts +3 -0
  228. package/dist-lib/npm/types/i18n/useLocaleGetter.d.ts +1 -0
  229. package/dist-lib/npm/types/i18n/weekInfo.d.ts +5 -0
  230. package/dist-lib/npm/types/lib/CalendarApp.d.ts +14 -0
  231. package/dist-lib/npm/types/lib/CalendarWidget.d.ts +2 -0
  232. package/dist-lib/npm/types/lib/IsolatedRoot.d.ts +9 -0
  233. package/dist-lib/npm/types/lib/config.d.ts +31 -0
  234. package/dist-lib/npm/types/lib/defaults.d.ts +13 -0
  235. package/dist-lib/npm/types/lib/element.d.ts +19 -0
  236. package/dist-lib/npm/types/lib/eventCallbacks.d.ts +11 -0
  237. package/dist-lib/npm/types/lib/index.d.ts +17 -0
  238. package/dist-lib/npm/types/lib/linkParam.d.ts +2 -0
  239. package/dist-lib/npm/types/lib/version.d.ts +1 -0
  240. package/dist-lib/npm/types/pages/CalendarPage.d.ts +1 -0
  241. package/dist-lib/npm/types/pages/SettingsPage.d.ts +1 -0
  242. package/dist-lib/npm/types/router.d.ts +7 -0
  243. package/dist-lib/npm/types/utils/api.d.ts +32 -0
  244. package/dist-lib/npm/types/utils/apiError.d.ts +26 -0
  245. package/dist-lib/npm/types/utils/appError.d.ts +10 -0
  246. package/dist-lib/npm/types/utils/calendarView.d.ts +3 -0
  247. package/dist-lib/npm/types/utils/classNames.d.ts +2 -0
  248. package/dist-lib/npm/types/utils/color.d.ts +5 -0
  249. package/dist-lib/npm/types/utils/date.d.ts +44 -0
  250. package/dist-lib/npm/types/utils/dom.d.ts +3 -0
  251. package/dist-lib/npm/types/utils/event.d.ts +86 -0
  252. package/dist-lib/npm/types/utils/number.d.ts +1 -0
  253. package/dist-lib/npm/types/utils/object.d.ts +3 -0
  254. package/dist-lib/npm/types/utils/preferences.d.ts +14 -0
  255. package/dist-lib/npm/types/utils/recurrence.d.ts +33 -0
  256. package/dist-lib/npm/types/utils/series.d.ts +9 -0
  257. package/dist-lib/npm/types/utils/timeZone.d.ts +11 -0
  258. package/dist-lib/npm/types/utils/validation.d.ts +6 -0
  259. package/package.json +88 -6
@@ -0,0 +1,473 @@
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;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from '../types.js';
2
+ export declare const it: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from '../types.js';
2
+ export declare const nl: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from '../types.js';
2
+ export declare const pl: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from '../types.js';
2
+ export declare const pt: Messages;
@@ -0,0 +1,7 @@
1
+ import type { en } from './en/index.js';
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>>;
@@ -0,0 +1,3 @@
1
+ export declare const useI18n: () => import("./I18nContext.ts").I18n & {
2
+ setUserLocale: (locale: string | null) => void;
3
+ };
@@ -0,0 +1 @@
1
+ export declare function useLocaleGetter(): () => string;
@@ -0,0 +1,5 @@
1
+ export type WeekInfo = {
2
+ firstDay: number;
3
+ minimalDays: number;
4
+ };
5
+ export declare function getWeekInfo(tag: string): WeekInfo;
@@ -0,0 +1,14 @@
1
+ import { type RefObject } from 'react';
2
+ import type { CalendarDataSource } from '../data/index.js';
3
+ import type { CalendarRouting } from './config.js';
4
+ import { type EventCallbacks } from './eventCallbacks.js';
5
+ type EventCallbacksRef = RefObject<EventCallbacks>;
6
+ type CalendarAppProps = {
7
+ dataSource: CalendarDataSource;
8
+ eventCallbacks: EventCallbacksRef;
9
+ routing: CalendarRouting;
10
+ basename?: string;
11
+ initialPath?: string;
12
+ };
13
+ export declare function CalendarApp({ dataSource, eventCallbacks, routing, basename, initialPath }: CalendarAppProps): import("react").JSX.Element;
14
+ export {};
@@ -0,0 +1,2 @@
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;
@@ -0,0 +1,9 @@
1
+ import { type CSSProperties, type ReactNode } from 'react';
2
+ type IsolatedRootProps = {
3
+ className?: string;
4
+ style?: CSSProperties;
5
+ autoFocus?: boolean;
6
+ children: ReactNode;
7
+ };
8
+ export declare function IsolatedRoot({ className, style, autoFocus, children }: IsolatedRootProps): import("react").JSX.Element;
9
+ export {};
@@ -0,0 +1,31 @@
1
+ import type { MessageOverrides } from '../i18n/index.js';
2
+ import type { CSSProperties } from 'react';
3
+ import type { CalendarDataSource } from '../data/index.js';
4
+ import type { HostTheme } from '../context/HostContext.js';
5
+ import type { UserTokenProvider } from '../features/authorization/index.js';
6
+ import type { CalendarView } from '../utils/calendarView.js';
7
+ import type { EventCallbacks } from './eventCallbacks.js';
8
+ import type { CalendarFeatures, StorageMode } from './defaults.js';
9
+ export { DEFAULT_CONFIG, STORAGE_MODES } from './defaults.js';
10
+ export type { CalendarConfig, CalendarFeatures, StorageMode } from './defaults.js';
11
+ export type CalendarRouting = 'memory' | 'browser';
12
+ export type CalendarProps = EventCallbacks & {
13
+ dataSource?: CalendarDataSource;
14
+ tenant?: string;
15
+ getUserToken?: UserTokenProvider;
16
+ storageMode?: StorageMode;
17
+ apiBaseUrl?: string;
18
+ apiTimeoutMs?: number;
19
+ features?: Partial<CalendarFeatures>;
20
+ routing?: CalendarRouting;
21
+ basename?: string;
22
+ initialPath?: string;
23
+ linkParam?: string | false;
24
+ locale?: string;
25
+ messages?: MessageOverrides;
26
+ theme?: HostTheme;
27
+ initialView?: CalendarView;
28
+ timeZone?: string;
29
+ className?: string;
30
+ style?: CSSProperties;
31
+ };
@@ -0,0 +1,13 @@
1
+ export declare const STORAGE_MODES: readonly ["local", "remote"];
2
+ export type StorageMode = (typeof STORAGE_MODES)[number];
3
+ export type CalendarFeatures = {
4
+ auth: boolean;
5
+ teams: boolean;
6
+ };
7
+ export type CalendarConfig = {
8
+ storageMode: StorageMode;
9
+ apiBaseUrl: string;
10
+ apiTimeoutMs: number;
11
+ features: CalendarFeatures;
12
+ };
13
+ export declare const DEFAULT_CONFIG: CalendarConfig;
@@ -0,0 +1,19 @@
1
+ import type { CalendarDataSource } from '../data/index.js';
2
+ import type { UserTokenProvider } from '../features/authorization/index.js';
3
+ import type { MessageOverrides } from '../i18n/index.js';
4
+ export declare const DEFAULT_ELEMENT_NAME = "calendar-widget";
5
+ export declare class CalendarElement extends HTMLElement {
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"];
8
+ static readonly version: string;
9
+ get dataSource(): CalendarDataSource | undefined;
10
+ set dataSource(value: CalendarDataSource | undefined);
11
+ get getUserToken(): UserTokenProvider | undefined;
12
+ set getUserToken(value: UserTokenProvider | undefined);
13
+ get messages(): MessageOverrides | undefined;
14
+ set messages(value: MessageOverrides | undefined);
15
+ connectedCallback(): void;
16
+ disconnectedCallback(): void;
17
+ attributeChangedCallback(): void;
18
+ }
19
+ export declare function defineCalendarElement(name?: string): void;
@@ -0,0 +1,11 @@
1
+ import type { EventRepository } from '../features/storage/index.js';
2
+ import type { CalendarEvent } from '../utils/event.js';
3
+ export type DeletedEvent = {
4
+ id: string;
5
+ };
6
+ export type EventCallbacks = {
7
+ onEventCreate?: (event: CalendarEvent) => void;
8
+ onEventUpdate?: (event: CalendarEvent) => void;
9
+ onEventDelete?: (event: DeletedEvent) => void;
10
+ };
11
+ export declare const withEventCallbacks: (repository: EventRepository, getCallbacks: () => EventCallbacks) => EventRepository;
@@ -0,0 +1,17 @@
1
+ export { CalendarWidget as Calendar } from './CalendarWidget.js';
2
+ export { VERSION } from './version.js';
3
+ export { CalendarElement, DEFAULT_ELEMENT_NAME, defineCalendarElement } from './element.js';
4
+ export type { CalendarFeatures, CalendarProps, CalendarRouting, StorageMode } from './config.js';
5
+ export type { DeletedEvent, EventCallbacks } from './eventCallbacks.js';
6
+ export type { HostTheme } from '../context/HostContext.js';
7
+ export type { CalendarView } from '../utils/calendarView.js';
8
+ export type { DeepPartial, MessageOverrides, Messages, PartialMessages } from '../i18n/index.js';
9
+ export { localDataSource, restDataSource, TENANT_HEADER, tenantDataSource } from '../data/index.js';
10
+ export type { CalendarDataSource, DataRepositories, DataSession, DataSourceContext, RestDataSourceOptions, TenantDataSourceOptions, } from '../data/index.js';
11
+ export type { AuthMethod, AuthRepository, User, UserTokenProvider } from '../features/authorization/index.js';
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';
15
+ export type { Preferences } from '../utils/preferences.js';
16
+ export type { Recurrence } from '../utils/recurrence.js';
17
+ export type { HexColor } from '../utils/color.js';
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_LINK_PARAM = "calendarPath";
2
+ export declare const readLinkedPath: (param: string) => string | undefined;
@@ -0,0 +1 @@
1
+ export declare const VERSION: string;
@@ -0,0 +1 @@
1
+ export declare function CalendarPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SettingsPage(): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { CalendarRouting } from './lib/config.js';
2
+ type RouterOptions = {
3
+ basename?: string;
4
+ initialPath?: string;
5
+ };
6
+ export declare function createCalendarRouter(routing: CalendarRouting, { basename, initialPath }?: RouterOptions): import("react-router").DataRouter;
7
+ export {};