@idea-ionic/agenda 8.10.2 → 8.11.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,5 +1,5 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, EventEmitter } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit } from '@angular/core';
3
3
  import { IonContent } from '@ionic/angular/standalone';
4
4
  import { Subject } from 'rxjs';
5
5
  import * as i10 from 'angular-calendar';
@@ -23,19 +23,19 @@ declare class IDEAAgendaComponent implements OnInit {
23
23
  /**
24
24
  * An array of day indexes (0 = sunday, 1 = monday, etc.) that will be hidden on the view.
25
25
  */
26
- excludeDays: number[];
26
+ readonly excludeDays: _angular_core.InputSignal<number[]>;
27
27
  /**
28
28
  * The day start hours in 24 hour time. Must be 0-23
29
29
  */
30
- dayStartHour: number;
30
+ readonly dayStartHour: _angular_core.InputSignal<number>;
31
31
  /**
32
32
  * The day start hours in 24 hour time. Must be 0-23
33
33
  */
34
- dayEndHour: number;
34
+ readonly dayEndHour: _angular_core.InputSignal<number>;
35
35
  /**
36
36
  * The number of segments in an hour. Must divide equally into 60.
37
37
  */
38
- hourSegments: number;
38
+ readonly hourSegments: _angular_core.InputSignal<number>;
39
39
  /**
40
40
  * Whether to open the current day's details right away in month view.
41
41
  */
@@ -51,7 +51,7 @@ declare class IDEAAgendaComponent implements OnInit {
51
51
  /**
52
52
  * Whether to block any day/slot in the past.
53
53
  */
54
- onlyFuture: boolean;
54
+ readonly onlyFuture: _angular_core.InputSignal<boolean>;
55
55
  /**
56
56
  * Some notes to show underneath the calendar's header.
57
57
  */
@@ -59,48 +59,48 @@ declare class IDEAAgendaComponent implements OnInit {
59
59
  /**
60
60
  * The template for new events created by drag&drop.
61
61
  */
62
- newEventTemplate: AgendaEvent;
62
+ readonly newEventTemplate: _angular_core.InputSignal<AgendaEvent>;
63
63
  /**
64
64
  * Whether (and how) to allow the creation of events by drag&drop.
65
65
  * If enabled, on mobile it requires the `parentContent` to be set for a correct execution.
66
66
  */
67
- allowDragToCreate: DragToCreateOptions;
67
+ readonly allowDragToCreate: _angular_core.InputSignal<DragToCreateOptions>;
68
68
  /**
69
69
  * The parent ion-content, in case we want to control its scrollability for drag&drop features.
70
70
  */
71
- parentContent: IonContent;
71
+ readonly parentContent: _angular_core.InputSignal<IonContent>;
72
72
  /**
73
73
  * Trigger when an event is selected.
74
74
  */
75
- selectEvent: EventEmitter<AgendaEvent>;
75
+ readonly selectEvent: _angular_core.OutputEmitterRef<AgendaEvent>;
76
76
  /**
77
77
  * Trigger when a day is selected.
78
78
  */
79
- selectDay: EventEmitter<Date>;
79
+ readonly selectDay: _angular_core.OutputEmitterRef<Date>;
80
80
  /**
81
81
  * Trigger when a time slot is selected.
82
82
  */
83
- selectSlot: EventEmitter<Date>;
83
+ readonly selectSlot: _angular_core.OutputEmitterRef<Date>;
84
84
  /**
85
85
  * Trigger when a new event is added by drag and drop.
86
86
  */
87
- newEventByDrag: EventEmitter<AgendaEvent>;
87
+ readonly newEventByDrag: _angular_core.OutputEmitterRef<AgendaEvent>;
88
88
  /**
89
89
  * Trigger when an event changed date (drag&drop or resize).
90
90
  */
91
- changeEvent: EventEmitter<AgendaEvent>;
91
+ readonly changeEvent: _angular_core.OutputEmitterRef<AgendaEvent>;
92
92
  /**
93
93
  * Trigger when the view date of reference changed (because we moved inside the calendar).
94
94
  */
95
- changeDate: EventEmitter<Date>;
95
+ readonly changeDate: _angular_core.OutputEmitterRef<Date>;
96
96
  /**
97
97
  * Trigger before the rendering of the week or day view.
98
98
  */
99
- beforeWeekOrDayViewRenderEmitter: EventEmitter<CalendarWeekViewBeforeRenderEvent>;
99
+ readonly beforeWeekOrDayViewRenderEmitter: _angular_core.OutputEmitterRef<CalendarWeekViewBeforeRenderEvent>;
100
100
  /**
101
101
  * Trigger before the rendering of the month view.
102
102
  */
103
- beforeMonthViewRenderEmitter: EventEmitter<CalendarMonthViewBeforeRenderEvent>;
103
+ readonly beforeMonthViewRenderEmitter: _angular_core.OutputEmitterRef<CalendarMonthViewBeforeRenderEvent>;
104
104
  CalendarView: typeof CalendarView;
105
105
  Attendance: typeof EventAttendance;
106
106
  viewDate: Date;
@@ -137,8 +137,8 @@ declare class IDEAAgendaComponent implements OnInit {
137
137
  getPreviewDescription(description: string): string;
138
138
  startDragToCreate(event: Event, segmentDate: Date, segmentElement: HTMLElement): void;
139
139
  private getFixedEndDateWithMinimumSegmentDuration;
140
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAAgendaComponent, never>;
141
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEAAgendaComponent, "idea-agenda", never, { "events": { "alias": "events"; "required": false; }; "excludeDays": { "alias": "excludeDays"; "required": false; }; "dayStartHour": { "alias": "dayStartHour"; "required": false; }; "dayEndHour": { "alias": "dayEndHour"; "required": false; }; "hourSegments": { "alias": "hourSegments"; "required": false; }; "activeDayIsOpen": { "alias": "activeDayIsOpen"; "required": false; }; "view": { "alias": "view"; "required": false; }; "allowedViews": { "alias": "allowedViews"; "required": false; }; "onlyFuture": { "alias": "onlyFuture"; "required": false; }; "titleNotes": { "alias": "titleNotes"; "required": false; }; "newEventTemplate": { "alias": "newEventTemplate"; "required": false; }; "allowDragToCreate": { "alias": "allowDragToCreate"; "required": false; }; "parentContent": { "alias": "parentContent"; "required": false; }; }, { "selectEvent": "selectEvent"; "selectDay": "selectDay"; "selectSlot": "selectSlot"; "newEventByDrag": "newEventByDrag"; "changeEvent": "changeEvent"; "changeDate": "changeDate"; "beforeWeekOrDayViewRenderEmitter": "beforeWeekOrDayViewRenderEmitter"; "beforeMonthViewRenderEmitter": "beforeMonthViewRenderEmitter"; }, never, never, false, never>;
140
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IDEAAgendaComponent, never>;
141
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IDEAAgendaComponent, "idea-agenda", never, { "events": { "alias": "events"; "required": false; }; "excludeDays": { "alias": "excludeDays"; "required": false; "isSignal": true; }; "dayStartHour": { "alias": "dayStartHour"; "required": false; "isSignal": true; }; "dayEndHour": { "alias": "dayEndHour"; "required": false; "isSignal": true; }; "hourSegments": { "alias": "hourSegments"; "required": false; "isSignal": true; }; "activeDayIsOpen": { "alias": "activeDayIsOpen"; "required": false; }; "view": { "alias": "view"; "required": false; }; "allowedViews": { "alias": "allowedViews"; "required": false; }; "onlyFuture": { "alias": "onlyFuture"; "required": false; "isSignal": true; }; "titleNotes": { "alias": "titleNotes"; "required": false; }; "newEventTemplate": { "alias": "newEventTemplate"; "required": false; "isSignal": true; }; "allowDragToCreate": { "alias": "allowDragToCreate"; "required": false; "isSignal": true; }; "parentContent": { "alias": "parentContent"; "required": false; "isSignal": true; }; }, { "selectEvent": "selectEvent"; "selectDay": "selectDay"; "selectSlot": "selectSlot"; "newEventByDrag": "newEventByDrag"; "changeEvent": "changeEvent"; "changeDate": "changeDate"; "beforeWeekOrDayViewRenderEmitter": "beforeWeekOrDayViewRenderEmitter"; "beforeMonthViewRenderEmitter": "beforeMonthViewRenderEmitter"; }, never, never, false, never>;
142
142
  }
143
143
  /**
144
144
  * A richer version of the classic CalendarEvent.
@@ -273,8 +273,8 @@ declare class IDEACalendarsService {
273
273
  * Helper to recursively sync an the extenal calendar.
274
274
  */
275
275
  private syncCalendarHelper;
276
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEACalendarsService, never>;
277
- static ɵprov: i0.ɵɵInjectableDeclaration<IDEACalendarsService>;
276
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IDEACalendarsService, never>;
277
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<IDEACalendarsService>;
278
278
  }
279
279
  /**
280
280
  * Helper structure to define external services' calendars (basic info).
@@ -293,18 +293,19 @@ declare class IDEACalendarComponent implements OnInit {
293
293
  private _API;
294
294
  private _translate;
295
295
  _calendars: IDEACalendarsService;
296
+ private _cdr;
296
297
  /**
297
298
  * The calendar to manage.
298
299
  */
299
- calendar: Calendar;
300
+ calendar?: Calendar;
300
301
  /**
301
302
  * Whether we want to enable advanced permissions (based on the memberships) on the calendar.
302
303
  */
303
- advancedPermissions: boolean;
304
+ advancedPermissions?: boolean;
304
305
  /**
305
306
  * Whether the calendar color is an important detail or it shouldn't be shown.
306
307
  */
307
- hideColor: boolean;
308
+ hideColor?: boolean;
308
309
  calendarWC: Calendar;
309
310
  membershipsChecks: Check[];
310
311
  membership: Membership;
@@ -315,8 +316,8 @@ declare class IDEACalendarComponent implements OnInit {
315
316
  save(): Promise<void>;
316
317
  delete(): Promise<void>;
317
318
  close(): void;
318
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEACalendarComponent, never>;
319
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEACalendarComponent, "idea-calendar", never, { "calendar": { "alias": "calendar"; "required": false; }; "advancedPermissions": { "alias": "advancedPermissions"; "required": false; }; "hideColor": { "alias": "hideColor"; "required": false; }; }, {}, never, never, false, never>;
319
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IDEACalendarComponent, never>;
320
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IDEACalendarComponent, "idea-calendar", never, { "calendar": { "alias": "calendar"; "required": false; }; "advancedPermissions": { "alias": "advancedPermissions"; "required": false; }; "hideColor": { "alias": "hideColor"; "required": false; }; }, {}, never, never, false, never>;
320
321
  }
321
322
 
322
323
  declare class IDEACalendarItemComponent {
@@ -333,27 +334,27 @@ declare class IDEACalendarItemComponent {
333
334
  /**
334
335
  * Whether the component is disabled.
335
336
  */
336
- disabled: boolean;
337
+ readonly disabled: _angular_core.InputSignal<boolean>;
337
338
  /**
338
339
  * Whether we want to enable advanced permissions (based on the memberships) on the calendar.
339
340
  */
340
- advancedPermissions: boolean;
341
+ readonly advancedPermissions: _angular_core.InputSignal<boolean>;
341
342
  /**
342
343
  * Whether the calendar color is an important detail or it shouldn't be shown.
343
344
  */
344
- hideColor: boolean;
345
+ readonly hideColor: _angular_core.InputSignal<boolean>;
345
346
  /**
346
347
  * The URL to be used on the redirect calls.
347
348
  */
348
- baseURL: string;
349
+ readonly baseURL: _angular_core.InputSignal<string>;
349
350
  /**
350
351
  * Report to parent components a change.
351
352
  */
352
- somethingChanged: EventEmitter<Calendar>;
353
+ readonly somethingChanged: _angular_core.OutputEmitterRef<Calendar>;
353
354
  manageCalendar(): Promise<void>;
354
355
  linkExtCalendarOrDelete(): Promise<void>;
355
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEACalendarItemComponent, never>;
356
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEACalendarItemComponent, "idea-calendar-item", never, { "calendar": { "alias": "calendar"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "advancedPermissions": { "alias": "advancedPermissions"; "required": false; }; "hideColor": { "alias": "hideColor"; "required": false; }; "baseURL": { "alias": "baseURL"; "required": false; }; }, { "somethingChanged": "somethingChanged"; }, never, never, false, never>;
356
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IDEACalendarItemComponent, never>;
357
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IDEACalendarItemComponent, "idea-calendar-item", never, { "calendar": { "alias": "calendar"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "advancedPermissions": { "alias": "advancedPermissions"; "required": false; "isSignal": true; }; "hideColor": { "alias": "hideColor"; "required": false; "isSignal": true; }; "baseURL": { "alias": "baseURL"; "required": false; "isSignal": true; }; }, { "somethingChanged": "somethingChanged"; }, never, never, false, never>;
357
358
  }
358
359
 
359
360
  declare class IDEACalendarCreationComponent implements OnInit {
@@ -366,15 +367,15 @@ declare class IDEACalendarCreationComponent implements OnInit {
366
367
  /**
367
368
  * Whether we want to allow the creation of only a particular type of calendar, based on the scope.
368
369
  */
369
- fixScope: CalendarScopes;
370
+ readonly fixScope: _angular_core.InputSignal<CalendarScopes>;
370
371
  /**
371
372
  * Whether we want to allow the creation of local calendars.
372
373
  */
373
- onlyExternalCalendars: boolean;
374
+ readonly onlyExternalCalendars: _angular_core.InputSignal<boolean>;
374
375
  /**
375
376
  * The URL to be used on the redirect calls.
376
377
  */
377
- baseURL: string;
378
+ readonly baseURL: _angular_core.InputSignal<string>;
378
379
  team: Team;
379
380
  membership: Membership;
380
381
  calendar: Calendar;
@@ -386,8 +387,8 @@ declare class IDEACalendarCreationComponent implements OnInit {
386
387
  scopeIsSet(): boolean;
387
388
  saveNewCalendar(service?: ExternalCalendarSources | string): Promise<void>;
388
389
  close(): void;
389
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEACalendarCreationComponent, never>;
390
- static ɵcmp: i0.ɵɵComponentDeclaration<IDEACalendarCreationComponent, "idea-calendar-creation", never, { "fixScope": { "alias": "fixScope"; "required": false; }; "onlyExternalCalendars": { "alias": "onlyExternalCalendars"; "required": false; }; "baseURL": { "alias": "baseURL"; "required": false; }; }, {}, never, never, false, never>;
390
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IDEACalendarCreationComponent, never>;
391
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<IDEACalendarCreationComponent, "idea-calendar-creation", never, { "fixScope": { "alias": "fixScope"; "required": false; "isSignal": true; }; "onlyExternalCalendars": { "alias": "onlyExternalCalendars"; "required": false; "isSignal": true; }; "baseURL": { "alias": "baseURL"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
391
392
  }
392
393
  /**
393
394
  * The possible scopes of the calendar.
@@ -398,9 +399,9 @@ declare enum CalendarScopes {
398
399
  }
399
400
 
400
401
  declare class IDEAAgendaModule {
401
- static ɵfac: i0.ɵɵFactoryDeclaration<IDEAAgendaModule, never>;
402
- static ɵmod: i0.ɵɵNgModuleDeclaration<IDEAAgendaModule, [typeof IDEAAgendaComponent, typeof IDEACalendarComponent, typeof IDEACalendarItemComponent, typeof IDEACalendarCreationComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.IonicModule, typeof i8.IDEATranslationsModule, typeof i9.IDEAColorPickerComponent, typeof i8.IDEACheckerComponent, typeof i8.IDEAUserAvatarComponent, typeof i10.CalendarModule], [typeof IDEAAgendaComponent, typeof IDEACalendarComponent, typeof IDEACalendarItemComponent, typeof IDEACalendarCreationComponent]>;
403
- static ɵinj: i0.ɵɵInjectorDeclaration<IDEAAgendaModule>;
402
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<IDEAAgendaModule, never>;
403
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<IDEAAgendaModule, [typeof IDEAAgendaComponent, typeof IDEACalendarComponent, typeof IDEACalendarItemComponent, typeof IDEACalendarCreationComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.IonicModule, typeof i8.IDEATranslationsModule, typeof i9.IDEAColorPickerComponent, typeof i8.IDEACheckerComponent, typeof i8.IDEAUserAvatarComponent, typeof i10.CalendarModule], [typeof IDEAAgendaComponent, typeof IDEACalendarComponent, typeof IDEACalendarItemComponent, typeof IDEACalendarCreationComponent]>;
404
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<IDEAAgendaModule>;
404
405
  }
405
406
 
406
407
  declare class CustomDateFormatter extends CalendarDateFormatter {
@@ -411,8 +412,8 @@ declare class CustomDateFormatter extends CalendarDateFormatter {
411
412
  weekViewTitle: ({ date, locale }: DateFormatterParams) => string;
412
413
  dayViewHour: ({ date, locale }: DateFormatterParams) => string;
413
414
  dayViewTitle: ({ date, locale }: DateFormatterParams) => string;
414
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomDateFormatter, never>;
415
- static ɵprov: i0.ɵɵInjectableDeclaration<CustomDateFormatter>;
415
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomDateFormatter, never>;
416
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<CustomDateFormatter>;
416
417
  }
417
418
 
418
419
  export { CalendarScopes, CustomDateFormatter, DragToCreateOptions, EventAttendance, IDEAAgendaComponent, IDEAAgendaModule, IDEACalendarComponent, IDEACalendarCreationComponent, IDEACalendarItemComponent, IDEACalendarsService };