LP#1832897: add Angular widget to for selecting multiple linked rows
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 17 Jun 2019 01:53:36 +0000 (21:53 -0400)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 4 Sep 2019 02:30:34 +0000 (19:30 -0700)
commit924a4dc1853705d54e57924ff8f9ef51be395e92
treefb240729c94e9343ae1e7d292feb1bd19e72502c
parentce06bea197ac69ae5c800171c47323cb9185c4a3
LP#1832897: add Angular widget to for selecting multiple linked rows

This component provides a widget to allow the user to select
multiple linked rows. In particularly, it is meant to handle
IDL fields whose underlying database columns are intarrays that
refer to records in another IDL class.

The widget's user interface consists of an eg-combobox for selecting
new values to add to the list and a list of the existing values.

The component has the following attributes:

- idlClass: IDL class of the records being linked to
- linkedLibraryLabel: if supplied, specifies that the display
  label in the comboox should include the library shortname as
  found in the specified field.
- startValue: init value to display

This component emits onChange events.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/share/multi-select/multi-select.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/multi-select/multi-select.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/common.module.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html