Emails
Description
Emails provides the Enso UI pages and editor components used to draft, edit, schedule, and send email messages.
The package is page-oriented and centers on the reusable EmailForm, which coordinates recipients, send targets, priorities, scheduling, message body, and attachments.
Installation
Install the package:
yarn add @enso-ui/emails
This package is also available through the full enso-ui workspace bundle.
Features
- ships the
/emailsroute group with index, create, and edit pages - exposes the reusable
EmailFormeditor and its helper components - supports recipient selection, send-target switching, priority selection, scheduling, and file attachments
- plugs into backend-driven table and form flows for email records
Usage
import EmailsIndex from '@enso-ui/emails';
import EmailCreate from '@enso-ui/emails/src/bulma/pages/emails/Create.vue';
import EmailEdit from '@enso-ui/emails/src/bulma/pages/emails/Edit.vue';
import EmailForm from '@enso-ui/emails/src/bulma/pages/emails/components/EmailForm.vue';
API
Index
Default export for the email list page.
Import: @enso-ui/emails
Create
Draft-creation page that seeds a new email model and renders EmailForm.
Import: @enso-ui/emails/src/bulma/pages/emails/Create.vue
Edit
Edit page that loads an existing email record and passes it to EmailForm.
Import: @enso-ui/emails/src/bulma/pages/emails/Edit.vue
EmailForm
Reusable email editor.
Import: @enso-ui/emails/src/bulma/pages/emails/components/EmailForm.vue
Props:
email: objectrequired
Events:
submitsubmission-errorcancel
Routes
/emails
Route names:
emails.indexemails.createemails.edit
Pages:
src/bulma/pages/emails/Index.vuesrc/bulma/pages/emails/Create.vuesrc/bulma/pages/emails/Edit.vue
The route group exposes the full emails module: listing, drafting, and editing scheduled or sent messages.
Depends On
@enso-ui/datepicker↗@enso-ui/dropdown↗@enso-ui/forms↗@enso-ui/laravel-validation↗@enso-ui/select↗@enso-ui/tables↗
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!