LP#1850547: new Angular file-reader component
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 8 Nov 2019 23:39:34 +0000 (18:39 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 31 Jul 2020 15:35:37 +0000 (11:35 -0400)
commitebbbaf934a1f916a0996da6dadcc64cfbc84d7b1
treea98a72f68cb0979e48e030b4c1484d8b98409ce4
parentb472934e8d607edc77b6fe59c2e41e8f8c445fc9
LP#1850547: new Angular file-reader component

This adds a ControlValueAccessor wrapper around a file
reader form input. Any file loaded via that input is interpreted
as a text file whose lines are to be split into an array on
newlines, with leading and trailng whitespace removed.

Usage is:

<eg-file-reader [(ngModel)]="fileContents">
</eg-file-reader>

Sponsored-by: Evergreen Community Development Initiative
Sponsored-by: Georgia Public Library Service
Sponsored-by: Indiana State Library
Sponsored-by: C/W MARS
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/share/common-widgets.module.ts
Open-ILS/src/eg2/src/app/share/file-reader/file-reader.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/file-reader/file-reader.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts