diff --git a/angular.json b/angular.json index 32b9018..14cd9ca 100644 --- a/angular.json +++ b/angular.json @@ -55,6 +55,7 @@ } ], "styles": [ + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "src/styles.scss", "node_modules/leaflet/dist/leaflet.css" ], @@ -122,6 +123,7 @@ "src/assets" ], "styles": [ + "./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "src/styles.scss" ], "scripts": [] @@ -159,4 +161,4 @@ "cli": { "analytics": false } -} +} \ No newline at end of file diff --git a/package.json b/package.json index c633f94..b548676 100644 --- a/package.json +++ b/package.json @@ -59,11 +59,13 @@ "private": true, "dependencies": { "@angular/animations": "~9.1.1", + "@angular/cdk": "9.2.4", "@angular/common": "~9.1.1", "@angular/compiler": "~9.1.1", "@angular/core": "~9.1.1", "@angular/forms": "~9.1.1", "@angular/localize": "^9.1.1", + "@angular/material": "9.2.4", "@angular/platform-browser": "~9.1.1", "@angular/platform-browser-dynamic": "~9.1.1", "@angular/router": "~9.1.1", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 1ca00ea..bc1081b 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,27 +1,29 @@ -import { BrowserModule } from '@angular/platform-browser'; -import { NgModule } from '@angular/core'; +import {BrowserModule} from '@angular/platform-browser'; +import {NgModule} from '@angular/core'; -import { AppRoutingModule } from './app-routing.module'; -import { AppComponent } from './app.component'; -import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; -import { LoadConfigComponent } from './load-config/load-config.component'; -import { ExportConfigComponent } from './export-config/export-config.component'; -import { FontAwesomeModule, FaIconLibrary } from '@fortawesome/angular-fontawesome'; -import { HashLocationStrategy, LocationStrategy } from '@angular/common'; +import {AppRoutingModule} from './app-routing.module'; +import {AppComponent} from './app.component'; +import {NgbModule} from '@ng-bootstrap/ng-bootstrap'; +import {LoadConfigComponent} from './load-config/load-config.component'; +import {ExportConfigComponent} from './export-config/export-config.component'; +import {FaIconLibrary, FontAwesomeModule} from '@fortawesome/angular-fontawesome'; +import {HashLocationStrategy, LocationStrategy} from '@angular/common'; -import { FormsModule } from '@angular/forms'; -import { LoadConfigCsvComponent } from './load-config-csv/load-config-csv.component'; -import { LoadConfigTxtComponent } from './load-config-txt/load-config-txt.component'; -import { LoadConfigEmptyComponent } from './load-config-empty/load-config-empty.component'; -import { LicenseInfoComponent } from './license-info/license-info.component'; -import { GcpsMapComponent } from './gcps-map/gcps-map.component'; -import { ImagesTaggerComponent } from './images-tagger/images-tagger.component'; -import { LeafletModule } from '@asymmetrik/ngx-leaflet'; -import { fas } from '@fortawesome/free-solid-svg-icons'; -import { far } from '@fortawesome/free-regular-svg-icons'; -import { SmartimageComponent } from './smartimage/smartimage.component'; -import { ConfirmDialogComponent } from './confirm-dialog/confirm-dialog.component'; -import { NgOpenCVModule, OpenCVOptions } from "ng-open-cv"; +import {FormsModule} from '@angular/forms'; +import {LoadConfigCsvComponent} from './load-config-csv/load-config-csv.component'; +import {LoadConfigTxtComponent} from './load-config-txt/load-config-txt.component'; +import {LoadConfigEmptyComponent} from './load-config-empty/load-config-empty.component'; +import {LicenseInfoComponent} from './license-info/license-info.component'; +import {GcpsMapComponent} from './gcps-map/gcps-map.component'; +import {ImagesTaggerComponent} from './images-tagger/images-tagger.component'; +import {LeafletModule} from '@asymmetrik/ngx-leaflet'; +import {fas} from '@fortawesome/free-solid-svg-icons'; +import {far} from '@fortawesome/free-regular-svg-icons'; +import {SmartimageComponent} from './smartimage/smartimage.component'; +import {ConfirmDialogComponent} from './confirm-dialog/confirm-dialog.component'; +import {NgOpenCVModule, OpenCVOptions} from 'ng-open-cv'; +import {MatSlideToggleModule} from '@angular/material/slide-toggle'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; const openCVConfig: OpenCVOptions = { scriptUrl: `assets/opencv/opencv.js`, @@ -51,6 +53,8 @@ const openCVConfig: OpenCVOptions = { FormsModule, LeafletModule.forRoot(), NgOpenCVModule.forRoot(openCVConfig), + MatSlideToggleModule, + BrowserAnimationsModule ], providers: [ { diff --git a/src/app/export-config/export-config.component.html b/src/app/export-config/export-config.component.html index 47c83a2..2e723df 100644 --- a/src/app/export-config/export-config.component.html +++ b/src/app/export-config/export-config.component.html @@ -13,7 +13,7 @@