@uvalib/web-components 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +47 -7
- package/dist/components/uvalib-image-regions/UvalibImageRegions.d.ts +9 -1
- package/dist/components/uvalib-image-regions/UvalibImageRegions.js +39 -8
- package/dist/components/uvalib-image-regions/UvalibImageRegions.js.map +1 -1
- package/dist/components/uvalib-lightbox/UvalibLightbox.d.ts +41 -2
- package/dist/components/uvalib-lightbox/UvalibLightbox.js +161 -10
- package/dist/components/uvalib-lightbox/UvalibLightbox.js.map +1 -1
- package/dist/components/uvalib-map/UvalibMap.d.ts +79 -10
- package/dist/components/uvalib-map/UvalibMap.js +502 -108
- package/dist/components/uvalib-map/UvalibMap.js.map +1 -1
- package/dist/custom-elements.json +554 -44
- package/dist-cdn/custom-elements.json +554 -44
- package/dist-cdn/manifest.json +1 -1
- package/dist-cdn/skills/uvalib-web-components/SKILL.md +2 -2
- package/dist-cdn/skills/uvalib-web-components/reference/components.md +5 -4
- package/dist-cdn/uvalib-image-regions.js +27 -14
- package/dist-cdn/uvalib-image-regions.js.map +1 -1
- package/dist-cdn/uvalib-lightbox.js +100 -34
- package/dist-cdn/uvalib-lightbox.js.map +1 -1
- package/dist-cdn/uvalib-map.js +302 -106
- package/dist-cdn/uvalib-map.js.map +1 -1
- package/package.json +1 -1
- package/skills/uvalib-web-components/SKILL.md +2 -2
- package/skills/uvalib-web-components/reference/components.md +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v1.4.0 — 2026-11-21
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- group markers whose targets would overlap; zoom or ring to part them
|
|
8
|
+
- data-regions-list lends the page's own region list to the viewer (issue #22)
|
|
9
|
+
|
|
10
|
+
### Fixes
|
|
11
|
+
|
|
12
|
+
- group only markers that would overlap, not ones within 24px
|
|
13
|
+
|
|
14
|
+
### Other
|
|
15
|
+
|
|
16
|
+
- Merge branch 'integrate/addison-followups': lightbox page region lists (#22), map marker groups (#23)
|
|
17
|
+
- Merge branch 'feat/map-colocated' into integrate/addison-followups
|
|
18
|
+
- Merge branch 'feat/lightbox-regions-list' into integrate/addison-followups
|
|
19
|
+
- no this-alias in lendList (issue #22)
|
|
20
|
+
|
|
3
21
|
## v1.3.0 — 2026-11-21
|
|
4
22
|
|
|
5
23
|
### Features
|
package/README.md
CHANGED
|
@@ -623,6 +623,42 @@ Both follow dark mode through the role tokens and reflow at 320px; `no-style` ke
|
|
|
623
623
|
</uvalib-lightbox>
|
|
624
624
|
```
|
|
625
625
|
|
|
626
|
+
With your own actions in each entry, give the viewer the page's list: `data-regions-list` names an `<ol>` (or `<ul>`) of `<li data-xywh>` anywhere in the page, usually `hidden`.
|
|
627
|
+
|
|
628
|
+
```html
|
|
629
|
+
<uvalib-lightbox regions-label="People">
|
|
630
|
+
<a
|
|
631
|
+
href="board-large.jpg"
|
|
632
|
+
data-caption="The Board of Visitors, 2019"
|
|
633
|
+
data-regions-list="people-board-2019"
|
|
634
|
+
data-image-width="3000"
|
|
635
|
+
data-image-height="2000"
|
|
636
|
+
>
|
|
637
|
+
<img src="board-small.jpg" alt="The Board of Visitors, 2019" width="300" height="200" />
|
|
638
|
+
</a>
|
|
639
|
+
</uvalib-lightbox>
|
|
640
|
+
|
|
641
|
+
<ol id="people-board-2019" class="people" hidden>
|
|
642
|
+
<li data-xywh="410,380,220,260">
|
|
643
|
+
Tim Kaine
|
|
644
|
+
<button type="button" data-person="kaine" data-act="confirm">Confirm Tim Kaine</button>
|
|
645
|
+
<button type="button" data-person="kaine" data-act="reject">Not Tim Kaine</button>
|
|
646
|
+
</li>
|
|
647
|
+
<li data-xywh="1210,400,200,250" data-label="Person 2">
|
|
648
|
+
Person 2
|
|
649
|
+
<button type="button" data-face="2" data-act="name">Name person 2</button>
|
|
650
|
+
</li>
|
|
651
|
+
</ol>
|
|
652
|
+
|
|
653
|
+
<script type="module">
|
|
654
|
+
// The buttons are the page's: listen on the list (it is the same element while open).
|
|
655
|
+
document.querySelector('#people-board-2019').addEventListener('click', (e) => {
|
|
656
|
+
const button = e.target.closest('button[data-act]');
|
|
657
|
+
if (button) saveAnswer(button.dataset); // your own code
|
|
658
|
+
});
|
|
659
|
+
</script>
|
|
660
|
+
```
|
|
661
|
+
|
|
626
662
|
- **The list is the way in.** Every region is an entry in the list, with the same name and the page's own links and buttons. The outlines are a visual aid: the overlay is `aria-hidden` and the outlines are not focusable, so no region is a second tab stop. Clicking an outline moves focus to its entry (and fires `select`); from there Tab reaches its links and buttons. Labels shown on a highlighted outline are the list's text, so nothing is only on hover.
|
|
627
663
|
- **Regions.** An `<ol>` child whose `<li>` items carry `data-xywh`, IIIF and Media Fragments style: `percent:x,y,w,h`, or pixels (`x,y,w,h`, `pixel:x,y,w,h` or `xywh=…`) of the image's natural size, or of `image-width` × `image-height` when the image is a smaller derivative of the original (a IIIF `,880` size, say). A label is `data-label`, else the entry's first link, else its text without its buttons. `data-id` (or `id`) is sent back in events. Or set `items` (`{ id?, label, x, y, w, h, unit?: 'px' | 'percent', href?, description? }[]`): it replaces the child list. A pixel region is drawn once the image's size is known.
|
|
628
664
|
- **Host content.** The child list and everything in it stay the page's: the element only numbers, positions and highlights them (it adds `data-uvalib-region` and, while highlighted, `data-uvalib-active` to each `<li>`, and `tabindex="-1"` when an outline moves focus to one). Your buttons' events are yours.
|
|
@@ -631,6 +667,7 @@ Both follow dark mode through the role tokens and reflow at 320px; `no-style` ke
|
|
|
631
667
|
- **Layout.** The image keeps its own width (at most the element's) and the list sits beside it when 14rem is left, else under it, so it reflows at 320px. Outlines are in percent and scale with the image; give the image `width` and `height` so its space is reserved. `base.css` gives the children the same layout before the element upgrades, so the image does not move. `hide-outlines` hides the outlines and keeps the list. `label` (default “Regions”) is the list's heading; `heading-level` sets its level (default: one below the heading before it).
|
|
632
668
|
- **Events.** `highlight` (`detail: { item, index }`, `item` null when none) as hover or focus changes the highlight; `select` (`detail: { item, index }`) when an outline is clicked. Both bubble and are composed.
|
|
633
669
|
- **Lightbox.** On `<uvalib-lightbox>`, `data-regions` on a link is a JSON array of region objects, or `xywh` values each followed by its label, separated by `;` (`percent:10,20,30,40 Person 1; 160,120,320,240 Sign`; use JSON when a label contains `;`). Or set the lightbox's `regions` property to a function from `{ element, id, href, index }` to regions. An image with regions shows the outlines over it and their list beside it, and a “Show regions” toggle (`aria-pressed`) hides the outlines; `regions-label` names the list. `<uvalib-image-regions>` is loaded the first time it is needed. Because the viewer asks for a resized IIIF image, give pixel regions `data-image-width` and `data-image-height` (the original's size), or use percent. Images without regions are unchanged.
|
|
670
|
+
- **The page's own list in the viewer.** `data-regions-list="<id>"` on a lightbox link (or the lightbox's `regionsList` property, a function from `{ element, id, href, index }` to the list element, for apps) names an `<ol>` or `<ul>` of `<li data-xywh>` entries in the same page (or the same shadow root as the lightbox), usually `hidden`. While that image is open the list is its region list, exactly as `<uvalib-image-regions>` uses its child list: the numbers, the highlight both ways and an outline click focusing its entry are the component's; the entries and their buttons and links stay yours. It is the same element, not a copy, so listeners you added (on the buttons or on the list) keep working, and when the image changes or the viewer closes it goes back where it was, with its own `hidden` state, and without the `data-uvalib-*` attributes or `tabindex` the viewer added. Change it while it is home (a name confirmed, a person added) and the next open shows the change; changes while it is open are seen too. If an image has both, the list wins over `data-regions` and the `regions` callback (with one console warning). **Styles:** in shadow mode the list becomes a child of `<uvalib-lightbox>` (with `slot="uvalib-regions-list"`) and is slotted into the viewer, never moved into the shadow root, so the page's CSS keeps applying; with `no-shadow-dom` it is moved into the viewer's `<uvalib-image-regions>`, still in the page. Either way it leaves its parent while open, so style it by its own id or class (`.people button`), not by where it sits in the page (`.sidebar ol button`). **Names:** the accessible names of your actions are yours, and must be unique in the list: “Confirm Tim Kaine”, “Not Tim Kaine”, “Name person 2”, never three “Confirm” buttons. A region's label is `data-label`, else the entry's first link, else its text without its buttons. If focus is in the list when the visitor moves to the next image, it goes to Close. Analytics are unchanged: outline clicks report the list's heading (`regions-label`) and the number, never a label.
|
|
634
671
|
- **Analytics.** `select` when an outline is clicked, with the list's `label` and the region's number. Never a region's label: it may be a person's name. Nothing on hover or focus.
|
|
635
672
|
- **Motion and styles.** The dimming fades only without `prefers-reduced-motion: reduce`. Shadow and light DOM; `no-style` keeps the layout and the outlines.
|
|
636
673
|
|
|
@@ -696,8 +733,9 @@ map.addEventListener('select', (e) => console.log(e.detail.item.id));
|
|
|
696
733
|
|
|
697
734
|
- **Leaflet.** The `leaflet` property (the module namespace, or its `default`) wins; otherwise `window.L` (leaflet.js from a script tag, also loaded `async` or after the element: it looks again once the page has loaded). Without either, only the list is shown, with one console warning a second after the page loads. Leaflet's `leaflet.css` is **optional**: the element carries the layout rules the map needs (panes, tiles, controls, tooltip), in shadow DOM and light DOM alike, so there is nothing to adopt into the shadow root. A page that also loads `leaflet.css` (for its own maps) keeps the element's sizes and colours.
|
|
698
735
|
- **Places.** `items` (`[{ id?, name, lat, lng, count?, href?, description? }]`) wins over the children while non-empty. Children: one `<ul>` or `<ol>` of `<li>`, each with an `<a href>` carrying `data-lat`, `data-lng` and optionally `data-count`, `data-id` and `data-description` (or those on the `<li>` itself, for a place without a page). A place without valid coordinates is listed but has no marker. Hrefs other than relative, http(s), `mailto:` and `tel:` become plain text. The list follows changes to the children.
|
|
699
|
-
- **Markers.** Each is a real link (a button when there is no `href`) named “The Rotunda, 2,702 photos”: `count-label` is the noun (default “items”; a count of one drops a trailing s). The dot is 24 to 56px, by the square root of the count, in a target of at least 44px; smaller dots sit above larger ones. Tab, or the arrow keys, Home and End, move between markers; Enter (or Space) follows the link, or chooses the place. A hover or focus shows a tooltip with the name and count (it is also in the marker's name and the list, never the only source) that stays until another place is hovered or focused, the pointer leaves the map, or Escape.
|
|
700
|
-
- **
|
|
736
|
+
- **Markers.** Each is a real link (a button when there is no `href`) named “The Rotunda, 2,702 photos”: `count-label` is the noun (default “items”; a count of one drops a trailing s). The dot is 24 to 56px, by the square root of the count, in a target of at least 44px; smaller dots sit above larger ones. Tab, or the arrow keys, Home and End, move between the markers shown (a group counts as one, and an open ring's places follow it); Enter (or Space) follows the link, or chooses the place. A hover or focus shows a tooltip with the name and count (it is also in the marker's name and the list, never the only source) that stays until another place is hovered or focused, the pointer leaves the map, or Escape.
|
|
737
|
+
- **Places close together.** Markers whose 44px targets would overlap at the current zoom (WCAG 2.5.8 needs nothing more for targets that size) are drawn as **one group marker**, recomputed after every zoom, resize and change of places (greedy, in screen space, largest count first; no plugin). A group is a button showing how many places it holds, with a second ring (not colour alone), sized by their summed count (32 to 64px), and named “The Rotunda and 2 more places, 3,610 photos”: the largest place's name, “and N more” with `place-label` as the noun (default “places”; one drops a trailing s: “and 1 more place”; set `place-label="rooms"` for “and 2 more rooms”), then the total. Choosing it (click, Enter or Space) zooms in, centred on its places, to the first level at which they part (a jump under reduced motion), and focus moves to the largest place's marker. When they cannot part (one shared point, or already at the maximum zoom) it spreads them in a ring around the group instead, each 44px target 24px clear of the others and of the group (`aria-expanded="true"` on the group), with focus on the first; Escape, choosing the group again, or any zoom closes the ring and focus returns to the group. `select` fires only for places, never for a group. Every place stays reachable by pointer (group, then zoom or ring), by keyboard and by the list. A very large group's ring can be wider than the map (it pans to centre it).
|
|
738
|
+
- **The list and the map are linked.** Hovering or focusing a list entry highlights its marker (a ring and a larger dot, not colour alone) and brings it into view; hovering or focusing a marker outlines its list entry. A place inside a group highlights the group, whose tooltip names that place (“Dome Room, 600 photos, One of 3 places here”); a group highlights all its places' entries.
|
|
701
739
|
- **The region.** The map is `role="region"` named “<label>, map” (`label` is required: one console warning without it), after a “Skip map, go to the list” link (shown on focus; it moves focus to the list, which is named “<label>, list”) and a visible line of key instructions. With the map itself focused, Leaflet's own keys pan (arrows) and zoom (+ and −). The wheel does not zoom (no scroll trap); the zoom buttons are 44px with the library focus ring. The attribution stays, readable (13px, underlined links).
|
|
702
740
|
- **Opening view.** The bounds of the places, as close as the largest marker allows (half zoom steps), moved clear of the zoom buttons and attribution when a marker would sit under them; or `center="lat,lng"` and `zoom`. It refits on resize until the visitor moves the map.
|
|
703
741
|
- **Tiles.** `tile-url` (default `https://tile.openstreetmap.org/{z}/{x}/{y}.png`) and `attribution` (HTML; default “© OpenStreetMap contributors”). OpenStreetMap's tiles are for light use only: their [tile usage policy](https://operations.osmfoundation.org/policies/tiles/) asks for the attribution (kept here) and no heavy traffic. For a busy page use a library-hosted tile server or a commercial provider, and set both attributes.
|
|
@@ -705,7 +743,7 @@ map.addEventListener('select', (e) => console.log(e.detail.item.id));
|
|
|
705
743
|
- **Motion, colours and layout.** `prefers-reduced-motion` turns off Leaflet's zoom, fade and marker animations, inertia and the highlight's transition, and panning to a place jumps. In forced colors the markers, controls, tooltip and list entries keep borders, and the highlight is a Highlight outline. The map is `--uvalib-map-height` tall (default `min(24rem, 75vw)`, at least 12rem); the list sits under it in as many columns as fit, one on a phone, with no sideways scroll at 320px.
|
|
706
744
|
- **Before the script loads.** `base.css` shows the key instructions and holds the map's height above the child list, so the list does not move when the map is drawn.
|
|
707
745
|
- **Modes.** Shadow DOM (default) or `no-shadow-dom`; `no-style` keeps Leaflet's layout, the map height, the 44px targets and the hidden marker names, and drops the colours.
|
|
708
|
-
- **Events and analytics.** `select` (`detail: { item }`, bubbling, composed and cancelable) when a marker is chosen; cancel it to stay on the page for a place with an `href`. Analytics: `select` with the map's label and the place's position from 1, and `zoom` with the label and the zoom level, 1 s after the last zoom-button press. Never a place's name, coordinates or URL.
|
|
746
|
+
- **Events and analytics.** `select` (`detail: { item }`, bubbling, composed and cancelable) when a marker is chosen; cancel it to stay on the page for a place with an `href`. Analytics: `select` with the map's label and the place's position from 1, `expand` with the label and the number of places in the group chosen, and `zoom` with the label and the zoom level, 1 s after the last zoom-button press. Never a place's name, coordinates or URL.
|
|
709
747
|
|
|
710
748
|
## Rendering modes
|
|
711
749
|
|
|
@@ -1482,6 +1520,7 @@ Static sites that search with [Pagefind](https://pagefind.app) (such as Electron
|
|
|
1482
1520
|
| `uvalib-back-to-top` | `click` | | |
|
|
1483
1521
|
| `uvalib-map` | `select` (a marker chosen: click, Enter or Space) | the map's label (never the place's name, coordinates or URL) | the place's position, from 1 |
|
|
1484
1522
|
| `uvalib-map` | `zoom` (1 s after the last zoom-button press) | the map's label | the zoom level |
|
|
1523
|
+
| `uvalib-map` | `expand` (a group of places chosen: it zooms in or opens its ring) | the map's label | the number of places in the group |
|
|
1485
1524
|
| `uvalib-filter` | `facet-change` | `<filter title>: <value>` (the facet value as the search service returns it, such as a format, library or subject; cut at 100 characters) | 1 checked, 0 unchecked |
|
|
1486
1525
|
| `uvalib-filter` | `scope-change` | the scope's label | 1 pressed, 0 not |
|
|
1487
1526
|
| `uvalib-filter` | `see-more`, `see-less` | the filter's title | |
|
|
@@ -2638,7 +2677,7 @@ An image with numbered region outlines (people, objects, inscriptions) and a lis
|
|
|
2638
2677
|
|
|
2639
2678
|
### `<uvalib-lightbox>`
|
|
2640
2679
|
|
|
2641
|
-
An accessible image viewer over a set of plain links. With JavaScript a primary click opens a modal dialog; without it (or with a modified click) the link opens the image as before. Wrap the links, or point at them with `selector` (for example `a.pb-image` on a reading page). There is no autoplay and no carousel. The dialog is labelled by the caption (`data-caption`, else the image alt, else the link text). Focus moves to Close on open and back to the trigger on close. Escape and a click on the backdrop close it. With more than one image, Previous and Next and the arrow keys move through the set (wrapping), and a polite “3 of 13” counter is shown. Full size opens the original image in a new tab. A IIIF Image API URL keeps its region; only the size becomes `!W,H` for the viewport. TIFF and JPEG2000 URLs are left as written. `url-param` (for example `photo`) keeps `?photo=<id>` in sync, including on a hash route (`#/text?photo=<id>`): opening pushes a history entry, stepping replaces it, and Back closes. Optional details: children with `slot="details"` (and `data-for` equal to the item's id or its position from 1; without `data-for` they show for every image), or `data-details-id` on a link pointing at an element elsewhere on the page. Either is shown inside the dialog and put back when the viewer moves on or closes.
|
|
2680
|
+
An accessible image viewer over a set of plain links. With JavaScript a primary click opens a modal dialog; without it (or with a modified click) the link opens the image as before. Wrap the links, or point at them with `selector` (for example `a.pb-image` on a reading page). There is no autoplay and no carousel. The dialog is labelled by the caption (`data-caption`, else the image alt, else the link text). Focus moves to Close on open and back to the trigger on close. Escape and a click on the backdrop close it. With more than one image, Previous and Next and the arrow keys move through the set (wrapping), and a polite “3 of 13” counter is shown. Full size opens the original image in a new tab. A IIIF Image API URL keeps its region; only the size becomes `!W,H` for the viewport. TIFF and JPEG2000 URLs are left as written. `url-param` (for example `photo`) keeps `?photo=<id>` in sync, including on a hash route (`#/text?photo=<id>`): opening pushes a history entry, stepping replaces it, and Back closes. Optional details: children with `slot="details"` (and `data-for` equal to the item's id or its position from 1; without `data-for` they show for every image), or `data-details-id` on a link pointing at an element elsewhere on the page. Either is shown inside the dialog and put back when the viewer moves on or closes. Optional regions (people, objects, inscriptions): `data-regions` on a link, a JSON array of `{ label, x, y, w, h, unit? }` or `xywh` values each followed by its label, separated by `;` (`percent:10,20,30,40 Person 1; percent:55,15,20,30 Sign`), or the `regions` callback. The open image then shows numbered outlines (`<uvalib-image-regions>`, loaded on first use) and a list of the regions beside it, with a "Show regions" toggle (`aria-pressed`) that hides the outlines. Pixel regions are measured in `data-image-width` × `data-image-height` when set (the viewer shows a resized IIIF image), else in the image's natural size. Or the page's own list, with its own buttons: `data-regions-list="<id>"` on a link (or the `regionsList` callback) names an `<ol>` or `<ul>` of `<li data-xywh>` anywhere in the page, usually `hidden`. While that image is open the list (the same nodes, so the page's listeners keep working) is the region list: in shadow mode it becomes a child of the lightbox slotted into the viewer, not moved into the shadow root, so the page's CSS still applies to it. When the image changes or the viewer closes it goes back where it was, `hidden` as before. It wins over `data-regions`.
|
|
2642
2681
|
|
|
2643
2682
|
#### Attributes
|
|
2644
2683
|
|
|
@@ -2695,7 +2734,7 @@ An accessible image viewer over a set of plain links. With JavaScript a primary
|
|
|
2695
2734
|
|
|
2696
2735
|
### `<uvalib-map>`
|
|
2697
2736
|
|
|
2698
|
-
A map of places with a linked list of the same places: buildings, rooms or outdoor spaces, each a marker sized by a count, with a link to the place's page. It wraps [Leaflet](https://leafletjs.com) 1.9, which the page provides (the library never bundles it): set the `leaflet` property to the Leaflet module (`import * as L from 'leaflet'`), or load leaflet.js so that `window.L` exists. Without Leaflet only the list is shown, with one console warning. Leaflet's leaflet.css is optional: the element carries the layout rules it needs, in shadow DOM and light DOM alike. Places come from `items` (`{ id?, name, lat, lng, count?, href?, description? }`) or from a child `<ul>`/`<ol>` of `<li><a href data-lat data-lng data-count>Name</a></li>`, which is the list before the script runs (and without it). The list always stays, under the map: it is the text equivalent. Each marker is a real link (a button when the place has no `href`) named like "The Rotunda, 2,702 photos" (`count-label` is the noun), sized by the square root of its count (a 24 to 56px dot in a hit area of at least 44px). Tab or the arrow keys move between markers, Enter follows the link (or chooses the place), and Escape hides the tooltip. Hovering or focusing a marker shows a tooltip with its name and count and highlights its list entry; hovering or focusing a list entry highlights its marker (a ring and a larger dot, not colour alone) and brings it into view. The map is a region named by `label`, after a "Skip map, go to the list" link and a line of key instructions. It opens on the bounds of the places, or on `center` and `zoom`. The zoom buttons are 44px with a visible focus ring; the attribution stays. Tiles come from `tile-url` (OpenStreetMap by default: low-traffic use only) with `attribution`. In the page's dark mode the tiles are inverted with a CSS filter (`--uvalib-map-dark-filter`) unless `dark-tile-url` gives dark tiles; markers and controls are never filtered. With `prefers-reduced-motion` nothing animates.
|
|
2737
|
+
A map of places with a linked list of the same places: buildings, rooms or outdoor spaces, each a marker sized by a count, with a link to the place's page. It wraps [Leaflet](https://leafletjs.com) 1.9, which the page provides (the library never bundles it): set the `leaflet` property to the Leaflet module (`import * as L from 'leaflet'`), or load leaflet.js so that `window.L` exists. Without Leaflet only the list is shown, with one console warning. Leaflet's leaflet.css is optional: the element carries the layout rules it needs, in shadow DOM and light DOM alike. Places come from `items` (`{ id?, name, lat, lng, count?, href?, description? }`) or from a child `<ul>`/`<ol>` of `<li><a href data-lat data-lng data-count>Name</a></li>`, which is the list before the script runs (and without it). The list always stays, under the map: it is the text equivalent. Each marker is a real link (a button when the place has no `href`) named like "The Rotunda, 2,702 photos" (`count-label` is the noun), sized by the square root of its count (a 24 to 56px dot in a hit area of at least 44px). Tab or the arrow keys move between markers, Enter follows the link (or chooses the place), and Escape hides the tooltip. Hovering or focusing a marker shows a tooltip with its name and count and highlights its list entry; hovering or focusing a list entry highlights its marker (a ring and a larger dot, not colour alone) and brings it into view. Markers whose 44px targets would overlap at the current zoom are drawn as one group marker (regrouped after every zoom and resize): a button showing how many places it holds, sized by their summed count and named like "The Rotunda and 2 more places, 3,610 photos" (the largest place's name; `place-label` is the noun). Choosing it zooms in until its places part; when they cannot (one point, or the maximum zoom) it spreads them in a ring around it instead, with focus on the first; Escape or a zoom closes the ring and focus returns to the group. The arrow keys move between the markers shown (a group is one); a place in the list that is in a group highlights the group, whose tooltip names the place. The map is a region named by `label`, after a "Skip map, go to the list" link and a line of key instructions. It opens on the bounds of the places, or on `center` and `zoom`. The zoom buttons are 44px with a visible focus ring; the attribution stays. Tiles come from `tile-url` (OpenStreetMap by default: low-traffic use only) with `attribution`. In the page's dark mode the tiles are inverted with a CSS filter (`--uvalib-map-dark-filter`) unless `dark-tile-url` gives dark tiles; markers and controls are never filtered. With `prefers-reduced-motion` nothing animates.
|
|
2699
2738
|
|
|
2700
2739
|
#### Attributes
|
|
2701
2740
|
|
|
@@ -2704,6 +2743,7 @@ A map of places with a linked list of the same places: buildings, rooms or outdo
|
|
|
2704
2743
|
| `items` | `MapItem[]` | `[]` | The places. When non-empty, wins over the child list. Set a new array to update. |
|
|
2705
2744
|
| `label` | `string` | `''` | The map's name (required): the region's label, the list's label and the analytics name. |
|
|
2706
2745
|
| `count-label` | `string` | `'items'` | The noun after each count, plural ("photos"); a count of one drops a trailing s. |
|
|
2746
|
+
| `place-label` | `string` | `'places'` | The noun for places in a group's name, plural: "The Rotunda and 2 more places" (one drops a trailing s: "and 1 more place"). For example "rooms". |
|
|
2707
2747
|
| `tile-url` | | `OSM_TILE_URL` | The tile URL template (`{z}/{x}/{y}`, optionally `{s}` and `{r}`). |
|
|
2708
2748
|
| `dark-tile-url` | `string` | `''` | Tiles for the page's dark mode. Without it, dark mode filters the light tiles instead. |
|
|
2709
2749
|
| `attribution` | | `OSM_ATTRIBUTION` | The tiles' attribution, as HTML. Required by most tile sources; always shown. |
|
|
@@ -2731,8 +2771,8 @@ A map of places with a linked list of the same places: buildings, rooms or outdo
|
|
|
2731
2771
|
|
|
2732
2772
|
| Event | Description |
|
|
2733
2773
|
|---|---|
|
|
2734
|
-
| `select` | A marker was chosen (click, Enter or Space). `detail` is `{ item }`. Cancelable: for a place with `href`, `preventDefault()` keeps the page from following the link. Bubbles and is composed. |
|
|
2735
|
-
| `uvalib-analytics-event` | For `<site-analytics>`: `['uvalib-map', 'select', '<label>', <position from 1>]` when a marker is chosen, and `['uvalib-map', 'zoom', '<label>', <zoom level>]` 1 s after the last zoom-button press. Never a place's name, coordinates or URL. Bubbles and is composed. |
|
|
2774
|
+
| `select` | A place's marker was chosen (click, Enter or Space); never a group's. `detail` is `{ item }`. Cancelable: for a place with `href`, `preventDefault()` keeps the page from following the link. Bubbles and is composed. |
|
|
2775
|
+
| `uvalib-analytics-event` | For `<site-analytics>`: `['uvalib-map', 'select', '<label>', <position from 1>]` when a place's marker is chosen, `['uvalib-map', 'expand', '<label>', <places in it>]` when a group is chosen (it zooms in or opens its ring), and `['uvalib-map', 'zoom', '<label>', <zoom level>]` 1 s after the last zoom-button press. Never a place's name, coordinates or URL. Bubbles and is composed. |
|
|
2736
2776
|
|
|
2737
2777
|
#### CSS custom properties
|
|
2738
2778
|
|
|
@@ -73,6 +73,8 @@ export declare class UvalibImageRegions extends UvalibElement {
|
|
|
73
73
|
private readonly headingId;
|
|
74
74
|
private observer?;
|
|
75
75
|
private watchedImg;
|
|
76
|
+
/** A list slotted through a `<slot>` child (from a host element's light DOM), also observed. */
|
|
77
|
+
private slottedList;
|
|
76
78
|
private key;
|
|
77
79
|
/** The image's rendered size decides where badges fit. */
|
|
78
80
|
private resizer?;
|
|
@@ -80,12 +82,18 @@ export declare class UvalibImageRegions extends UvalibElement {
|
|
|
80
82
|
constructor();
|
|
81
83
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
82
84
|
connectedCallback(): void;
|
|
85
|
+
/** Watch the children, and a list slotted from outside them (it is not in this subtree). */
|
|
86
|
+
private observe;
|
|
83
87
|
disconnectedCallback(): void;
|
|
84
88
|
protected willUpdate(changed: PropertyValues): void;
|
|
85
89
|
protected updated(changed: PropertyValues): void;
|
|
86
90
|
/** The author's image element (`<img>` or `<picture>`), wherever it is now. */
|
|
87
91
|
private sourceImage;
|
|
88
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* The author's list (`<ol>` or `<ul>`), wherever it is now. A `<slot>` child (this element
|
|
94
|
+
* inside another component's shadow root) passes on that host's list, which stays in the
|
|
95
|
+
* page's light DOM (so the page's styles and listeners still apply to it).
|
|
96
|
+
*/
|
|
89
97
|
private sourceList;
|
|
90
98
|
private get imgHost();
|
|
91
99
|
private get listHost();
|
|
@@ -215,6 +215,8 @@ export class UvalibImageRegions extends UvalibElement {
|
|
|
215
215
|
this.focused = -1;
|
|
216
216
|
this.headingId = `uvalib-image-regions-heading-${++nextId}`;
|
|
217
217
|
this.watchedImg = null;
|
|
218
|
+
/** A list slotted through a `<slot>` child (from a host element's light DOM), also observed. */
|
|
219
|
+
this.slottedList = null;
|
|
218
220
|
this.key = '';
|
|
219
221
|
this.resized = 0;
|
|
220
222
|
this.onImageLoad = () => this.measure();
|
|
@@ -232,7 +234,8 @@ export class UvalibImageRegions extends UvalibElement {
|
|
|
232
234
|
};
|
|
233
235
|
this.onFocusOut = (e) => {
|
|
234
236
|
const to = e.relatedTarget;
|
|
235
|
-
if (to instanceof Node &&
|
|
237
|
+
if (to instanceof Node &&
|
|
238
|
+
(this.contains(to) || this.renderRoot.contains(to) || this.slottedList?.contains(to)))
|
|
236
239
|
return;
|
|
237
240
|
this.focused = -1;
|
|
238
241
|
this.setActive();
|
|
@@ -268,15 +271,24 @@ export class UvalibImageRegions extends UvalibElement {
|
|
|
268
271
|
}
|
|
269
272
|
const above = precedingHeadingLevel(this);
|
|
270
273
|
this.inferredLevel = above === null ? 2 : Math.min(Math.max(above + 1, 2), 6);
|
|
274
|
+
this.slottedList = null;
|
|
271
275
|
this.sync();
|
|
276
|
+
this.observe();
|
|
277
|
+
}
|
|
278
|
+
/** Watch the children, and a list slotted from outside them (it is not in this subtree). */
|
|
279
|
+
observe() {
|
|
272
280
|
this.observer ??= new MutationObserver(() => this.sync());
|
|
273
|
-
this.observer.
|
|
281
|
+
this.observer.disconnect();
|
|
282
|
+
const options = {
|
|
274
283
|
childList: true,
|
|
275
284
|
subtree: true,
|
|
276
285
|
attributes: true,
|
|
277
286
|
attributeFilter: ['data-xywh', 'data-label', 'data-id', 'href', 'start', 'src', 'srcset'],
|
|
278
287
|
characterData: true,
|
|
279
|
-
}
|
|
288
|
+
};
|
|
289
|
+
this.observer.observe(this, options);
|
|
290
|
+
if (this.slottedList)
|
|
291
|
+
this.observer.observe(this.slottedList, options);
|
|
280
292
|
}
|
|
281
293
|
disconnectedCallback() {
|
|
282
294
|
super.disconnectedCallback();
|
|
@@ -313,11 +325,13 @@ export class UvalibImageRegions extends UvalibElement {
|
|
|
313
325
|
const el = named ?? kids.find((k) => k.localName === 'img' || k.localName === 'picture');
|
|
314
326
|
return el instanceof HTMLElement ? el : null;
|
|
315
327
|
}
|
|
316
|
-
/**
|
|
328
|
+
/**
|
|
329
|
+
* The author's list (`<ol>` or `<ul>`), wherever it is now. A `<slot>` child (this element
|
|
330
|
+
* inside another component's shadow root) passes on that host's list, which stays in the
|
|
331
|
+
* page's light DOM (so the page's styles and listeners still apply to it).
|
|
332
|
+
*/
|
|
317
333
|
sourceList() {
|
|
318
|
-
const kids = this.lightDom
|
|
319
|
-
? [...this.children, ...(this.listHost?.children ?? [])]
|
|
320
|
-
: [...this.children];
|
|
334
|
+
const kids = (this.lightDom ? [...this.children, ...(this.listHost?.children ?? [])] : [...this.children]).flatMap((k) => (k instanceof HTMLSlotElement ? k.assignedElements({ flatten: true }) : [k]));
|
|
321
335
|
const el = kids.find((k) => k.localName === 'ol' || k.localName === 'ul');
|
|
322
336
|
return el ?? null;
|
|
323
337
|
}
|
|
@@ -364,6 +378,21 @@ export class UvalibImageRegions extends UvalibElement {
|
|
|
364
378
|
}
|
|
365
379
|
fromList() {
|
|
366
380
|
const list = this.sourceList();
|
|
381
|
+
const outside = list && !this.contains(list) ? list : null;
|
|
382
|
+
if (outside !== this.slottedList) {
|
|
383
|
+
this.slottedList = outside;
|
|
384
|
+
if (this.isConnected)
|
|
385
|
+
this.observe();
|
|
386
|
+
if (outside && !this.noStyle) {
|
|
387
|
+
// Its entries are styled where the list is (the page), not under this tag.
|
|
388
|
+
const root = outside.getRootNode();
|
|
389
|
+
if (root instanceof Document || root instanceof ShadowRoot)
|
|
390
|
+
installLightDomStyles(`${this.localName}::slotted-entries`, entryStyles, {
|
|
391
|
+
root,
|
|
392
|
+
scope: false,
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
}
|
|
367
396
|
if (!list)
|
|
368
397
|
return [];
|
|
369
398
|
const start = list.localName === 'ol' ? Number(list.getAttribute('start') ?? 1) || 1 : 1;
|
|
@@ -486,9 +515,11 @@ export class UvalibImageRegions extends UvalibElement {
|
|
|
486
515
|
}
|
|
487
516
|
/** Mark the entries (their padding) and the highlighted one. */
|
|
488
517
|
mark() {
|
|
518
|
+
const list = this.items ? null : this.sourceList();
|
|
489
519
|
this.entries.forEach((e, i) => {
|
|
490
520
|
const el = this.entryEl(i);
|
|
491
|
-
|
|
521
|
+
// An author's item that has left the list (given back to the page) is not marked again.
|
|
522
|
+
if (!el || (e.el && e.el.parentElement !== list))
|
|
492
523
|
return;
|
|
493
524
|
if (el.getAttribute('data-uvalib-region') !== String(e.number))
|
|
494
525
|
el.setAttribute('data-uvalib-region', String(e.number));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UvalibImageRegions.js","sourceRoot":"","sources":["../../../src/components/uvalib-image-regions/UvalibImageRegions.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAuB,MAAM,KAAK,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAoC,MAAM,cAAc,CAAC;AAahG,MAAM,aAAa,GAAG,SAAS,CAAC;AAChC,IAAI,MAAM,GAAG,CAAC,CAAC;AAEf,wFAAwF;AACxF,MAAM,SAAS,GAAG,yEAAyE,CAAC;AAE5F;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC;IACtC,IAAI;IACJ,IAAI;;;;;;IAMJ,IAAI;;;;;;;;IAQJ,IAAI;IACJ,IAAI,gBAAgB,IAAI,uBACxB,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,EAC9D;IACE,IAAI;;;;;;;;IAQJ,IAAI;;;;;;;;IAQJ,IAAI;IACJ,IAAI;IACJ,IAAI;;;;;;;;;;;;;;;;IAgBJ,IAAI;;;;;IAKJ,IAAI;;;;IAIJ,IAAI;IACJ,IAAI,uCAAuC,IA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AGhD;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAmB;AAGU;IAAvD,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;wDAAuB;AAGlD;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAA2C;AAGE;IAAvE,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;wDAAsB;AAE5E;IAAhB,KAAK,EAAE;mDAA+B;AACtB;IAAhB,KAAK,EAAE;mDAAyD;AAChD;IAAhB,KAAK,EAAE;kDAAqB;AACZ;IAAhB,KAAK,EAAE;yDAA2B"}
|
|
@@ -14,6 +14,8 @@ export interface LightboxRegionsItem {
|
|
|
14
14
|
}
|
|
15
15
|
/** Maps an image to its regions (none: an empty array, null or undefined). */
|
|
16
16
|
export type LightboxRegions = (item: LightboxRegionsItem) => readonly ImageRegion[] | null | undefined;
|
|
17
|
+
/** Returns the page's own region list for an image: an `<ol>` or `<ul>` of `<li data-xywh>`. */
|
|
18
|
+
export type LightboxRegionsList = (item: LightboxRegionsItem) => Element | null | undefined;
|
|
17
19
|
/**
|
|
18
20
|
* An accessible image viewer over a set of plain links. With JavaScript a primary click opens
|
|
19
21
|
* a modal dialog; without it (or with a modified click) the link opens the image as before.
|
|
@@ -35,7 +37,6 @@ export type LightboxRegions = (item: LightboxRegionsItem) => readonly ImageRegio
|
|
|
35
37
|
* a link pointing at an element elsewhere on the page. Either is shown inside the dialog and
|
|
36
38
|
* put back when the viewer moves on or closes.
|
|
37
39
|
*
|
|
38
|
-
* @tagname uvalib-lightbox
|
|
39
40
|
* Optional regions (people, objects, inscriptions): `data-regions` on a link, a JSON array of
|
|
40
41
|
* `{ label, x, y, w, h, unit? }` or `xywh` values each followed by its label, separated by
|
|
41
42
|
* `;` (`percent:10,20,30,40 Person 1; percent:55,15,20,30 Sign`), or the `regions` callback.
|
|
@@ -44,6 +45,15 @@ export type LightboxRegions = (item: LightboxRegionsItem) => readonly ImageRegio
|
|
|
44
45
|
* hides the outlines. Pixel regions are measured in `data-image-width` × `data-image-height`
|
|
45
46
|
* when set (the viewer shows a resized IIIF image), else in the image's natural size.
|
|
46
47
|
*
|
|
48
|
+
* Or the page's own list, with its own buttons: `data-regions-list="<id>"` on a link (or the
|
|
49
|
+
* `regionsList` callback) names an `<ol>` or `<ul>` of `<li data-xywh>` anywhere in the page,
|
|
50
|
+
* usually `hidden`. While that image is open the list (the same nodes, so the page's listeners
|
|
51
|
+
* keep working) is the region list: in shadow mode it becomes a child of the lightbox slotted
|
|
52
|
+
* into the viewer, not moved into the shadow root, so the page's CSS still applies to it. When
|
|
53
|
+
* the image changes or the viewer closes it goes back where it was, `hidden` as before. It wins
|
|
54
|
+
* over `data-regions`.
|
|
55
|
+
*
|
|
56
|
+
* @tagname uvalib-lightbox
|
|
47
57
|
* @slot - The image links. A plain click opens the viewer; without JavaScript they open the image.
|
|
48
58
|
* @slot details - Details for the open image. `data-for` selects one item by its id or position (from 1); without it the details show for every image.
|
|
49
59
|
* @csspart dialog - The modal dialog.
|
|
@@ -88,6 +98,14 @@ export declare class UvalibLightbox extends UvalibElement {
|
|
|
88
98
|
* "Show regions" toggle.
|
|
89
99
|
*/
|
|
90
100
|
regions?: LightboxRegions;
|
|
101
|
+
/**
|
|
102
|
+
* The page's own region list for each image, instead of `data-regions-list`: called with
|
|
103
|
+
* `{ element, id, href, index }`, it returns an `<ol>` or `<ul>` of `<li data-xywh>` (or
|
|
104
|
+
* null). While the image is open the list is shown as its region list, with the page's own
|
|
105
|
+
* buttons and listeners; it is put back where it was when the image changes or the viewer
|
|
106
|
+
* closes.
|
|
107
|
+
*/
|
|
108
|
+
regionsList?: LightboxRegionsList;
|
|
91
109
|
/** The heading of the regions list (for example `People`). */
|
|
92
110
|
regionsLabel: string;
|
|
93
111
|
private slides;
|
|
@@ -142,6 +160,12 @@ export declare class UvalibLightbox extends UvalibElement {
|
|
|
142
160
|
/** Details elements moved into the dialog, and where they go back to. */
|
|
143
161
|
private parked;
|
|
144
162
|
private parkedKey;
|
|
163
|
+
/** The page's region list lent to the viewer, and how to give it back as it was. */
|
|
164
|
+
private lent;
|
|
165
|
+
/** Each entry's own `tabindex` (null: none), so one the viewer added is removed. */
|
|
166
|
+
private entryTabindex;
|
|
167
|
+
private warnedList;
|
|
168
|
+
private refocus;
|
|
145
169
|
/** Shadow mode follows the base class. Light mode renders into `.viewer`. */
|
|
146
170
|
private get isLight();
|
|
147
171
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
@@ -162,6 +186,8 @@ export declare class UvalibLightbox extends UvalibElement {
|
|
|
162
186
|
private slide;
|
|
163
187
|
/** `data-regions`, then whatever the `regions` callback adds. */
|
|
164
188
|
private regionsOf;
|
|
189
|
+
/** `data-regions-list` (an id in this root), else the `regionsList` callback's element. */
|
|
190
|
+
private listOf;
|
|
165
191
|
/** The link's own text, not the alt of its image and not a details subtree. */
|
|
166
192
|
private linkText;
|
|
167
193
|
private get current();
|
|
@@ -236,9 +262,22 @@ export declare class UvalibLightbox extends UvalibElement {
|
|
|
236
262
|
*/
|
|
237
263
|
private putBack;
|
|
238
264
|
private restoreDetails;
|
|
265
|
+
/** The list the open image shows (none while its image cannot be drawn). */
|
|
266
|
+
private get wantedList();
|
|
267
|
+
/**
|
|
268
|
+
* Lend the open image's list to the viewer, giving back any other. Shadow mode (before
|
|
269
|
+
* render): the list becomes a light-DOM child of the lightbox with `slot`, and the viewer's
|
|
270
|
+
* `<uvalib-image-regions>` slots it on, so it stays in the page (its styles and listeners
|
|
271
|
+
* apply). Light DOM (`rendered`, after render): it is moved into `<uvalib-image-regions>`.
|
|
272
|
+
*/
|
|
273
|
+
private lendList;
|
|
274
|
+
/** Remember each entry's own tabindex before the viewer can add one. */
|
|
275
|
+
private noteEntries;
|
|
276
|
+
/** Give the lent list back: same place, same `hidden` and `slot`, no marks of the viewer's. */
|
|
277
|
+
private returnList;
|
|
239
278
|
private get statusText();
|
|
240
279
|
private readonly toggleRegions;
|
|
241
|
-
/** The image, inside `<uvalib-image-regions>` when it has regions. */
|
|
280
|
+
/** The image, inside `<uvalib-image-regions>` when it has regions (or the page's list). */
|
|
242
281
|
private renderImage;
|
|
243
282
|
protected render(): import("lit").TemplateResult<1>;
|
|
244
283
|
}
|