@ebarooni/capacitor-calendar 8.8.0 → 8.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/CapacitorCalendarPlugin.kt +70 -25
- package/android/src/main/java/dev/barooni/capacitor/calendar/PluginError.kt +45 -22
- package/android/src/main/java/dev/barooni/capacitor/calendar/implementation/CapacitorCalendar.kt +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/data/CalendarInfo.kt +1 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/CreateEventInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/DeleteEventWithPromptInput.kt +4 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEvent.kt +8 -2
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/inputs/ModifyEventWithPromptInput.kt +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +1 -1
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/DeclarationCheck.kt +59 -0
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/ImplementationHelper.kt +27 -2
- package/android/src/main/java/dev/barooni/capacitor/calendar/utils/PluginCallRejecter.kt +69 -0
- package/dist/docs.json +2 -2
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.d.ts +44 -0
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js +46 -0
- package/dist/esm/schemas/enums/capacitor-calendar-error-code.js.map +1 -0
- package/dist/esm/schemas/interfaces/calendar.d.ts +3 -1
- package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
- package/dist/plugin.cjs.js +46 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +46 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CapacitorCalendarPlugin.swift +66 -22
- package/ios/Plugin/PluginError.swift +47 -0
- package/ios/Plugin/Utils/DeclarationCheck.swift +63 -0
- package/ios/Plugin/Utils/PluginCallRejecter.swift +36 -0
- package/package.json +1 -1
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/schemas/enums/attendee-role.js","esm/schemas/enums/attendee-status.js","esm/schemas/enums/attendee-type.js","esm/schemas/enums/calendar-chooser-display-style.js","esm/schemas/enums/calendar-permission-scope.js","esm/schemas/enums/calendar-source-type.js","esm/schemas/enums/calendar-type.js","esm/schemas/enums/event-availability.js","esm/schemas/enums/event-span.js","esm/schemas/enums/event-status.js","esm/schemas/enums/reminder-recurrence-frequency.js","esm/web/download-ics-file.js","esm/index.js","esm/web/ics.js","esm/web.js"],"sourcesContent":["/**\n * @since 7.1.0\n */\nexport var AttendeeRole;\n(function (AttendeeRole) {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeRole[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"REQUIRED\"] = \"required\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"OPTIONAL\"] = \"optional\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"CHAIR\"] = \"chair\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeRole[\"NON_PARTICIPANT\"] = \"nonParticipant\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"ATTENDEE\"] = \"attendee\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"ORGANIZER\"] = \"organizer\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"PERFORMER\"] = \"performer\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"SPEAKER\"] = \"speaker\";\n})(AttendeeRole || (AttendeeRole = {}));\n//# sourceMappingURL=attendee-role.js.map","/**\n * @since 7.1.0\n */\nexport var AttendeeStatus;\n(function (AttendeeStatus) {\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeStatus[\"NONE\"] = \"none\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"ACCEPTED\"] = \"accepted\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"DECLINED\"] = \"declined\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeStatus[\"INVITED\"] = \"invited\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"PENDING\"] = \"pending\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"TENTATIVE\"] = \"tentative\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"DELEGATED\"] = \"delegated\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"COMPLETED\"] = \"completed\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"IN_PROCESS\"] = \"inProcess\";\n})(AttendeeStatus || (AttendeeStatus = {}));\n//# sourceMappingURL=attendee-status.js.map","/**\n * @since 7.1.0\n */\nexport var AttendeeType;\n(function (AttendeeType) {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeType[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"PERSON\"] = \"person\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"ROOM\"] = \"room\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeType[\"RESOURCE\"] = \"resource\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"GROUP\"] = \"group\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"REQUIRED\"] = \"required\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"NONE\"] = \"none\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"OPTIONAL\"] = \"optional\";\n})(AttendeeType || (AttendeeType = {}));\n//# sourceMappingURL=attendee-type.js.map","/**\n * @since 0.2.0\n */\nexport var CalendarChooserDisplayStyle;\n(function (CalendarChooserDisplayStyle) {\n /**\n * @since 0.2.0\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"ALL_CALENDARS\"] = 0] = \"ALL_CALENDARS\";\n /**\n * @since 0.2.0\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"WRITABLE_CALENDARS_ONLY\"] = 1] = \"WRITABLE_CALENDARS_ONLY\";\n})(CalendarChooserDisplayStyle || (CalendarChooserDisplayStyle = {}));\n//# sourceMappingURL=calendar-chooser-display-style.js.map","/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport var CalendarPermissionScope;\n(function (CalendarPermissionScope) {\n /**\n * Permission required for reading calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsFullAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.READ_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"READ_CALENDAR\"] = \"readCalendar\";\n /**\n * Permission required for reading reminders.\n *\n * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 13-16 | `NSRemindersUsageDescription` |\n * @platform iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"READ_REMINDERS\"] = \"readReminders\";\n /**\n * Permission required for adding or modifying calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsWriteOnlyAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.WRITE_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"WRITE_CALENDAR\"] = \"writeCalendar\";\n /**\n * Permission required for adding or modifying reminders.\n *\n * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 13-16 | `NSRemindersUsageDescription` |\n *\n * @platform iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"WRITE_REMINDERS\"] = \"writeReminders\";\n})(CalendarPermissionScope || (CalendarPermissionScope = {}));\n//# sourceMappingURL=calendar-permission-scope.js.map","/**\n * @since 7.1.0\n */\nexport var CalendarSourceType;\n(function (CalendarSourceType) {\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"EXCHANGE\"] = 1] = \"EXCHANGE\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"CAL_DAV\"] = 2] = \"CAL_DAV\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"MOBILE_ME\"] = 3] = \"MOBILE_ME\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"SUBSCRIBED\"] = 4] = \"SUBSCRIBED\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"BIRTHDAYS\"] = 5] = \"BIRTHDAYS\";\n})(CalendarSourceType || (CalendarSourceType = {}));\n//# sourceMappingURL=calendar-source-type.js.map","/**\n * @since 7.1.0\n */\nexport var CalendarType;\n(function (CalendarType) {\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"CAL_DAV\"] = 1] = \"CAL_DAV\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"EXCHANGE\"] = 2] = \"EXCHANGE\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"SUBSCRIPTION\"] = 3] = \"SUBSCRIPTION\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"BIRTHDAY\"] = 4] = \"BIRTHDAY\";\n})(CalendarType || (CalendarType = {}));\n//# sourceMappingURL=calendar-type.js.map","/**\n * @since 7.1.0\n */\nexport var EventAvailability;\n(function (EventAvailability) {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"NOT_SUPPORTED\"] = -1] = \"NOT_SUPPORTED\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"BUSY\"] = 0] = \"BUSY\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"FREE\"] = 1] = \"FREE\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"TENTATIVE\"] = 2] = \"TENTATIVE\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"UNAVAILABLE\"] = 3] = \"UNAVAILABLE\";\n})(EventAvailability || (EventAvailability = {}));\n//# sourceMappingURL=event-availability.js.map","/**\n * @since 7.1.0\n */\nexport var EventSpan;\n(function (EventSpan) {\n /**\n * Only the identified event or occurrence.\n *\n * @since 7.1.0\n */\n EventSpan[EventSpan[\"THIS_EVENT\"] = 0] = \"THIS_EVENT\";\n /**\n * The identified occurrence and future occurrences in the series.\n *\n * @since 7.1.0\n */\n EventSpan[EventSpan[\"THIS_AND_FUTURE_EVENTS\"] = 1] = \"THIS_AND_FUTURE_EVENTS\";\n})(EventSpan || (EventSpan = {}));\n//# sourceMappingURL=event-span.js.map","/**\n * @platform Android, iOS\n * @since 7.1.0\n */\nexport var EventStatus;\n(function (EventStatus) {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventStatus[\"NONE\"] = \"none\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"CONFIRMED\"] = \"confirmed\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"TENTATIVE\"] = \"tentative\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"CANCELED\"] = \"canceled\";\n})(EventStatus || (EventStatus = {}));\n//# sourceMappingURL=event-status.js.map","/**\n * @deprecated Use `'daily'`, `'weekly'`, `'monthly'`, or `'yearly'` (`RecurrenceFrequency`).\n */\nexport var ReminderRecurrenceFrequency;\n(function (ReminderRecurrenceFrequency) {\n /**\n * @deprecated Use `'daily'`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * @deprecated Use `'weekly'`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * @deprecated Use `'monthly'`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * @deprecated Use `'yearly'`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));\n//# sourceMappingURL=reminder-recurrence-frequency.js.map","/**\n * Triggers a browser download for an `.ics` `File`.\n * Resolves after the object URL is revoked.\n *\n * @throws If `document` or `URL` is not available.\n *\n * @example\n * const { ics } = await CapacitorCalendar.createEvent({\n * title: 'Team standup',\n * icsFileName: 'team-standup.ics',\n * });\n * if (ics) {\n * await downloadIcsFile(ics);\n * }\n *\n * @since 8.5.0\n */\nexport async function downloadIcsFile(file) {\n if (typeof document === 'undefined' || typeof URL === 'undefined') {\n throw new Error('downloadIcsFile requires a browser document environment.');\n }\n const url = URL.createObjectURL(file);\n const link = document.createElement('a');\n link.href = url;\n link.download = file.name.length > 0 ? file.name : 'event.ics';\n document.body.appendChild(link);\n link.click();\n link.remove();\n // Delay revoke so the browser can start the download\n await new Promise((resolve) => setTimeout(resolve, 1000));\n URL.revokeObjectURL(url);\n}\n//# sourceMappingURL=download-ics-file.js.map","import { registerPlugin } from '@capacitor/core';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport { downloadIcsFile } from './web/download-ics-file';\nconst CapacitorCalendar = registerPlugin('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\nexport * from './definitions';\nexport { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };\n//# sourceMappingURL=index.js.map","import { EventAvailability } from '../schemas/enums/event-availability';\nconst HOUR_MS = 60 * 60 * 1000;\nconst DAY_MS = 24 * HOUR_MS;\nconst CRLF = '\\r\\n';\n/**\n * Builds an RFC 5545 `VCALENDAR` document with one `VEVENT` from CreateEventOptions.\n * End comes from `endDate`, else `duration` (RFC 2445), else one hour (or next day if all-day).\n * All-day ends that fall on the start's local day bump to the next day (exclusive `DTEND`).\n */\nexport function buildEventIcs(options) {\n var _a;\n const startDate = (_a = options.startDate) !== null && _a !== void 0 ? _a : Date.now();\n const isAllDay = options.isAllDay === true;\n const endDate = resolveEndDate(startDate, options.endDate, options.duration, isAllDay);\n const lines = [\n 'BEGIN:VCALENDAR',\n 'VERSION:2.0',\n 'PRODID:-//ebarooni/capacitor-calendar//EN',\n 'CALSCALE:GREGORIAN',\n 'METHOD:PUBLISH',\n 'BEGIN:VEVENT',\n `UID:${generateUid()}`,\n `DTSTAMP:${formatDateTimeUtc(Date.now())}`,\n ];\n if (isAllDay) {\n lines.push(`DTSTART;VALUE=DATE:${formatDateOnlyLocal(startDate)}`);\n lines.push(`DTEND;VALUE=DATE:${formatDateOnlyLocal(endDate)}`);\n }\n else {\n lines.push(`DTSTART:${formatDateTimeUtc(startDate)}`);\n lines.push(`DTEND:${formatDateTimeUtc(endDate)}`);\n }\n lines.push(`SUMMARY:${escapeText(options.title)}`);\n if (options.description != null && options.description.length > 0) {\n lines.push(`DESCRIPTION:${escapeText(options.description)}`);\n }\n if (options.location != null && options.location.length > 0) {\n lines.push(`LOCATION:${escapeText(options.location)}`);\n }\n if (options.url != null && options.url.length > 0) {\n lines.push(`URL:${escapeText(options.url)}`);\n }\n if (options.organizer != null && options.organizer.length > 0) {\n lines.push(`ORGANIZER:mailto:${escapeText(options.organizer)}`);\n }\n const transp = mapTransparency(options.availability);\n if (transp != null) {\n lines.push(`TRANSP:${transp}`);\n }\n if (options.recurrence != null) {\n lines.push(`RRULE:${toRRule(options.recurrence, isAllDay)}`);\n }\n if (options.attendees != null) {\n for (const guest of options.attendees) {\n if (guest.email.length === 0) {\n continue;\n }\n const cn = guest.name != null && guest.name.length > 0 ? `;CN=${formatParamValue(guest.name)}` : '';\n lines.push(`ATTENDEE${cn}:mailto:${escapeText(guest.email)}`);\n }\n }\n if (options.alerts != null) {\n for (const minutes of options.alerts) {\n lines.push(...buildAlarm(minutes));\n }\n }\n lines.push('END:VEVENT', 'END:VCALENDAR');\n return lines.map(foldLine).join(CRLF) + CRLF;\n}\n/**\n * Resolves the `.ics` download filename.\n * Uses `icsFileName` when set; otherwise derives a name from `title` (fallback `event.ics`).\n * Appends `.ics` when the chosen name has no such extension.\n */\nexport function resolveIcsFileName(options) {\n var _a;\n const custom = (_a = options.icsFileName) === null || _a === void 0 ? void 0 : _a.trim();\n if (custom != null && custom.length > 0) {\n return /\\.ics$/i.test(custom) ? custom : `${custom}.ics`;\n }\n return fileNameFromTitle(options.title);\n}\nfunction fileNameFromTitle(title) {\n const base = (title !== null && title !== void 0 ? title : 'event')\n .trim()\n .replace(/[^\\w\\s-]+/g, '')\n .replace(/\\s+/g, '-')\n .replace(/-+/g, '-')\n .replace(/^-|-$/g, '')\n .slice(0, 64);\n return `${base.length > 0 ? base : 'event'}.ics`;\n}\n/**\n * Resolves event end milliseconds the same way ICS export does.\n * Prefers `endDate`, else `duration` (RFC 2445), else one hour (or next day if all-day).\n * All-day ends that fall on the start's local day bump to the next day (exclusive `DTEND`).\n */\nexport function resolveEndDate(startDate, endDate, duration, isAllDay) {\n let resolved;\n if (endDate != null) {\n resolved = endDate;\n }\n else if (duration != null && duration.trim().length > 0) {\n resolved = startDate + parseRfc2445DurationMs(duration.trim());\n }\n else {\n resolved = isAllDay ? startDate + DAY_MS : startDate + HOUR_MS;\n }\n if (!isAllDay) {\n return resolved;\n }\n // ICS all-day DTEND is exclusive; same local date as DTSTART is zero-length.\n // Also covers short durations (e.g. PT1H) on all-day events — treat as one whole day.\n if (formatDateOnlyLocal(resolved) <= formatDateOnlyLocal(startDate)) {\n return startDate + DAY_MS;\n }\n return resolved;\n}\n/**\n * Parses an RFC 2445 / RFC 5545 duration string into milliseconds.\n * Supports forms such as `PT1H`, `P1D`, `P3W`, `P2DT4H30M`.\n *\n * @throws If the string is empty, negative, zero-length, or not a valid duration.\n */\nfunction parseRfc2445DurationMs(value) {\n var _a, _b, _c, _d, _e;\n const match = /^([+-])?P(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+)S)?)?$/i.exec(value);\n if (match == null) {\n throw new Error(`Invalid duration: ${value}`);\n }\n const sign = match[1] === '-' ? -1 : 1;\n const weeks = Number((_a = match[2]) !== null && _a !== void 0 ? _a : 0);\n const days = Number((_b = match[3]) !== null && _b !== void 0 ? _b : 0);\n const hours = Number((_c = match[4]) !== null && _c !== void 0 ? _c : 0);\n const minutes = Number((_d = match[5]) !== null && _d !== void 0 ? _d : 0);\n const seconds = Number((_e = match[6]) !== null && _e !== void 0 ? _e : 0);\n // Require at least one unit so bare \"P\" / \"PT\" are rejected.\n if (weeks === 0 && days === 0 && hours === 0 && minutes === 0 && seconds === 0) {\n throw new Error(`Invalid duration: ${value}`);\n }\n const ms = weeks * 7 * DAY_MS + days * DAY_MS + hours * HOUR_MS + minutes * 60 * 1000 + seconds * 1000;\n const signed = sign * ms;\n if (signed <= 0) {\n throw new Error(`Invalid duration: ${value}`);\n }\n return signed;\n}\nfunction mapTransparency(availability) {\n if (availability == null) {\n return null;\n }\n if (availability === EventAvailability.FREE) {\n return 'TRANSPARENT';\n }\n if (availability === EventAvailability.BUSY) {\n return 'OPAQUE';\n }\n return 'OPAQUE';\n}\nfunction toRRule(rule, isAllDay) {\n var _a;\n const parts = [`FREQ=${rule.frequency.toUpperCase()}`, `INTERVAL=${Math.max(1, (_a = rule.interval) !== null && _a !== void 0 ? _a : 1)}`];\n if (rule.count != null) {\n parts.push(`COUNT=${rule.count}`);\n }\n else if (rule.end != null) {\n // RFC 5545: UNTIL must match DTSTART value type (DATE vs DATE-TIME).\n parts.push(`UNTIL=${isAllDay ? formatDateOnlyLocal(rule.end) : formatDateTimeUtc(rule.end)}`);\n }\n if (rule.byWeekDay != null && rule.byWeekDay.length > 0) {\n const mapped = rule.byWeekDay.map(mapWeekday).filter((d) => d != null);\n if (mapped.length > 0) {\n parts.push(`BYDAY=${[...new Set(mapped)].join(',')}`);\n }\n }\n if (rule.byMonthDay != null && rule.byMonthDay.length > 0) {\n parts.push(`BYMONTHDAY=${rule.byMonthDay.join(',')}`);\n }\n if (rule.byMonth != null && rule.byMonth.length > 0) {\n parts.push(`BYMONTH=${rule.byMonth.join(',')}`);\n }\n if (rule.weeksOfTheYear != null && rule.weeksOfTheYear.length > 0) {\n parts.push(`BYWEEKNO=${rule.weeksOfTheYear.join(',')}`);\n }\n if (rule.daysOfTheYear != null && rule.daysOfTheYear.length > 0) {\n parts.push(`BYYEARDAY=${rule.daysOfTheYear.join(',')}`);\n }\n return parts.join(';');\n}\nfunction mapWeekday(day) {\n switch (day) {\n case 1:\n return 'MO';\n case 2:\n return 'TU';\n case 3:\n return 'WE';\n case 4:\n return 'TH';\n case 5:\n return 'FR';\n case 6:\n return 'SA';\n case 7:\n return 'SU';\n default:\n return null;\n }\n}\nfunction buildAlarm(minutes) {\n const trigger = minutes < 0 ? `-PT${Math.abs(minutes)}M` : `PT${minutes}M`;\n return ['BEGIN:VALARM', 'ACTION:DISPLAY', 'DESCRIPTION:Reminder', `TRIGGER:${trigger}`, 'END:VALARM'];\n}\nfunction generateUid() {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return `${crypto.randomUUID()}@capacitor-calendar`;\n }\n return `${Date.now()}-${Math.random().toString(36).slice(2, 11)}@capacitor-calendar`;\n}\nfunction formatDateTimeUtc(ms) {\n const date = new Date(ms);\n const fullYear = date.getUTCFullYear();\n const month = padTwoDigits(date.getUTCMonth() + 1);\n const dayOfMonth = padTwoDigits(date.getUTCDate());\n const hours = padTwoDigits(date.getUTCHours());\n const minutes = padTwoDigits(date.getUTCMinutes());\n const seconds = padTwoDigits(date.getUTCSeconds());\n return `${fullYear}${month}${dayOfMonth}T${hours}${minutes}${seconds}Z`;\n}\nfunction formatDateOnlyLocal(ms) {\n const date = new Date(ms);\n return `${date.getFullYear()}${padTwoDigits(date.getMonth() + 1)}${padTwoDigits(date.getDate())}`;\n}\nfunction padTwoDigits(value) {\n return value < 10 ? `0${value}` : String(value);\n}\n/**\n * Escapes TEXT values per RFC 5545 §3.3.11.\n */\nexport function escapeText(value) {\n return value\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/;/g, '\\\\;')\n .replace(/,/g, '\\\\,')\n .replace(/\\r\\n|\\n|\\r/g, '\\\\n');\n}\n/**\n * Formats a property parameter value per RFC 5545 §3.2.\n * Values with COMMA, SEMICOLON, or COLON are quoted; DQUOTE and line breaks are sanitized.\n */\nfunction formatParamValue(value) {\n const sanitized = value.replace(/[\\r\\n]+/g, ' ').replace(/\"/g, \"'\");\n if (/[;:,]/.test(sanitized)) {\n return `\"${sanitized}\"`;\n }\n return sanitized;\n}\n/**\n * Folds a content line so each physical line is at most 75 octets (RFC 5545 §3.1).\n */\nexport function foldLine(line) {\n const max = 75;\n if (byteLength(line) <= max) {\n return line;\n }\n const chars = [...line];\n let result = '';\n let current = '';\n for (const ch of chars) {\n const next = current + ch;\n if (byteLength(next) > max) {\n result += result.length === 0 ? current : `${CRLF} ${current}`;\n current = ch;\n // Continuations are limited to 74 octets of content + leading space = 75\n while (byteLength(current) > max - 1) {\n // Extremely rare for a single code point; split by taking first unit as-is\n result += `${CRLF} ${current}`;\n current = '';\n break;\n }\n }\n else {\n current = next;\n }\n }\n if (current.length > 0) {\n result += result.length === 0 ? current : `${CRLF} ${current}`;\n }\n return result;\n}\nfunction byteLength(s) {\n return new TextEncoder().encode(s).length;\n}\n//# sourceMappingURL=ics.js.map","import { WebPlugin } from '@capacitor/core';\nimport { downloadIcsFile } from './web/download-ics-file';\nimport { buildEventIcs, resolveEndDate, resolveIcsFileName } from './web/ics';\nconst DAY_MS = 24 * 60 * 60 * 1000;\nexport class CapacitorCalendarWeb extends WebPlugin {\n checkPermission(_options) {\n return this.throwUnimplemented(this.checkPermission.name);\n }\n checkAllPermissions() {\n return this.throwUnimplemented(this.checkAllPermissions.name);\n }\n requestPermission(_options) {\n return this.throwUnimplemented(this.requestPermission.name);\n }\n createRemindersList(_options) {\n return this.throwUnimplemented(this.createRemindersList.name);\n }\n deleteRemindersList(_options) {\n return this.throwUnimplemented(this.deleteRemindersList.name);\n }\n requestAllPermissions() {\n return this.throwUnimplemented(this.requestAllPermissions.name);\n }\n requestWriteOnlyCalendarAccess() {\n return this.throwUnimplemented(this.requestWriteOnlyCalendarAccess.name);\n }\n requestReadOnlyCalendarAccess() {\n return this.throwUnimplemented(this.requestReadOnlyCalendarAccess.name);\n }\n requestFullCalendarAccess() {\n return this.throwUnimplemented(this.requestFullCalendarAccess.name);\n }\n requestFullRemindersAccess() {\n return this.throwUnimplemented(this.requestFullRemindersAccess.name);\n }\n async createEventWithPrompt(options = {}) {\n try {\n const confirmed = window.confirm(buildCreateEventConfirmMessage(options));\n if (!confirmed) {\n return { id: null, ics: null };\n }\n const createOptions = mapPromptOptionsToCreateEvent(options);\n const content = buildEventIcs(createOptions);\n const ics = new File([content], resolveIcsFileName(createOptions), {\n type: 'text/calendar;charset=utf-8',\n });\n if (options.autoDownloadIcsFile !== false) {\n await downloadIcsFile(ics);\n }\n return { id: null, ics };\n }\n catch (error) {\n const message = error instanceof Error ? error.message : String(error);\n return Promise.reject(new Error(message));\n }\n }\n modifyEventWithPrompt(_options) {\n return this.throwUnimplemented(this.modifyEventWithPrompt.name);\n }\n async createEvent(options) {\n try {\n const content = buildEventIcs(options);\n const ics = new File([content], resolveIcsFileName(options), {\n type: 'text/calendar;charset=utf-8',\n });\n if (options.autoDownloadIcsFile === true) {\n await downloadIcsFile(ics);\n }\n return { id: null, ics };\n }\n catch (error) {\n const message = error instanceof Error ? error.message : String(error);\n return Promise.reject(new Error(message));\n }\n }\n commit() {\n return this.throwUnimplemented(this.commit.name);\n }\n modifyEvent(_options) {\n return this.throwUnimplemented(this.modifyEvent.name);\n }\n selectCalendarsWithPrompt(_options) {\n return this.throwUnimplemented(this.selectCalendarsWithPrompt.name);\n }\n fetchAllCalendarSources() {\n return this.throwUnimplemented(this.fetchAllCalendarSources.name);\n }\n listCalendars() {\n return this.throwUnimplemented(this.listCalendars.name);\n }\n fetchAllRemindersSources() {\n return this.throwUnimplemented(this.fetchAllRemindersSources.name);\n }\n getDefaultCalendar(_options) {\n return this.throwUnimplemented(this.getDefaultCalendar.name);\n }\n getDefaultRemindersList() {\n return this.throwUnimplemented(this.getDefaultRemindersList.name);\n }\n openReminders() {\n return this.throwUnimplemented(this.openReminders.name);\n }\n getRemindersLists() {\n return this.throwUnimplemented(this.getRemindersLists.name);\n }\n openCalendar(_options) {\n return this.throwUnimplemented(this.openCalendar.name);\n }\n createCalendar(_options) {\n return this.throwUnimplemented(this.createCalendar.name);\n }\n deleteCalendar(_options) {\n return this.throwUnimplemented(this.deleteCalendar.name);\n }\n createReminder(_options) {\n return this.throwUnimplemented(this.createReminder.name);\n }\n deleteRemindersById(_options) {\n return this.throwUnimplemented(this.deleteRemindersById.name);\n }\n deleteReminder(_options) {\n return this.throwUnimplemented(this.deleteReminder.name);\n }\n modifyReminder(_options) {\n return this.throwUnimplemented(this.modifyReminder.name);\n }\n getReminderById(_options) {\n return this.throwUnimplemented(this.getReminderById.name);\n }\n getRemindersFromLists(_options) {\n return this.throwUnimplemented(this.getRemindersFromLists.name);\n }\n deleteEventsById(_options) {\n return this.throwUnimplemented(this.deleteEventsById.name);\n }\n deleteEvent(_options) {\n return this.throwUnimplemented(this.deleteEvent.name);\n }\n deleteEventWithPrompt(_options) {\n return this.throwUnimplemented(this.deleteEventWithPrompt.name);\n }\n listEventsInRange(_options) {\n return this.throwUnimplemented(this.listEventsInRange.name);\n }\n modifyCalendar(_options) {\n return this.throwUnimplemented(this.modifyCalendar.name);\n }\n deleteReminderWithPrompt(_options) {\n return this.throwUnimplemented(this.deleteReminderWithPrompt.name);\n }\n updateRemindersList(_options) {\n return this.throwUnimplemented(this.updateRemindersList.name);\n }\n throwUnimplemented(methodName) {\n return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));\n }\n}\nfunction mapPromptOptionsToCreateEvent(options) {\n var _a;\n return {\n alerts: options.alerts,\n availability: options.availability,\n description: options.description,\n endDate: options.endDate,\n icsFileName: options.icsFileName,\n isAllDay: options.isAllDay,\n location: options.location,\n recurrence: options.recurrence,\n startDate: options.startDate,\n title: (_a = options.title) !== null && _a !== void 0 ? _a : '',\n url: options.url,\n };\n}\nfunction buildCreateEventConfirmMessage(options) {\n var _a;\n const custom = (_a = options.promptMessage) === null || _a === void 0 ? void 0 : _a.trim();\n if (custom != null && custom.length > 0) {\n return custom;\n }\n const title = normalizeConfirmTitle(options.title);\n const timeSummary = formatEventTimeSummary(options);\n return `Create event?\\n\\n${title}\\n${timeSummary}`;\n}\nfunction normalizeConfirmTitle(title) {\n const collapsed = (title !== null && title !== void 0 ? title : '')\n .replace(/[\\r\\n]+/g, ' ')\n .replace(/\\s+/g, ' ')\n .trim();\n return collapsed.length > 0 ? collapsed : 'Untitled event';\n}\nfunction formatEventTimeSummary(options) {\n var _a;\n const startDate = (_a = options.startDate) !== null && _a !== void 0 ? _a : Date.now();\n const isAllDay = options.isAllDay === true;\n const endDate = resolveEndDate(startDate, options.endDate, undefined, isAllDay);\n if (isAllDay) {\n const startDay = formatLocalDate(startDate);\n const lastInclusiveMs = endDate - DAY_MS;\n const lastDay = formatLocalDate(lastInclusiveMs);\n if (lastDay <= startDay) {\n return `All day · ${formatDisplayDate(startDate)}`;\n }\n return `All day · ${formatDisplayDate(startDate)} – ${formatDisplayDate(lastInclusiveMs)}`;\n }\n return `${formatDisplayDateTime(startDate)} – ${formatDisplayDateTime(endDate)}`;\n}\nfunction formatLocalDate(ms) {\n const date = new Date(ms);\n const fullYear = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const dayOfMonth = String(date.getDate()).padStart(2, '0');\n return `${fullYear}-${month}-${dayOfMonth}`;\n}\nfunction formatDisplayDate(ms) {\n return new Date(ms).toLocaleDateString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n });\n}\nfunction formatDisplayDateTime(ms) {\n return new Date(ms).toLocaleString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n });\n}\n//# sourceMappingURL=web.js.map"],"names":["AttendeeRole","AttendeeStatus","AttendeeType","CalendarChooserDisplayStyle","CalendarPermissionScope","CalendarSourceType","CalendarType","EventAvailability","EventSpan","EventStatus","ReminderRecurrenceFrequency","registerPlugin","DAY_MS","WebPlugin"],"mappings":";;;;AAAA;AACA;AACA;AACWA;AACX,CAAC,UAAU,YAAY,EAAE;AACzB;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,SAAS,CAAC,GAAG,SAAS;AACvC;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,UAAU,CAAC,GAAG,UAAU;AACzC;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,UAAU,CAAC,GAAG,UAAU;AACzC;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,OAAO,CAAC,GAAG,OAAO;AACnC;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,iBAAiB,CAAC,GAAG,gBAAgB;AACtD;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,UAAU,CAAC,GAAG,UAAU;AACzC;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,WAAW,CAAC,GAAG,WAAW;AAC3C;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,WAAW,CAAC,GAAG,WAAW;AAC3C;AACA;AACA;AACA;AACA,IAAI,YAAY,CAAC,SAAS,CAAC,GAAG,SAAS;AACvC,CAAC,EAAEA,oBAAY,KAAKA,oBAAY,GAAG,EAAE,CAAC,CAAC;;AClDvC;AACA;AACA;A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QAAQ,IAAI,EAAE,SAAS;AACvB,QAAQ,MAAM,EAAE,SAAS;AACzB,KAAK,CAAC;AACN;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/schemas/enums/attendee-role.js","esm/schemas/enums/attendee-status.js","esm/schemas/enums/attendee-type.js","esm/schemas/enums/calendar-chooser-display-style.js","esm/schemas/enums/calendar-permission-scope.js","esm/schemas/enums/calendar-source-type.js","esm/schemas/enums/calendar-type.js","esm/schemas/enums/capacitor-calendar-error-code.js","esm/schemas/enums/event-availability.js","esm/schemas/enums/event-span.js","esm/schemas/enums/event-status.js","esm/schemas/enums/reminder-recurrence-frequency.js","esm/web/download-ics-file.js","esm/index.js","esm/web/ics.js","esm/web.js"],"sourcesContent":["/**\n * @since 7.1.0\n */\nexport var AttendeeRole;\n(function (AttendeeRole) {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeRole[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"REQUIRED\"] = \"required\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"OPTIONAL\"] = \"optional\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeRole[\"CHAIR\"] = \"chair\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeRole[\"NON_PARTICIPANT\"] = \"nonParticipant\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"ATTENDEE\"] = \"attendee\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"ORGANIZER\"] = \"organizer\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"PERFORMER\"] = \"performer\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeRole[\"SPEAKER\"] = \"speaker\";\n})(AttendeeRole || (AttendeeRole = {}));\n//# sourceMappingURL=attendee-role.js.map","/**\n * @since 7.1.0\n */\nexport var AttendeeStatus;\n(function (AttendeeStatus) {\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeStatus[\"NONE\"] = \"none\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"ACCEPTED\"] = \"accepted\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"DECLINED\"] = \"declined\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeStatus[\"INVITED\"] = \"invited\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"PENDING\"] = \"pending\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"TENTATIVE\"] = \"tentative\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"DELEGATED\"] = \"delegated\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"COMPLETED\"] = \"completed\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeStatus[\"IN_PROCESS\"] = \"inProcess\";\n})(AttendeeStatus || (AttendeeStatus = {}));\n//# sourceMappingURL=attendee-status.js.map","/**\n * @since 7.1.0\n */\nexport var AttendeeType;\n(function (AttendeeType) {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeType[\"UNKNOWN\"] = \"unknown\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"PERSON\"] = \"person\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"ROOM\"] = \"room\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n AttendeeType[\"RESOURCE\"] = \"resource\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n AttendeeType[\"GROUP\"] = \"group\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"REQUIRED\"] = \"required\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"NONE\"] = \"none\";\n /**\n * @platform Android\n * @since 7.1.0\n */\n AttendeeType[\"OPTIONAL\"] = \"optional\";\n})(AttendeeType || (AttendeeType = {}));\n//# sourceMappingURL=attendee-type.js.map","/**\n * @since 0.2.0\n */\nexport var CalendarChooserDisplayStyle;\n(function (CalendarChooserDisplayStyle) {\n /**\n * @since 0.2.0\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"ALL_CALENDARS\"] = 0] = \"ALL_CALENDARS\";\n /**\n * @since 0.2.0\n */\n CalendarChooserDisplayStyle[CalendarChooserDisplayStyle[\"WRITABLE_CALENDARS_ONLY\"] = 1] = \"WRITABLE_CALENDARS_ONLY\";\n})(CalendarChooserDisplayStyle || (CalendarChooserDisplayStyle = {}));\n//# sourceMappingURL=calendar-chooser-display-style.js.map","/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport var CalendarPermissionScope;\n(function (CalendarPermissionScope) {\n /**\n * Permission required for reading calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsFullAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.READ_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"READ_CALENDAR\"] = \"readCalendar\";\n /**\n * Permission required for reading reminders.\n *\n * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 13-16 | `NSRemindersUsageDescription` |\n * @platform iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"READ_REMINDERS\"] = \"readReminders\";\n /**\n * Permission required for adding or modifying calendar events.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSCalendarsWriteOnlyAccessUsageDescription` |\n * | iOS 13-16 | `NSCalendarsUsageDescription` |\n * | Android | `android.permission.WRITE_CALENDAR` |\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"WRITE_CALENDAR\"] = \"writeCalendar\";\n /**\n * Permission required for adding or modifying reminders.\n *\n * On Android, reminders are not supported. `checkPermission` and\n * `checkAllPermissions` return `\"prompt\"` for this scope.\n * `requestPermission` rejects with `Invalid scope.`.\n *\n * @permissions\n * | Platform | Required |\n * |-----------|---------------------|\n * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |\n * | iOS 13-16 | `NSRemindersUsageDescription` |\n *\n * @platform iOS\n * @since 7.1.0\n */\n CalendarPermissionScope[\"WRITE_REMINDERS\"] = \"writeReminders\";\n})(CalendarPermissionScope || (CalendarPermissionScope = {}));\n//# sourceMappingURL=calendar-permission-scope.js.map","/**\n * @since 7.1.0\n */\nexport var CalendarSourceType;\n(function (CalendarSourceType) {\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"EXCHANGE\"] = 1] = \"EXCHANGE\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"CAL_DAV\"] = 2] = \"CAL_DAV\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"MOBILE_ME\"] = 3] = \"MOBILE_ME\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"SUBSCRIBED\"] = 4] = \"SUBSCRIBED\";\n /**\n * @since 7.1.0\n */\n CalendarSourceType[CalendarSourceType[\"BIRTHDAYS\"] = 5] = \"BIRTHDAYS\";\n})(CalendarSourceType || (CalendarSourceType = {}));\n//# sourceMappingURL=calendar-source-type.js.map","/**\n * @since 7.1.0\n */\nexport var CalendarType;\n(function (CalendarType) {\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"LOCAL\"] = 0] = \"LOCAL\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"CAL_DAV\"] = 1] = \"CAL_DAV\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"EXCHANGE\"] = 2] = \"EXCHANGE\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"SUBSCRIPTION\"] = 3] = \"SUBSCRIPTION\";\n /**\n * @since 7.1.0\n */\n CalendarType[CalendarType[\"BIRTHDAY\"] = 4] = \"BIRTHDAY\";\n})(CalendarType || (CalendarType = {}));\n//# sourceMappingURL=calendar-type.js.map","/**\n * Stable reject codes for CapacitorCalendar. Compare with `error.code`.\n *\n * @since 8.9.0\n */\nexport var CapacitorCalendarErrorCode;\n(function (CapacitorCalendarErrorCode) {\n /**\n * Missing or invalid method arguments.\n *\n * @since 8.10.0\n */\n CapacitorCalendarErrorCode[\"InvalidArgument\"] = \"EB-CLDR-0001\";\n /**\n * Requested calendar, event, list, reminder, or calendar source was not found.\n *\n * @since 8.10.0\n */\n CapacitorCalendarErrorCode[\"NotFound\"] = \"EB-CLDR-0002\";\n /**\n * A calendar store read or write failed.\n *\n * @since 8.10.0\n */\n CapacitorCalendarErrorCode[\"IoError\"] = \"EB-CLDR-0004\";\n /**\n * The device cannot open the calendar UI, reminders UI, or target URL.\n *\n * @since 8.10.0\n */\n CapacitorCalendarErrorCode[\"NotSupported\"] = \"EB-CLDR-0005\";\n /**\n * Calendar access was denied.\n * On Android, calendar operations that fail with a permission error reject with this code. Permission check and request APIs still resolve `\"denied\"` on Android and iOS.\n *\n * @since 8.10.0\n */\n CapacitorCalendarErrorCode[\"PermissionDenied\"] = \"EB-CLDR-0020\";\n /**\n * Missing Info.plist usage description or AndroidManifest permission declaration.\n *\n * @since 8.9.0\n */\n CapacitorCalendarErrorCode[\"MissingDeclaration\"] = \"EB-CLDR-0100\";\n})(CapacitorCalendarErrorCode || (CapacitorCalendarErrorCode = {}));\n//# sourceMappingURL=capacitor-calendar-error-code.js.map","/**\n * @since 7.1.0\n */\nexport var EventAvailability;\n(function (EventAvailability) {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"NOT_SUPPORTED\"] = -1] = \"NOT_SUPPORTED\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"BUSY\"] = 0] = \"BUSY\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"FREE\"] = 1] = \"FREE\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"TENTATIVE\"] = 2] = \"TENTATIVE\";\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventAvailability[EventAvailability[\"UNAVAILABLE\"] = 3] = \"UNAVAILABLE\";\n})(EventAvailability || (EventAvailability = {}));\n//# sourceMappingURL=event-availability.js.map","/**\n * @since 7.1.0\n */\nexport var EventSpan;\n(function (EventSpan) {\n /**\n * Only the identified event or occurrence.\n *\n * @since 7.1.0\n */\n EventSpan[EventSpan[\"THIS_EVENT\"] = 0] = \"THIS_EVENT\";\n /**\n * The identified occurrence and future occurrences in the series.\n *\n * @since 7.1.0\n */\n EventSpan[EventSpan[\"THIS_AND_FUTURE_EVENTS\"] = 1] = \"THIS_AND_FUTURE_EVENTS\";\n})(EventSpan || (EventSpan = {}));\n//# sourceMappingURL=event-span.js.map","/**\n * @platform Android, iOS\n * @since 7.1.0\n */\nexport var EventStatus;\n(function (EventStatus) {\n /**\n * @platform iOS\n * @since 7.1.0\n */\n EventStatus[\"NONE\"] = \"none\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"CONFIRMED\"] = \"confirmed\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"TENTATIVE\"] = \"tentative\";\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n EventStatus[\"CANCELED\"] = \"canceled\";\n})(EventStatus || (EventStatus = {}));\n//# sourceMappingURL=event-status.js.map","/**\n * @deprecated Use `'daily'`, `'weekly'`, `'monthly'`, or `'yearly'` (`RecurrenceFrequency`).\n */\nexport var ReminderRecurrenceFrequency;\n(function (ReminderRecurrenceFrequency) {\n /**\n * @deprecated Use `'daily'`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"DAILY\"] = 0] = \"DAILY\";\n /**\n * @deprecated Use `'weekly'`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"WEEKLY\"] = 1] = \"WEEKLY\";\n /**\n * @deprecated Use `'monthly'`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"MONTHLY\"] = 2] = \"MONTHLY\";\n /**\n * @deprecated Use `'yearly'`.\n */\n ReminderRecurrenceFrequency[ReminderRecurrenceFrequency[\"YEARLY\"] = 3] = \"YEARLY\";\n})(ReminderRecurrenceFrequency || (ReminderRecurrenceFrequency = {}));\n//# sourceMappingURL=reminder-recurrence-frequency.js.map","/**\n * Triggers a browser download for an `.ics` `File`.\n * Resolves after the object URL is revoked.\n *\n * @throws If `document` or `URL` is not available.\n *\n * @example\n * const { ics } = await CapacitorCalendar.createEvent({\n * title: 'Team standup',\n * icsFileName: 'team-standup.ics',\n * });\n * if (ics) {\n * await downloadIcsFile(ics);\n * }\n *\n * @since 8.5.0\n */\nexport async function downloadIcsFile(file) {\n if (typeof document === 'undefined' || typeof URL === 'undefined') {\n throw new Error('downloadIcsFile requires a browser document environment.');\n }\n const url = URL.createObjectURL(file);\n const link = document.createElement('a');\n link.href = url;\n link.download = file.name.length > 0 ? file.name : 'event.ics';\n document.body.appendChild(link);\n link.click();\n link.remove();\n // Delay revoke so the browser can start the download\n await new Promise((resolve) => setTimeout(resolve, 1000));\n URL.revokeObjectURL(url);\n}\n//# sourceMappingURL=download-ics-file.js.map","import { registerPlugin } from '@capacitor/core';\nimport { AttendeeRole } from './schemas/enums/attendee-role';\nimport { AttendeeStatus } from './schemas/enums/attendee-status';\nimport { AttendeeType } from './schemas/enums/attendee-type';\nimport { CalendarChooserDisplayStyle } from './schemas/enums/calendar-chooser-display-style';\nimport { CalendarPermissionScope } from './schemas/enums/calendar-permission-scope';\nimport { CalendarSourceType } from './schemas/enums/calendar-source-type';\nimport { CalendarType } from './schemas/enums/calendar-type';\nimport { CapacitorCalendarErrorCode } from './schemas/enums/capacitor-calendar-error-code';\nimport { EventAvailability } from './schemas/enums/event-availability';\nimport { EventSpan } from './schemas/enums/event-span';\nimport { EventStatus } from './schemas/enums/event-status';\nimport { ReminderRecurrenceFrequency } from './schemas/enums/reminder-recurrence-frequency';\nimport { downloadIcsFile } from './web/download-ics-file';\nconst CapacitorCalendar = registerPlugin('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\nexport * from './definitions';\nexport { CalendarPermissionScope, CapacitorCalendarErrorCode, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };\n//# sourceMappingURL=index.js.map","import { EventAvailability } from '../schemas/enums/event-availability';\nconst HOUR_MS = 60 * 60 * 1000;\nconst DAY_MS = 24 * HOUR_MS;\nconst CRLF = '\\r\\n';\n/**\n * Builds an RFC 5545 `VCALENDAR` document with one `VEVENT` from CreateEventOptions.\n * End comes from `endDate`, else `duration` (RFC 2445), else one hour (or next day if all-day).\n * All-day ends that fall on the start's local day bump to the next day (exclusive `DTEND`).\n */\nexport function buildEventIcs(options) {\n var _a;\n const startDate = (_a = options.startDate) !== null && _a !== void 0 ? _a : Date.now();\n const isAllDay = options.isAllDay === true;\n const endDate = resolveEndDate(startDate, options.endDate, options.duration, isAllDay);\n const lines = [\n 'BEGIN:VCALENDAR',\n 'VERSION:2.0',\n 'PRODID:-//ebarooni/capacitor-calendar//EN',\n 'CALSCALE:GREGORIAN',\n 'METHOD:PUBLISH',\n 'BEGIN:VEVENT',\n `UID:${generateUid()}`,\n `DTSTAMP:${formatDateTimeUtc(Date.now())}`,\n ];\n if (isAllDay) {\n lines.push(`DTSTART;VALUE=DATE:${formatDateOnlyLocal(startDate)}`);\n lines.push(`DTEND;VALUE=DATE:${formatDateOnlyLocal(endDate)}`);\n }\n else {\n lines.push(`DTSTART:${formatDateTimeUtc(startDate)}`);\n lines.push(`DTEND:${formatDateTimeUtc(endDate)}`);\n }\n lines.push(`SUMMARY:${escapeText(options.title)}`);\n if (options.description != null && options.description.length > 0) {\n lines.push(`DESCRIPTION:${escapeText(options.description)}`);\n }\n if (options.location != null && options.location.length > 0) {\n lines.push(`LOCATION:${escapeText(options.location)}`);\n }\n if (options.url != null && options.url.length > 0) {\n lines.push(`URL:${escapeText(options.url)}`);\n }\n if (options.organizer != null && options.organizer.length > 0) {\n lines.push(`ORGANIZER:mailto:${escapeText(options.organizer)}`);\n }\n const transp = mapTransparency(options.availability);\n if (transp != null) {\n lines.push(`TRANSP:${transp}`);\n }\n if (options.recurrence != null) {\n lines.push(`RRULE:${toRRule(options.recurrence, isAllDay)}`);\n }\n if (options.attendees != null) {\n for (const guest of options.attendees) {\n if (guest.email.length === 0) {\n continue;\n }\n const cn = guest.name != null && guest.name.length > 0 ? `;CN=${formatParamValue(guest.name)}` : '';\n lines.push(`ATTENDEE${cn}:mailto:${escapeText(guest.email)}`);\n }\n }\n if (options.alerts != null) {\n for (const minutes of options.alerts) {\n lines.push(...buildAlarm(minutes));\n }\n }\n lines.push('END:VEVENT', 'END:VCALENDAR');\n return lines.map(foldLine).join(CRLF) + CRLF;\n}\n/**\n * Resolves the `.ics` download filename.\n * Uses `icsFileName` when set; otherwise derives a name from `title` (fallback `event.ics`).\n * Appends `.ics` when the chosen name has no such extension.\n */\nexport function resolveIcsFileName(options) {\n var _a;\n const custom = (_a = options.icsFileName) === null || _a === void 0 ? void 0 : _a.trim();\n if (custom != null && custom.length > 0) {\n return /\\.ics$/i.test(custom) ? custom : `${custom}.ics`;\n }\n return fileNameFromTitle(options.title);\n}\nfunction fileNameFromTitle(title) {\n const base = (title !== null && title !== void 0 ? title : 'event')\n .trim()\n .replace(/[^\\w\\s-]+/g, '')\n .replace(/\\s+/g, '-')\n .replace(/-+/g, '-')\n .replace(/^-|-$/g, '')\n .slice(0, 64);\n return `${base.length > 0 ? base : 'event'}.ics`;\n}\n/**\n * Resolves event end milliseconds the same way ICS export does.\n * Prefers `endDate`, else `duration` (RFC 2445), else one hour (or next day if all-day).\n * All-day ends that fall on the start's local day bump to the next day (exclusive `DTEND`).\n */\nexport function resolveEndDate(startDate, endDate, duration, isAllDay) {\n let resolved;\n if (endDate != null) {\n resolved = endDate;\n }\n else if (duration != null && duration.trim().length > 0) {\n resolved = startDate + parseRfc2445DurationMs(duration.trim());\n }\n else {\n resolved = isAllDay ? startDate + DAY_MS : startDate + HOUR_MS;\n }\n if (!isAllDay) {\n return resolved;\n }\n // ICS all-day DTEND is exclusive; same local date as DTSTART is zero-length.\n // Also covers short durations (e.g. PT1H) on all-day events — treat as one whole day.\n if (formatDateOnlyLocal(resolved) <= formatDateOnlyLocal(startDate)) {\n return startDate + DAY_MS;\n }\n return resolved;\n}\n/**\n * Parses an RFC 2445 / RFC 5545 duration string into milliseconds.\n * Supports forms such as `PT1H`, `P1D`, `P3W`, `P2DT4H30M`.\n *\n * @throws If the string is empty, negative, zero-length, or not a valid duration.\n */\nfunction parseRfc2445DurationMs(value) {\n var _a, _b, _c, _d, _e;\n const match = /^([+-])?P(?:(\\d+)W)?(?:(\\d+)D)?(?:T(?:(\\d+)H)?(?:(\\d+)M)?(?:(\\d+)S)?)?$/i.exec(value);\n if (match == null) {\n throw new Error(`Invalid duration: ${value}`);\n }\n const sign = match[1] === '-' ? -1 : 1;\n const weeks = Number((_a = match[2]) !== null && _a !== void 0 ? _a : 0);\n const days = Number((_b = match[3]) !== null && _b !== void 0 ? _b : 0);\n const hours = Number((_c = match[4]) !== null && _c !== void 0 ? _c : 0);\n const minutes = Number((_d = match[5]) !== null && _d !== void 0 ? _d : 0);\n const seconds = Number((_e = match[6]) !== null && _e !== void 0 ? _e : 0);\n // Require at least one unit so bare \"P\" / \"PT\" are rejected.\n if (weeks === 0 && days === 0 && hours === 0 && minutes === 0 && seconds === 0) {\n throw new Error(`Invalid duration: ${value}`);\n }\n const ms = weeks * 7 * DAY_MS + days * DAY_MS + hours * HOUR_MS + minutes * 60 * 1000 + seconds * 1000;\n const signed = sign * ms;\n if (signed <= 0) {\n throw new Error(`Invalid duration: ${value}`);\n }\n return signed;\n}\nfunction mapTransparency(availability) {\n if (availability == null) {\n return null;\n }\n if (availability === EventAvailability.FREE) {\n return 'TRANSPARENT';\n }\n if (availability === EventAvailability.BUSY) {\n return 'OPAQUE';\n }\n return 'OPAQUE';\n}\nfunction toRRule(rule, isAllDay) {\n var _a;\n const parts = [`FREQ=${rule.frequency.toUpperCase()}`, `INTERVAL=${Math.max(1, (_a = rule.interval) !== null && _a !== void 0 ? _a : 1)}`];\n if (rule.count != null) {\n parts.push(`COUNT=${rule.count}`);\n }\n else if (rule.end != null) {\n // RFC 5545: UNTIL must match DTSTART value type (DATE vs DATE-TIME).\n parts.push(`UNTIL=${isAllDay ? formatDateOnlyLocal(rule.end) : formatDateTimeUtc(rule.end)}`);\n }\n if (rule.byWeekDay != null && rule.byWeekDay.length > 0) {\n const mapped = rule.byWeekDay.map(mapWeekday).filter((d) => d != null);\n if (mapped.length > 0) {\n parts.push(`BYDAY=${[...new Set(mapped)].join(',')}`);\n }\n }\n if (rule.byMonthDay != null && rule.byMonthDay.length > 0) {\n parts.push(`BYMONTHDAY=${rule.byMonthDay.join(',')}`);\n }\n if (rule.byMonth != null && rule.byMonth.length > 0) {\n parts.push(`BYMONTH=${rule.byMonth.join(',')}`);\n }\n if (rule.weeksOfTheYear != null && rule.weeksOfTheYear.length > 0) {\n parts.push(`BYWEEKNO=${rule.weeksOfTheYear.join(',')}`);\n }\n if (rule.daysOfTheYear != null && rule.daysOfTheYear.length > 0) {\n parts.push(`BYYEARDAY=${rule.daysOfTheYear.join(',')}`);\n }\n return parts.join(';');\n}\nfunction mapWeekday(day) {\n switch (day) {\n case 1:\n return 'MO';\n case 2:\n return 'TU';\n case 3:\n return 'WE';\n case 4:\n return 'TH';\n case 5:\n return 'FR';\n case 6:\n return 'SA';\n case 7:\n return 'SU';\n default:\n return null;\n }\n}\nfunction buildAlarm(minutes) {\n const trigger = minutes < 0 ? `-PT${Math.abs(minutes)}M` : `PT${minutes}M`;\n return ['BEGIN:VALARM', 'ACTION:DISPLAY', 'DESCRIPTION:Reminder', `TRIGGER:${trigger}`, 'END:VALARM'];\n}\nfunction generateUid() {\n if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {\n return `${crypto.randomUUID()}@capacitor-calendar`;\n }\n return `${Date.now()}-${Math.random().toString(36).slice(2, 11)}@capacitor-calendar`;\n}\nfunction formatDateTimeUtc(ms) {\n const date = new Date(ms);\n const fullYear = date.getUTCFullYear();\n const month = padTwoDigits(date.getUTCMonth() + 1);\n const dayOfMonth = padTwoDigits(date.getUTCDate());\n const hours = padTwoDigits(date.getUTCHours());\n const minutes = padTwoDigits(date.getUTCMinutes());\n const seconds = padTwoDigits(date.getUTCSeconds());\n return `${fullYear}${month}${dayOfMonth}T${hours}${minutes}${seconds}Z`;\n}\nfunction formatDateOnlyLocal(ms) {\n const date = new Date(ms);\n return `${date.getFullYear()}${padTwoDigits(date.getMonth() + 1)}${padTwoDigits(date.getDate())}`;\n}\nfunction padTwoDigits(value) {\n return value < 10 ? `0${value}` : String(value);\n}\n/**\n * Escapes TEXT values per RFC 5545 §3.3.11.\n */\nexport function escapeText(value) {\n return value\n .replace(/\\\\/g, '\\\\\\\\')\n .replace(/;/g, '\\\\;')\n .replace(/,/g, '\\\\,')\n .replace(/\\r\\n|\\n|\\r/g, '\\\\n');\n}\n/**\n * Formats a property parameter value per RFC 5545 §3.2.\n * Values with COMMA, SEMICOLON, or COLON are quoted; DQUOTE and line breaks are sanitized.\n */\nfunction formatParamValue(value) {\n const sanitized = value.replace(/[\\r\\n]+/g, ' ').replace(/\"/g, \"'\");\n if (/[;:,]/.test(sanitized)) {\n return `\"${sanitized}\"`;\n }\n return sanitized;\n}\n/**\n * Folds a content line so each physical line is at most 75 octets (RFC 5545 §3.1).\n */\nexport function foldLine(line) {\n const max = 75;\n if (byteLength(line) <= max) {\n return line;\n }\n const chars = [...line];\n let result = '';\n let current = '';\n for (const ch of chars) {\n const next = current + ch;\n if (byteLength(next) > max) {\n result += result.length === 0 ? current : `${CRLF} ${current}`;\n current = ch;\n // Continuations are limited to 74 octets of content + leading space = 75\n while (byteLength(current) > max - 1) {\n // Extremely rare for a single code point; split by taking first unit as-is\n result += `${CRLF} ${current}`;\n current = '';\n break;\n }\n }\n else {\n current = next;\n }\n }\n if (current.length > 0) {\n result += result.length === 0 ? current : `${CRLF} ${current}`;\n }\n return result;\n}\nfunction byteLength(s) {\n return new TextEncoder().encode(s).length;\n}\n//# sourceMappingURL=ics.js.map","import { WebPlugin } from '@capacitor/core';\nimport { downloadIcsFile } from './web/download-ics-file';\nimport { buildEventIcs, resolveEndDate, resolveIcsFileName } from './web/ics';\nconst DAY_MS = 24 * 60 * 60 * 1000;\nexport class CapacitorCalendarWeb extends WebPlugin {\n checkPermission(_options) {\n return this.throwUnimplemented(this.checkPermission.name);\n }\n checkAllPermissions() {\n return this.throwUnimplemented(this.checkAllPermissions.name);\n }\n requestPermission(_options) {\n return this.throwUnimplemented(this.requestPermission.name);\n }\n createRemindersList(_options) {\n return this.throwUnimplemented(this.createRemindersList.name);\n }\n deleteRemindersList(_options) {\n return this.throwUnimplemented(this.deleteRemindersList.name);\n }\n requestAllPermissions() {\n return this.throwUnimplemented(this.requestAllPermissions.name);\n }\n requestWriteOnlyCalendarAccess() {\n return this.throwUnimplemented(this.requestWriteOnlyCalendarAccess.name);\n }\n requestReadOnlyCalendarAccess() {\n return this.throwUnimplemented(this.requestReadOnlyCalendarAccess.name);\n }\n requestFullCalendarAccess() {\n return this.throwUnimplemented(this.requestFullCalendarAccess.name);\n }\n requestFullRemindersAccess() {\n return this.throwUnimplemented(this.requestFullRemindersAccess.name);\n }\n async createEventWithPrompt(options = {}) {\n try {\n const confirmed = window.confirm(buildCreateEventConfirmMessage(options));\n if (!confirmed) {\n return { id: null, ics: null };\n }\n const createOptions = mapPromptOptionsToCreateEvent(options);\n const content = buildEventIcs(createOptions);\n const ics = new File([content], resolveIcsFileName(createOptions), {\n type: 'text/calendar;charset=utf-8',\n });\n if (options.autoDownloadIcsFile !== false) {\n await downloadIcsFile(ics);\n }\n return { id: null, ics };\n }\n catch (error) {\n const message = error instanceof Error ? error.message : String(error);\n return Promise.reject(new Error(message));\n }\n }\n modifyEventWithPrompt(_options) {\n return this.throwUnimplemented(this.modifyEventWithPrompt.name);\n }\n async createEvent(options) {\n try {\n const content = buildEventIcs(options);\n const ics = new File([content], resolveIcsFileName(options), {\n type: 'text/calendar;charset=utf-8',\n });\n if (options.autoDownloadIcsFile === true) {\n await downloadIcsFile(ics);\n }\n return { id: null, ics };\n }\n catch (error) {\n const message = error instanceof Error ? error.message : String(error);\n return Promise.reject(new Error(message));\n }\n }\n commit() {\n return this.throwUnimplemented(this.commit.name);\n }\n modifyEvent(_options) {\n return this.throwUnimplemented(this.modifyEvent.name);\n }\n selectCalendarsWithPrompt(_options) {\n return this.throwUnimplemented(this.selectCalendarsWithPrompt.name);\n }\n fetchAllCalendarSources() {\n return this.throwUnimplemented(this.fetchAllCalendarSources.name);\n }\n listCalendars() {\n return this.throwUnimplemented(this.listCalendars.name);\n }\n fetchAllRemindersSources() {\n return this.throwUnimplemented(this.fetchAllRemindersSources.name);\n }\n getDefaultCalendar(_options) {\n return this.throwUnimplemented(this.getDefaultCalendar.name);\n }\n getDefaultRemindersList() {\n return this.throwUnimplemented(this.getDefaultRemindersList.name);\n }\n openReminders() {\n return this.throwUnimplemented(this.openReminders.name);\n }\n getRemindersLists() {\n return this.throwUnimplemented(this.getRemindersLists.name);\n }\n openCalendar(_options) {\n return this.throwUnimplemented(this.openCalendar.name);\n }\n createCalendar(_options) {\n return this.throwUnimplemented(this.createCalendar.name);\n }\n deleteCalendar(_options) {\n return this.throwUnimplemented(this.deleteCalendar.name);\n }\n createReminder(_options) {\n return this.throwUnimplemented(this.createReminder.name);\n }\n deleteRemindersById(_options) {\n return this.throwUnimplemented(this.deleteRemindersById.name);\n }\n deleteReminder(_options) {\n return this.throwUnimplemented(this.deleteReminder.name);\n }\n modifyReminder(_options) {\n return this.throwUnimplemented(this.modifyReminder.name);\n }\n getReminderById(_options) {\n return this.throwUnimplemented(this.getReminderById.name);\n }\n getRemindersFromLists(_options) {\n return this.throwUnimplemented(this.getRemindersFromLists.name);\n }\n deleteEventsById(_options) {\n return this.throwUnimplemented(this.deleteEventsById.name);\n }\n deleteEvent(_options) {\n return this.throwUnimplemented(this.deleteEvent.name);\n }\n deleteEventWithPrompt(_options) {\n return this.throwUnimplemented(this.deleteEventWithPrompt.name);\n }\n listEventsInRange(_options) {\n return this.throwUnimplemented(this.listEventsInRange.name);\n }\n modifyCalendar(_options) {\n return this.throwUnimplemented(this.modifyCalendar.name);\n }\n deleteReminderWithPrompt(_options) {\n return this.throwUnimplemented(this.deleteReminderWithPrompt.name);\n }\n updateRemindersList(_options) {\n return this.throwUnimplemented(this.updateRemindersList.name);\n }\n throwUnimplemented(methodName) {\n return Promise.reject(this.unimplemented(`${methodName} is not implemented on the web.`));\n }\n}\nfunction mapPromptOptionsToCreateEvent(options) {\n var _a;\n return {\n alerts: options.alerts,\n availability: options.availability,\n description: options.description,\n endDate: options.endDate,\n icsFileName: options.icsFileName,\n isAllDay: options.isAllDay,\n location: options.location,\n recurrence: options.recurrence,\n startDate: options.startDate,\n title: (_a = options.title) !== null && _a !== void 0 ? _a : '',\n url: options.url,\n };\n}\nfunction buildCreateEventConfirmMessage(options) {\n var _a;\n const custom = (_a = options.promptMessage) === null || _a === void 0 ? void 0 : _a.trim();\n if (custom != null && custom.length > 0) {\n return custom;\n }\n const title = normalizeConfirmTitle(options.title);\n const timeSummary = formatEventTimeSummary(options);\n return `Create event?\\n\\n${title}\\n${timeSummary}`;\n}\nfunction normalizeConfirmTitle(title) {\n const collapsed = (title !== null && title !== void 0 ? title : '')\n .replace(/[\\r\\n]+/g, ' ')\n .replace(/\\s+/g, ' ')\n .trim();\n return collapsed.length > 0 ? collapsed : 'Untitled event';\n}\nfunction formatEventTimeSummary(options) {\n var _a;\n const startDate = (_a = options.startDate) !== null && _a !== void 0 ? _a : Date.now();\n const isAllDay = options.isAllDay === true;\n const endDate = resolveEndDate(startDate, options.endDate, undefined, isAllDay);\n if (isAllDay) {\n const startDay = formatLocalDate(startDate);\n const lastInclusiveMs = endDate - DAY_MS;\n const lastDay = formatLocalDate(lastInclusiveMs);\n if (lastDay <= startDay) {\n return `All day · ${formatDisplayDate(startDate)}`;\n }\n return `All day · ${formatDisplayDate(startDate)} – ${formatDisplayDate(lastInclusiveMs)}`;\n }\n return `${formatDisplayDateTime(startDate)} – ${formatDisplayDateTime(endDate)}`;\n}\nfunction formatLocalDate(ms) {\n const date = new Date(ms);\n const fullYear = date.getFullYear();\n const month = String(date.getMonth() + 1).padStart(2, '0');\n const dayOfMonth = String(date.getDate()).padStart(2, '0');\n return `${fullYear}-${month}-${dayOfMonth}`;\n}\nfunction formatDisplayDate(ms) {\n return new Date(ms).toLocaleDateString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n });\n}\nfunction formatDisplayDateTime(ms) {\n return new Date(ms).toLocaleString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n });\n}\n//# sourceMappingURL=web.js.map"],"names":["AttendeeRole","AttendeeStatus","AttendeeType","CalendarChooserDisplayStyle","CalendarPermissionScope","CalendarSourceType","CalendarType","CapacitorCalendarErrorCode","EventAvailability","EventSpan","EventStatus","ReminderRecurrenceFrequency","registerPlugin","DAY_MS","WebPlugin"],"mappings":";;;;AAAA;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S,EAAE;AAClD,QAAQ,IAAI,EAAE,SAAS;AACvB,QAAQ,KAAK,EAAE,OAAO;AACtB,QAAQ,GAAG,EAAE,SAAS;AACtB,QAAQ,IAAI,EAAE,SAAS;AACvB,QAAQ,MAAM,EAAE,SAAS;AACzB,KAAK,CAAC;AACN;;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -300,6 +300,52 @@ var capacitorCapacitorCalendar = (function (exports, core) {
|
|
|
300
300
|
CalendarType[CalendarType["BIRTHDAY"] = 4] = "BIRTHDAY";
|
|
301
301
|
})(exports.CalendarType || (exports.CalendarType = {}));
|
|
302
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Stable reject codes for CapacitorCalendar. Compare with `error.code`.
|
|
305
|
+
*
|
|
306
|
+
* @since 8.9.0
|
|
307
|
+
*/
|
|
308
|
+
exports.CapacitorCalendarErrorCode = void 0;
|
|
309
|
+
(function (CapacitorCalendarErrorCode) {
|
|
310
|
+
/**
|
|
311
|
+
* Missing or invalid method arguments.
|
|
312
|
+
*
|
|
313
|
+
* @since 8.10.0
|
|
314
|
+
*/
|
|
315
|
+
CapacitorCalendarErrorCode["InvalidArgument"] = "EB-CLDR-0001";
|
|
316
|
+
/**
|
|
317
|
+
* Requested calendar, event, list, reminder, or calendar source was not found.
|
|
318
|
+
*
|
|
319
|
+
* @since 8.10.0
|
|
320
|
+
*/
|
|
321
|
+
CapacitorCalendarErrorCode["NotFound"] = "EB-CLDR-0002";
|
|
322
|
+
/**
|
|
323
|
+
* A calendar store read or write failed.
|
|
324
|
+
*
|
|
325
|
+
* @since 8.10.0
|
|
326
|
+
*/
|
|
327
|
+
CapacitorCalendarErrorCode["IoError"] = "EB-CLDR-0004";
|
|
328
|
+
/**
|
|
329
|
+
* The device cannot open the calendar UI, reminders UI, or target URL.
|
|
330
|
+
*
|
|
331
|
+
* @since 8.10.0
|
|
332
|
+
*/
|
|
333
|
+
CapacitorCalendarErrorCode["NotSupported"] = "EB-CLDR-0005";
|
|
334
|
+
/**
|
|
335
|
+
* Calendar access was denied.
|
|
336
|
+
* On Android, calendar operations that fail with a permission error reject with this code. Permission check and request APIs still resolve `"denied"` on Android and iOS.
|
|
337
|
+
*
|
|
338
|
+
* @since 8.10.0
|
|
339
|
+
*/
|
|
340
|
+
CapacitorCalendarErrorCode["PermissionDenied"] = "EB-CLDR-0020";
|
|
341
|
+
/**
|
|
342
|
+
* Missing Info.plist usage description or AndroidManifest permission declaration.
|
|
343
|
+
*
|
|
344
|
+
* @since 8.9.0
|
|
345
|
+
*/
|
|
346
|
+
CapacitorCalendarErrorCode["MissingDeclaration"] = "EB-CLDR-0100";
|
|
347
|
+
})(exports.CapacitorCalendarErrorCode || (exports.CapacitorCalendarErrorCode = {}));
|
|
348
|
+
|
|
303
349
|
/**
|
|
304
350
|
* @since 7.1.0
|
|
305
351
|
*/
|