@idea-ionic/agenda 8.5.13 → 8.6.1

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.
@@ -1,77 +0,0 @@
1
- import { Calendar, ExternalCalendarSources } from 'idea-toolbox';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Note: to test locally, you need to temporarily change the redirect URI:
5
- * - in the lambda `idea_calendars`, e.g. `SCARLETT_URL`;
6
- * - in the client config file: `APP_URL`.
7
- * In both cases, the value should be set to `http://localhost:8100` (or according to the local URL).
8
- */
9
- export declare class IDEACalendarsService {
10
- protected _env: any;
11
- private _modal;
12
- private _alert;
13
- private _loading;
14
- private _API;
15
- private _translate;
16
- /**
17
- * Get the ion-icon of an external service from its name.
18
- */
19
- getServiceIcon(service: ExternalCalendarSources | string): string;
20
- /**
21
- * Get the base URL for API request (shared/private calendar).
22
- */
23
- getRequestURL(calendar: Calendar): string;
24
- /**
25
- * Create a new calendar.
26
- */
27
- postCalendar(cal: Calendar): Promise<Calendar>;
28
- /**
29
- * Update an existing calendar.
30
- */
31
- putCalendar(cal: Calendar): Promise<Calendar>;
32
- /**
33
- * Delete a calendar.
34
- */
35
- deleteCalendar(cal: Calendar): Promise<void>;
36
- /**
37
- * Associate an external calendar with the given calendar.
38
- */
39
- setExternalCalendar(cal: Calendar, externalId: string): Promise<Calendar>;
40
- /**
41
- * Link the calendar with the chosen external service (auth flow).
42
- */
43
- linkExtService(cal: Calendar, baseURL: string): Promise<void>;
44
- private showAlertLinkingCalendar;
45
- /**
46
- * Get the external calendars list of the external service.
47
- */
48
- getExternalCalendars(cal: Calendar): Promise<ExtCalendar[]>;
49
- /**
50
- * If the external service is linked, choose an external calendar and set it for the chosen calendar.
51
- * @return the updated calendar.
52
- */
53
- chooseAndSetExternalCalendar(cal: Calendar): Promise<Calendar>;
54
- /**
55
- * Open the modal to pick a calendar from the external service.
56
- * @return the id of the external calendar.
57
- */
58
- private openModalAndPickExternalCalendar;
59
- /**
60
- * First sync of the extenal calendar.
61
- */
62
- syncCalendar(cal: Calendar): Promise<void>;
63
- /**
64
- * Helper to recursively sync an the extenal calendar.
65
- */
66
- private syncCalendarHelper;
67
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEACalendarsService, never>;
68
- static ɵprov: i0.ɵɵInjectableDeclaration<IDEACalendarsService>;
69
- }
70
- /**
71
- * Helper structure to define external services' calendars (basic info).
72
- */
73
- interface ExtCalendar {
74
- id: string;
75
- name: string;
76
- }
77
- export {};
@@ -1,13 +0,0 @@
1
- import { CalendarDateFormatter, DateFormatterParams } from 'angular-calendar';
2
- import * as i0 from "@angular/core";
3
- export declare class CustomDateFormatter extends CalendarDateFormatter {
4
- monthViewColumnHeader: ({ date, locale }: DateFormatterParams) => string;
5
- monthViewTitle: ({ date, locale }: DateFormatterParams) => string;
6
- weekViewHour: ({ date, locale }: DateFormatterParams) => string;
7
- weekViewColumnHeader: ({ date, locale }: DateFormatterParams) => string;
8
- weekViewTitle: ({ date, locale }: DateFormatterParams) => string;
9
- dayViewHour: ({ date, locale }: DateFormatterParams) => string;
10
- dayViewTitle: ({ date, locale }: DateFormatterParams) => string;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateFormatter, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<CustomDateFormatter>;
13
- }