LP1837260 FM Record editor 'inline' display mode
authorBill Erickson <berickxx@gmail.com>
Fri, 19 Jul 2019 21:58:19 +0000 (17:58 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 22 Jul 2019 14:22:51 +0000 (10:22 -0400)
commit2c3b02dd24c3bb3abad471fde1d759ecc2548c82
tree900f79ed7ad02ee7450b254ed0f533cf8b1c1fc9
parent9a4cb65a0656f5c871d8ecf254c198ea6544f79a
LP1837260 FM Record editor 'inline' display mode

Adds support for a new @Input() attribute called "displayMode", which
defaults to "dialog".  When the value is set to "inline", the editor
pane will be rendered inline within the page where the
<eg-fm-record-editor/> element resides.

Adds support for success/fail toasts.

Implements the handlers for the previously defined onSave$, onError$,
and onCancel$ EventEmitters, primarly so callers can interact with the
editor in "inline" mode where no "close()" operation occurs.

Sandbox example included.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html