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)
committerKathy Lussier <klussier@masslnc.org>
Wed, 30 Aug 2017 18:42:44 +0000 (14:42 -0400)
commit47c50bbd0c1f0f69a2412c0b8609cbfd3351b916
tree1b5caadc21cb4dc3369c31395707f4dc7cc35f1a
parentbdb6b6071d5c31ab290992a684991ef5e5a7fe88
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>
Open-ILS/web/js/ui/default/staff/services/idl.js