From 1d208d1c539a6afb8db571401bb442d71b8598e3 Mon Sep 17 00:00:00 2001 From: Tobias Schweizer Date: Tue, 26 Jan 2021 14:35:09 +0100 Subject: [PATCH] feat(viewer): integrate file upload component in form logic (DSP-1257) (#264) * feat(viewer): add @Output to upload comp. * feat(viewer): add @Output to upload comp. * test(viewer): add test host comp. to UploadFileComponent specs * refactor(viewer): remove Outputs from file upload comp. * feat(viewer): add methods for new and updated values to upload file comp. * tests(viewer): add specs to upload file comp. * refactor(playground): remove Output bindings from file upload playground comp. * tests(viewer): add specs to upload file comp. * refactor(viewer): file upload comp. reset form * tests(viewer): add specs to upload file serv. * refactor(viewer): ordered imports --- .../upload-file/upload-file.component.html | 2 +- .../upload-file/upload-file.component.spec.ts | 154 ++++++++++++++---- .../upload-file/upload-file.component.ts | 103 ++++++++++-- .../services/upload-file.service.spec.ts | 6 + .../upload-playground.component.html | 2 +- .../upload-playground.component.ts | 5 +- 6 files changed, 216 insertions(+), 56 deletions(-) diff --git a/projects/dsp-ui/src/lib/viewer/representation/upload-file/upload-file.component.html b/projects/dsp-ui/src/lib/viewer/representation/upload-file/upload-file.component.html index 74a4484fb..1f340bb26 100644 --- a/projects/dsp-ui/src/lib/viewer/representation/upload-file/upload-file.component.html +++ b/projects/dsp-ui/src/lib/viewer/representation/upload-file/upload-file.component.html @@ -22,7 +22,7 @@
- thumbnail