From 70fb84d6347ce6946eb1ca19c3905ccf37b19387 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Sun, 17 Nov 2019 09:36:37 +0100 Subject: [PATCH] add sorting for gallery --- pdb-js/src/app/app.module.ts | 4 +- .../gallery-view/gallery-view.component.html | 25 ++++++- .../gallery-view/gallery-view.component.scss | 21 ++++-- .../gallery-view/gallery-view.component.ts | 52 ++++++++++++++ .../image-toggle/image-toggle.component.html | 1 + .../image-toggle/image-toggle.component.scss | 0 .../image-toggle.component.spec.ts | 25 +++++++ .../image-toggle/image-toggle.component.ts | 38 ++++++++++ .../visualization-page.component.html | 5 +- .../visualization-page.component.scss | 3 +- .../visualization-page.component.ts | 2 + pdb-js/src/assets/img/ascending-filter.svg | 70 ++++++++++++++++++- pdb-js/src/assets/img/descending-filter.svg | 67 +++++++++++++++++- pdb-js/src/styles.scss | 10 +++ 14 files changed, 310 insertions(+), 13 deletions(-) create mode 100644 pdb-js/src/app/image-toggle/image-toggle.component.html create mode 100644 pdb-js/src/app/image-toggle/image-toggle.component.scss create mode 100644 pdb-js/src/app/image-toggle/image-toggle.component.spec.ts create mode 100644 pdb-js/src/app/image-toggle/image-toggle.component.ts diff --git a/pdb-js/src/app/app.module.ts b/pdb-js/src/app/app.module.ts index 579a93c..e8aaf6d 100644 --- a/pdb-js/src/app/app.module.ts +++ b/pdb-js/src/app/app.module.ts @@ -23,6 +23,7 @@ import { QueryAutocompleteComponent } from './query-autocomplete/query-autocompl import { LimitByComponent } from './limit-by/limit-by.component'; import { PlotViewComponent } from './plot-view/plot-view.component'; import { GalleryViewComponent, GalleryItemView } from './gallery-view/gallery-view.component'; +import { ImageToggleComponent } from './image-toggle/image-toggle.component'; @NgModule({ declarations: [ @@ -36,7 +37,8 @@ import { GalleryViewComponent, GalleryItemView } from './gallery-view/gallery-vi LimitByComponent, PlotViewComponent, GalleryViewComponent, - GalleryItemView + GalleryItemView, + ImageToggleComponent ], imports: [ BrowserModule, diff --git a/pdb-js/src/app/gallery-view/gallery-view.component.html b/pdb-js/src/app/gallery-view/gallery-view.component.html index 094ce5f..b68101e 100644 --- a/pdb-js/src/app/gallery-view/gallery-view.component.html +++ b/pdb-js/src/app/gallery-view/gallery-view.component.html @@ -1,4 +1,27 @@ - +
\ No newline at end of file + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/pdb-js/src/assets/img/descending-filter.svg b/pdb-js/src/assets/img/descending-filter.svg index b3e8196..9753e1a 100644 --- a/pdb-js/src/assets/img/descending-filter.svg +++ b/pdb-js/src/assets/img/descending-filter.svg @@ -1 +1,66 @@ - \ No newline at end of file + + + + + + image/svg+xml + + + + + + + + + diff --git a/pdb-js/src/styles.scss b/pdb-js/src/styles.scss index 2ce1286..4c24d1f 100644 --- a/pdb-js/src/styles.scss +++ b/pdb-js/src/styles.scss @@ -93,9 +93,19 @@ mat-form-field:last-child { mat-form-field.pdb-form-number { width: 3.5em; } +.pdb-form-icon-small { + display: inline-block; + width: 2em; + vertical-align: middle; +} mat-form-field.pdb-form-mid { width: 7.5em; } +mat-form-field.pdb-form-wide { + width: 10em; +} + + .errorPanel {