@uiowa/uiowa-account
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

UIOWA Account

An Angular library for using UIOWA MFK or UNI Account forms, output and favorites. Dependencies: Angular, ng-bootstrap, Bootstrap 4 (css)

Build Status npm

Demo

##To Do

  • form version account-input
  • favorite integration account-favorite
  • tests

Models

  • Element: an object to represent a component of accounting structure
const e1 = new Element('FUND', 3, 'FundElem', true);
  • Account: an object to represent the full accounting structure including value
const account = new Account('240-17-3215-03000-53515806--999-00000-21-7474-', '-', [e1]);

Components

  • <uiowa-account-string></uiowa-account-string>: Used for outputting string representation of account with tooltips

Usage

<uiowa-account-string [account]="account"></uiowa-account-string>

<uiowa-account-input [account]="account"></uiowa-account-input>
import { Component } from '@angular/core';
import { Account, Element } from '@uiowa/uiowa-account';

@Component({
...
})
export class AppComponent {
  uiConfig = [
    new Element('FUND', 3, 'FundElem', true),
    new Element('ORG', 2, 'OrgElem', true),
    new Element('DEPT', 4, 'DeptElem', true),
    new Element('SDEPT', 5, 'SDeptElem', true),
    new Element('GRNT/PRGM', 8, 'GrantPgmElem', true),
    new Element('IACCT', 4, 'IAcctElem', true),
    new Element('OACCT', 3, 'OrgAcctElem', true),
    new Element('DACCT', 5, 'DeptAcctElem', true),
    new Element('FNC', 2, 'FuncElem', true),
    new Element('CCTR', 4, 'CostCtrElem', true)
  ];

  account = new Account(
    '240-17-3215-03000-53515806--999-00000-21-7474-',
    '-',
    this.uiConfig
  );
}

Package Sidebar

Install

npm i @uiowa/uiowa-account

Weekly Downloads

7

Version

0.0.7

License

MIT

Unpacked Size

380 kB

Total Files

50

Last publish

Collaborators

  • gvamsilatha
  • a_clemence
  • vipetrul
  • markahrens
  • fbis-uiowa
  • codydroz
  • jacobbp25
  • changhuixu