@enso-ui/documents

Document list widgets and card wrappers for Enso UI.
9,354
Install
npm install @enso-ui/documents
Latest Version:4.2.7
Vue:3
Older releases:2
License:MIT
Last Updated:Oct 16, 2026
Links: GitHub  ·  npm
Maintainer: aocneanu

Documents

License Stable Downloads Vue JavaScript SCSS npm Issues Merge Requests

Description

Documents provides reusable document-list widgets for Enso UI, including a standalone list component and a card wrapper with refresh and badge controls.

The package is backend-driven and is typically embedded in edit pages where users need to upload, filter, preview, and remove files attached to another resource.

Installation

Install the package:

yarn add @enso-ui/documents

This package is also available through the full enso-ui workspace bundle.

Features

  • exports Documents for inline document lists with upload and filter controls
  • exports DocumentsCard for dashboard-style card integration with count badges
  • supports custom toolbar rendering through the controls slot
  • delegates file preview and deletion to the shared files package

Usage

<script>
import { Documents, DocumentsCard } from '@enso-ui/documents/bulma';

export default {
    components: { Documents, DocumentsCard },
};
</script>

API

Documents

Inline document list widget.

Import: @enso-ui/documents/bulma

Props:

  • id: string | number required
  • type: string required
  • query: string default ''
  • compact: boolean default false
  • disableControls: boolean default false
  • disableUpload: boolean default false
  • fileSizeLimit: number default 20971520

Events:

  • update after fetches, uploads, and deletions

Slots:

  • controls with { id, type, uploadLink, fetch, internalQuery }

DocumentsCard

Card wrapper around Documents.

Import: @enso-ui/documents/bulma

Props:

  • icon: string | array | object
  • collapsed: boolean default false
  • id: string | number required
  • type: string required
  • title: string default ''

Events:

  • No public emits.

Companion Backend Package

The backend companion provides the core.documents.* routes and payloads used to list, upload, and destroy document records.

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!

License

MIT

Related Packages

@enso-ui/addresses

Address cards and address-management widgets for Enso UI detail pages.

10,609 0
@enso-ui/comments

Comments cards and inline comment threads for Enso UI.

10,609 0

Version History

Version Released Vue License
4.2.7 ^3.5.0 MIT
4.2.6 ^3.5.0 MIT
4.2.5 ^3.5.0 MIT
4.2.4 ^3.5.0 MIT
4.2.3 ^3.5.0 MIT