Caltech Library logo

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.

footer-global
This component provides a standard footer with detailed information about the library
footer-global-lite
This component provides a lighter weight version of the footer-global component
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.3 or better is now a requirement to build the bundled versions.

Two new web components are now included, `<footer-global></footer-global>` and `<footer-global-lite></footer-global-lite>`.

A new CSS file was added, `css/code-blocks.css` and JavaScript modules, `copyToClipboard.js` for enhancing codeblocks.

Authors

Maintainers

Software Requirements

Software Suggestions

Runtime platform

HTML5-compatible web browser