Skip to content
Snippets Groups Projects
shared.module.ts 9.04 KiB
Newer Older
  • Learn to ignore specific revisions
  • // eslint-disable-next-line max-classes-per-file
    
    import { NgModule } from '@angular/core';
    import { CommonModule } from '@angular/common';
    
    import { MatButtonModule } from '@angular/material/button';
    import { MatSelectModule } from '@angular/material/select';
    
    import { MatIconModule } from '@angular/material/icon';
    
    import { MatInputModule } from '@angular/material/input';
    
    import { FormsModule, ReactiveFormsModule } from '@angular/forms';
    
    import { MatRadioModule } from '@angular/material/radio';
    import { DragDropModule } from '@angular/cdk/drag-drop';
    import { MatCheckboxModule } from '@angular/material/checkbox';
    import { MatTabsModule } from '@angular/material/tabs';
    import { MatFormFieldModule } from '@angular/material/form-field';
    
    import { MatSnackBarModule } from '@angular/material/snack-bar';
    
    import { MatTooltipModule } from '@angular/material/tooltip';
    
    import { MatListModule } from '@angular/material/list';
    
    rhenck's avatar
    rhenck committed
    import { MatButtonToggleModule } from '@angular/material/button-toggle';
    
    import { CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
    
    import { TranslateModule } from '@ngx-translate/core';
    
    import { MatDialogModule } from '@angular/material/dialog';
    
    import { MatSliderModule } from '@angular/material/slider';
    
    mechtelm's avatar
    mechtelm committed
    import { HttpClientModule } from '@angular/common/http';
    
    jojohoch's avatar
    jojohoch committed
    import { HotspotImageComponent } from 'common/components/input-elements/hotspot-image.component';
    
    import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
    
    import { ScrollPagesPipe } from 'common/pipes/scroll-pages.pipe';
    
    rhenck's avatar
    rhenck committed
    import { MathEditorModule } from 'common/math-editor.module';
    
    import { DynamicRowsDirective } from 'common/directives/dynamic-rows.directive';
    
    import { TooltipEventTooltipDirective } from 'common/components/tooltip/tooltip-event-tooltip.directive';
    import { TooltipComponent } from 'common/components/tooltip/tooltip.component';
    import { PointerEventTooltipDirective } from 'common/components/tooltip/pointer-event-tooltip.directive';
    
    import { ClozeChildErrorMessage } from 'common/components/compound-elements/cloze/cloze-child-error-message';
    
    import { TextComponent } from './components/text/text.component';
    import { ButtonComponent } from './components/button/button.component';
    import { TextFieldComponent } from './components/input-elements/text-field.component';
    
    import {
      TextFieldSimpleComponent
    } from './components/compound-elements/cloze/cloze-child-elements/text-field-simple.component';
    
    import { AutoHeightDirective, TextAreaComponent } from './components/input-elements/text-area.component';
    
    import { CheckboxComponent } from './components/input-elements/checkbox.component';
    import { DropdownComponent } from './components/input-elements/dropdown.component';
    import { RadioButtonGroupComponent } from './components/input-elements/radio-button-group.component';
    import { ImageComponent } from './components/media-elements/image.component';
    import { VideoComponent } from './components/media-elements/video.component';
    import { AudioComponent } from './components/media-elements/audio.component';
    
    import { SafeResourceUrlPipe } from './pipes/safe-resource-url.pipe';
    import { InputBackgroundColorDirective } from './directives/input-background-color.directive';
    import { ErrorTransformPipe } from './pipes/error-transform.pipe';
    import { SafeResourceHTMLPipe } from './pipes/safe-resource-html.pipe';
    
    import { MediaPlayerControlBarComponent }
    
      from './components/media-elements/media-player-control-bar/media-player-control-bar.component';
    
    import {
      MediaPlayerTimeFormatPipe
    } from './components/media-elements/media-player-control-bar/media-player-time-format.pipe';
    
    import { LikertComponent, LikertRowBackgroundColorPipe } from './components/compound-elements/likert/likert.component';
    
    import {
      LikertRadioButtonGroupComponent
    } from './components/compound-elements/likert/likert-radio-button-group.component';
    
    import { ImageMagnifierComponent } from './components/media-elements/image-magnifier.component';
    import { RadioGroupImagesComponent } from './components/input-elements/radio-group-images.component';
    
    rhenck's avatar
    rhenck committed
    import { DropListComponent } from './components/input-elements/drop-list.component';
    
    import { ClozeComponent } from './components/compound-elements/cloze/cloze.component';
    import { SliderComponent } from './components/input-elements/slider.component';
    import { SpellCorrectComponent } from './components/input-elements/spell-correct.component';
    import { FrameComponent } from './components/frame/frame.component';
    
    import {
      ToggleButtonComponent
    } from './components/compound-elements/cloze/cloze-child-elements/toggle-button.component';
    
    import { TextMarkingBarComponent } from './components/text/text-marking-bar/text-marking-bar.component';
    
    import { StyleMarksPipe } from './pipes/styleMarks.pipe';
    
    import { TextMarkingButtonComponent } from './components/text/text-marking-bar/text-marking-button.component';
    
    rhenck's avatar
    rhenck committed
    import { ClozeChildOverlay } from './components/compound-elements/cloze/cloze-child-overlay.component';
    
    import { MarkListPipe } from './pipes/mark-list.pipe';
    
    import { IsDisabledDirective } from './directives/is-disabled.directive';
    
    import { GeometryComponent } from './components/geometry/geometry.component';
    
    import { MathAtanPipe } from './pipes/math-atan.pipe';
    import { MathDegreesPipe } from './pipes/math-degrees.pipe';
    
    import { ArrayIncludesPipe } from './pipes/array-includes.pipe';
    
    import { SpinnerComponent } from './components/spinner/spinner.component';
    
    rhenck's avatar
    rhenck committed
    import { GetValuePipe, MathFieldComponent } from './components/input-elements/math-field.component';
    
    import { MeasurePipe } from './pipes/measure.pipe';
    import { TextImagePanelComponent } from './components/text-image-panel.component';
    import { ReferenceListComponent } from './components/reference-list.component';
    
    rhenck's avatar
    rhenck committed
    import {
      FixedReferencesSnackbarComponent,
      ReferenceListSnackbarComponent
    } from './services/message.service';
    import { UnitDefErrorDialogComponent } from './components/unit-def-error-dialog.component';
    
    import { MathTableComponent } from './components/input-elements/math-table.component';
    import { TextAreaMathComponent } from './components/input-elements/text-area-math.component';
    
    
    @NgModule({
      imports: [
        CommonModule,
    
        HttpClientModule,
    
        DragDropModule,
        MatSelectModule,
    
        MatRadioModule,
        MatCheckboxModule,
        ReactiveFormsModule,
    
        MatIconModule,
    
        MatFormFieldModule,
    
        MatInputModule,
    
        MatDialogModule,
    
    rhenck's avatar
    rhenck committed
        MatSliderModule,
    
    rhenck's avatar
    rhenck committed
        MatProgressSpinnerModule,
    
        MatListModule,
        CdkConnectedOverlay,
        CdkOverlayOrigin
    
      ],
      declarations: [
        ButtonComponent,
    
        TextComponent,
    
        TextFieldComponent,
    
        TextFieldSimpleComponent,
    
        TextAreaComponent,
    
        TextAreaMathComponent,
    
        ImageComponent,
        AudioComponent,
        VideoComponent,
        RadioButtonGroupComponent,
        CheckboxComponent,
        DropdownComponent,
    
        SafeResourceUrlPipe,
    
        InputBackgroundColorDirective,
    
        ErrorTransformPipe,
    
        SafeResourceHTMLPipe,
    
        ScrollPagesPipe,
    
        MediaPlayerControlBarComponent,
    
        MediaPlayerTimeFormatPipe,
    
        LikertComponent,
    
        LikertRadioButtonGroupComponent,
    
        ImageMagnifierComponent,
    
    rhenck's avatar
    rhenck committed
        RadioGroupImagesComponent,
    
    rhenck's avatar
    rhenck committed
        DropListComponent,
    
    rhenck's avatar
    rhenck committed
        ClozeComponent,
    
    jojohoch's avatar
    jojohoch committed
        HotspotImageComponent,
    
    mechtelm's avatar
    mechtelm committed
        SliderComponent,
        SpellCorrectComponent,
    
    rhenck's avatar
    rhenck committed
        FrameComponent,
    
        TextMarkingBarComponent,
    
        TextMarkingButtonComponent,
    
    rhenck's avatar
    rhenck committed
        ClozeChildOverlay,
    
        IsDisabledDirective,
    
        GeometryComponent,
        MathAtanPipe,
    
    rhenck's avatar
    rhenck committed
        MathDegreesPipe,
    
        SpinnerComponent,
    
    rhenck's avatar
    rhenck committed
        GetValuePipe,
    
        TextImagePanelComponent,
        ReferenceListComponent,
    
    rhenck's avatar
    rhenck committed
        ReferenceListSnackbarComponent,
        FixedReferencesSnackbarComponent,
    
        UnitDefErrorDialogComponent,
        TooltipComponent,
        TooltipEventTooltipDirective,
    
        LikertRowBackgroundColorPipe,
        MathTableComponent
    
      ],
      exports: [
        CommonModule,
        MatIconModule,
        MatTabsModule,
    
        MatButtonModule,
    
        FormsModule,
    
        ReactiveFormsModule,
    
        DragDropModule,
    
    rhenck's avatar
    rhenck committed
        MatFormFieldModule,
    
        MatSnackBarModule,
    
        MatTooltipModule,
    
        MatDialogModule,
    
        TranslateModule,
    
        ScrollPagesPipe,
    
        TextMarkingBarComponent,
    
    rhenck's avatar
    rhenck committed
        ToggleButtonComponent,
        TextFieldComponent,
    
        TextFieldSimpleComponent,
    
    jojohoch's avatar
    jojohoch committed
        TextAreaComponent,
        AudioComponent,
        VideoComponent,
        TextComponent,
        CheckboxComponent,
        SpellCorrectComponent,
        SliderComponent,
        DropdownComponent,
        RadioButtonGroupComponent,
        RadioGroupImagesComponent,
        DropListComponent,
        ClozeComponent,
    
    jojohoch's avatar
    jojohoch committed
        HotspotImageComponent,
    
    jojohoch's avatar
    jojohoch committed
        LikertComponent,
        ButtonComponent,
        FrameComponent,
    
        ImageComponent,
    
    rhenck's avatar
    rhenck committed
        GeometryComponent,
    
        ReferenceListComponent,
        TextAreaMathComponent,
        MathTableComponent
    
    export class SharedModule {}
    
    
    export abstract class APIService {
      abstract getResourceURL(): string;
    }