Currencies
Description
Currencies and exchange-rate administration pages for Enso UI.
Installation
Install the package:
yarn add @enso-ui/currencies
This package is also available through the full enso-ui workspace bundle.
Features
- ships the currencies and exchange-rates administration page modules
- exports the
Conversionservice used to call the backend conversion endpoint - includes a reusable
Currencieswidget and the Pinia currency store helpers - ships the route modules for currencies and exchange-rates list/create/edit flows
Usage
import Conversion from '@enso-ui/currencies/src/services/Conversion';
const result = await new Conversion()
.from(1)
.to(2)
.amount(100)
.date('2026-04-20')
.handle();
API
CurrenciesIndex
Currencies table page.
Import: @enso-ui/currencies/src/bulma/pages/currencies/Index.vue
CurrenciesCreate
Create page for a currency record.
Import: @enso-ui/currencies/src/bulma/pages/currencies/Create.vue
CurrenciesEdit
Edit page for an existing currency record.
Import: @enso-ui/currencies/src/bulma/pages/currencies/Edit.vue
ExchangeRatesIndex
Exchange-rates table page.
Import: @enso-ui/currencies/src/bulma/pages/exchangeRates/Index.vue
ExchangeRatesCreate
Create page for an exchange-rate record.
Import: @enso-ui/currencies/src/bulma/pages/exchangeRates/Create.vue
ExchangeRatesEdit
Edit page for an exchange-rate record.
Import: @enso-ui/currencies/src/bulma/pages/exchangeRates/Edit.vue
Conversion
Fluent service object for currency conversion requests.
Import: @enso-ui/currencies/src/services/Conversion.js
Methods:
from(id)to(id)amount(value)date(value)handle()
Routes
administration/currencies
Route group:
administration.currencies.indexadministration.currencies.createadministration.currencies.edit
Pages:
src/bulma/pages/currencies/Index.vuesrc/bulma/pages/currencies/Create.vuesrc/bulma/pages/currencies/Edit.vue
administration/exchangeRates
Route group:
administration.exchangeRates.indexadministration.exchangeRates.createadministration.exchangeRates.edit
Pages:
src/bulma/pages/exchangeRates/Index.vuesrc/bulma/pages/exchangeRates/Create.vuesrc/bulma/pages/exchangeRates/Edit.vue
The package ships two administration route groups: one for currencies and one for exchange rates.
Companion Backend Package
The backend package provides the tables, forms, and conversion endpoint consumed by the frontend pages and the Conversion service.
Depends On
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!