LP1830432: Make the org-family-select reusable user/sandbergja/lp1830432_reusable_org_family_select
authorJane Sandberg <sandbej@linnbenton.edu>
Sun, 23 Jun 2019 17:22:20 +0000 (10:22 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Fri, 28 Jun 2019 06:13:30 +0000 (23:13 -0700)
commit7e4d4579ff66c49f3f3aa825db07856a45b9bcdc
tree655ae42281495f0a2ef698b981bd6014b570dc58
parentffcde0b99035f4afee7e527becdf1aa913af6d70
LP1830432: Make the org-family-select reusable

This commit removes Bill Erickson's automagic org unit select with
+Ancestors and +Descendants checkboxes from the admin-page component,
and gives it a component of its own, called <eg-org-family-select>.

This commit also makes it compatible with [(ngModel)], reactive forms,
and any custom Angular validators you might want to throw at it.
Examples of all three are available in the sandbox.

Also includes some component tests.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.spec.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/org-family-select/org-family-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
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.module.ts
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.html
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts