LP#1708291: teach egIDL a new fieldmapper object representation
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 21 Apr 2017 16:05:45 +0000 (12:05 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 1 Sep 2017 16:47:01 +0000 (12:47 -0400)
commit973f032feb02c24cf201fdb26ec0ac78b18aaa42
treeaaeb10a99d208af4574697f14787312f9e1f543b
parent1660b0db5004ae6032c78dcc347305e08ac23347
LP#1708291: teach egIDL a new fieldmapper object representation

This patch teaches egIDL how to represent fieldmapper objects
as objects with attributes rather than getter/setters. This
allows FM objects to be more easily bound to common to Angular
input widgets, avoiding the verbosity of getterSetter ng-options
and the fact that some widgets like uib-datepicker-popup don't
support getterSetter in the first place.

Usage is:

  hash = obj.toTypedHash()

and

  obj = new egCore.idl.fromTypedHash(hash);

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/web/js/ui/default/staff/services/idl.js