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)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 7 Aug 2019 14:57:43 +0000 (14:57 +0000)
commit85a5031b5169bd47b0bf2cbd1b61ce2d8d6a498c
tree163fc683101e9a3540ec10dfd2f8a61820a9c9d6
parentcc477ff445c4f014160a6b049245d0a951e9c244
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>
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