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)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 29 Aug 2017 19:26:38 +0000 (15:26 -0400)
commitd19b89ee11067244ed992efca32b699c82dae470
tree29a49e1dadcd561a787c04400ce8d9d2be99c5bb
parent48576803b0fc755c5a9c9ecd58ba42ac479668e5
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>
Open-ILS/web/js/ui/default/staff/services/idl.js