/**
 * @license
 * Copyright 2019 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.view',
  name: 'CurrencyView',
  extends: 'foam.u2.view.ModeAltView',

  documentation: 'A view for foam.core.UnitValue properties.',

  requires: [
    'foam.u2.CurrencyView',
    'foam.u2.view.ValueView'
  ],

  properties: [
    {
      name: 'readView',
      value: { class: 'foam.u2.view.ValueView' }
    },
    {
      name: 'writeView',
      value: { class: 'foam.u2.CurrencyView' }
    }
  ],
});

/**
 * @license
 * Copyright 2019 The FOAM Authors. All Rights Reserved.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

foam.CLASS({
  package: 'foam.u2.view',
  name: 'CurrencyView',
  extends: 'foam.u2.view.ModeAltView',

  documentation: 'A view for foam.core.Currency properties.',

  requires: [
    'foam.u2.CurrencyView',
    'foam.u2.view.ValueView'
  ],

  properties: [
    {
      name: 'readView',
      value: { class: 'foam.u2.view.ValueView' }
    },
    {
      name: 'writeView',
      value: { class: 'foam.u2.CurrencyView' }
    }
  ],
});

Update CurrencyView.js