@uvalib/web-components 1.12.1 → 1.13.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.12.1",
2
+ "version": "1.13.0",
3
3
  "elements": {
4
4
  "site-page": "site-page.js",
5
5
  "site-header": "site-header.js",
@@ -38,7 +38,8 @@
38
38
  "uvalib-dialog": "uvalib-dialog.js",
39
39
  "uvalib-citation": "uvalib-citation.js",
40
40
  "uvalib-list-filter": "uvalib-list-filter.js",
41
- "uvalib-audio": "uvalib-audio.js"
41
+ "uvalib-audio": "uvalib-audio.js",
42
+ "uvalib-qr": "uvalib-qr.js"
42
43
  },
43
44
  "styles": [
44
45
  "tokens.css",
@@ -1,6 +1,6 @@
1
1
  import { a as e, f as t, i as n, l as r, m as i, n as a, o, r as s, t as c } from "./chunks/UvalibElement-pGONDAwB.js";
2
2
  import { t as l } from "./chunks/if-defined-COiQb-gl.js";
3
- import { a as u, i as d, n as f, r as p, t as m } from "./chunks/base-D_oPO5cX.js";
3
+ import { a as u, i as d, n as f, r as p, t as m } from "./chunks/base-C8PSG8Gv.js";
4
4
  import { t as h } from "./chunks/accessible-DJv7YOtS.js";
5
5
  import { t as g } from "./chunks/site-header-B78a_ldi.js";
6
6
  import { a as _ } from "./chunks/analytics-DTTihuBD.js";
@@ -1,5 +1,5 @@
1
1
  import { a as e, l as t, m as n, n as r, o as i, r as a, t as o } from "./chunks/UvalibElement-pGONDAwB.js";
2
- import { a as s, i as c, n as l, r as u } from "./chunks/base-D_oPO5cX.js";
2
+ import { a as s, i as c, n as l, r as u } from "./chunks/base-C8PSG8Gv.js";
3
3
  // src/components/site-style/SiteStyle.ts
4
4
  var d = class extends o {
5
5
  constructor(...e) {
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: uvalib-web-components
3
- description: Use when building or editing UVA Library web pages or sites with @uvalib/web-components: page chrome (<site-page>, <site-header>, <site-main-nav>, <site-footer>, <site-alerts>, <site-analytics>/<uvalib-analytics>, <site-style>), and other uvalib-* components (breadcrumbs, cards, pager, tabs, contents, metadata, citation, chips, tags, results count, filter, filter drawer, dialog, date range, date histogram, combobox, list filter, map (Leaflet), lightbox, photo grid, image regions, back to top, audio by chapter, Pagefind search, edition.css for TEI texts and EPUB/PDF), the library hours, events and bento-box elements (e.g. <uvalib-card>, <library-weekly-hours>), base.css classes (incl. tables, sidebar layout), or script/link URLs on unpkg.internal.lib.virginia.edu (incl. old /web-components/latest/ or cdn-v URLs). Covers CDN vs npm, version pinning, shadow vs light DOM, theming with --uva-* tokens, WCAG 2.2 AA accessibility testing, requesting components via GitHub issues, and a verification checklist.
3
+ description: Use when building or editing UVA Library web pages or sites with @uvalib/web-components: page chrome (<site-page>, <site-header>, <site-main-nav>, <site-footer>, <site-alerts>, <site-analytics>/<uvalib-analytics>, <site-style>), and other uvalib-* components (breadcrumbs, cards, pager, tabs, contents, metadata, citation, chips, tags, results count, filter, filter drawer, dialog, date range, date histogram, combobox, list filter, map (Leaflet), lightbox, photo grid, image regions, back to top, audio by chapter, QR code, Pagefind search, edition.css for TEI texts and EPUB/PDF), the library hours, events and bento-box elements (e.g. <library-weekly-hours>), base.css classes (incl. tables, sidebar layout), or script/link URLs on unpkg.internal.lib.virginia.edu (incl. old /web-components/latest/ or cdn-v URLs). Covers CDN vs npm, version pinning, shadow vs light DOM, theming with --uva-* tokens, WCAG 2.2 AA accessibility testing, requesting components via GitHub issues, and a verification checklist.
4
4
  ---
5
5
 
6
6
  # UVA Library web components
7
7
 
8
- `@uvalib/web-components` provides the UVA Library page chrome as custom elements: `<site-page>` (skip link, header with the library main navigation, one `<main>`, footer), `<site-header>`, `<site-main-nav>` (the main navigation, rendered by the header), `<site-footer>`, `<site-analytics>` (Matomo; also registered as `<uvalib-analytics>`) and `<site-style>` (legacy compatibility), plus `<uvalib-breadcrumbs>` (the breadcrumb trail), `<uvalib-contents>` (sub-navigation or a table of contents), `<uvalib-metadata>` (a record's details, credit, rights and how to cite) and `<uvalib-citation>` (a citation in several formats with Copy citation), all in section 2, `<uvalib-card>`, `<uvalib-card-grid>` and `<uvalib-pager>` (cards and paging, section 5), `<uvalib-tabs>` (tabbed panels), `<uvalib-back-to-top>` (a back-to-top button for long pages) and `<site-alerts>` (the live library alerts, which `<site-page>` shows itself). It also ships search-page components, `<uvalib-filter>`, `<uvalib-date-range>` and `<uvalib-date-histogram>`, `<uvalib-chip-group>` for segmented controls, filter chips and suggestion chips, `<uvalib-combobox>`, a text field that suggests values as you type, `<uvalib-list-filter>`, a field that filters a long list on the page as you type, and `<uvalib-filter-drawer>`, the filters as a sidebar or a modal panel on phones, and `<uvalib-dialog>`, a modal dialog for search tips, Cite and short forms (section 6), and three library-hours elements for library.virginia.edu, `<site-hours-section>`, `<library-weekly-hours>` and `<library-hours-setup>`, `<events-section>` for upcoming library events and `<bento-box>` for the library's search results page (section 7), and `pagefind.css` with `<uvalib-pagefind-search>` for a static site's Pagefind search, `edition.css` for reading TEI texts converted to HTML, `<uvalib-audio>` for a recording played by chapter (an audiobook), and `<uvalib-tag-list>`, `<uvalib-results-count>` and `base.css`'s badge, toolbar, empty-state and skeleton classes for results lists (section 6), and `<uvalib-lightbox>`, `<uvalib-photo-grid>` and `<uvalib-image-regions>` for images and `<uvalib-map>` for a map of places over the page's own Leaflet, with a linked list (section 8). Tag names are stable.
8
+ `@uvalib/web-components` provides the UVA Library page chrome as custom elements: `<site-page>` (skip link, header with the library main navigation, one `<main>`, footer), `<site-header>`, `<site-main-nav>` (the main navigation, rendered by the header), `<site-footer>`, `<site-analytics>` (Matomo; also registered as `<uvalib-analytics>`) and `<site-style>` (legacy compatibility), plus `<uvalib-breadcrumbs>` (the breadcrumb trail), `<uvalib-contents>` (sub-navigation or a table of contents), `<uvalib-metadata>` (a record's details, credit, rights and how to cite) and `<uvalib-citation>` (a citation in several formats with Copy citation), all in section 2, `<uvalib-card>`, `<uvalib-card-grid>` and `<uvalib-pager>` (cards and paging, section 5), `<uvalib-tabs>` (tabbed panels), `<uvalib-back-to-top>` (a back-to-top button for long pages) and `<site-alerts>` (the live library alerts, which `<site-page>` shows itself). It also ships search-page components, `<uvalib-filter>`, `<uvalib-date-range>` and `<uvalib-date-histogram>`, `<uvalib-chip-group>` for segmented controls, filter chips and suggestion chips, `<uvalib-combobox>`, a text field that suggests values as you type, `<uvalib-list-filter>`, a field that filters a long list on the page as you type, and `<uvalib-filter-drawer>`, the filters as a sidebar or a modal panel on phones, and `<uvalib-dialog>`, a modal dialog for search tips, Cite and short forms (section 6), and three library-hours elements for library.virginia.edu, `<site-hours-section>`, `<library-weekly-hours>` and `<library-hours-setup>`, `<events-section>` for upcoming library events and `<bento-box>` for the library's search results page (section 7), and `pagefind.css` with `<uvalib-pagefind-search>` for a static site's Pagefind search, `edition.css` for reading TEI texts converted to HTML, `<uvalib-audio>` for a recording played by chapter (an audiobook), `<uvalib-qr>` for a QR code styled for the library (an event's page on a slide or poster), and `<uvalib-tag-list>`, `<uvalib-results-count>` and `base.css`'s badge, toolbar, empty-state and skeleton classes for results lists (section 6), and `<uvalib-lightbox>`, `<uvalib-photo-grid>` and `<uvalib-image-regions>` for images and `<uvalib-map>` for a map of places over the page's own Leaflet, with a linked list (section 8). Tag names are stable.
9
9
 
10
10
  Authority rule: https://www.library.virginia.edu and the UVA Library design system are the source of truth for how the chrome looks and what it says. Do not re-create, copy or restyle the header, footer, logo or links by hand. Use the components, and change appearance only through the theming surface below.
11
11
 
@@ -31,7 +31,7 @@ Loading rules:
31
31
 
32
32
  - One script is enough for the page chrome: `site-page.js` also loads the header (with its main navigation) and footer. For Matomo, give `<site-page>` a `matomo-id` (it loads the analytics code itself), or add `site-analytics.js` and a `<site-analytics>` (or `uvalib-analytics.js` and `<uvalib-analytics>`) element; never both, and never alongside a hand-written Matomo snippet.
33
33
  - Also link `.../v1/base.css` in `<head>` (npm: `@uvalib/web-components/base.css`), unless the page sets `no-global-styles`. `<site-page>` installs the same base styles only after the first paint, so without the link the page shifts once (the default body margin goes away, and a heading's margin stops collapsing through the not-yet-defined `<site-page>`). The link also keeps `<site-page>` invisible until it is defined, with a two-second fallback.
34
- - npm: the define entries (`@uvalib/web-components/site-page.js`, `site-header.js`, `site-main-nav.js`, `site-footer.js`, `site-analytics.js`, `uvalib-analytics.js`, `site-style.js`, `uvalib-breadcrumbs.js`, `uvalib-card.js`, `uvalib-card-grid.js`, `uvalib-pager.js`, `uvalib-contents.js`, `uvalib-metadata.js`, `site-alerts.js`, `uvalib-filter.js`, `uvalib-date-range.js`, `uvalib-date-histogram.js`, `site-hours-section.js`, `library-weekly-hours.js`, `library-hours-setup.js`, `events-section.js`, `bento-box.js`, `uvalib-pagefind-search.js`, `uvalib-lightbox.js`, `uvalib-photo-grid.js`, `uvalib-tabs.js`, `uvalib-chip-group.js`, `uvalib-tag-list.js`, `uvalib-results-count.js`, `uvalib-combobox.js`, `uvalib-image-regions.js`, `uvalib-map.js`, `uvalib-filter-drawer.js`, `uvalib-back-to-top.js`, `uvalib-dialog.js`, `uvalib-citation.js`, `uvalib-list-filter.js`, `uvalib-audio.js`) register the element (`bento-box.js` also registers its four sections, `<catalog-section>`, `<articles-section>`, `<libguides-section>` and `<website-section>`). Importing the package root (`@uvalib/web-components`) gives the classes only and registers nothing. If you use the `SitePage` class directly, also import the header and footer define entries.
34
+ - npm: the define entries (`@uvalib/web-components/site-page.js`, `site-header.js`, `site-main-nav.js`, `site-footer.js`, `site-analytics.js`, `uvalib-analytics.js`, `site-style.js`, `uvalib-breadcrumbs.js`, `uvalib-card.js`, `uvalib-card-grid.js`, `uvalib-pager.js`, `uvalib-contents.js`, `uvalib-metadata.js`, `site-alerts.js`, `uvalib-filter.js`, `uvalib-date-range.js`, `uvalib-date-histogram.js`, `site-hours-section.js`, `library-weekly-hours.js`, `library-hours-setup.js`, `events-section.js`, `bento-box.js`, `uvalib-pagefind-search.js`, `uvalib-lightbox.js`, `uvalib-photo-grid.js`, `uvalib-tabs.js`, `uvalib-chip-group.js`, `uvalib-tag-list.js`, `uvalib-results-count.js`, `uvalib-combobox.js`, `uvalib-image-regions.js`, `uvalib-map.js`, `uvalib-filter-drawer.js`, `uvalib-back-to-top.js`, `uvalib-dialog.js`, `uvalib-citation.js`, `uvalib-list-filter.js`, `uvalib-audio.js`, `uvalib-qr.js`) register the element (`bento-box.js` also registers its four sections, `<catalog-section>`, `<articles-section>`, `<libguides-section>` and `<website-section>`). Importing the package root (`@uvalib/web-components`) gives the classes only and registers nothing. If you use the `SitePage` class directly, also import the header and footer define entries.
35
35
  - Do not load the same component from both the CDN and npm on one page.
36
36
 
37
37
  ## 2. Required page structure
@@ -228,7 +228,7 @@ import '@uvalib/web-components/tokens.css'; // optional: tokens for your own CSS
228
228
 
229
229
  Analytics: only when the site needs Matomo, set `<site-page matomo-id="N">`, or add `site-analytics.js` and a `<site-analytics matomoid="N">` (add `downloads="event"`, or `matomo-downloads="event"` on `<site-page>`, when file URLs carry ids: downloads are then counted as `['download', '<extension>']` events without URLs); see the analytics page in [reference/snippets.md](reference/snippets.md). `<uvalib-analytics>` (`uvalib-analytics.js`) is the same element under its original name, for existing markup. It listens on `document` for `uvalib-analytics-*` and `site-analytics-*` events (`event`, `search`, `pageview`, `content`) and queues them for Matomo, so events fired before Matomo loads are kept, and a page never counts twice. A single-page app whose router uses `pushState` or hashes can set `spa="auto"` to have each route change counted (after the new title is set, never twice for one URL); bare `spa` means the app sends its own `uvalib-analytics-pageview` events.
230
230
 
231
- The library's components already report what visitors do with them; do not add tracking for any of it: header utility and site links, logo, skip link, Menu and colour scheme; main-nav menu opens and links; footer links; breadcrumb and contents levels, the contents disclosure, Copy citation; card clicks (the card's place in its grid, or single); pager next, previous, page numbers and Load more; tab changes (the tab's label); alerts (impressions, dismiss, links, errors); event clicks; See all hours, week changes; filter facets, scopes and See more/less; date-range changes; histogram selections (`<from>–<to>` when both ends are ISO dates, otherwise `other`); bento searches, result and See all clicks, retries; lightbox opens, next, previous and full size (the name is `image N`, never the URL or the caption) and version comparisons (`compare`, the mode and the version's place, never its label); load errors; and tag-list clicks and Show all (`list N`, or the label with `track-label`, and the tag's place; never the tag text); and combobox choices and clears (the field's label and the suggestion's place; never the typed text or the suggestion); and list-filter queries and clears (how many items match; never the typed text); and audio plays, completes, speed, resume and downloads (`chapter N`, never a title or URL); and image-region outline clicks (the list's label and the region's number; never a region's label); and map marker choices and zoom-button presses (the map's label and the place's position or the zoom level; never the place's name, coordinates or URL). `<uvalib-photo-grid>` and `<uvalib-results-count>` report nothing. The README's "Analytics" section has the full table.
231
+ The library's components already report what visitors do with them; do not add tracking for any of it: header utility and site links, logo, skip link, Menu and colour scheme; main-nav menu opens and links; footer links; breadcrumb and contents levels, the contents disclosure, Copy citation; card clicks (the card's place in its grid, or single); pager next, previous, page numbers and Load more; tab changes (the tab's label); alerts (impressions, dismiss, links, errors); event clicks; See all hours, week changes; filter facets, scopes and See more/less; date-range changes; histogram selections (`<from>–<to>` when both ends are ISO dates, otherwise `other`); bento searches, result and See all clicks, retries; lightbox opens, next, previous and full size (the name is `image N`, never the URL or the caption) and version comparisons (`compare`, the mode and the version's place, never its label); load errors; and tag-list clicks and Show all (`list N`, or the label with `track-label`, and the tag's place; never the tag text); and combobox choices and clears (the field's label and the suggestion's place; never the typed text or the suggestion); and list-filter queries and clears (how many items match; never the typed text); and audio plays, completes, speed, resume and downloads (`chapter N`, never a title or URL); and the QR code's visible link (`link-click`, never the URL); and image-region outline clicks (the list's label and the region's number; never a region's label); and map marker choices and zoom-button presses (the map's label and the place's position or the zoom level; never the place's name, coordinates or URL). `<uvalib-photo-grid>` and `<uvalib-results-count>` report nothing. The README's "Analytics" section has the full table.
232
232
 
233
233
  For the host page's own content, tag the clickable element (or a wrapper) with `data-uvalib-track="category,action[,name[,value]]"` instead of writing a listener, for example `<a href="/spaces" data-uvalib-track="home-page,banner-click,Study spaces">`: the category is your page or widget, the action a fixed kebab-case verb, the name a short fixed label, the value a number. It works inside shadow DOM too. Never put titles, URLs, search text, ids, email addresses, phone numbers or other personal data in events.
234
234
 
@@ -643,6 +643,22 @@ An audiobook's chapters or an oral history's sessions are one `<uvalib-audio>` (
643
643
  - It remembers the chapter, position and speed per page in localStorage and offers "Resume … at 12:30" (`storage-key` when a page has two recordings; `no-resume` to turn it off).
644
644
  - A cast or credits table goes after it as a `.uvalib-table`. With `base.css` the player's space is held. It reports its own analytics by chapter number. README: "Audio by chapter".
645
645
 
646
+ ### QR codes
647
+
648
+ A QR code for a link (an event's page on a slide, a poster, a room sign) is `<uvalib-qr>` (`uvalib-qr.js`), never a QR image from an online generator, `<lean-qr>` or a hand-drawn canvas.
649
+
650
+ ```html
651
+ <uvalib-qr
652
+ value="https://scholarslab.lib.virginia.edu/events/mapping-the-book-trade/"
653
+ show-link
654
+ ></uvalib-qr>
655
+ ```
656
+
657
+ - It is an inline `<svg role="img">` named "QR code for scholarslab.lib.virginia.edu/events/mapping-the-book-trade" (`label` to name it yourself): UVA navy modules on a white tile with the quiet zone, rounded eyes and a thin orange frame. `variant="plain"` is a square black code with no frame. `size` (pixels or a CSS length, default 10rem) or `--uvalib-qr-size`; `error-correction` L/M/Q/H (default M).
658
+ - The image is not a link and must not be wrapped in one: `show-link` (or `link-label="…"`) adds the address under it as a real link for people who cannot scan. Give each code's link different text when there are several.
659
+ - No logo by default, and never a University or Library logo you have not been cleared to use: the marks may not be boxed or cut apart. With approved artwork, `logo-src` and `logo-alt` clear the centre (`logo-size`, default 20% of the side, at most 31%) and use level H.
660
+ - Do not invert it or recolour it light for dark mode: it stays dark on white in dark mode and forced colors, and prints without the frame. `toSvgString()`, `toDataURL()` and `download('name.svg')` give the code for print. With `base.css` its square is held. README: "QR codes".
661
+
646
662
  ### Results toolbar, badges and tags
647
663
 
648
664
  For a results list of your own (a collection, a Virgo-like listing, a photo archive), use these instead of hand-made pills, counts and spinners. Classes are in `base.css`; the two elements load from `uvalib-tag-list.js` and `uvalib-results-count.js`.
@@ -1665,6 +1665,53 @@ Justified rows of thumbnails. Each direct child that is a link or a button is on
1665
1665
  | `--uva-grey-darkest` | `#2b2b2b` | Caption colour when `--uva-color-text` is unset. |
1666
1666
  | `--uva-brand-orange` | `#e57200` | Focus ring when `--uva-color-focus` is unset. |
1667
1667
 
1668
+ ## `<uvalib-qr>`
1669
+
1670
+ A QR code for a link (an event's page on a slide or a poster), styled for UVA Library: modules in UVA navy on a white tile, the three "eyes" with rounded corners, and a thin orange frame around the tile that carries no part of the code. `variant="plain"` is a square black code with no frame, for the oldest scanners. It is an inline `<svg role="img">` whose `<title>` names it (`label`, else "QR code for example.org/path"), crisp at any size and in print. The code stays dark on its white tile in dark mode and in forced colors (scanners need that), and the quiet zone (`quiet-zone`, 4 modules) is part of the tile. The image is not a link; `show-link` (or `link-label`) adds the address as a real link under it, for people who cannot scan. No logo is drawn by default (the University's marks may not be cut apart or boxed). A site with approved artwork gives `logo-src` (and `logo-alt`): the modules under the centre are cleared (`logo-size`, 20% of the side; at most 10% of the area), and level H is used. A value that cannot be encoded (empty, or too long) shows "QR code unavailable" in the tile, with a console warning.
1671
+
1672
+ ### Attributes
1673
+
1674
+ | Attribute | Type | Default | Description |
1675
+ |---|---|---|---|
1676
+ | `value` | `string` | `''` | The text encoded: usually a URL (required). |
1677
+ | `label` | `string` | `''` | The code's accessible name (default "QR code for example.org/path"). |
1678
+ | `size` | `string` | `''` | The tile's width and height: a number of pixels, or a CSS length (default 10rem). |
1679
+ | `error-correction` | `string` | `''` | `L`, `M`, `Q` or `H` (default `M`; always `H` with a logo). |
1680
+ | `quiet-zone` | `number` | `4` | White modules around the code: 4 is the standard minimum (0 to 16). |
1681
+ | `variant` | `string` | `''` | `plain`: square black modules, no frame, for maximum compatibility. Default: branded. |
1682
+ | `show-link` | `boolean` | `false` | Show the address as a link under the code (http, https, mailto and tel only). |
1683
+ | `link-label` | `string` | `''` | The visible link's text (default the address without its scheme); implies `show-link`. |
1684
+ | `logo-src` | `string` | `''` | Approved logo artwork for the centre (an image URL). Off by default. |
1685
+ | `logo-alt` | `string` | `''` | The logo's text alternative, added to the code's name; empty means decorative. |
1686
+ | `logo-size` | | `QR_LOGO_SIZE` | The cleared centre's side, in % of the symbol's side (default 20; at most about 31). |
1687
+ | `no-shadow-dom` | `boolean` | `false` | |
1688
+ | `no-style` | `boolean` | `false` | |
1689
+
1690
+ ### CSS parts
1691
+
1692
+ | Part | Description |
1693
+ |---|---|
1694
+ | `tile` | The white tile (the code and its quiet zone), with the frame. |
1695
+ | `svg` | The code's `<svg>`. |
1696
+ | `link` | The visible link under the code (`show-link`). |
1697
+ | `fallback` | The "QR code unavailable" text. |
1698
+
1699
+ ### Events
1700
+
1701
+ | Event | Description |
1702
+ |---|---|
1703
+ | `uvalib-analytics-event` | For `<site-analytics>`: `['uvalib-qr', 'link-click']` when the visible link is followed (never the URL). Bubbles and is composed. |
1704
+
1705
+ ### CSS custom properties
1706
+
1707
+ | Property | Default | Description |
1708
+ |---|---|---|
1709
+ | `--uvalib-qr-size` | `10rem` | The tile's width and height (the `size` attribute sets it). At most the container's width. |
1710
+ | `--uvalib-qr-color` | `#232d4b` | The modules (else `--uva-brand-blue`). Keep it dark: at least 7:1 on white. |
1711
+ | `--uvalib-qr-frame` | `#e57200` | The frame (else `--uva-brand-orange`). It is decoration: never needed to scan. |
1712
+ | `--uva-color-link` | | Dark-mode role token: the visible link (else `--uva-brand-blue`). |
1713
+ | `--uva-color-focus` | | Dark-mode role token: focus ring (else `--uva-brand-orange`). |
1714
+
1668
1715
  ## `<uvalib-results-count>`
1669
1716
 
1670
1717
  The results summary of a search or listing page, such as “Showing 48 of 3,694 shoots”, and a polite live region that tells screen reader users when it changes. Set `total` (how many match), `shown` (how many are on the page) and `noun` (plural, default “results”; `singular` for a total of one). The visible text follows at once: “Showing 48 of 3,694 shoots”, “Showing all 12 shoots” (shown is the total, or unset), “Showing 1 shoot” or “No shoots” (a total of 0, or 0 shown); with only `shown`, “Showing 48 shoots”. Numbers use thousands separators. A missing or blank `shown` or `total` is unset, not 0. The announcement waits until the text has not changed for `announce-delay` milliseconds (default 1000, as `<bento-box>` and `<uvalib-pagefind-search>` settle), so typing in a filter box is announced once. The first render is never announced; when it has no count yet (the data still loading), the first count that arrives is. A count is announced again when it comes back after a different one (a new search with the same number of results), but not when nothing was shown in between. The announcement is cleared from the hidden region five seconds later, so reading the page finds the count once. `<bento-box>` and `<uvalib-pagefind-search>` announce their own counts: use this element for your own listings, not beside them.