@ebarooni/capacitor-calendar 8.7.1 → 8.8.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 (76) hide show
  1. package/README.md +191 -137
  2. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/CreateEventWithPromptResult.kt +1 -0
  3. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/GetDefaultCalendarResult.kt +1 -0
  4. package/android/src/main/java/dev/barooni/capacitor/calendar/models/results/ListCalendarsResult.kt +1 -0
  5. package/dist/docs.json +463 -81
  6. package/dist/esm/index.d.ts +5 -1
  7. package/dist/esm/index.js.map +1 -1
  8. package/dist/esm/schemas/enums/calendar-permission-scope.d.ts +1 -1
  9. package/dist/esm/schemas/enums/calendar-permission-scope.js +1 -1
  10. package/dist/esm/schemas/enums/calendar-permission-scope.js.map +1 -1
  11. package/dist/esm/schemas/interfaces/calendar.d.ts +10 -2
  12. package/dist/esm/schemas/interfaces/calendar.js.map +1 -1
  13. package/dist/esm/schemas/interfaces/create-calendar-options.d.ts +6 -4
  14. package/dist/esm/schemas/interfaces/create-calendar-options.js.map +1 -1
  15. package/dist/esm/schemas/interfaces/create-event-options.d.ts +10 -1
  16. package/dist/esm/schemas/interfaces/create-event-options.js.map +1 -1
  17. package/dist/esm/schemas/interfaces/create-event-result.d.ts +0 -2
  18. package/dist/esm/schemas/interfaces/create-event-result.js.map +1 -1
  19. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.d.ts +36 -10
  20. package/dist/esm/schemas/interfaces/create-event-with-prompt-options.js.map +1 -1
  21. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.d.ts +10 -1
  22. package/dist/esm/schemas/interfaces/create-event-with-prompt-result.js.map +1 -1
  23. package/dist/esm/schemas/interfaces/create-reminder-options.d.ts +2 -0
  24. package/dist/esm/schemas/interfaces/create-reminder-options.js.map +1 -1
  25. package/dist/esm/schemas/interfaces/create-reminders-list-options.d.ts +12 -7
  26. package/dist/esm/schemas/interfaces/create-reminders-list-options.js.map +1 -1
  27. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.d.ts +12 -0
  28. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js +2 -0
  29. package/dist/esm/schemas/interfaces/delete-reminder-with-prompt-result.js.map +1 -0
  30. package/dist/esm/schemas/interfaces/event-recurrence-rule.d.ts +9 -9
  31. package/dist/esm/schemas/interfaces/event-recurrence-rule.js.map +1 -1
  32. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.d.ts +13 -0
  33. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js +2 -0
  34. package/dist/esm/schemas/interfaces/get-default-reminders-list-result.js.map +1 -0
  35. package/dist/esm/schemas/interfaces/get-reminders-lists-result.d.ts +13 -0
  36. package/dist/esm/schemas/interfaces/get-reminders-lists-result.js +2 -0
  37. package/dist/esm/schemas/interfaces/get-reminders-lists-result.js.map +1 -0
  38. package/dist/esm/schemas/interfaces/modify-calendar-options.d.ts +6 -2
  39. package/dist/esm/schemas/interfaces/modify-calendar-options.js.map +1 -1
  40. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.d.ts +77 -2
  41. package/dist/esm/schemas/interfaces/modify-event-with-prompt-options.js.map +1 -1
  42. package/dist/esm/schemas/interfaces/modify-reminder-options.d.ts +3 -0
  43. package/dist/esm/schemas/interfaces/modify-reminder-options.js.map +1 -1
  44. package/dist/esm/schemas/interfaces/reminder.d.ts +2 -0
  45. package/dist/esm/schemas/interfaces/reminder.js.map +1 -1
  46. package/dist/esm/schemas/interfaces/reminders-list.d.ts +6 -0
  47. package/dist/esm/schemas/interfaces/reminders-list.js.map +1 -1
  48. package/dist/esm/schemas/interfaces/update-reminders-list-options.d.ts +8 -5
  49. package/dist/esm/schemas/interfaces/update-reminders-list-options.js.map +1 -1
  50. package/dist/esm/schemas/types/system-color-name.d.ts +6 -0
  51. package/dist/esm/schemas/types/system-color-name.js +2 -0
  52. package/dist/esm/schemas/types/system-color-name.js.map +1 -0
  53. package/dist/esm/sub-definitions/event-operations.d.ts +7 -10
  54. package/dist/esm/sub-definitions/event-operations.js.map +1 -1
  55. package/dist/esm/sub-definitions/reminders-access.d.ts +1 -1
  56. package/dist/esm/sub-definitions/reminders-access.js.map +1 -1
  57. package/dist/esm/sub-definitions/reminders-operations.d.ts +41 -16
  58. package/dist/esm/sub-definitions/reminders-operations.js.map +1 -1
  59. package/dist/esm/web/ics.d.ts +8 -2
  60. package/dist/esm/web/ics.js +64 -22
  61. package/dist/esm/web/ics.js.map +1 -1
  62. package/dist/esm/web.d.ts +8 -15
  63. package/dist/esm/web.js +100 -5
  64. package/dist/esm/web.js.map +1 -1
  65. package/dist/plugin.cjs.js +165 -29
  66. package/dist/plugin.cjs.js.map +1 -1
  67. package/dist/plugin.js +165 -29
  68. package/dist/plugin.js.map +1 -1
  69. package/ios/Plugin/Models/Inputs/CreateCalendarInput.swift +5 -2
  70. package/ios/Plugin/Models/Inputs/CreateRemindersListInput.swift +4 -18
  71. package/ios/Plugin/Models/Inputs/ModifyCalendarInput.swift +2 -2
  72. package/ios/Plugin/Models/Inputs/UpdateRemindersListInput.swift +4 -18
  73. package/ios/Plugin/Models/Results/CreateEventWithPromptResult.swift +1 -0
  74. package/ios/Plugin/Utils/ImplementationHelper.swift +44 -0
  75. package/ios/Plugin/Utils/UIColorFromHexExtension.swift +5 -0
  76. package/package.json +1 -1
@@ -30,16 +30,19 @@ import type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-e
30
30
  import type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';
31
31
  import type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';
32
32
  import type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';
33
+ import type { DeleteReminderWithPromptResult } from './schemas/interfaces/delete-reminder-with-prompt-result';
33
34
  import type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';
34
35
  import type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';
35
36
  import type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';
36
37
  import type { EventGuest } from './schemas/interfaces/event-guest';
37
38
  import type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';
38
39
  import type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';
40
+ import type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';
39
41
  import type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';
40
42
  import type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';
41
43
  import type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';
42
44
  import type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';
45
+ import type { GetRemindersListsResult } from './schemas/interfaces/get-reminders-lists-result';
43
46
  import type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';
44
47
  import type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';
45
48
  import type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';
@@ -59,10 +62,11 @@ import type { UpdateRemindersListOptions } from './schemas/interfaces/update-rem
59
62
  import type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';
60
63
  import type { EventEditAction } from './schemas/types/event-edit-action';
61
64
  import type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';
65
+ import type { SystemColorName } from './schemas/types/system-color-name';
62
66
  import type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';
63
67
  import type { DeleteEventsByIdResult } from './sub-definitions/event-operations';
64
68
  import { downloadIcsFile } from './web/download-ics-file';
65
69
  declare const CapacitorCalendar: CapacitorCalendarPlugin;
66
70
  export * from './definitions';
67
- export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateReminderResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, UpdateRemindersListOptions, UpdateRemindersListResult, };
71
+ export type { Calendar, CalendarEvent, CalendarSource, CheckAllPermissionsResult, CheckPermissionOptions, CreateCalendarOptions, CreateCalendarResult, CreateEventOptions, CreateEventResult, CreateEventWithPromptOptions, CreateEventWithPromptResult, CreateReminderOptions, CreateReminderResult, CreateRemindersListOptions, CreateRemindersListResult, DeleteCalendarOptions, DeleteEventOptions, DeleteEventWithPromptOptions, DeleteEventsByIdOptions, DeleteEventsByIdResult, DeleteReminderOptions, DeleteReminderWithPromptOptions, DeleteReminderWithPromptResult, DeleteRemindersByIdOptions, DeleteRemindersByIdResult, DeleteRemindersListOptions, EventEditAction, EventGuest, FetchAllCalendarSourcesResult, GetDefaultCalendarOptions, GetDefaultRemindersListResult, GetReminderByIdOptions, GetReminderByIdResult, GetRemindersFromListsOptions, GetRemindersFromListsResult, GetRemindersListsResult, ListCalendarsResult, ListEventsInRangeOptions, ListEventsInRangeResult, ModifyCalendarOptions, ModifyEventOptions, ModifyEventWithPromptOptions, ModifyReminderOptions, OpenCalendarOptions, RecurrenceRule, Reminder, ReminderRecurrenceRule, RemindersList, RequestAllPermissionsResult, RequestPermissionOptions, SelectCalendarsWithPromptOptions, SelectCalendarsWithPromptResult, SystemColorName, UpdateRemindersListOptions, UpdateRemindersListResult, };
68
72
  export { CalendarPermissionScope, EventAvailability, EventSpan, CalendarChooserDisplayStyle, CalendarType, CalendarSourceType, ReminderRecurrenceFrequency, RecurrenceFrequency, EventStatus, AttendeeRole, AttendeeType, AttendeeStatus, CapacitorCalendar, downloadIcsFile, };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAoD5F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAsD9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\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 type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from './schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';\nimport type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';\nimport type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport { downloadIcsFile } from './web/download-ics-file';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n Calendar,\n CalendarEvent,\n CalendarSource,\n CheckAllPermissionsResult,\n CheckPermissionOptions,\n CreateCalendarOptions,\n CreateCalendarResult,\n CreateEventOptions,\n CreateEventResult,\n CreateEventWithPromptOptions,\n CreateEventWithPromptResult,\n CreateReminderOptions,\n CreateReminderResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetReminderByIdOptions,\n GetReminderByIdResult,\n GetRemindersFromListsOptions,\n GetRemindersFromListsResult,\n ListCalendarsResult,\n ListEventsInRangeOptions,\n ListEventsInRangeResult,\n ModifyCalendarOptions,\n ModifyEventOptions,\n ModifyEventWithPromptOptions,\n ModifyReminderOptions,\n OpenCalendarOptions,\n RecurrenceRule,\n Reminder,\n ReminderRecurrenceRule,\n RemindersList,\n RequestAllPermissionsResult,\n RequestPermissionOptions,\n SelectCalendarsWithPromptOptions,\n SelectCalendarsWithPromptResult,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n downloadIcsFile,\n};\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAwD5F,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,iBAAiB,GAAG,cAAc,CAA0B,mBAAmB,EAAE;IACrF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AA0D9B,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,2BAA2B,EAC3B,YAAY,EACZ,kBAAkB,EAClB,2BAA2B,EAE3B,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,GAChB,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorCalendarPlugin } from './definitions';\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 type { Calendar } from './schemas/interfaces/calendar';\nimport type { CalendarEvent } from './schemas/interfaces/calendar-event';\nimport type { CalendarSource } from './schemas/interfaces/calendar-source';\nimport type { CheckPermissionOptions } from './schemas/interfaces/check-permission-options';\nimport type { CreateCalendarOptions } from './schemas/interfaces/create-calendar-options';\nimport type { CreateCalendarResult } from './schemas/interfaces/create-calendar-result';\nimport type { CreateEventOptions } from './schemas/interfaces/create-event-options';\nimport type { CreateEventResult } from './schemas/interfaces/create-event-result';\nimport type { CreateEventWithPromptOptions } from './schemas/interfaces/create-event-with-prompt-options';\nimport type { CreateEventWithPromptResult } from './schemas/interfaces/create-event-with-prompt-result';\nimport type { CreateReminderOptions } from './schemas/interfaces/create-reminder-options';\nimport type { CreateReminderResult } from './schemas/interfaces/create-reminder-result';\nimport type { CreateRemindersListOptions } from './schemas/interfaces/create-reminders-list-options';\nimport type { CreateRemindersListResult } from './schemas/interfaces/create-reminders-list-result';\nimport type { DeleteCalendarOptions } from './schemas/interfaces/delete-calendar-options';\nimport type { DeleteEventOptions } from './schemas/interfaces/delete-event-options';\nimport type { DeleteEventWithPromptOptions } from './schemas/interfaces/delete-event-with-prompt-options';\nimport type { DeleteEventsByIdOptions } from './schemas/interfaces/delete-events-by-id-options';\nimport type { DeleteReminderOptions } from './schemas/interfaces/delete-reminder-options';\nimport type { DeleteReminderWithPromptOptions } from './schemas/interfaces/delete-reminder-with-prompt-options';\nimport type { DeleteReminderWithPromptResult } from './schemas/interfaces/delete-reminder-with-prompt-result';\nimport type { DeleteRemindersByIdOptions } from './schemas/interfaces/delete-reminders-by-id-options';\nimport type { DeleteRemindersByIdResult } from './schemas/interfaces/delete-reminders-by-id-result';\nimport type { DeleteRemindersListOptions } from './schemas/interfaces/delete-reminders-list-options';\nimport type { EventGuest } from './schemas/interfaces/event-guest';\nimport type { FetchAllCalendarSourcesResult } from './schemas/interfaces/fetch-all-calendar-sources-result';\nimport type { GetDefaultCalendarOptions } from './schemas/interfaces/get-default-calendar-options';\nimport type { GetDefaultRemindersListResult } from './schemas/interfaces/get-default-reminders-list-result';\nimport type { GetReminderByIdOptions } from './schemas/interfaces/get-reminder-by-id-options';\nimport type { GetReminderByIdResult } from './schemas/interfaces/get-reminder-by-id-result';\nimport type { GetRemindersFromListsOptions } from './schemas/interfaces/get-reminders-from-lists-options';\nimport type { GetRemindersFromListsResult } from './schemas/interfaces/get-reminders-from-lists-result';\nimport type { GetRemindersListsResult } from './schemas/interfaces/get-reminders-lists-result';\nimport type { ListCalendarsResult } from './schemas/interfaces/list-calendars-result';\nimport type { ListEventsInRangeOptions } from './schemas/interfaces/list-events-in-range-options';\nimport type { ListEventsInRangeResult } from './schemas/interfaces/list-events-in-range-result';\nimport type { ModifyCalendarOptions } from './schemas/interfaces/modify-calendar-options';\nimport type { ModifyEventOptions } from './schemas/interfaces/modify-event-options';\nimport type { ModifyEventWithPromptOptions } from './schemas/interfaces/modify-event-with-prompt-options';\nimport type { ModifyReminderOptions } from './schemas/interfaces/modify-reminder-options';\nimport type { OpenCalendarOptions } from './schemas/interfaces/open-calendar-options';\nimport type { RecurrenceRule } from './schemas/interfaces/recurrence-rule';\nimport type { Reminder } from './schemas/interfaces/reminder';\nimport type { ReminderRecurrenceRule } from './schemas/interfaces/reminder-recurrence-rule';\nimport type { RemindersList } from './schemas/interfaces/reminders-list';\nimport type { RequestPermissionOptions } from './schemas/interfaces/request-permission-options';\nimport type { SelectCalendarsWithPromptOptions } from './schemas/interfaces/select-calendars-with-prompt-options';\nimport type { SelectCalendarsWithPromptResult } from './schemas/interfaces/select-calendars-with-prompt-result';\nimport type { UpdateRemindersListOptions } from './schemas/interfaces/update-reminders-list-options';\nimport type { UpdateRemindersListResult } from './schemas/interfaces/update-reminders-list-result';\nimport type { EventEditAction } from './schemas/types/event-edit-action';\nimport type { RecurrenceFrequency } from './schemas/types/recurrence-frequency';\nimport type { SystemColorName } from './schemas/types/system-color-name';\nimport type { CheckAllPermissionsResult, RequestAllPermissionsResult } from './sub-definitions/calendar-access';\nimport type { DeleteEventsByIdResult } from './sub-definitions/event-operations';\nimport { downloadIcsFile } from './web/download-ics-file';\n\nconst CapacitorCalendar = registerPlugin<CapacitorCalendarPlugin>('CapacitorCalendar', {\n web: () => import('./web').then((m) => new m.CapacitorCalendarWeb()),\n});\n\nexport * from './definitions';\nexport type {\n Calendar,\n CalendarEvent,\n CalendarSource,\n CheckAllPermissionsResult,\n CheckPermissionOptions,\n CreateCalendarOptions,\n CreateCalendarResult,\n CreateEventOptions,\n CreateEventResult,\n CreateEventWithPromptOptions,\n CreateEventWithPromptResult,\n CreateReminderOptions,\n CreateReminderResult,\n CreateRemindersListOptions,\n CreateRemindersListResult,\n DeleteCalendarOptions,\n DeleteEventOptions,\n DeleteEventWithPromptOptions,\n DeleteEventsByIdOptions,\n DeleteEventsByIdResult,\n DeleteReminderOptions,\n DeleteReminderWithPromptOptions,\n DeleteReminderWithPromptResult,\n DeleteRemindersByIdOptions,\n DeleteRemindersByIdResult,\n DeleteRemindersListOptions,\n EventEditAction,\n EventGuest,\n FetchAllCalendarSourcesResult,\n GetDefaultCalendarOptions,\n GetDefaultRemindersListResult,\n GetReminderByIdOptions,\n GetReminderByIdResult,\n GetRemindersFromListsOptions,\n GetRemindersFromListsResult,\n GetRemindersListsResult,\n ListCalendarsResult,\n ListEventsInRangeOptions,\n ListEventsInRangeResult,\n ModifyCalendarOptions,\n ModifyEventOptions,\n ModifyEventWithPromptOptions,\n ModifyReminderOptions,\n OpenCalendarOptions,\n RecurrenceRule,\n Reminder,\n ReminderRecurrenceRule,\n RemindersList,\n RequestAllPermissionsResult,\n RequestPermissionOptions,\n SelectCalendarsWithPromptOptions,\n SelectCalendarsWithPromptResult,\n SystemColorName,\n UpdateRemindersListOptions,\n UpdateRemindersListResult,\n};\nexport {\n CalendarPermissionScope,\n EventAvailability,\n EventSpan,\n CalendarChooserDisplayStyle,\n CalendarType,\n CalendarSourceType,\n ReminderRecurrenceFrequency,\n RecurrenceFrequency,\n EventStatus,\n AttendeeRole,\n AttendeeType,\n AttendeeStatus,\n CapacitorCalendar,\n downloadIcsFile,\n};\n"]}
@@ -29,7 +29,7 @@ export declare enum CalendarPermissionScope {
29
29
  * | Platform | Required |
30
30
  * |-----------|---------------------|
31
31
  * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |
32
- * | iOS 10-16 | `NSRemindersUsageDescription` |
32
+ * | iOS 13-16 | `NSRemindersUsageDescription` |
33
33
  * @platform iOS
34
34
  * @since 7.1.0
35
35
  */
@@ -30,7 +30,7 @@ export var CalendarPermissionScope;
30
30
  * | Platform | Required |
31
31
  * |-----------|---------------------|
32
32
  * | iOS 17+ | `NSRemindersFullAccessUsageDescription` |
33
- * | iOS 10-16 | `NSRemindersUsageDescription` |
33
+ * | iOS 13-16 | `NSRemindersUsageDescription` |
34
34
  * @platform iOS
35
35
  * @since 7.1.0
36
36
  */
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-permission-scope.js","sourceRoot":"","sources":["../../../../src/schemas/enums/calendar-permission-scope.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBA8DX;AA9DD,WAAY,uBAAuB;IACjC;;;;;;;;;;;;OAYG;IACH,yDAA8B,CAAA;IAC9B;;;;;;;;;;;;;;OAcG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;OAYG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;;;;OAeG;IACH,6DAAkC,CAAA;AACpC,CAAC,EA9DW,uBAAuB,KAAvB,uBAAuB,QA8DlC","sourcesContent":["/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport enum 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 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 10-16 | `NSRemindersUsageDescription` |\n * @platform iOS\n * @since 7.1.0\n */\n 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 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 WRITE_REMINDERS = 'writeReminders',\n}\n"]}
1
+ {"version":3,"file":"calendar-permission-scope.js","sourceRoot":"","sources":["../../../../src/schemas/enums/calendar-permission-scope.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBA8DX;AA9DD,WAAY,uBAAuB;IACjC;;;;;;;;;;;;OAYG;IACH,yDAA8B,CAAA;IAC9B;;;;;;;;;;;;;;OAcG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;OAYG;IACH,2DAAgC,CAAA;IAChC;;;;;;;;;;;;;;;OAeG;IACH,6DAAkC,CAAA;AACpC,CAAC,EA9DW,uBAAuB,KAAvB,uBAAuB,QA8DlC","sourcesContent":["/**\n * Enum defining available calendar and reminders related permissions.\n *\n * @since 7.1.0\n */\nexport enum 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 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 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 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 WRITE_REMINDERS = 'writeReminders',\n}\n"]}
@@ -1,4 +1,5 @@
1
1
  import type { CalendarType } from '../enums/calendar-type';
2
+ import type { SystemColorName } from '../types/system-color-name';
2
3
  import type { CalendarSource } from './calendar-source';
3
4
  /**
4
5
  * @since 7.1.0
@@ -25,10 +26,9 @@ export interface Calendar {
25
26
  */
26
27
  internalTitle: string | null;
27
28
  /**
28
- * Calendar color as a hex string.
29
+ * Hex color string, or null when none is available.
29
30
  *
30
31
  * Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.
31
- * May be `null` when the platform does not provide a color.
32
32
  *
33
33
  * @platform Android, iOS
34
34
  * @example #0000FF
@@ -36,6 +36,14 @@ export interface Calendar {
36
36
  * @since 7.1.0
37
37
  */
38
38
  color: string | null;
39
+ /**
40
+ * Named color if the stored color matches one of the system colors;
41
+ * otherwise null. May be null in dark mode or for custom hex. Always null on Android.
42
+ *
43
+ * @platform Android, iOS
44
+ * @since 8.8.0
45
+ */
46
+ colorName?: SystemColorName | null;
39
47
  /**
40
48
  * @platform iOS
41
49
  * @since 7.1.0
@@ -1 +1 @@
1
- {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarType } from '../enums/calendar-type';\n\nimport type { CalendarSource } from './calendar-source';\n\n/**\n * @since 7.1.0\n */\nexport interface Calendar {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * Display title of the calendar.\n * May be `null` when the platform does not provide a title.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string | null;\n /**\n * Internal name of the calendar (`CalendarContract.Calendars.NAME`).\n *\n * @platform Android\n * @since 7.1.0\n */\n internalTitle: string | null;\n /**\n * Calendar color as a hex string.\n *\n * Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.\n * May be `null` when the platform does not provide a color.\n *\n * @platform Android, iOS\n * @example #0000FF\n * @example #0000FF80\n * @since 7.1.0\n */\n color: string | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isImmutable: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n allowsContentModifications: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarType | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isSubscribed: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n source: CalendarSource | null;\n /**\n * Indicates if the events from this calendar should be shown.\n *\n * @platform Android\n * @since 7.1.0\n */\n visible: boolean | null;\n /**\n * The account under which the calendar is registered.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName: string | null;\n /**\n * The owner of the calendar.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount: string | null;\n /**\n * Maximum number of reminders allowed per event.\n *\n * @platform Android\n * @since 7.1.0\n */\n maxReminders: number | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n location: string | null;\n}\n"]}
1
+ {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/calendar.ts"],"names":[],"mappings":"","sourcesContent":["import type { CalendarType } from '../enums/calendar-type';\nimport type { SystemColorName } from '../types/system-color-name';\n\nimport type { CalendarSource } from './calendar-source';\n\n/**\n * @since 7.1.0\n */\nexport interface Calendar {\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n id: string;\n /**\n * Display title of the calendar.\n * May be `null` when the platform does not provide a title.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n title: string | null;\n /**\n * Internal name of the calendar (`CalendarContract.Calendars.NAME`).\n *\n * @platform Android\n * @since 7.1.0\n */\n internalTitle: string | null;\n /**\n * Hex color string, or null when none is available.\n *\n * Format: `#RRGGBB` when opaque; `#RRGGBBAA` when alpha is below fully opaque.\n *\n * @platform Android, iOS\n * @example #0000FF\n * @example #0000FF80\n * @since 7.1.0\n */\n color: string | null;\n /**\n * Named color if the stored color matches one of the system colors;\n * otherwise null. May be null in dark mode or for custom hex. Always null on Android.\n *\n * @platform Android, iOS\n * @since 8.8.0\n */\n colorName?: SystemColorName | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isImmutable: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n allowsContentModifications: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n type: CalendarType | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n isSubscribed: boolean | null;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n source: CalendarSource | null;\n /**\n * Indicates if the events from this calendar should be shown.\n *\n * @platform Android\n * @since 7.1.0\n */\n visible: boolean | null;\n /**\n * The account under which the calendar is registered.\n *\n * @platform Android\n * @since 7.1.0\n */\n accountName: string | null;\n /**\n * The owner of the calendar.\n *\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount: string | null;\n /**\n * Maximum number of reminders allowed per event.\n *\n * @platform Android\n * @since 7.1.0\n */\n maxReminders: number | null;\n /**\n * @platform Android\n * @since 7.1.0\n */\n location: string | null;\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import type { SystemColorName } from '../types/system-color-name';
1
2
  /**
2
3
  * @since 5.2.0
3
4
  */
@@ -8,16 +9,17 @@ export interface CreateCalendarOptions {
8
9
  */
9
10
  title: string;
10
11
  /**
11
- * The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.
12
- *
13
- * When omitted, Android and iOS use `#007AFF` (light-mode iOS system blue).
12
+ * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.
13
+ * When omitted, Android and iOS use `#007AFF`.
14
+ * On Android, only hex is accepted; named colors reject with `Invalid color format.`
14
15
  *
15
16
  * @platform Android, iOS
17
+ * @example 'indigo'
16
18
  * @example #007AFF
17
19
  * @default #007AFF
18
20
  * @since 5.2.0
19
21
  */
20
- color?: string;
22
+ color?: SystemColorName | `#${string}`;
21
23
  /**
22
24
  * The EventKit source (account) where the calendar should be created.
23
25
  *
@@ -1 +1 @@
1
- {"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n * The color of the calendar as `#RRGGBB` or `#RRGGBBAA`.\n *\n * When omitted, Android and iOS use `#007AFF` (light-mode iOS system blue).\n *\n * @platform Android, iOS\n * @example #007AFF\n * @default #007AFF\n * @since 5.2.0\n */\n color?: string;\n /**\n * The EventKit source (account) where the calendar should be created.\n *\n * If provided, it must match an existing source from `fetchAllCalendarSources()`.\n * If omitted, iCloud is used when available, otherwise the local source.\n *\n * @platform iOS\n * @since 5.2.0\n */\n sourceId?: string;\n /**\n * The account under which the calendar is registered.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n accountName?: string;\n /**\n * The owner of the calendar.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount?: string;\n}\n"]}
1
+ {"version":3,"file":"create-calendar-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-calendar-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { SystemColorName } from '../types/system-color-name';\n\n/**\n * @since 5.2.0\n */\nexport interface CreateCalendarOptions {\n /**\n * @platform Android, iOS\n * @since 5.2.0\n */\n title: string;\n /**\n * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.\n * When omitted, Android and iOS use `#007AFF`.\n * On Android, only hex is accepted; named colors reject with `Invalid color format.`\n *\n * @platform Android, iOS\n * @example 'indigo'\n * @example #007AFF\n * @default #007AFF\n * @since 5.2.0\n */\n color?: SystemColorName | `#${string}`;\n /**\n * The EventKit source (account) where the calendar should be created.\n *\n * If provided, it must match an existing source from `fetchAllCalendarSources()`.\n * If omitted, iCloud is used when available, otherwise the local source.\n *\n * @platform iOS\n * @since 5.2.0\n */\n sourceId?: string;\n /**\n * The account under which the calendar is registered.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n accountName?: string;\n /**\n * The owner of the calendar.\n * Required on Android. Typically an email address.\n *\n * @example plugin@example.com\n * @platform Android\n * @since 7.1.0\n */\n ownerAccount?: string;\n}\n"]}
@@ -26,6 +26,14 @@ export interface CreateEventOptions {
26
26
  * @since 7.1.0
27
27
  */
28
28
  attendees?: EventGuest[];
29
+ /**
30
+ * Start a browser download of the ICS file.
31
+ *
32
+ * @default false
33
+ * @platform Web
34
+ * @since 8.8.0
35
+ */
36
+ autoDownloadIcsFile?: boolean;
29
37
  /**
30
38
  * @platform Android, iOS, Web
31
39
  * @since 7.1.0
@@ -58,9 +66,10 @@ export interface CreateEventOptions {
58
66
  description?: string;
59
67
  /**
60
68
  * Duration of the event in RFC2445 format.
69
+ * On Web, used when `endDate` is omitted; `endDate` wins if both are set.
61
70
  *
62
71
  * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).
63
- * @platform Android
72
+ * @platform Android, Web
64
73
  * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}
65
74
  * @since 7.1.0
66
75
  */
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * The event guests.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * Duration of the event in RFC2445 format.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'team-standup.ics'\n * @platform Web\n * @since 8.5.0\n */\n icsFileName?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
1
+ {"version":3,"file":"create-event-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventGuest } from './event-guest';\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * The event guests.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n attendees?: EventGuest[];\n /**\n * Start a browser download of the ICS file.\n *\n * @default false\n * @platform Web\n * @since 8.8.0\n */\n autoDownloadIcsFile?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @example #6750A4\n * @platform Android\n * @since 7.1.0\n */\n color?: string;\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 7.1.0\n */\n commit?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * Duration of the event in RFC2445 format.\n * On Web, used when `endDate` is omitted; `endDate` wins if both are set.\n *\n * @example P1D (1 day), P3W (3 weeks), P2DT4H30M (2 days, 4 hours, and 30 minutes).\n * @platform Android, Web\n * @see {@link https://datatracker.ietf.org/doc/html/rfc2445}\n * @since 7.1.0\n */\n duration?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'team-standup.ics'\n * @platform Web\n * @since 8.5.0\n */\n icsFileName?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Email of the event organizer.\n *\n * @platform Android, Web\n * @since 7.1.0\n */\n organizer?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.4.0\n */\n title: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
@@ -5,8 +5,6 @@ export interface CreateEventResult {
5
5
  /**
6
6
  * An `.ics` file (`text/calendar`) with one `VEVENT`.
7
7
  * Always `null` on Android and iOS.
8
- * On Web, the plugin does not write to a calendar store or start a download;
9
- * use `downloadIcsFile(...)` or pass the `File` to another API.
10
8
  *
11
9
  * @platform Web
12
10
  * @since 8.5.0
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n * On Web, the plugin does not write to a calendar store or start a download;\n * use `downloadIcsFile(...)` or pass the `File` to another API.\n *\n * @platform Web\n * @since 8.5.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Web.\n * Present on Android and iOS after a successful create.\n *\n * @platform Android, iOS\n * @since 0.4.0\n */\n id: string | null;\n}\n"]}
1
+ {"version":3,"file":"create-event-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n *\n * @platform Web\n * @since 8.5.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Web.\n * Present on Android and iOS after a successful create.\n *\n * @platform Android, iOS\n * @since 0.4.0\n */\n id: string | null;\n}\n"]}
@@ -15,12 +15,20 @@ export interface CreateEventWithPromptOptions {
15
15
  * // 30 -> 30 minutes after
16
16
  * [-1440, -60, 30]
17
17
  *
18
- * @platform iOS
18
+ * @platform iOS, Web
19
19
  * @since 7.1.0
20
20
  */
21
21
  alerts?: number[];
22
22
  /**
23
- * @platform Android, iOS
23
+ * Start a browser download of the ICS file.
24
+ *
25
+ * @default true
26
+ * @platform Web
27
+ * @since 8.8.0
28
+ */
29
+ autoDownloadIcsFile?: boolean;
30
+ /**
31
+ * @platform Android, iOS, Web
24
32
  * @since 7.1.0
25
33
  */
26
34
  availability?: EventAvailability;
@@ -30,15 +38,25 @@ export interface CreateEventWithPromptOptions {
30
38
  */
31
39
  calendarId?: string;
32
40
  /**
33
- * @platform Android, iOS
41
+ * @platform Android, iOS, Web
34
42
  * @since 7.1.0
35
43
  */
36
44
  description?: string;
37
45
  /**
38
- * @platform Android, iOS
46
+ * @platform Android, iOS, Web
39
47
  * @since 0.1.0
40
48
  */
41
49
  endDate?: number;
50
+ /**
51
+ * Download filename for the `.ics` file.
52
+ * When omitted, a name is derived from `title` (fallback `event.ics`).
53
+ * If the value has no `.ics` extension, `.ics` is appended.
54
+ *
55
+ * @example 'planning-session.ics'
56
+ * @platform Web
57
+ * @since 8.8.0
58
+ */
59
+ icsFileName?: string;
42
60
  /**
43
61
  * An array of emails to invite.
44
62
  *
@@ -47,34 +65,42 @@ export interface CreateEventWithPromptOptions {
47
65
  */
48
66
  invitees?: string[];
49
67
  /**
50
- * @platform Android, iOS
68
+ * @platform Android, iOS, Web
51
69
  * @since 0.1.0
52
70
  */
53
71
  isAllDay?: boolean;
54
72
  /**
55
- * @platform Android, iOS
73
+ * @platform Android, iOS, Web
56
74
  * @since 0.1.0
57
75
  */
58
76
  location?: string;
77
+ /**
78
+ * Confirm dialog message.
79
+ * When omitted, the dialog uses the event title and time summary.
80
+ *
81
+ * @platform Web
82
+ * @since 8.8.0
83
+ */
84
+ promptMessage?: string;
59
85
  /**
60
86
  * Rules for creating a recurring event.
61
87
  *
62
- * @platform Android, iOS
88
+ * @platform Android, iOS, Web
63
89
  * @since 7.3.0
64
90
  */
65
91
  recurrence?: EventRecurrenceRule;
66
92
  /**
67
- * @platform Android, iOS
93
+ * @platform Android, iOS, Web
68
94
  * @since 0.1.0
69
95
  */
70
96
  startDate?: number;
71
97
  /**
72
- * @platform Android, iOS
98
+ * @platform Android, iOS, Web
73
99
  * @since 0.1.0
74
100
  */
75
101
  title?: string;
76
102
  /**
77
- * @platform iOS
103
+ * @platform iOS, Web
78
104
  * @since 0.1.0
79
105
  */
80
106
  url?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventWithPromptOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for reminders before the start, and positive numbers for reminders after the start.\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform iOS\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * An array of emails to invite.\n *\n * @platform Android\n * @since 7.1.0\n */\n invitees?: string[];\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n location?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS\n * @since 0.1.0\n */\n title?: string;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
1
+ {"version":3,"file":"create-event-with-prompt-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { EventAvailability } from '../enums/event-availability';\n\nimport type { EventRecurrenceRule } from './event-recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateEventWithPromptOptions {\n /**\n * Alert times in minutes relative to the event start.\n * Use negative numbers for reminders before the start, and positive numbers for reminders after the start.\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @platform iOS, Web\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Start a browser download of the ICS file.\n *\n * @default true\n * @platform Web\n * @since 8.8.0\n */\n autoDownloadIcsFile?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n availability?: EventAvailability;\n /**\n * @platform iOS\n * @since 0.1.0\n */\n calendarId?: string;\n /**\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n description?: string;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n endDate?: number;\n /**\n * Download filename for the `.ics` file.\n * When omitted, a name is derived from `title` (fallback `event.ics`).\n * If the value has no `.ics` extension, `.ics` is appended.\n *\n * @example 'planning-session.ics'\n * @platform Web\n * @since 8.8.0\n */\n icsFileName?: string;\n /**\n * An array of emails to invite.\n *\n * @platform Android\n * @since 7.1.0\n */\n invitees?: string[];\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n isAllDay?: boolean;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n location?: string;\n /**\n * Confirm dialog message.\n * When omitted, the dialog uses the event title and time summary.\n *\n * @platform Web\n * @since 8.8.0\n */\n promptMessage?: string;\n /**\n * Rules for creating a recurring event.\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n recurrence?: EventRecurrenceRule;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n startDate?: number;\n /**\n * @platform Android, iOS, Web\n * @since 0.1.0\n */\n title?: string;\n /**\n * @platform iOS, Web\n * @since 0.1.0\n */\n url?: string;\n}\n"]}
@@ -2,9 +2,18 @@
2
2
  * @since 8.5.0
3
3
  */
4
4
  export interface CreateEventWithPromptResult {
5
+ /**
6
+ * An `.ics` file (`text/calendar`) with one `VEVENT`.
7
+ * Always `null` on Android and iOS.
8
+ * On Web, set when the user confirms; `null` when the user cancels.
9
+ *
10
+ * @platform Web
11
+ * @since 8.8.0
12
+ */
13
+ ics: File | null;
5
14
  /**
6
15
  * The identifier of the created event.
7
- * Always `null` on Android.
16
+ * Always `null` on Android and Web.
8
17
  * Present on iOS when the user saves.
9
18
  *
10
19
  * @platform Android, iOS
@@ -1 +1 @@
1
- {"version":3,"file":"create-event-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventWithPromptResult {\n /**\n * The identifier of the created event.\n * Always `null` on Android.\n * Present on iOS when the user saves.\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n id: string | null;\n}\n"]}
1
+ {"version":3,"file":"create-event-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-event-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.5.0\n */\nexport interface CreateEventWithPromptResult {\n /**\n * An `.ics` file (`text/calendar`) with one `VEVENT`.\n * Always `null` on Android and iOS.\n * On Web, set when the user confirms; `null` when the user cancels.\n *\n * @platform Web\n * @since 8.8.0\n */\n ics: File | null;\n /**\n * The identifier of the created event.\n * Always `null` on Android and Web.\n * Present on iOS when the user saves.\n *\n * @platform Android, iOS\n * @since 0.1.0\n */\n id: string | null;\n}\n"]}
@@ -56,6 +56,8 @@ export interface CreateReminderOptions {
56
56
  */
57
57
  notes?: string;
58
58
  /**
59
+ * Priority: `0` none, `1` highest through `9` lowest.
60
+ *
59
61
  * @since 7.1.0
60
62
  */
61
63
  priority?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"create-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateReminderOptions {\n /**\n * Alert times in minutes relative to the reminder start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 8.7.0\n */\n commit?: boolean;\n /**\n * @since 7.1.0\n */\n completionDate?: number;\n /**\n * When the reminder should be completed, in milliseconds since the epoch.\n * On iOS, if `startDate` is omitted, it is set to this value.\n *\n * @since 7.1.0\n */\n dueDate?: number;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * @since 7.1.0\n */\n location?: string;\n /**\n * @since 7.1.0\n */\n notes?: string;\n /**\n * @since 7.1.0\n */\n priority?: number;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule;\n /**\n * When the reminder starts, in milliseconds since the epoch.\n * Relative `alerts` use this date.\n *\n * @since 7.1.0\n */\n startDate?: number;\n /**\n * @since 7.1.0\n */\n title: string;\n /**\n * @since 7.1.0\n */\n url?: string;\n}\n"]}
1
+ {"version":3,"file":"create-reminder-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminder-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceRule } from './recurrence-rule';\n\n/**\n * @since 7.1.0\n */\nexport interface CreateReminderOptions {\n /**\n * Alert times in minutes relative to the reminder start.\n * Use negative numbers for alerts before the start, and positive numbers for alerts after the start.\n *\n * On iOS only 2 alerts are supported.\n *\n * @example\n * // -1440 -> 1 day before\n * // -60 -> 1 hour before\n * // 30 -> 30 minutes after\n * [-1440, -60, 30]\n *\n * @since 7.1.0\n */\n alerts?: number[];\n /**\n * Whether to save immediately (`true`) or batch changes for later (`false`).\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 8.7.0\n */\n commit?: boolean;\n /**\n * @since 7.1.0\n */\n completionDate?: number;\n /**\n * When the reminder should be completed, in milliseconds since the epoch.\n * On iOS, if `startDate` is omitted, it is set to this value.\n *\n * @since 7.1.0\n */\n dueDate?: number;\n /**\n * @since 7.1.0\n */\n isCompleted?: boolean;\n /**\n * @since 7.1.0\n */\n listId?: string;\n /**\n * @since 7.1.0\n */\n location?: string;\n /**\n * @since 7.1.0\n */\n notes?: string;\n /**\n * Priority: `0` none, `1` highest through `9` lowest.\n *\n * @since 7.1.0\n */\n priority?: number;\n /**\n * @platform iOS\n * @since 7.1.0\n */\n recurrence?: RecurrenceRule;\n /**\n * When the reminder starts, in milliseconds since the epoch.\n * Relative `alerts` use this date.\n *\n * @since 7.1.0\n */\n startDate?: number;\n /**\n * @since 7.1.0\n */\n title: string;\n /**\n * @since 7.1.0\n */\n url?: string;\n}\n"]}
@@ -1,29 +1,34 @@
1
+ import type { SystemColorName } from '../types/system-color-name';
1
2
  /**
2
3
  * @since 8.1.0
3
4
  */
4
5
  export interface CreateRemindersListOptions {
5
6
  /**
6
- * The color of the list.
7
+ * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.
8
+ * When omitted, the platform chooses the list color.
7
9
  *
8
10
  * @example 'indigo'
9
- * @default 'blue'
11
+ * @example #007AFF
10
12
  * @platform iOS
11
13
  * @since 8.1.0
12
14
  */
13
- color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';
15
+ color?: SystemColorName | `#${string}`;
14
16
  /**
15
- * Whether to save the list to the event store immediately.
16
- * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.
17
+ * Whether to save the list immediately.
18
+ * Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`.
17
19
  *
18
20
  * @example false
19
21
  * @default true
20
22
  * @platform iOS
23
+ * @see {@link CalendarOperations#commit}
21
24
  * @since 8.1.0
22
25
  */
23
26
  commit?: boolean;
24
27
  /**
25
- * The EKSource identifier (account) where the list should be created.
26
- * If left undefined, iCloud will be used if available, otherwise falls back to local.
28
+ * The calendar source (account) where the list should be created.
29
+ *
30
+ * If provided, it should match a source from `fetchAllCalendarSources()`.
31
+ * If omitted or unmatched, iCloud is used when available, otherwise the local source.
27
32
  *
28
33
  * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'
29
34
  * @platform iOS
@@ -1 +1 @@
1
- {"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 8.1.0\n */\nexport interface CreateRemindersListOptions {\n /**\n * The color of the list.\n *\n * @example 'indigo'\n * @default 'blue'\n * @platform iOS\n * @since 8.1.0\n */\n color?: 'blue' | 'brown' | 'gray' | 'green' | 'indigo' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow';\n /**\n * Whether to save the list to the event store immediately.\n * Pass `false` to batch multiple changes and commit them together using `CapacitorCalendar.commit()`, which is more efficient than committing each save individually.\n *\n * @example false\n * @default true\n * @platform iOS\n * @since 8.1.0\n */\n commit?: boolean;\n /**\n * The EKSource identifier (account) where the list should be created.\n * If left undefined, iCloud will be used if available, otherwise falls back to local.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.1.0\n */\n sourceId?: string;\n /**\n * The title of the list.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 8.1.0\n */\n title: string;\n}\n"]}
1
+ {"version":3,"file":"create-reminders-list-options.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/create-reminders-list-options.ts"],"names":[],"mappings":"","sourcesContent":["import type { SystemColorName } from '../types/system-color-name';\n\n/**\n * @since 8.1.0\n */\nexport interface CreateRemindersListOptions {\n /**\n * Named color (`blue`, …) or hex `#RRGGBB` / `#RRGGBBAA`.\n * When omitted, the platform chooses the list color.\n *\n * @example 'indigo'\n * @example #007AFF\n * @platform iOS\n * @since 8.1.0\n */\n color?: SystemColorName | `#${string}`;\n /**\n * Whether to save the list immediately.\n * Pass `false` to batch changes and commit them with `CapacitorCalendar.commit()`.\n *\n * @example false\n * @default true\n * @platform iOS\n * @see {@link CalendarOperations#commit}\n * @since 8.1.0\n */\n commit?: boolean;\n /**\n * The calendar source (account) where the list should be created.\n *\n * If provided, it should match a source from `fetchAllCalendarSources()`.\n * If omitted or unmatched, iCloud is used when available, otherwise the local source.\n *\n * @example 'A1234567-ABCD-EFGH-IJKL-MNOPQRSTUVWX'\n * @platform iOS\n * @since 8.1.0\n */\n sourceId?: string;\n /**\n * The title of the list.\n *\n * @example 'Groceries'\n * @platform iOS\n * @since 8.1.0\n */\n title: string;\n}\n"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @since 7.2.0
3
+ */
4
+ export interface DeleteReminderWithPromptResult {
5
+ /**
6
+ * Whether the user confirmed deletion.
7
+ *
8
+ * @platform iOS
9
+ * @since 7.2.0
10
+ */
11
+ deleted: boolean;
12
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=delete-reminder-with-prompt-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-reminder-with-prompt-result.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/delete-reminder-with-prompt-result.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * @since 7.2.0\n */\nexport interface DeleteReminderWithPromptResult {\n /**\n * Whether the user confirmed deletion.\n *\n * @platform iOS\n * @since 7.2.0\n */\n deleted: boolean;\n}\n"]}
@@ -6,7 +6,7 @@ export interface EventRecurrenceRule {
6
6
  *
7
7
  * @example [1, 7] // Means in January and July.
8
8
  *
9
- * @platform Android, iOS
9
+ * @platform Android, iOS, Web
10
10
  * @since 7.1.0
11
11
  */
12
12
  byMonth?: number[];
@@ -16,7 +16,7 @@ export interface EventRecurrenceRule {
16
16
  *
17
17
  * @example [1, 15] // The 1st and 15th of each month.
18
18
  *
19
- * @platform Android, iOS
19
+ * @platform Android, iOS, Web
20
20
  * @since 7.1.0
21
21
  */
22
22
  byMonthDay?: number[];
@@ -27,7 +27,7 @@ export interface EventRecurrenceRule {
27
27
  *
28
28
  * @example [1, 3, 5] // Every Monday, Wednesday and Friday
29
29
  *
30
- * @platform Android, iOS
30
+ * @platform Android, iOS, Web
31
31
  * @since 7.3.0
32
32
  */
33
33
  byWeekDay?: number[];
@@ -38,7 +38,7 @@ export interface EventRecurrenceRule {
38
38
  *
39
39
  * @example 10
40
40
  *
41
- * @platform Android, iOS
41
+ * @platform Android, iOS, Web
42
42
  * @since 7.3.0
43
43
  */
44
44
  count?: number;
@@ -47,7 +47,7 @@ export interface EventRecurrenceRule {
47
47
  *
48
48
  * @example [1, 100, 364]
49
49
  *
50
- * @platform iOS
50
+ * @platform iOS, Web
51
51
  * @since 7.3.0
52
52
  */
53
53
  daysOfTheYear?: number[];
@@ -59,7 +59,7 @@ export interface EventRecurrenceRule {
59
59
  * date.setMonth(date.getMonth() + 1);
60
60
  * const end = date.getTime();
61
61
  *
62
- * @platform Android, iOS
62
+ * @platform Android, iOS, Web
63
63
  * @since 7.1.0
64
64
  */
65
65
  end?: number;
@@ -68,7 +68,7 @@ export interface EventRecurrenceRule {
68
68
  *
69
69
  * @example 'weekly'
70
70
  *
71
- * @platform Android, iOS
71
+ * @platform Android, iOS, Web
72
72
  * @since 7.3.0
73
73
  */
74
74
  frequency: RecurrenceFrequency;
@@ -80,7 +80,7 @@ export interface EventRecurrenceRule {
80
80
  * @example 2
81
81
  *
82
82
  * @default 1
83
- * @platform Android, iOS
83
+ * @platform Android, iOS, Web
84
84
  * @since 7.3.0
85
85
  */
86
86
  interval?: number;
@@ -89,7 +89,7 @@ export interface EventRecurrenceRule {
89
89
  *
90
90
  * @example [1, 53]
91
91
  *
92
- * @platform iOS
92
+ * @platform iOS, Web
93
93
  * @since 7.3.0
94
94
  */
95
95
  weeksOfTheYear?: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"event-recurrence-rule.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/event-recurrence-rule.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceFrequency } from '../types/recurrence-frequency';\n\nexport interface EventRecurrenceRule {\n /**\n * Limits a yearly recurrence to specific months of the year.\n * The values should be between 1 and 12.\n *\n * @example [1, 7] // Means in January and July.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n byMonth?: number[];\n /**\n * Limits a monthly recurrence to specific days of the month.\n * The values should be between 1 and 31.\n *\n * @example [1, 15] // The 1st and 15th of each month.\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n byMonthDay?: number[];\n /**\n * Limits a weekly recurrence to specific weekdays.\n * The values should be between 1 and 7.\n * 1 means Monday and 7 means Sunday.\n *\n * @example [1, 3, 5] // Every Monday, Wednesday and Friday\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n byWeekDay?: number[];\n /**\n * The total number of occurrences.\n * If set, the recurrence ends after this many occurrences.\n * If `count` is provided, `end` is ignored.\n *\n * @example 10\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n count?: number;\n /**\n * Limits a yearly recurrence to specific days of the year (1 to 366).\n *\n * @example [1, 100, 364]\n *\n * @platform iOS\n * @since 7.3.0\n */\n daysOfTheYear?: number[];\n /**\n * End date of the recurrence series as a Unix timestamp in milliseconds.\n *\n * @example\n * const date = new Date();\n * date.setMonth(date.getMonth() + 1);\n * const end = date.getTime();\n *\n * @platform Android, iOS\n * @since 7.1.0\n */\n end?: number;\n /**\n * How often the event repeats.\n *\n * @example 'weekly'\n *\n * @platform Android, iOS\n * @since 7.3.0\n */\n frequency: RecurrenceFrequency;\n /**\n * The interval between recurrences. Use in combination with `frequency`.\n * For example, a weekly event with an interval of 2, results in the event\n * occurring every 2 weeks.\n *\n * @example 2\n *\n * @default 1\n * @platform Android, iOS\n * @since 7.3.0\n */\n interval?: number;\n /**\n * Limits a yearly recurrence to specific ISO week numbers (1 to 53).\n *\n * @example [1, 53]\n *\n * @platform iOS\n * @since 7.3.0\n */\n weeksOfTheYear?: number[];\n}\n"]}
1
+ {"version":3,"file":"event-recurrence-rule.js","sourceRoot":"","sources":["../../../../src/schemas/interfaces/event-recurrence-rule.ts"],"names":[],"mappings":"","sourcesContent":["import type { RecurrenceFrequency } from '../types/recurrence-frequency';\n\nexport interface EventRecurrenceRule {\n /**\n * Limits a yearly recurrence to specific months of the year.\n * The values should be between 1 and 12.\n *\n * @example [1, 7] // Means in January and July.\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n byMonth?: number[];\n /**\n * Limits a monthly recurrence to specific days of the month.\n * The values should be between 1 and 31.\n *\n * @example [1, 15] // The 1st and 15th of each month.\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n byMonthDay?: number[];\n /**\n * Limits a weekly recurrence to specific weekdays.\n * The values should be between 1 and 7.\n * 1 means Monday and 7 means Sunday.\n *\n * @example [1, 3, 5] // Every Monday, Wednesday and Friday\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n byWeekDay?: number[];\n /**\n * The total number of occurrences.\n * If set, the recurrence ends after this many occurrences.\n * If `count` is provided, `end` is ignored.\n *\n * @example 10\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n count?: number;\n /**\n * Limits a yearly recurrence to specific days of the year (1 to 366).\n *\n * @example [1, 100, 364]\n *\n * @platform iOS, Web\n * @since 7.3.0\n */\n daysOfTheYear?: number[];\n /**\n * End date of the recurrence series as a Unix timestamp in milliseconds.\n *\n * @example\n * const date = new Date();\n * date.setMonth(date.getMonth() + 1);\n * const end = date.getTime();\n *\n * @platform Android, iOS, Web\n * @since 7.1.0\n */\n end?: number;\n /**\n * How often the event repeats.\n *\n * @example 'weekly'\n *\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n frequency: RecurrenceFrequency;\n /**\n * The interval between recurrences. Use in combination with `frequency`.\n * For example, a weekly event with an interval of 2, results in the event\n * occurring every 2 weeks.\n *\n * @example 2\n *\n * @default 1\n * @platform Android, iOS, Web\n * @since 7.3.0\n */\n interval?: number;\n /**\n * Limits a yearly recurrence to specific ISO week numbers (1 to 53).\n *\n * @example [1, 53]\n *\n * @platform iOS, Web\n * @since 7.3.0\n */\n weeksOfTheYear?: number[];\n}\n"]}