2020-08-13 17:44:57 +01:00
|
|
|
import { NgModule, LOCALE_ID, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
2020-08-05 15:39:16 +01:00
|
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
|
import { FormsModule } from '@angular/forms';
|
|
|
|
|
|
|
|
|
|
import { IonicModule } from '@ionic/angular';
|
|
|
|
|
|
|
|
|
|
import { AgendaPageRoutingModule } from './agenda-routing.module';
|
|
|
|
|
|
|
|
|
|
import { AgendaPage } from './agenda.page';
|
2020-08-13 17:44:57 +01:00
|
|
|
import { NgCalendarModule } from 'ionic2-calendar';
|
|
|
|
|
import { CalModalPageModule } from '../cal-modal/cal-modal.module';
|
|
|
|
|
|
|
|
|
|
import { registerLocaleData } from '@angular/common';
|
|
|
|
|
import localeDe from '@angular/common/locales/pt';
|
2021-01-29 09:45:27 +01:00
|
|
|
import { SharedModule } from 'src/app/shared/shared.module';
|
2021-02-24 09:14:58 +01:00
|
|
|
import { NewEventPage } from "src/app/shared/agenda/new-event/new-event.component"
|
|
|
|
|
import { EditEventComponent } from 'src/app/shared/agenda/edit-event/edit-event.component';
|
|
|
|
|
import { ViewEventPage } from 'src/app/shared/agenda/view-event/view-event.page';
|
2021-02-24 11:10:51 +01:00
|
|
|
import { EventListComponent } from "src/app/shared/agenda/event-list/event-list.component";
|
2021-02-26 15:29:05 +01:00
|
|
|
import { ApproveEventComponent } from "src/app/shared/agenda/approve-event/approve-event.component";
|
2021-03-24 15:10:46 +01:00
|
|
|
import { AttendeesPage } from 'src/app/shared/event/attendees/attendees.page';
|
|
|
|
|
import { AttendeeModalPage } from 'src/app/shared/event/attendee-modal/attendee-modal.page';
|
2021-02-26 15:29:05 +01:00
|
|
|
|
2021-01-25 16:18:36 +01:00
|
|
|
|
2021-02-24 09:14:58 +01:00
|
|
|
registerLocaleData(localeDe);
|
2021-01-25 16:18:36 +01:00
|
|
|
|
|
|
|
|
import { CalendarModule, DateAdapter } from 'angular-calendar';
|
|
|
|
|
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
|
2021-03-30 10:05:12 +01:00
|
|
|
import { EventsToApprovePage } from 'src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page';
|
2021-06-02 10:26:32 +01:00
|
|
|
import { ComponentsModule } from 'src/app/components/components.module';
|
2020-08-05 15:39:16 +01:00
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
CommonModule,
|
|
|
|
|
FormsModule,
|
|
|
|
|
IonicModule,
|
2020-08-13 17:44:57 +01:00
|
|
|
/* ComponentsModule, */
|
2021-01-25 16:18:36 +01:00
|
|
|
CalendarModule.forRoot({
|
|
|
|
|
provide: DateAdapter,
|
|
|
|
|
useFactory: adapterFactory
|
|
|
|
|
}),
|
2021-06-02 10:26:32 +01:00
|
|
|
ComponentsModule,
|
2020-08-13 17:44:57 +01:00
|
|
|
AgendaPageRoutingModule,
|
|
|
|
|
NgCalendarModule,
|
2020-09-07 12:01:05 +01:00
|
|
|
CalModalPageModule,
|
2020-08-05 15:39:16 +01:00
|
|
|
],
|
2021-02-24 09:14:58 +01:00
|
|
|
declarations: [
|
|
|
|
|
AgendaPage,
|
|
|
|
|
NewEventPage,
|
|
|
|
|
EditEventComponent,
|
2021-02-24 11:10:51 +01:00
|
|
|
ViewEventPage,
|
2021-02-26 15:29:05 +01:00
|
|
|
EventListComponent,
|
2021-03-24 15:10:46 +01:00
|
|
|
ApproveEventComponent,
|
|
|
|
|
AttendeesPage,
|
2021-03-30 09:12:51 +01:00
|
|
|
AttendeeModalPage,
|
2021-03-30 10:05:12 +01:00
|
|
|
EventsToApprovePage,
|
|
|
|
|
],
|
|
|
|
|
entryComponents: [
|
|
|
|
|
EventsToApprovePage,
|
2021-02-24 09:14:58 +01:00
|
|
|
],
|
2020-08-13 17:44:57 +01:00
|
|
|
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
|
|
|
|
providers: [
|
|
|
|
|
{ provide: LOCALE_ID, useValue: 'pt-PT'}
|
|
|
|
|
]
|
2020-08-05 15:39:16 +01:00
|
|
|
})
|
|
|
|
|
export class AgendaPageModule {}
|