import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LayoutPageComponent } from './pages/layout-page/layout-page.component';
import { AdminRoutingModule } from './admin-routing.module';
import { SharedModule } from '../../shared/shared.module';
import { MaterialModule } from '../../material/material.module';
import { CatalogoUsuariosComponent, ContrasenaModal, ModalUsuarioEdit } from './pages/catalogo-usuarios/catalogo-usuarios.component';
import { ButtonDialogComponent, ModalCatalogoUsuarios, ModalCategoriasMaterias, ModalCirculares, ModalGradoEducativo, ModalGrupo, ModalMaterias, ModalNivelEducativo } from './components/button-dialog/button-dialog.component';
import { GradosEducativosComponent, ModalGradoeducativoEdit } from './pages/grados-educativos/grados-educativos.component';
import { PersonalizarComponent } from './pages/personalizar/personalizar.component';
import { GruposComponent, ModalGrupoEdit } from './pages/grupos/grupos.component';
import { ReactiveFormsModule } from '@angular/forms';
import { MateriasComponent, ModalMateriasEdit } from './pages/materias/materias.component';
import { CategoriasMateriasComponent, ModalCategoriasEdit } from './pages/categorias-materias/categorias-materias.component';
import { MainComponent, ModalCircularMain, ModalInfo } from './pages/main/main.component';
import { CalendarComponent, ModalEvent } from './pages/calendar/calendar.component';
import { FullCalendarModule } from '@fullcalendar/angular';
import { AlumnosPadresComponent } from './pages/Relacionar/alumnos-padres/alumnos-padres.component';
import { ProfesorMateriasComponent } from './pages/Relacionar/profesor-materias/profesor-materias.component';
import { TiposTareasComponent } from './pages/modulos/tiposTareas/tipos-tareas.component';
import { ConfiguracionComponent } from './pages/configuracion/configuracion.component';
import { CardsComponent } from './components/cards/cards.component';

import { NgxEditorModule } from 'ngx-editor';
import { schema } from 'ngx-editor/schema';
import { ModalNiveleducativoEdit } from './pages/niveles-educativos/niveles-educativos.component';
import { CircularesComponent, ModalCircular, ModalCircularesEdit, ModalExtraInfo } from './pages/circulares/circulares.component';


@NgModule({
  declarations: [
    LayoutPageComponent,
    CatalogoUsuariosComponent,
    GradosEducativosComponent,
    CircularesComponent,


    ModalNivelEducativo,
    ModalGradoEducativo,
    ModalGrupo,
    ModalCatalogoUsuarios,
    ModalMaterias,
    ModalCategoriasMaterias,
    ModalCirculares,

    ModalCircularesEdit,
    ModalCircular,
    ModalExtraInfo,

    ModalCircularMain,

    ModalInfo,

    ModalNiveleducativoEdit,
    ModalGradoeducativoEdit,
    ModalGrupoEdit,
    ModalCategoriasEdit,
    ModalMateriasEdit,
    ModalUsuarioEdit,
    ContrasenaModal,

    ModalEvent,

    ButtonDialogComponent,
    PersonalizarComponent,
    GruposComponent,
    MateriasComponent,
    CategoriasMateriasComponent,
    MainComponent,
    CalendarComponent,

    AlumnosPadresComponent,
    ProfesorMateriasComponent,
    TiposTareasComponent,
    ConfiguracionComponent,
    CardsComponent,
  ],
  imports: [
    CommonModule,
    AdminRoutingModule,
    SharedModule,
    MaterialModule,
    ReactiveFormsModule,
    FullCalendarModule,
    NgxEditorModule.forRoot({
      locals: {
        // menu
        bold: 'Bold',
        italic: 'Italic',
        code: 'Code',
        blockquote: 'Blockquote',
        underline: 'Underline',
        strike: 'Strike',
        bullet_list: 'Bullet List',
        ordered_list: 'Ordered List',
        heading: 'Heading',
        h1: 'Header 1',
        h2: 'Header 2',
        h3: 'Header 3',
        h4: 'Header 4',
        h5: 'Header 5',
        h6: 'Header 6',
        align_left: 'Left Align',
        align_center: 'Center Align',
        align_right: 'Right Align',
        align_justify: 'Justify',
        text_color: 'Text Color',
        background_color: 'Background Color',

        // popups, forms, others...
        url: 'URL',
        text: 'Text',
        openInNewTab: 'Open in new tab',
        insert: 'Insert',
        altText: 'Alt Text',
        title: 'Title',
        remove: 'Remove',
        enterValidUrl: 'Please enter a valid URL',
      },
    }),
  ],
  exports: [
    ModalNivelEducativo,
    ButtonDialogComponent,
    ModalGradoEducativo,
    ModalGrupo,
    ModalCatalogoUsuarios,
    ModalMaterias,
    ModalCategoriasMaterias,
    ModalCirculares,
    CalendarComponent,
    AlumnosPadresComponent,
    ProfesorMateriasComponent,
  ]
})
export class AdministradorModule { }
