You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CITATION.cff
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,16 @@ abstract: "CL-web-components provides a collection of Web Components used by Cal
8
8
The following are the components currently provided.
9
9
10
10
11
-
`a-to-z-ul`
11
+
`ul-a-to-z`
12
12
: 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.
13
13
14
-
`csv-textarea`
14
+
`textarea-csv`
15
15
: This is a textarea like component who's innerHTML content is CSV data. The component will display this as an editable table.
16
16
17
-
`input-agent-list`
17
+
`textarea-agent-list`
18
18
: This element wraps a textarea containing a list of agents expressed as JSON.
19
19
20
-
`sortable-table`
20
+
`table-sortable`
21
21
: 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."
This is a new endevour for Caltech Library. Our practices are evolving as we devlop this project and we periodically make course corrections. In I hope to highlight approaches or technique that proved useful.
5
+
6
+
## Heuristics
7
+
8
+
- this project is focused on web components useful to Libraries, Archives and Museums
9
+
- when a component extends a standard HTML element the standard element name should be used as a prefix, e.g. `<textarea-agent-list>`, `<ul-a-to-z-list>`
Copy file name to clipboardExpand all lines: INSTALL.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,24 @@
1
1
2
2
# CL-web-components
3
3
4
-
Current the CL-web-components can be downloaded from the GitHub, <https://github.com/caltechlibrary/CL-web-components>, or import as [ES6 Modules]()from <https://caltechlibrary.github.io/CL-web-components> followed by the module's JavaScript filename.
4
+
The CL-web-components repository provide web components for Library, Archive and Museum related projects implemented at Caltech Library. They are available for import from <https://caltechlibrary.github.io/CL-web-components> using the following import statement, `import * as clwc from "https://caltechlibrary.github.io/CL-web-compents/mod.js".
5
5
6
-
The `csv-textarea` web component is importable using `import { CSVTextarea } from 'https://caltechlibrary.github.io/CL-web-components/csvtextarea.js';`. You can import it into your HTML document using an ES6 script element in your web page, `<script type="module" src="https://caltechlibrary.github.io/CL-web-components/csvtextarea.js"></script>`.
6
+
It recommended that you download the Zip file containing the individual components as well as the bundled components from <https://github.com/caltechlibrary/CL-web-components/releases>. Each component is bundled individually as well as all together in the file `cl-web-components.js`.
7
7
8
-
The `a-to-z-ul` web component is importable using `import { AtoZUL } from 'https://caltechlibrary.github.io/CL-web-components/a_to_z_ul.js';`. You can import it into your HTML document using an ES6 script element in your web page, `<script type="module" src="https://caltechlibrary.github.io/CL-web-components/a_to_z_url.js"></script>`.
8
+
The zip files are provided for each release. They include the release number in the filename. The combined bundle includes the version, releaseDate, releaseHash and licenseText in the bundle.
9
+
10
+
Here's an example of getting the v0.0.11 `cl-web-compponents.js` combined bundled from the release on macOS or Linux.
Copy file name to clipboardExpand all lines: README.md
+20-9Lines changed: 20 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,40 +1,51 @@
1
1
2
-
# CL-web-components
2
+
3
+
# CL-web-components 0.0.11
3
4
4
5
CL-web-components provides a collection of Web Components used by Caltech Library in various web sites and projects.
5
6
6
7
The following are the components currently provided.
7
8
8
9
9
-
`a-to-z-ul`
10
+
`ul-a-to-z`
10
11
: 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.
11
12
12
-
`csv-textarea`
13
+
`textarea-csv`
13
14
: This is a textarea like component who's innerHTML content is CSV data. The component will display this as an editable table.
14
15
15
-
`input-agent-list`
16
+
`textarea-agent-list`
16
17
: This element wraps a textarea containing a list of agents expressed as JSON.
17
18
18
-
`sortable-table`
19
+
`table-sortable`
19
20
: 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.
20
21
21
22
## Release Notes
22
23
23
-
- version: 0.0.9
24
+
- version: 0.0.11
24
25
- status: wip
25
-
- released: 2025-07-03
26
+
- released: 2025-07-07
27
+
28
+
Renamed components to use a prefix of the standard element name they are extending.
26
29
27
-
Added a new `<input-agent-list></input-agent-list>` web component. This allows you to use a textarea containing a list of agents (people and organizations)
28
-
to be presented as a friendly editing element while preserving the textarea with JSON as a fallback.
0 commit comments