CL-web-components

CL-web-components provides a collection of Web Components used by Caltech Library across sites and projects.

The following are the components currently provided.

ul-a-to-z
This component takes an innerHTML containing a UL list. The UL list is then turned into an A to Z navigatable UL List. If JavaScript is unavailable then the innerHTML UL remains as a fallback.
textarea-csv
This is a textarea like component who’s innerHTML content is CSV data. The component will display this as an editable table.
textarea-agent-list
This element wraps a textarea containing a list of agents expressed as JSON.
table-sortable
This is a component that takes an innerHTML containing table. It makes the table sortable by the column headings and provides a filter input that lets you enter text to filter by and pick a column to filter on.

Release Notes

This release includes a re-organization of the project source code. Editable code is now maintained in `src/`. The bundled versions are retained in the root of the repository. Distribution versions are generating in the `dist/` directory.

Deno 2.4.1 or better is now a requirement to build the bundled versions.

Additional documentation has been updated and improved in preparation for eventual integration into the Caltech Library design system. The web component, `textarea-csv` now uses the `jsr:@std/csv` library which provides robusts CSV support.

Authors

Maintainers

Software Requirements

Software Suggestions

Runtime platform

HTML5-compatible web browser**