@rokoyfa/calendar 0.0.0-stage → 0.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.
Files changed (218) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE +21 -0
  3. package/README.md +194 -3
  4. package/api/openapi.yaml +911 -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/npm/index.d.ts +1 -0
  8. package/dist-lib/npm/index.js +13055 -0
  9. package/dist-lib/npm/index.js.map +1 -0
  10. package/dist-lib/npm/types/components/Button.d.ts +17 -0
  11. package/dist-lib/npm/types/components/ChoiceChip.d.ts +13 -0
  12. package/dist-lib/npm/types/components/ConfirmModal.d.ts +11 -0
  13. package/dist-lib/npm/types/components/DateTimeField.d.ts +14 -0
  14. package/dist-lib/npm/types/components/Form.d.ts +8 -0
  15. package/dist-lib/npm/types/components/FormField.d.ts +10 -0
  16. package/dist-lib/npm/types/components/IconButton.d.ts +11 -0
  17. package/dist-lib/npm/types/components/Icons.d.ts +10 -0
  18. package/dist-lib/npm/types/components/Modal.d.ts +10 -0
  19. package/dist-lib/npm/types/components/NumberField.d.ts +12 -0
  20. package/dist-lib/npm/types/components/PageLayout.d.ts +13 -0
  21. package/dist-lib/npm/types/components/PageSection.d.ts +9 -0
  22. package/dist-lib/npm/types/components/PasswordField.d.ts +4 -0
  23. package/dist-lib/npm/types/components/SegmentedControl.d.ts +11 -0
  24. package/dist-lib/npm/types/components/SegmentedField.d.ts +11 -0
  25. package/dist-lib/npm/types/components/SelectField.d.ts +13 -0
  26. package/dist-lib/npm/types/components/StatusMessage.d.ts +13 -0
  27. package/dist-lib/npm/types/components/Stepper.d.ts +9 -0
  28. package/dist-lib/npm/types/components/Switch.d.ts +8 -0
  29. package/dist-lib/npm/types/components/Tabs.d.ts +14 -0
  30. package/dist-lib/npm/types/components/TeamsGate.d.ts +4 -0
  31. package/dist-lib/npm/types/components/TextField.d.ts +9 -0
  32. package/dist-lib/npm/types/config/calendars.d.ts +1 -0
  33. package/dist-lib/npm/types/config/routes.d.ts +17 -0
  34. package/dist-lib/npm/types/context/HostContext.d.ts +9 -0
  35. package/dist-lib/npm/types/context/RootElementContext.d.ts +2 -0
  36. package/dist-lib/npm/types/data/index.d.ts +4 -0
  37. package/dist-lib/npm/types/data/localDataSource.d.ts +3 -0
  38. package/dist-lib/npm/types/data/restDataSource.d.ts +11 -0
  39. package/dist-lib/npm/types/data/tenantDataSource.d.ts +10 -0
  40. package/dist-lib/npm/types/data/types.d.ts +21 -0
  41. package/dist-lib/npm/types/features/authorization/components/AccountMenu.d.ts +6 -0
  42. package/dist-lib/npm/types/features/authorization/components/AuthFields.d.ts +26 -0
  43. package/dist-lib/npm/types/features/authorization/components/AuthGate.d.ts +7 -0
  44. package/dist-lib/npm/types/features/authorization/components/ContinueLink.d.ts +1 -0
  45. package/dist-lib/npm/types/features/authorization/components/EmailVerificationBanner.d.ts +1 -0
  46. package/dist-lib/npm/types/features/authorization/components/ForgotPasswordPage.d.ts +1 -0
  47. package/dist-lib/npm/types/features/authorization/components/LoginPage.d.ts +1 -0
  48. package/dist-lib/npm/types/features/authorization/components/RegisterPage.d.ts +1 -0
  49. package/dist-lib/npm/types/features/authorization/components/ResendVerificationButton.d.ts +4 -0
  50. package/dist-lib/npm/types/features/authorization/components/ResetPasswordPage.d.ts +1 -0
  51. package/dist-lib/npm/types/features/authorization/components/VerifyEmailPage.d.ts +1 -0
  52. package/dist-lib/npm/types/features/authorization/components/account/AccountSettings.d.ts +1 -0
  53. package/dist-lib/npm/types/features/authorization/components/account/DeleteAccountSection.d.ts +1 -0
  54. package/dist-lib/npm/types/features/authorization/components/account/EmailSection.d.ts +4 -0
  55. package/dist-lib/npm/types/features/authorization/components/account/PasswordSection.d.ts +1 -0
  56. package/dist-lib/npm/types/features/authorization/components/account/ProfileSection.d.ts +4 -0
  57. package/dist-lib/npm/types/features/authorization/context/AuthContext.d.ts +2 -0
  58. package/dist-lib/npm/types/features/authorization/context/AuthProvider.d.ts +8 -0
  59. package/dist-lib/npm/types/features/authorization/hooks/useAuth.d.ts +18 -0
  60. package/dist-lib/npm/types/features/authorization/index.d.ts +14 -0
  61. package/dist-lib/npm/types/features/authorization/repositories/HostTokenAuthRepository.d.ts +18 -0
  62. package/dist-lib/npm/types/features/authorization/repositories/RemoteAuthRepository.d.ts +18 -0
  63. package/dist-lib/npm/types/features/authorization/types/auth.d.ts +52 -0
  64. package/dist-lib/npm/types/features/authorization/utils/validation.d.ts +22 -0
  65. package/dist-lib/npm/types/features/calendar/components/Calendar.d.ts +14 -0
  66. package/dist-lib/npm/types/features/calendar/components/CalendarHeader.d.ts +16 -0
  67. package/dist-lib/npm/types/features/calendar/components/DayColumn.d.ts +18 -0
  68. package/dist-lib/npm/types/features/calendar/components/EventBlock.d.ts +10 -0
  69. package/dist-lib/npm/types/features/calendar/components/EventChip.d.ts +8 -0
  70. package/dist-lib/npm/types/features/calendar/components/EventTitle.d.ts +8 -0
  71. package/dist-lib/npm/types/features/calendar/components/MiniMonth.d.ts +9 -0
  72. package/dist-lib/npm/types/features/calendar/components/MonthGrid.d.ts +8 -0
  73. package/dist-lib/npm/types/features/calendar/components/MonthView.d.ts +2 -0
  74. package/dist-lib/npm/types/features/calendar/components/NowIndicator.d.ts +6 -0
  75. package/dist-lib/npm/types/features/calendar/components/TimeColumn.d.ts +1 -0
  76. package/dist-lib/npm/types/features/calendar/components/TimeGridView.d.ts +2 -0
  77. package/dist-lib/npm/types/features/calendar/components/YearView.d.ts +2 -0
  78. package/dist-lib/npm/types/features/calendar/constants/grid.d.ts +4 -0
  79. package/dist-lib/npm/types/features/calendar/constants/views.d.ts +7 -0
  80. package/dist-lib/npm/types/features/calendar/context/EventSourcesContext.d.ts +3 -0
  81. package/dist-lib/npm/types/features/calendar/hooks/useCalendarView.d.ts +19 -0
  82. package/dist-lib/npm/types/features/calendar/hooks/useEventSource.d.ts +2 -0
  83. package/dist-lib/npm/types/features/calendar/hooks/useNow.d.ts +1 -0
  84. package/dist-lib/npm/types/features/calendar/hooks/useSlotSelection.d.ts +6 -0
  85. package/dist-lib/npm/types/features/calendar/index.d.ts +4 -0
  86. package/dist-lib/npm/types/features/calendar/types/editor.d.ts +5 -0
  87. package/dist-lib/npm/types/features/calendar/types/eventLayout.d.ts +14 -0
  88. package/dist-lib/npm/types/features/calendar/types/eventSource.d.ts +6 -0
  89. package/dist-lib/npm/types/features/calendar/types/view.d.ts +26 -0
  90. package/dist-lib/npm/types/features/calendar/utils/eventGeometry.d.ts +3 -0
  91. package/dist-lib/npm/types/features/calendar/utils/eventLabels.d.ts +15 -0
  92. package/dist-lib/npm/types/features/calendar/utils/layoutEvents.d.ts +3 -0
  93. package/dist-lib/npm/types/features/calendar/utils/segmentEvents.d.ts +5 -0
  94. package/dist-lib/npm/types/features/calendar/utils/slotSelection.d.ts +17 -0
  95. package/dist-lib/npm/types/features/calendars/components/ActiveCalendarIndicator.d.ts +1 -0
  96. package/dist-lib/npm/types/features/calendars/components/CalendarPreview.d.ts +4 -0
  97. package/dist-lib/npm/types/features/calendars/components/CalendarSettings.d.ts +1 -0
  98. package/dist-lib/npm/types/features/calendars/components/CalendarSwitcher.d.ts +1 -0
  99. package/dist-lib/npm/types/features/calendars/components/InvitationList.d.ts +1 -0
  100. package/dist-lib/npm/types/features/calendars/components/create/ColorStep.d.ts +7 -0
  101. package/dist-lib/npm/types/features/calendars/components/create/CreateCalendarPage.d.ts +1 -0
  102. package/dist-lib/npm/types/features/calendars/components/create/DetailsStep.d.ts +12 -0
  103. package/dist-lib/npm/types/features/calendars/components/create/MembersStep.d.ts +8 -0
  104. package/dist-lib/npm/types/features/calendars/components/create/ReviewStep.d.ts +4 -0
  105. package/dist-lib/npm/types/features/calendars/components/settings/CalendarSettingsPage.d.ts +1 -0
  106. package/dist-lib/npm/types/features/calendars/components/settings/DangerSection.d.ts +9 -0
  107. package/dist-lib/npm/types/features/calendars/components/settings/GeneralSection.d.ts +4 -0
  108. package/dist-lib/npm/types/features/calendars/components/settings/MembersSection.d.ts +11 -0
  109. package/dist-lib/npm/types/features/calendars/components/settings/TeamInvitationsSection.d.ts +12 -0
  110. package/dist-lib/npm/types/features/calendars/components/settings/TransferOwnershipModal.d.ts +8 -0
  111. package/dist-lib/npm/types/features/calendars/constants/calendars.d.ts +9 -0
  112. package/dist-lib/npm/types/features/calendars/context/CalendarsContext.d.ts +2 -0
  113. package/dist-lib/npm/types/features/calendars/context/CalendarsProvider.d.ts +8 -0
  114. package/dist-lib/npm/types/features/calendars/hooks/useCalendars.d.ts +1 -0
  115. package/dist-lib/npm/types/features/calendars/hooks/useTeam.d.ts +12 -0
  116. package/dist-lib/npm/types/features/calendars/index.d.ts +11 -0
  117. package/dist-lib/npm/types/features/calendars/repositories/LocalCalendarRepository.d.ts +20 -0
  118. package/dist-lib/npm/types/features/calendars/repositories/RemoteCalendarRepository.d.ts +23 -0
  119. package/dist-lib/npm/types/features/calendars/types/calendar.d.ts +91 -0
  120. package/dist-lib/npm/types/features/calendars/utils/draft.d.ts +7 -0
  121. package/dist-lib/npm/types/features/calendars/utils/permissions.d.ts +13 -0
  122. package/dist-lib/npm/types/features/events/components/ColorPicker.d.ts +7 -0
  123. package/dist-lib/npm/types/features/events/components/CustomColorSettings.d.ts +1 -0
  124. package/dist-lib/npm/types/features/events/components/DeleteEventModal.d.ts +8 -0
  125. package/dist-lib/npm/types/features/events/components/EventModal.d.ts +11 -0
  126. package/dist-lib/npm/types/features/events/components/RecurrenceFields.d.ts +9 -0
  127. package/dist-lib/npm/types/features/events/components/RecurrenceScopeModal.d.ts +8 -0
  128. package/dist-lib/npm/types/features/events/components/ScopeButtons.d.ts +10 -0
  129. package/dist-lib/npm/types/features/events/constants/colors.d.ts +3 -0
  130. package/dist-lib/npm/types/features/events/hooks/useCustomColors.d.ts +8 -0
  131. package/dist-lib/npm/types/features/events/hooks/useEvents.d.ts +15 -0
  132. package/dist-lib/npm/types/features/events/index.d.ts +5 -0
  133. package/dist-lib/npm/types/features/events/types/eventModal.d.ts +1 -0
  134. package/dist-lib/npm/types/features/events/utils/scopeOptions.d.ts +3 -0
  135. package/dist-lib/npm/types/features/events/utils/seriesActions.d.ts +4 -0
  136. package/dist-lib/npm/types/features/preferences/components/PreferencesSettings.d.ts +1 -0
  137. package/dist-lib/npm/types/features/preferences/context/PreferencesContext.d.ts +6 -0
  138. package/dist-lib/npm/types/features/preferences/context/PreferencesProvider.d.ts +4 -0
  139. package/dist-lib/npm/types/features/preferences/hooks/usePreferences.d.ts +1 -0
  140. package/dist-lib/npm/types/features/preferences/index.d.ts +3 -0
  141. package/dist-lib/npm/types/features/storage/components/LocalImportPrompt.d.ts +5 -0
  142. package/dist-lib/npm/types/features/storage/context/StorageContext.d.ts +2 -0
  143. package/dist-lib/npm/types/features/storage/context/StorageProvider.d.ts +8 -0
  144. package/dist-lib/npm/types/features/storage/hooks/useStorage.d.ts +7 -0
  145. package/dist-lib/npm/types/features/storage/index.d.ts +10 -0
  146. package/dist-lib/npm/types/features/storage/repositories/LocalColorRepository.d.ts +9 -0
  147. package/dist-lib/npm/types/features/storage/repositories/LocalEventRepository.d.ts +13 -0
  148. package/dist-lib/npm/types/features/storage/repositories/LocalPreferencesRepository.d.ts +8 -0
  149. package/dist-lib/npm/types/features/storage/repositories/RemoteColorRepository.d.ts +10 -0
  150. package/dist-lib/npm/types/features/storage/repositories/RemoteEventRepository.d.ts +12 -0
  151. package/dist-lib/npm/types/features/storage/repositories/RemotePreferencesRepository.d.ts +9 -0
  152. package/dist-lib/npm/types/features/storage/types/storage.d.ts +35 -0
  153. package/dist-lib/npm/types/features/storage/utils/copyEvents.d.ts +3 -0
  154. package/dist-lib/npm/types/features/storage/utils/localStorageList.d.ts +5 -0
  155. package/dist-lib/npm/types/features/storage/utils/localStorageValue.d.ts +9 -0
  156. package/dist-lib/npm/types/hooks/useArrowKeyNavigation.d.ts +6 -0
  157. package/dist-lib/npm/types/hooks/useAsyncAction.d.ts +6 -0
  158. package/dist-lib/npm/types/hooks/useAsyncResource.d.ts +9 -0
  159. package/dist-lib/npm/types/hooks/useForm.d.ts +21 -0
  160. package/dist-lib/npm/types/hooks/useFormState.d.ts +8 -0
  161. package/dist-lib/npm/types/hooks/useRequiredContext.d.ts +2 -0
  162. package/dist-lib/npm/types/hooks/useTabParam.d.ts +3 -0
  163. package/dist-lib/npm/types/i18n/I18nContext.d.ts +15 -0
  164. package/dist-lib/npm/types/i18n/I18nProvider.d.ts +7 -0
  165. package/dist-lib/npm/types/i18n/errorMessage.d.ts +2 -0
  166. package/dist-lib/npm/types/i18n/format.d.ts +28 -0
  167. package/dist-lib/npm/types/i18n/index.d.ts +8 -0
  168. package/dist-lib/npm/types/i18n/locale.d.ts +14 -0
  169. package/dist-lib/npm/types/i18n/messages/de/auth.d.ts +2 -0
  170. package/dist-lib/npm/types/i18n/messages/de/calendar.d.ts +3 -0
  171. package/dist-lib/npm/types/i18n/messages/de/calendars.d.ts +2 -0
  172. package/dist-lib/npm/types/i18n/messages/de/core.d.ts +7 -0
  173. package/dist-lib/npm/types/i18n/messages/de/events.d.ts +2 -0
  174. package/dist-lib/npm/types/i18n/messages/de/index.d.ts +2 -0
  175. package/dist-lib/npm/types/i18n/messages/de/settings.d.ts +2 -0
  176. package/dist-lib/npm/types/i18n/messages/de/storage.d.ts +2 -0
  177. package/dist-lib/npm/types/i18n/messages/en/auth.d.ts +97 -0
  178. package/dist-lib/npm/types/i18n/messages/en/calendar.d.ts +34 -0
  179. package/dist-lib/npm/types/i18n/messages/en/calendars.d.ts +177 -0
  180. package/dist-lib/npm/types/i18n/messages/en/core.d.ts +86 -0
  181. package/dist-lib/npm/types/i18n/messages/en/events.d.ts +42 -0
  182. package/dist-lib/npm/types/i18n/messages/en/index.d.ts +466 -0
  183. package/dist-lib/npm/types/i18n/messages/en/settings.d.ts +23 -0
  184. package/dist-lib/npm/types/i18n/messages/en/storage.d.ts +7 -0
  185. package/dist-lib/npm/types/i18n/messages/index.d.ts +4 -0
  186. package/dist-lib/npm/types/i18n/messages/types.d.ts +2 -0
  187. package/dist-lib/npm/types/i18n/useI18n.d.ts +3 -0
  188. package/dist-lib/npm/types/i18n/useLocaleGetter.d.ts +1 -0
  189. package/dist-lib/npm/types/i18n/weekInfo.d.ts +5 -0
  190. package/dist-lib/npm/types/lib/CalendarApp.d.ts +14 -0
  191. package/dist-lib/npm/types/lib/CalendarWidget.d.ts +2 -0
  192. package/dist-lib/npm/types/lib/IsolatedRoot.d.ts +9 -0
  193. package/dist-lib/npm/types/lib/config.d.ts +28 -0
  194. package/dist-lib/npm/types/lib/defaults.d.ts +13 -0
  195. package/dist-lib/npm/types/lib/element.d.ts +16 -0
  196. package/dist-lib/npm/types/lib/eventCallbacks.d.ts +11 -0
  197. package/dist-lib/npm/types/lib/index.d.ts +16 -0
  198. package/dist-lib/npm/types/lib/linkParam.d.ts +2 -0
  199. package/dist-lib/npm/types/lib/version.d.ts +1 -0
  200. package/dist-lib/npm/types/pages/CalendarPage.d.ts +1 -0
  201. package/dist-lib/npm/types/pages/SettingsPage.d.ts +1 -0
  202. package/dist-lib/npm/types/router.d.ts +7 -0
  203. package/dist-lib/npm/types/utils/api.d.ts +32 -0
  204. package/dist-lib/npm/types/utils/apiError.d.ts +26 -0
  205. package/dist-lib/npm/types/utils/appError.d.ts +10 -0
  206. package/dist-lib/npm/types/utils/calendarView.d.ts +3 -0
  207. package/dist-lib/npm/types/utils/classNames.d.ts +2 -0
  208. package/dist-lib/npm/types/utils/color.d.ts +5 -0
  209. package/dist-lib/npm/types/utils/date.d.ts +44 -0
  210. package/dist-lib/npm/types/utils/dom.d.ts +3 -0
  211. package/dist-lib/npm/types/utils/event.d.ts +74 -0
  212. package/dist-lib/npm/types/utils/number.d.ts +1 -0
  213. package/dist-lib/npm/types/utils/object.d.ts +3 -0
  214. package/dist-lib/npm/types/utils/preferences.d.ts +15 -0
  215. package/dist-lib/npm/types/utils/recurrence.d.ts +33 -0
  216. package/dist-lib/npm/types/utils/series.d.ts +9 -0
  217. package/dist-lib/npm/types/utils/validation.d.ts +6 -0
  218. package/package.json +82 -6
@@ -0,0 +1,466 @@
1
+ export declare const en: {
2
+ common: {
3
+ loading: string;
4
+ close: string;
5
+ cancel: string;
6
+ save: string;
7
+ saving: string;
8
+ saved: string;
9
+ delete: string;
10
+ deleting: string;
11
+ backToCalendar: string;
12
+ backToSettings: string;
13
+ settings: string;
14
+ progress: string;
15
+ next: string;
16
+ back: string;
17
+ };
18
+ 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> & {
19
+ status: Partial<Record<number, string>>;
20
+ serverError: string;
21
+ requestFailed: (status: number) => string;
22
+ kind: Record<Exclude<import("../../../utils/apiError.ts").ApiErrorKind, "http">, string>;
23
+ };
24
+ validation: {
25
+ emailRequired: string;
26
+ emailInvalid: string;
27
+ integerRange: (min: number, max: number) => string;
28
+ titleRequired: string;
29
+ titleTooLong: (max: number) => string;
30
+ descriptionTooLong: (max: number) => string;
31
+ startDateInvalid: string;
32
+ startTimeInvalid: string;
33
+ endDateInvalid: string;
34
+ endTimeInvalid: string;
35
+ endDateBeforeStart: string;
36
+ endBeforeStart: string;
37
+ weekdaysRequired: string;
38
+ dateInvalid: string;
39
+ untilBeforeStart: string;
40
+ };
41
+ colors: {
42
+ blue: string;
43
+ red: string;
44
+ green: string;
45
+ yellow: string;
46
+ };
47
+ themes: {
48
+ system: string;
49
+ light: string;
50
+ dark: string;
51
+ };
52
+ recurrence: {
53
+ frequency: {
54
+ daily: string;
55
+ weekly: string;
56
+ monthly: string;
57
+ yearly: string;
58
+ };
59
+ units: {
60
+ daily: {
61
+ one: string;
62
+ many: string;
63
+ };
64
+ weekly: {
65
+ one: string;
66
+ many: string;
67
+ };
68
+ monthly: {
69
+ one: string;
70
+ many: string;
71
+ };
72
+ yearly: {
73
+ one: string;
74
+ many: string;
75
+ };
76
+ };
77
+ every: (interval: number, unit: string) => string;
78
+ onWeekdays: (weekdays: string) => string;
79
+ onDate: (date: string) => string;
80
+ monthlyOnDay: (day: number) => string;
81
+ monthlyOnWeekday: (ordinal: number, weekday: string) => string;
82
+ monthlyOnLastWeekday: (weekday: string) => string;
83
+ until: (date: string) => string;
84
+ times: (count: number) => string;
85
+ };
86
+ views: {
87
+ label: string;
88
+ day: {
89
+ label: string;
90
+ previous: string;
91
+ next: string;
92
+ };
93
+ week: {
94
+ label: string;
95
+ previous: string;
96
+ next: string;
97
+ };
98
+ month: {
99
+ label: string;
100
+ previous: string;
101
+ next: string;
102
+ };
103
+ year: {
104
+ label: string;
105
+ previous: string;
106
+ next: string;
107
+ };
108
+ weekNumber: (week: number) => string;
109
+ weekNumberLong: (week: number) => string;
110
+ };
111
+ calendar: {
112
+ today: string;
113
+ newEvent: string;
114
+ now: (time: string) => string;
115
+ openDay: (date: string) => string;
116
+ moreEvents: (count: number) => string;
117
+ fromCalendar: (name: string) => string;
118
+ sharedEventNotice: (source: string) => string;
119
+ };
120
+ events: {
121
+ createTitle: string;
122
+ editTitle: string;
123
+ title: string;
124
+ startDate: string;
125
+ startTime: string;
126
+ endDate: string;
127
+ endTime: string;
128
+ description: string;
129
+ color: string;
130
+ addCustomColor: string;
131
+ customColors: string;
132
+ customColorsDescription: (max: number) => string;
133
+ noCustomColors: string;
134
+ removeColor: (label: string) => string;
135
+ deleteTitle: string;
136
+ deleteSeriesMessage: (title: string) => string;
137
+ deleteMessage: (title: string) => string;
138
+ yes: string;
139
+ no: string;
140
+ scopeTitle: string;
141
+ scopeMessage: string;
142
+ scopes: {
143
+ single: string;
144
+ following: string;
145
+ all: string;
146
+ };
147
+ repeat: string;
148
+ never: string;
149
+ every: string;
150
+ onTheseDays: string;
151
+ inMonth: string;
152
+ ends: string;
153
+ endsOnDate: string;
154
+ endsAfterCount: string;
155
+ lastOccurrence: string;
156
+ after: string;
157
+ occurrences: {
158
+ one: string;
159
+ many: string;
160
+ };
161
+ };
162
+ storage: {
163
+ importTitle: string;
164
+ importMessage: (count: number) => string;
165
+ importing: string;
166
+ importConfirm: string;
167
+ keepLocal: string;
168
+ };
169
+ settings: {
170
+ tabsLabel: string;
171
+ tabs: {
172
+ calendars: string;
173
+ appearance: string;
174
+ account: string;
175
+ };
176
+ languageTitle: string;
177
+ languageDescription: string;
178
+ languageLabel: string;
179
+ languages: {
180
+ auto: string;
181
+ 'en-US': string;
182
+ 'en-GB': string;
183
+ 'de-DE': string;
184
+ };
185
+ themeTitle: string;
186
+ themeLabel: string;
187
+ startViewTitle: string;
188
+ startViewDescription: string;
189
+ desktop: string;
190
+ mobile: string;
191
+ };
192
+ auth: {
193
+ name: string;
194
+ email: string;
195
+ password: string;
196
+ repeat: (label: string) => string;
197
+ passwordHint: (min: number) => string;
198
+ validation: {
199
+ nameRequired: string;
200
+ nameTooLong: (max: number) => string;
201
+ passwordRequired: string;
202
+ passwordTooShort: (min: number) => string;
203
+ passwordTooLong: (max: number) => string;
204
+ passwordMismatch: string;
205
+ passwordUnchanged: string;
206
+ };
207
+ login: {
208
+ title: string;
209
+ submit: string;
210
+ pending: string;
211
+ noAccount: string;
212
+ registerLink: string;
213
+ forgotPassword: string;
214
+ };
215
+ register: {
216
+ title: string;
217
+ submit: string;
218
+ pending: string;
219
+ hasAccount: string;
220
+ loginLink: string;
221
+ };
222
+ forgot: {
223
+ title: string;
224
+ remembered: string;
225
+ loginLink: string;
226
+ hint: string;
227
+ success: (email: string) => string;
228
+ submit: string;
229
+ pending: string;
230
+ };
231
+ reset: {
232
+ title: string;
233
+ newPassword: string;
234
+ incompleteLink: string;
235
+ requestNewLink: string;
236
+ success: string;
237
+ submit: string;
238
+ pending: string;
239
+ };
240
+ verify: {
241
+ title: string;
242
+ verifying: string;
243
+ incompleteLink: string;
244
+ success: string;
245
+ newLinkBefore: string;
246
+ newLinkSettings: string;
247
+ newLinkAfter: string;
248
+ bannerLabel: string;
249
+ bannerBefore: string;
250
+ bannerAfter: string;
251
+ resend: string;
252
+ resent: string;
253
+ sending: string;
254
+ };
255
+ continueToCalendar: string;
256
+ signInNow: string;
257
+ menu: {
258
+ signIn: string;
259
+ accountOf: (name: string) => string;
260
+ signOut: string;
261
+ signingOut: string;
262
+ };
263
+ account: {
264
+ profile: string;
265
+ savePending: string;
266
+ emailTitle: string;
267
+ verified: string;
268
+ unverified: string;
269
+ verificationSent: string;
270
+ resendVerification: string;
271
+ passwordTitle: string;
272
+ passwordDescription: string;
273
+ currentPassword: string;
274
+ newPassword: string;
275
+ passwordChanged: string;
276
+ passwordPending: string;
277
+ passwordSubmit: string;
278
+ deleteTitle: string;
279
+ deleteDescription: string;
280
+ deleteOpen: string;
281
+ deleteWarningBefore: string;
282
+ deleteWarningStrong: string;
283
+ deleteWarningAfter: string;
284
+ deletePassword: string;
285
+ deletePending: string;
286
+ deleteSubmit: string;
287
+ };
288
+ };
289
+ calendars: {
290
+ personalName: string;
291
+ roles: {
292
+ owner: string;
293
+ admin: string;
294
+ manager: string;
295
+ editor: string;
296
+ member: string;
297
+ contributor: string;
298
+ viewer: string;
299
+ };
300
+ roleDescriptions: {
301
+ owner: string;
302
+ admin: string;
303
+ manager: string;
304
+ editor: string;
305
+ member: string;
306
+ contributor: string;
307
+ viewer: string;
308
+ };
309
+ roleHint: (role: string, description: string) => string;
310
+ kind: {
311
+ personal: string;
312
+ team: string;
313
+ teamWithName: (team: string) => string;
314
+ };
315
+ indicator: {
316
+ onlyYou: string;
317
+ team: (role: string) => string;
318
+ current: (name: string) => string;
319
+ };
320
+ switcher: {
321
+ open: string;
322
+ title: string;
323
+ personal: string;
324
+ teams: string;
325
+ active: string;
326
+ openInvitations: (count: number) => string;
327
+ view: string;
328
+ noTeams: string;
329
+ newCalendar: string;
330
+ };
331
+ invitations: {
332
+ title: string;
333
+ description: string;
334
+ invitedBy: (name: string) => string;
335
+ invited: string;
336
+ validUntil: (date: string) => string;
337
+ decline: string;
338
+ declining: string;
339
+ accept: string;
340
+ accepting: string;
341
+ };
342
+ list: {
343
+ title: string;
344
+ description: string;
345
+ settingsFor: (name: string) => string;
346
+ personalHint: string;
347
+ showInPersonal: string;
348
+ leave: string;
349
+ ownerCannotLeave: string;
350
+ noTeamCalendars: string;
351
+ create: string;
352
+ };
353
+ leave: {
354
+ title: string;
355
+ confirm: string;
356
+ pending: string;
357
+ message: (team: string) => string;
358
+ };
359
+ create: {
360
+ title: string;
361
+ steps: {
362
+ label: string;
363
+ title: string;
364
+ hint: string;
365
+ }[];
366
+ stepCount: (step: number, total: number) => string;
367
+ next: string;
368
+ pending: string;
369
+ submit: string;
370
+ };
371
+ details: {
372
+ name: string;
373
+ namePlaceholder: string;
374
+ description: string;
375
+ descriptionOptional: string;
376
+ descriptionPlaceholder: string;
377
+ yourRole: string;
378
+ invitations: string;
379
+ none: string;
380
+ };
381
+ invite: {
382
+ email: string;
383
+ role: string;
384
+ add: string;
385
+ nobodyYet: string;
386
+ remove: (email: string) => string;
387
+ };
388
+ validation: {
389
+ nameRequired: string;
390
+ nameTooLong: (max: number) => string;
391
+ tooManyInvitations: (max: number) => string;
392
+ selfInvite: string;
393
+ alreadyInvited: string;
394
+ alreadyMember: string;
395
+ };
396
+ settings: {
397
+ title: string;
398
+ pageTitle: (name: string) => string;
399
+ notFound: string;
400
+ tabsLabel: string;
401
+ withCount: (label: string, count: number) => string;
402
+ tabs: {
403
+ general: string;
404
+ members: string;
405
+ invitations: string;
406
+ danger: string;
407
+ };
408
+ displayTitle: string;
409
+ displayDescription: string;
410
+ personalTitle: string;
411
+ personalHint: string;
412
+ };
413
+ general: {
414
+ title: string;
415
+ teamDescription: string;
416
+ personalDescription: string;
417
+ pending: string;
418
+ };
419
+ members: {
420
+ title: string;
421
+ description: string;
422
+ you: string;
423
+ roleOf: (name: string) => string;
424
+ remove: string;
425
+ removeTitle: string;
426
+ removing: string;
427
+ removeMessage: (name: string, calendar: string) => string;
428
+ };
429
+ teamInvitations: {
430
+ title: string;
431
+ description: string;
432
+ revoke: string;
433
+ revoking: string;
434
+ submit: string;
435
+ sending: string;
436
+ sent: (email: string) => string;
437
+ none: string;
438
+ };
439
+ danger: {
440
+ title: string;
441
+ transferHint: string;
442
+ transferUnavailable: string;
443
+ transfer: string;
444
+ lastOwnerHint: string;
445
+ leaveHint: string;
446
+ deleteHint: (team: string) => string;
447
+ deleteTeam: string;
448
+ transferConfirmTitle: string;
449
+ transferConfirm: string;
450
+ transferring: string;
451
+ transferMessage: (name: string, email: string, team: string, role: string) => string;
452
+ deleteTitle: string;
453
+ deleteConfirm: string;
454
+ deleting: string;
455
+ deleteMessage: (team: string, count: number) => string;
456
+ };
457
+ transfer: {
458
+ title: string;
459
+ search: string;
460
+ searchPlaceholder: string;
461
+ noResults: string;
462
+ newOwner: string;
463
+ confirm: string;
464
+ };
465
+ };
466
+ };
@@ -0,0 +1,23 @@
1
+ export declare const settings: {
2
+ tabsLabel: string;
3
+ tabs: {
4
+ calendars: string;
5
+ appearance: string;
6
+ account: string;
7
+ };
8
+ languageTitle: string;
9
+ languageDescription: string;
10
+ languageLabel: string;
11
+ languages: {
12
+ auto: string;
13
+ 'en-US': string;
14
+ 'en-GB': string;
15
+ 'de-DE': string;
16
+ };
17
+ themeTitle: string;
18
+ themeLabel: string;
19
+ startViewTitle: string;
20
+ startViewDescription: string;
21
+ desktop: string;
22
+ mobile: string;
23
+ };
@@ -0,0 +1,7 @@
1
+ export declare const storage: {
2
+ importTitle: string;
3
+ importMessage: (count: number) => string;
4
+ importing: string;
5
+ importConfirm: string;
6
+ keepLocal: string;
7
+ };
@@ -0,0 +1,4 @@
1
+ import type { Language } from '../locale.js';
2
+ import type { Messages } from './types.js';
3
+ export type { Messages } from './types.js';
4
+ export declare const MESSAGES: Record<Language, Messages>;
@@ -0,0 +1,2 @@
1
+ import type { en } from './en/index.js';
2
+ export type Messages = typeof en;
@@ -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, theme, initialView, 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,28 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { CalendarDataSource } from '../data/index.js';
3
+ import type { HostTheme } from '../context/HostContext.js';
4
+ import type { UserTokenProvider } from '../features/authorization/index.js';
5
+ import type { CalendarView } from '../utils/calendarView.js';
6
+ import type { EventCallbacks } from './eventCallbacks.js';
7
+ import type { CalendarFeatures, StorageMode } from './defaults.js';
8
+ export { DEFAULT_CONFIG, STORAGE_MODES } from './defaults.js';
9
+ export type { CalendarConfig, CalendarFeatures, StorageMode } from './defaults.js';
10
+ export type CalendarRouting = 'memory' | 'browser';
11
+ export type CalendarProps = EventCallbacks & {
12
+ dataSource?: CalendarDataSource;
13
+ tenant?: string;
14
+ getUserToken?: UserTokenProvider;
15
+ storageMode?: StorageMode;
16
+ apiBaseUrl?: string;
17
+ apiTimeoutMs?: number;
18
+ features?: Partial<CalendarFeatures>;
19
+ routing?: CalendarRouting;
20
+ basename?: string;
21
+ initialPath?: string;
22
+ linkParam?: string | false;
23
+ locale?: string;
24
+ theme?: HostTheme;
25
+ initialView?: CalendarView;
26
+ className?: string;
27
+ style?: CSSProperties;
28
+ };
@@ -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,16 @@
1
+ import type { CalendarDataSource } from '../data/index.js';
2
+ import type { UserTokenProvider } from '../features/authorization/index.js';
3
+ export declare const DEFAULT_ELEMENT_NAME = "calendar-widget";
4
+ export declare class CalendarElement extends HTMLElement {
5
+ #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 readonly version: string;
8
+ get dataSource(): CalendarDataSource | undefined;
9
+ set dataSource(value: CalendarDataSource | undefined);
10
+ get getUserToken(): UserTokenProvider | undefined;
11
+ set getUserToken(value: UserTokenProvider | undefined);
12
+ connectedCallback(): void;
13
+ disconnectedCallback(): void;
14
+ attributeChangedCallback(): void;
15
+ }
16
+ 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,16 @@
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 { localDataSource, restDataSource, TENANT_HEADER, tenantDataSource } from '../data/index.js';
9
+ export type { CalendarDataSource, DataRepositories, DataSession, DataSourceContext, RestDataSourceOptions, TenantDataSourceOptions, } from '../data/index.js';
10
+ export type { AuthMethod, AuthRepository, User, UserTokenProvider } from '../features/authorization/index.js';
11
+ export type { CalendarChanges, CalendarDraft, CalendarRepository, CalendarSummary, Invitation, PendingInvitation, TeamChanges, TeamInvitation, TeamMember, TeamRole, } from '../features/calendars/index.js';
12
+ export type { ColorRepository, EventQuery, EventRepository, PreferencesRepository, } from '../features/storage/index.js';
13
+ export type { CalendarEvent, EventInput } from '../utils/event.js';
14
+ export type { Preferences } from '../utils/preferences.js';
15
+ export type { Recurrence } from '../utils/recurrence.js';
16
+ 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 {};