@uvalib/web-components 1.11.0 → 1.12.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +193 -54
  3. package/dist/base.css +135 -2
  4. package/dist/components/uvalib-audio/UvalibAudio.d.ts +186 -0
  5. package/dist/components/uvalib-audio/UvalibAudio.js +1154 -0
  6. package/dist/components/uvalib-audio/UvalibAudio.js.map +1 -0
  7. package/dist/components/uvalib-audio/uvalib-audio.d.ts +1 -0
  8. package/dist/components/uvalib-audio/uvalib-audio.js +4 -0
  9. package/dist/components/uvalib-audio/uvalib-audio.js.map +1 -0
  10. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.d.ts +25 -5
  11. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +62 -9
  12. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
  13. package/dist/custom-elements.json +1431 -132
  14. package/dist/edition-epub.css +511 -0
  15. package/dist/edition-print.css +51 -0
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/styles/base.js +169 -1
  20. package/dist/styles/base.js.map +1 -1
  21. package/dist/styles/edition.d.ts +6 -0
  22. package/dist/styles/edition.js +20 -0
  23. package/dist/styles/edition.js.map +1 -1
  24. package/dist-cdn/base.css +135 -2
  25. package/dist-cdn/chunks/{base-DmImIMld.js → base-D_oPO5cX.js} +147 -4
  26. package/dist-cdn/chunks/base-D_oPO5cX.js.map +1 -0
  27. package/dist-cdn/custom-elements.json +1431 -132
  28. package/dist-cdn/edition-epub.css +511 -0
  29. package/dist-cdn/edition-print.css +51 -0
  30. package/dist-cdn/manifest.json +6 -3
  31. package/dist-cdn/site-page.js +1 -1
  32. package/dist-cdn/site-style.js +1 -1
  33. package/dist-cdn/skills/uvalib-web-components/SKILL.md +36 -5
  34. package/dist-cdn/skills/uvalib-web-components/reference/components.md +53 -1
  35. package/dist-cdn/uvalib-audio.js +747 -0
  36. package/dist-cdn/uvalib-audio.js.map +1 -0
  37. package/dist-cdn/uvalib-pagefind-search.js +70 -44
  38. package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
  39. package/package.json +7 -1
  40. package/skills/uvalib-web-components/SKILL.md +36 -5
  41. package/skills/uvalib-web-components/reference/components.md +53 -1
  42. package/dist-cdn/chunks/base-DmImIMld.js.map +0 -1
@@ -924,6 +924,14 @@
924
924
  "name": "ListFilterChangeDetail",
925
925
  "module": "./components/uvalib-list-filter/UvalibListFilter.js"
926
926
  }
927
+ },
928
+ {
929
+ "kind": "js",
930
+ "name": "UvalibAudio",
931
+ "declaration": {
932
+ "name": "UvalibAudio",
933
+ "module": "./components/uvalib-audio/UvalibAudio.js"
934
+ }
927
935
  }
928
936
  ]
929
937
  },
@@ -2903,7 +2911,7 @@
2903
2911
  {
2904
2912
  "kind": "variable",
2905
2913
  "name": "base",
2906
- "default": "css` *, *::before, *::after { box-sizing: border-box; } html, body { font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); } html { font-size: var(--uva-font-size-base, 17px); } body { margin: 0; line-height: 1.5; min-height: 100vh; color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b)); background-color: var(--uva-color-surface); } site-page:not(:defined) { display: flow-root; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-breadcrumbs:not(:defined), uvalib-card:not(:defined), uvalib-card-grid:not(:defined), uvalib-pager:not(:defined), uvalib-contents:not(:defined), uvalib-metadata:not(:defined), uvalib-tag-list:not(:defined) { display: block; line-height: 1.5; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw children kept on one line so they cannot make it taller. */ uvalib-chip-group:not(:defined) { display: block; min-height: 44px; max-width: 100%; overflow: hidden; white-space: nowrap; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-chip-group[scroll]:not(:defined) { min-height: calc(44px + 0.75rem); } /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */ uvalib-chip-group[description]:not(:defined) { padding-block-end: 1.5625rem; } /* Its text is drawn from attributes: hold one line until it upgrades. */ uvalib-results-count:not(:defined) { display: block; min-block-size: 1.5em; } uvalib-tag-list:not(:defined)[hidden], uvalib-results-count:not(:defined)[hidden] { display: none; } /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7). More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */ :where( site-page, uvalib-breadcrumbs, uvalib-card, uvalib-card-grid, uvalib-pager, uvalib-contents, uvalib-metadata, uvalib-chip-group, uvalib-tabs, uvalib-combobox, uvalib-image-regions, uvalib-map, uvalib-filter-drawer, uvalib-filter, uvalib-list-filter ):not(:defined)[hidden], :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] { display: none; } /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid out as it lays them out (label beside value from 36rem of its own width, stacked below; 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart), so the page does not move when it upgrades. Rows the attributes add (creator, rights, citation) are not in the page's <dl> and cannot be held. */ uvalib-metadata:not(:defined) { container-type: inline-size; font-size: 1rem; } uvalib-metadata:not(:defined) > dl { display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr); column-gap: 1.5rem; margin: 0; } uvalib-metadata:not(:defined) > dl > dt { grid-column: 1; margin: 0; padding-block: 0.5rem; font-weight: 700; } uvalib-metadata:not(:defined) > dl > dd { grid-column: 2; margin: 0; padding-block: 0.5rem; } uvalib-metadata:not(:defined) > dl > dt:not(:first-child), uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd { border-block-start: 1px solid transparent; } uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) { margin: 0; padding: 0; list-style: none; } uvalib-metadata:not(:defined) > dl > dd li + li { margin-block-start: 0.25rem; } @container (width < 36rem) { uvalib-metadata:not(:defined) > dl { grid-template-columns: minmax(0, 1fr); } uvalib-metadata:not(:defined) > dl > :is(dt, dd) { grid-column: 1; } uvalib-metadata:not(:defined) > dl > dt { padding-block-end: 0; } uvalib-metadata:not(:defined) > dl > dd { padding-block-start: 0; } uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd { border-block-start: 0; } } ${metadataLimits} /* Tabs stay readable before the script runs: a block, one panel, and a gap the size of the tab row (44px) plus its 1rem margin, so the first panel does not jump when the element upgrades. Later data-tab panels stay hidden. */ uvalib-tabs:not(:defined) { display: block; padding-block-start: calc(44px + 1rem); } uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] { display: none; } /* A combobox: its label (from the attribute) and one 44px field (plus a one-line description) held, so nothing moves when it upgrades. A fallback <input list> child works meanwhile; the other children (options, a datalist) stay out of sight. */ uvalib-combobox:not(:defined) { display: block; min-block-size: calc(1.5em + 0.25rem + 44px); line-height: 1.5; } uvalib-combobox[description]:not(:defined) { min-block-size: calc(3em + 0.5rem + 44px); } uvalib-combobox:not(:defined)::before { content: attr(label); display: block; margin-block-end: 0.25rem; font-weight: 600; } uvalib-combobox:not(:defined) > :not(input) { display: none; } uvalib-combobox:not(:defined) > input { display: block; box-sizing: border-box; inline-size: 100%; min-block-size: 44px; font: inherit; line-height: 1.2; } /* A list filter draws its label, a 44px field and a one-line count from attributes: hold their height (less the label with hide-label, less the count with results-count), so the list below does not move when it upgrades. The list itself is the page's and stays fully shown until then. */ uvalib-list-filter:not(:defined) { display: block; font-size: 1rem; line-height: 1.5; min-block-size: calc(1.5em + 0.25rem + 44px + 0.25rem + 1.5em); } uvalib-list-filter[hide-label]:not(:defined) { min-block-size: calc(44px + 0.25rem + 1.5em); } uvalib-list-filter[results-count]:not(:defined) { min-block-size: calc(1.5em + 0.25rem + 44px); } uvalib-list-filter[hide-label][results-count]:not(:defined) { min-block-size: 44px; } /* Image regions: the image at its own width and the list beside it (or under it), the layout the element keeps once it upgrades, so the image does not move. */ uvalib-image-regions:not(:defined) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; } uvalib-image-regions:not(:defined) > :is(img, picture) { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; } uvalib-image-regions:not(:defined) > :is(ol, ul) { flex: 1 1 14rem; min-width: 0; } /* A map: its key instructions (the same text it shows) and the map's height held above the child list, so the list does not move when the map is drawn over the page's Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */ uvalib-map:not(:defined) { display: block; } uvalib-map:not(:defined)::before { content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.'; display: block; padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw)))); font-size: 0.875rem; line-height: 1.5; color: var(--uva-color-text-muted, #4b5563); } /* A collapsed filter group (<uvalib-filter collapsible collapsed>) draws only its 44px legend button once it upgrades: hold that height. Low specificity, so the [hidden] rule above still wins. */ :where(uvalib-filter[collapsible][collapsed]):not(:defined) { display: block; min-block-size: 44px; } /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px \"Search and filters\" button shows, so hold that height and keep the form and filters out of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the same two rules in a media query of that width (see the README). Low specificity, so the [hidden] rule above still wins. */ @media (max-width: 48rem) { :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) { display: block; min-block-size: 44px; } :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * { display: none; } } /* A contents list before <uvalib-contents> upgrades (a .uvalib-sidebar-layout sidebar): the headline's line held above, the links already padded as it pads them (the rules drawn transparent while hidden), so the list does not move. Narrow (the default 64rem collapse-below, closed): only its 44px button shows once it upgrades, so hold that and clip the list; the reveal releases it, so the list still shows if the script never loads. The [hidden] rule above still wins (it alone sets display). */ uvalib-contents:not(:defined) { padding-block-start: calc(1.125rem * 1.3 + 0.5rem); animation-name: uvalib-contents-reveal; } /* With full-href (issue #38): the full-contents link's line held below the list (0.5rem above a 44px link). A window=\"N\" list is not held: the whole list shows until it upgrades (in a sidebar beside the content, nothing else moves). */ uvalib-contents[full-href]:not(:defined) { padding-block-end: calc(44px + 0.5rem); } :where(uvalib-contents):not(:defined) :is(ol, ul) { margin: 0; padding: 0; list-style: none; } :where(uvalib-contents):not(:defined) > :is(ol, ul) { border-block: 1px solid transparent; } :where(uvalib-contents):not(:defined) > :is(ol, ul) > li + li { border-block-start: 1px solid transparent; } :where(uvalib-contents):not(:defined) li > a { display: block; padding: 0.5rem 0.75rem 0.5rem calc(0.75rem + 4px); } :where(uvalib-contents):not(:defined) li li > a { padding-block: 0.25rem; } :where(uvalib-contents):not(:defined) li :is(ol, ul) { padding-inline-start: 1rem; border-inline-start: 2px solid transparent; } /* In light DOM (no-shadow-dom) a nested list is indented by a margin, with 0.5rem below. */ :where(uvalib-contents[no-shadow-dom]):not(:defined) li :is(ol, ul) { margin: 0 0 0.5rem 0.75rem; padding-inline-start: 0; } @media (max-width: 64rem) { uvalib-contents:not([collapse-below], [open]):not(:defined) { max-block-size: 44px; padding-block: 0; overflow: hidden; } } @keyframes uvalib-contents-reveal { to { visibility: visible; max-block-size: none; overflow: visible; } } /* A dialog before <uvalib-dialog> upgrades: its children are the dialog's content, never shown in the page, so nothing flashes or moves. Once defined, a closed dialog renders nothing (its host is display: contents around a closed <dialog>). */ uvalib-dialog:not(:defined) { display: none; } /* A citation before <uvalib-citation> upgrades: only the first format's citation, boxed as it will be, with the label and 44px format bar held above it (none for hide-label) and the 44px Copy citation row below, so nothing moves when it upgrades (an app's citations property cannot be held). */ uvalib-citation:not(:defined) { display: block; font-size: 1rem; line-height: 1.5; } uvalib-citation:not(:defined):has(> [data-format]) { padding-block: calc(2rem + 44px + 0.75rem) calc(0.75rem + 44px); } uvalib-citation[hide-label]:not(:defined):has(> [data-format]) { padding-block-start: calc(44px + 0.75rem); } uvalib-citation:not(:defined) > [data-format] { margin: 0; padding: 0.75rem 1rem; border: 1px solid transparent; overflow-wrap: anywhere; text-wrap: pretty; } uvalib-citation:not(:defined) > [data-format] ~ [data-format], uvalib-citation:not(:defined) > [slot] { display: none; } /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme prints light (the role tokens resolve to their light values), and the content's links are black and underlined, so they are told apart without colour. Content is <main> in light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is shown, apart from the light scheme. */ @media print { :root[data-uva-color-scheme]:has(site-page) { color-scheme: light; --uva-color-scheme: light; } /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */ site-page:not([print-chrome]) > [slot='breadcrumbs'] { display: none; } site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link, site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) { color: #000; text-decoration: underline; } } @keyframes uvalib-site-page-reveal { to { visibility: visible; } } `"
2914
+ "default": "css` *, *::before, *::after { box-sizing: border-box; } html, body { font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); } html { font-size: var(--uva-font-size-base, 17px); } body { margin: 0; line-height: 1.5; min-height: 100vh; color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b)); background-color: var(--uva-color-surface); } site-page:not(:defined) { display: flow-root; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-breadcrumbs:not(:defined), uvalib-card:not(:defined), uvalib-card-grid:not(:defined), uvalib-pager:not(:defined), uvalib-contents:not(:defined), uvalib-metadata:not(:defined), uvalib-tag-list:not(:defined) { display: block; line-height: 1.5; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } /* A chip row: hidden, one 44px row tall (with the scrolling row's padding), the raw children kept on one line so they cannot make it taller. */ uvalib-chip-group:not(:defined) { display: block; min-height: 44px; max-width: 100%; overflow: hidden; white-space: nowrap; visibility: hidden; animation: uvalib-site-page-reveal 0s 2s forwards; } uvalib-chip-group[scroll]:not(:defined) { min-height: calc(44px + 0.75rem); } /* A description: one line of it (0.875rem at 1.5, 0.25rem below the row). */ uvalib-chip-group[description]:not(:defined) { padding-block-end: 1.5625rem; } /* Its text is drawn from attributes: hold one line until it upgrades. */ uvalib-results-count:not(:defined) { display: block; min-block-size: 1.5em; } uvalib-tag-list:not(:defined)[hidden], uvalib-results-count:not(:defined)[hidden] { display: none; } ${pagerRules} /* The pre-upgrade rules here set display, which beats the hidden attribute's (issue #7). More specific than each of them (two pseudo-classes or attributes), so it needs no importance flag. */ :where( site-page, uvalib-breadcrumbs, uvalib-card, uvalib-card-grid, uvalib-pager, uvalib-contents, uvalib-metadata, uvalib-chip-group, uvalib-tabs, uvalib-combobox, uvalib-image-regions, uvalib-map, uvalib-filter-drawer, uvalib-filter, uvalib-list-filter, uvalib-audio ):not(:defined)[hidden], :where(uvalib-combobox, uvalib-image-regions):not(:defined) > [hidden] { display: none; } /* A record's details before <uvalib-metadata> upgrades (issue #34): the rows already laid out as it lays them out (label beside value from 36rem of its own width, stacked below; 8px above and below each row, a 1px rule between rows; lists without bullets, 4px apart), so the page does not move when it upgrades. Rows the attributes add (creator, rights, citation) are not in the page's <dl> and cannot be held. */ uvalib-metadata:not(:defined) { container-type: inline-size; font-size: 1rem; } uvalib-metadata:not(:defined) > dl { display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr); column-gap: 1.5rem; margin: 0; } uvalib-metadata:not(:defined) > dl > dt { grid-column: 1; margin: 0; padding-block: 0.5rem; font-weight: 700; } uvalib-metadata:not(:defined) > dl > dd { grid-column: 2; margin: 0; padding-block: 0.5rem; } uvalib-metadata:not(:defined) > dl > dt:not(:first-child), uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd { border-block-start: 1px solid transparent; } uvalib-metadata:not(:defined) > dl > dd > :is(ul, ol) { margin: 0; padding: 0; list-style: none; } uvalib-metadata:not(:defined) > dl > dd li + li { margin-block-start: 0.25rem; } @container (width < 36rem) { uvalib-metadata:not(:defined) > dl { grid-template-columns: minmax(0, 1fr); } uvalib-metadata:not(:defined) > dl > :is(dt, dd) { grid-column: 1; } uvalib-metadata:not(:defined) > dl > dt { padding-block-end: 0; } uvalib-metadata:not(:defined) > dl > dd { padding-block-start: 0; } uvalib-metadata:not(:defined) > dl > dt:not(:first-child) + dd { border-block-start: 0; } } ${metadataLimits} /* Tabs stay readable before the script runs: a block, one panel, and a gap the size of the tab row (44px) plus its 1rem margin, so the first panel does not jump when the element upgrades. Later data-tab panels stay hidden. */ uvalib-tabs:not(:defined) { display: block; padding-block-start: calc(44px + 1rem); } uvalib-tabs:not(:defined) > [data-tab] ~ [data-tab] { display: none; } /* A combobox: its label (from the attribute) and one 44px field (plus a one-line description) held, so nothing moves when it upgrades. A fallback <input list> child works meanwhile; the other children (options, a datalist) stay out of sight. */ uvalib-combobox:not(:defined) { display: block; min-block-size: calc(1.5em + 0.25rem + 44px); line-height: 1.5; } uvalib-combobox[description]:not(:defined) { min-block-size: calc(3em + 0.5rem + 44px); } uvalib-combobox:not(:defined)::before { content: attr(label); display: block; margin-block-end: 0.25rem; font-weight: 600; } uvalib-combobox:not(:defined) > :not(input) { display: none; } uvalib-combobox:not(:defined) > input { display: block; box-sizing: border-box; inline-size: 100%; min-block-size: 44px; font: inherit; line-height: 1.2; } /* A list filter draws its label, a 44px field and a one-line count from attributes: hold their height (less the label with hide-label, less the count with results-count), so the list below does not move when it upgrades. The list itself is the page's and stays fully shown until then. */ uvalib-list-filter:not(:defined) { display: block; font-size: 1rem; line-height: 1.5; min-block-size: calc(1.5em + 0.25rem + 44px + 0.25rem + 1.5em); } uvalib-list-filter[hide-label]:not(:defined) { min-block-size: calc(44px + 0.25rem + 1.5em); } uvalib-list-filter[results-count]:not(:defined) { min-block-size: calc(1.5em + 0.25rem + 44px); } uvalib-list-filter[hide-label][results-count]:not(:defined) { min-block-size: 44px; } /* A recording by chapter (<uvalib-audio>): its list of links shows as it will once upgraded (each row 44px plus padding, a rule below, the title where it will sit after the Play button, a second 44px line for an item with more links or a download), and the player's height is held above it: one row of controls from 44rem of its own width, two from 26rem, three below (and the download line). Keep in step with UvalibAudio's rules. */ uvalib-audio:not(:defined) { display: block; container-type: inline-size; font-size: 1rem; line-height: 1.5; } uvalib-audio:not(:defined)::before { content: ''; display: block; block-size: calc(1.5rem + 2px + 44px + 0.5rem + 44px); margin-block-end: 1rem; } uvalib-audio[download-href]:not([download-href='']):not(:defined)::before { margin-block-end: calc(1rem + 44px + 1rem); } @container (width < 44rem) { uvalib-audio:not(:defined)::before { block-size: calc(1.5rem + 2px + 44px + 0.5rem + 2 * 44px + 0.5rem); } } @container (width < 26rem) { uvalib-audio:not(:defined)::before { block-size: calc(1.5rem + 2px + 44px + 0.5rem + 3 * 44px + 2 * 0.5rem); } } uvalib-audio:not(:defined) > :is(ol, ul) { margin: 0; padding: 0; list-style: none; } uvalib-audio:not(:defined) > :is(ol, ul) > li { box-sizing: border-box; min-block-size: calc(44px + 0.5rem + 1px); margin: 0; padding: 0.25rem 0 0.25rem 8px; border-block-end: 1px solid var(--uva-color-table-border, #dadada); align-content: center; } uvalib-audio:not(:defined) > :is(ol, ul) > li:is([data-download], :has(a[href] ~ a[href])) { min-block-size: calc(2 * 44px + 0.5rem + 1px); } /* Room for the duration the upgraded row shows at its end (about “12:31”). */ uvalib-audio:not(:defined) > :is(ol, ul) > li:has(> a[data-duration]) { padding-inline-end: calc(0.75rem + 2.75em); } uvalib-audio:not(:defined) > :is(ol, ul) > li > a:first-child { margin-inline-start: calc(0.5rem + 5rem + 0.75rem); } /* Image regions: the image at its own width and the list beside it (or under it), the layout the element keeps once it upgrades, so the image does not move. */ uvalib-image-regions:not(:defined) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; } uvalib-image-regions:not(:defined) > :is(img, picture) { display: block; flex: 0 1 auto; min-width: 0; max-width: 100%; height: auto; } uvalib-image-regions:not(:defined) > :is(ol, ul) { flex: 1 1 14rem; min-width: 0; } /* A map: its key instructions (the same text it shows) and the map's height held above the child list, so the list does not move when the map is drawn over the page's Leaflet. Padding, not margin, so it cannot collapse with the list's own top margin. */ uvalib-map:not(:defined) { display: block; } uvalib-map:not(:defined)::before { content: 'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.'; display: block; padding-block-end: calc(0.5rem + max(12rem, var(--uvalib-map-height, min(24rem, 75vw)))); font-size: 0.875rem; line-height: 1.5; color: var(--uva-color-text-muted, #4b5563); } /* A collapsed filter group (<uvalib-filter collapsible collapsed>) draws only its 44px legend button once it upgrades: hold that height. Low specificity, so the [hidden] rule above still wins. */ :where(uvalib-filter[collapsible][collapsed]):not(:defined) { display: block; min-block-size: 44px; } /* A filter drawer on a phone (the default 48rem breakpoint): once it upgrades only its 44px \"Search and filters\" button shows, so hold that height and keep the form and filters out of sight meanwhile; nothing moves when it upgrades. A page with its own breakpoint adds the same two rules in a media query of that width (see the README). Low specificity, so the [hidden] rule above still wins. */ @media (max-width: 48rem) { :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) { display: block; min-block-size: 44px; } :where(uvalib-filter-drawer:not([breakpoint])):not(:defined) > * { display: none; } } /* A contents list before <uvalib-contents> upgrades (a .uvalib-sidebar-layout sidebar): the headline's line held above, the links already padded as it pads them (the rules drawn transparent while hidden), so the list does not move. Narrow (the default 64rem collapse-below, closed): only its 44px button shows once it upgrades, so hold that and clip the list; the reveal releases it, so the list still shows if the script never loads. The [hidden] rule above still wins (it alone sets display). */ uvalib-contents:not(:defined) { padding-block-start: calc(1.125rem * 1.3 + 0.5rem); animation-name: uvalib-contents-reveal; } /* With full-href (issue #38): the full-contents link's line held below the list (0.5rem above a 44px link). A window=\"N\" list is not held: the whole list shows until it upgrades (in a sidebar beside the content, nothing else moves). */ uvalib-contents[full-href]:not(:defined) { padding-block-end: calc(44px + 0.5rem); } :where(uvalib-contents):not(:defined) :is(ol, ul) { margin: 0; padding: 0; list-style: none; } :where(uvalib-contents):not(:defined) > :is(ol, ul) { border-block: 1px solid transparent; } :where(uvalib-contents):not(:defined) > :is(ol, ul) > li + li { border-block-start: 1px solid transparent; } :where(uvalib-contents):not(:defined) li > a { display: block; padding: 0.5rem 0.75rem 0.5rem calc(0.75rem + 4px); } :where(uvalib-contents):not(:defined) li li > a { padding-block: 0.25rem; } :where(uvalib-contents):not(:defined) li :is(ol, ul) { padding-inline-start: 1rem; border-inline-start: 2px solid transparent; } /* In light DOM (no-shadow-dom) a nested list is indented by a margin, with 0.5rem below. */ :where(uvalib-contents[no-shadow-dom]):not(:defined) li :is(ol, ul) { margin: 0 0 0.5rem 0.75rem; padding-inline-start: 0; } @media (max-width: 64rem) { uvalib-contents:not([collapse-below], [open]):not(:defined) { max-block-size: 44px; padding-block: 0; overflow: hidden; } } @keyframes uvalib-contents-reveal { to { visibility: visible; max-block-size: none; overflow: visible; } } /* A dialog before <uvalib-dialog> upgrades: its children are the dialog's content, never shown in the page, so nothing flashes or moves. Once defined, a closed dialog renders nothing (its host is display: contents around a closed <dialog>). */ uvalib-dialog:not(:defined) { display: none; } /* A citation before <uvalib-citation> upgrades: only the first format's citation, boxed as it will be, with the label and 44px format bar held above it (none for hide-label) and the 44px Copy citation row below, so nothing moves when it upgrades (an app's citations property cannot be held). */ uvalib-citation:not(:defined) { display: block; font-size: 1rem; line-height: 1.5; } uvalib-citation:not(:defined):has(> [data-format]) { padding-block: calc(2rem + 44px + 0.75rem) calc(0.75rem + 44px); } uvalib-citation[hide-label]:not(:defined):has(> [data-format]) { padding-block-start: calc(44px + 0.75rem); } uvalib-citation:not(:defined) > [data-format] { margin: 0; padding: 0.75rem 1rem; border: 1px solid transparent; overflow-wrap: anywhere; text-wrap: pretty; } uvalib-citation:not(:defined) > [data-format] ~ [data-format], uvalib-citation:not(:defined) > [slot] { display: none; } /* Printing a <site-page> (issue #20; its own styles leave out the chrome): a dark scheme prints light (the role tokens resolve to their light values), and the content's links are black and underlined, so they are told apart without colour. Content is <main> in light DOM and the unslotted children in shadow DOM. print-chrome keeps the page as it is shown, apart from the light scheme. */ @media print { :root[data-uva-color-scheme]:has(site-page) { color-scheme: light; --uva-color-scheme: light; } /* Light DOM's trail, here too, as the pre-upgrade rule above (unlayered) would win. */ site-page:not([print-chrome]) > [slot='breadcrumbs'] { display: none; } site-page:not([print-chrome]) > :not([slot], site-header, site-footer, .alerts-list) :any-link, site-page:not([print-chrome]) > :any-link:not([slot], .skip-link) { color: #000; text-decoration: underline; } } @keyframes uvalib-site-page-reveal { to { visibility: visible; } } `"
2907
2915
  }
2908
2916
  ],
2909
2917
  "exports": [
@@ -2991,6 +2999,12 @@
2991
2999
  "kind": "variable",
2992
3000
  "name": "edition",
2993
3001
  "default": "css` ${E} { display: block; max-inline-size: 70ch; color: ${TEXT}; font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 1.125rem; line-height: 1.7; overflow-wrap: break-word; hyphens: auto; } ${E} :where([hidden]), :where(.uvalib-edition, .uvalib-edition__lines, .uvalib-edition__readings)[hidden] { display: none !important; } /* Divisions */ ${E} :where(section, .div) { margin: 0; } ${E} :where(section.div, div.div) + :where(section.div, div.div) { margin-block-start: 2.5rem; } /* Headings: the theme's colour, weight and scale. */ ${E} :where(h1, h2, h3, h4, h5, h6) { margin: 2rem 0 1rem; color: ${LINK}; font-weight: 500; line-height: 1.15; text-wrap: balance; } ${E} :where(:is(h1, h2, h3, h4, h5, h6):first-child) { margin-block-start: 0; } ${E} :where(h1) { font-size: 2.488rem; font-weight: 700; } ${E} :where(h2) { font-size: 2.074rem; font-weight: 700; } ${E} :where(h3) { font-size: 1.728rem; } ${E} :where(h4) { font-size: 1.44rem; } ${E} :where(h5) { font-size: 1.2rem; } ${E} :where(h6) { font-size: 1rem; } ${E} :where(:is(.head, .list-head):not(h1, h2, h3, h4, h5, h6, .figure *, figure *)) { display: block; margin: 1.5em 0 0.5em; font-weight: 700; line-height: 1.3; } ${E} :where(.head-sub, .head-alt, .head-desc) { font-size: 0.85em; font-weight: 500; } /* Paragraphs */ ${E} :where(p, div.p, div.ab) { margin: 0 0 1em; text-wrap: pretty; } /* Renditions */ ${E} :where(.rend-italic, .rend-i, .rend-it) { font-style: italic; } ${E} :where(.rend-roman, .rend-normal) { font-style: normal; } ${E} :where(.rend-bold, .rend-b) { font-weight: 700; } ${E} :where(.rend-smallcaps, .rend-small-caps, .rend-sc) { font-variant: small-caps; } ${E} :where(.rend-underline, .rend-u) { text-decoration: underline; } ${E} :where(.rend-sup, .rend-superscript) { font-size: 0.75em; vertical-align: super; line-height: 0; } ${E} :where(.rend-sub, .rend-subscript) { font-size: 0.75em; vertical-align: sub; line-height: 0; } ${E} :where(.rend-center) { text-align: center; } ${E} :where(.rend-right) { text-align: end; } ${E} :where(.rend-left) { text-align: start; } ${E} :where(.rend-indent:not(.l)) { text-indent: 2em; } ${E} :where(.rend-indent2:not(.l)) { text-indent: 4em; } ${E} :where(.rend-indent3:not(.l)) { text-indent: 6em; } ${E} :where(.rend-no-indent, .rend-noindent) { text-indent: 0; } ${E} :where(.rend-hang) { padding-inline-start: 2em; text-indent: -2em; } ${E} :where(span.rend-hang) { display: inline-block; } /* Original line breaks: prose reflows; the toggle shows them. */ ${E} :where(br.lb) { display: none; } ${E} :where(span.lb)::before { content: ' '; } ${LINES} :where(br.lb) { display: inline; } ${LINES} :where(span.lb)::before { content: '\\\\A'; white-space: pre; } /* Verse: every line breaks; wrapped lines hang; line numbers from data-n, visual only. */ ${E} :where(.lg) { margin: 0 0 1.25em; } ${E} :where(.lg) :where(.lg) { margin-block-end: 1em; } ${E} :where(.l) { display: block; position: relative; padding-inline-start: 2em; text-indent: -2em; } ${E} :where(.l.rend-indent) { padding-inline-start: 4em; } ${E} :where(.l.rend-indent2) { padding-inline-start: 6em; } ${E} :where(.l.rend-indent3) { padding-inline-start: 8em; } ${E} :where(.l.rend-indent4) { padding-inline-start: 10em; } ${E} :where(.lg:has(.l[data-n])) :where(.l) { padding-inline-end: 2.5rem; } ${E} :where(.l[data-n])::after { content: attr(data-n); content: attr(data-n) / ''; position: absolute; inset-block-start: 0.35em; inset-inline-end: 0; color: ${MUTED}; font-size: 0.75rem; font-style: normal; font-variant: normal; font-weight: 400; line-height: 1.5; text-indent: 0; font-variant-numeric: tabular-nums; } /* Drama */ ${E} :where(.sp) { margin: 0 0 1em; } ${E} :where(.speaker) { margin: 0; font-variant: small-caps; font-weight: 700; letter-spacing: 0.03em; } ${E} :where(.sp) > :where(:not(.speaker, .stage)) { margin-inline-start: 1.5em; } ${E} :where(.stage) { color: ${MUTED}; font-style: italic; } ${E} :where(p.stage, div.stage) { margin: 0.25em 0 0.75em 1.5em; } /* Letters: opener, dateline, salute, closer, signed, postscript. */ ${E} :where(.opener, .closer) { margin: 1em 0; } ${E} :where(.dateline) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.salute) { margin: 0 0 0.75em; } ${E} :where(.closer) { text-align: end; } ${E} :where(.signed) { margin: 0 0 0.75em; text-align: end; } ${E} :where(.postscript, .seg-postscript, .ps) { display: block; margin: 1.5em 0 1em; text-align: start; } /* Front matter and quotations: the theme's blockquote. */ ${E} :where(blockquote, .epigraph, .cit, .quote, div.q) { margin: 0.5rem 1.5rem 1.5rem; padding: 0 0.5rem; border-inline-start: 1px solid var(--uva-brand-orange, #e57200); font-style: italic; } ${E} :where(.epigraph, .cit, .quote, div.q) :where(blockquote) { margin: 0; padding: 0; border: 0; } ${E} :where(blockquote, .epigraph, .cit) :where(p, div.p):last-child { margin-block-end: 0; } ${E} :where(.bibl) { display: block; font-style: normal; } ${E} :where(.epigraph, .cit) :where(.bibl) { margin-block-start: 0.25em; text-align: end; } ${E} :where(.argument) { margin: 0 1.5em 1.5em; font-style: italic; } ${E} :where(.byline, .trailer, .dedication, .docAuthor) { margin: 1em 0; text-align: center; } ${E} :where(.dedication) { font-style: italic; } /* Title pages */ ${E} :where(.titlepage, .titlePage) { margin: 0 0 2rem; text-align: center; } ${E} :where(.titlePart, .docTitle) { display: block; margin: 0.5em 0; color: ${LINK}; font-size: 1.44rem; font-weight: 500; line-height: 1.15; } ${E} :where(.titlePart-sub, .titlePart-subtitle) { font-size: 1.2rem; } ${E} :where(.docAuthor) { font-variant: small-caps; } ${E} :where(.docImprint, .docDate, .docEdition) { margin: 1em 0; color: ${MUTED}; } /* Lists and tables */ ${E} :where(ul.list, ol.list) { margin: 0 0 1em; padding-inline-start: 1.5em; } ${E} :where(.list-simple, .list-castlist) { padding-inline-start: 0; list-style: none; } ${E} :where(.list) :where(.label) { font-weight: 700; } ${E} :where(.table-wrap) { margin: 0 0 1.25em; overflow-x: auto; } ${E} :where(table) { border-collapse: collapse; font-size: 0.9em; line-height: 1.4; } ${E} :where(td, th) { padding: 0.25em 0.6em; border-block-end: 1px solid ${RULE}; text-align: start; vertical-align: top; } /* Ornaments and section breaks: a centred muted ⁂, hidden from screen readers. */ ${E} :where(.ornament, .textbreak) { display: block; block-size: auto; margin: 1.5em 0; border: 0; color: ${MUTED}; text-align: center; overflow: visible; } ${E} :where(hr.ornament, hr.textbreak, .ornament:empty, .textbreak:empty)::before { content: '\\\\2042'; content: '\\\\2042' / ''; font-size: 1.25em; line-height: 1; } /* Page breaks: small muted labels; a link to the page image is underlined, in the link colour. Each at least 24px tall. Works with <uvalib-lightbox selector=\"a.pb-image\">. */ ${E} :where(.pb) { color: ${MUTED}; font-size: 0.8125rem; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.2; text-indent: 0; } ${E} :where(.pb) :where(a, .pb-n) { display: inline-block; margin: 0 0.25em; padding: 0.2em 0.5em; border: 1px solid ${RULE}; border-radius: 3px; white-space: nowrap; text-indent: 0; } ${E} :where(.pb) :where(a) { color: ${LINK}; text-decoration: underline; text-underline-offset: 0.15em; } ${E} :where(.pb) :where(a:hover) { border-color: currentColor; text-decoration-thickness: 2px; } ${E} :where(.pb) :where(a:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(section, .div) > :where(.pb:first-child:not(:empty)) { display: block; margin-block-end: 0.5em; text-align: end; } /* Figures */ ${E} :where(.figure, figure) { display: block; margin: 1.5em 0; text-align: center; } ${E} :where(.figure, figure) :where(img) { display: block; max-inline-size: 100%; max-block-size: 80vh; inline-size: auto; block-size: auto; margin: 0 auto 0.5em; } ${E} :where(.figure, figure) :where(.head, .figDesc, figcaption) { display: block; color: ${MUTED}; font-size: 0.875em; font-weight: 400; line-height: 1.4; } /* Editorial marks: never colour or strike-through alone. */ ${E} :where(ins.add, .add) { font-size: 0.85em; text-decoration: none; vertical-align: super; line-height: 0; } ${E} :where(ins.add, .add)::before { content: 'added: '; ${SR_ONLY} } ${E} :where(ins.add, .add)::after { content: ' (end added)'; ${SR_ONLY} } ${E} :where(del.del, .del) { text-decoration: line-through; } ${E} :where(del.del, .del)::before { content: 'deleted: '; ${SR_ONLY} } ${E} :where(del.del, .del)::after { content: ' (end deleted)'; ${SR_ONLY} } /* A deletion with no text (illegible or not transcribed): a visible bracket, inline-block so the strike-through does not cross it. */ ${E} :where(del.del:empty, .del:empty)::before { content: '[deletion]'; position: static; display: inline-block; inline-size: auto; block-size: auto; margin: 0; overflow: visible; clip-path: none; color: ${MUTED}; font-size: 0.85em; } ${E} :where(del.del:empty, .del:empty)::after { content: none; } ${E} ${TITLED} { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 0.2em; cursor: help; } ${READINGS} ${TITLED}::after { content: ' [' attr(title) ']'; color: ${MUTED}; font-size: 0.85em; font-style: normal; } ${E} :where(.unclear)::after { content: '[?]'; content: '[?]' / '(unclear)'; margin-inline-start: 0.1em; color: ${MUTED}; font-size: 0.75em; font-style: normal; vertical-align: super; line-height: 0; } ${E} :where(.gap) { color: ${MUTED}; font-style: italic; } ${E} :where(.gap:empty)::before { content: '[\\\\2026]'; content: '[\\\\2026]' / 'gap in the text'; font-style: normal; } /* Notes: superscript references, footnotes after a rule, notes in the flow as boxes. */ ${E} :where(sup.noteref, .noteref) { padding: 0 0.1em; font-size: 0.75em; font-style: normal; line-height: 0; vertical-align: super; } ${E} :where(.noteref) :where(a) { color: ${LINK}; text-underline-offset: 0.15em; } ${E} :where(.noteref) :where(a)::before { content: 'Note '; ${SR_ONLY} } ${E} :where(.footnotes) { margin-block-start: 3rem; padding-block-start: 1rem; border-block-start: 1px solid var(--uva-color-control-border, var(--uva-grey, #808080)); font-size: 0.875em; line-height: 1.5; } ${E} :where(aside.note, .note-foot, .note-end) { display: flex; gap: 0.6em; margin: 0 0 0.75em; } ${E} :where(.note-n) { flex: none; min-inline-size: 1.75em; font-variant-numeric: tabular-nums; } ${E} :where(a.note-n) { display: inline-block; min-block-size: 24px; color: ${LINK}; } ${E} :where(.note-body) > :where(:last-child) { margin-block-end: 0; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { display: block; margin: 0 0 1.25em; padding: 0.75em 1em; border-inline-start: 3px solid ${RULE}; background: var(--uva-color-table-stripe, var(--uva-grey-200, #f1f1f1)); font-size: 0.9em; } ${E} :where(span.note-inline) { color: ${MUTED}; font-size: 0.9em; } ${E} :where(span.note-inline)::before { content: '['; } ${E} :where(span.note-inline)::after { content: ']'; } ${E} :where(:focus-visible) { outline: ${FOCUS}; outline-offset: 2px; } ${E} :where(:target) { scroll-margin-block-start: 2rem; background: var(--uva-color-highlight, var(--uva-brand-orange-200, #ffc999)); color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b)); } /* The toggles: a label round a checkbox, drawn like base.css's outline toggle button (filled while checked). Outside the edition too, so not under .uvalib-edition. */ :where(label)${TOGGLE} { display: inline-flex; align-items: center; gap: 0.5rem; box-sizing: border-box; min-block-size: 44px; margin: 0 0.5rem 1rem 0; padding: 0.25rem 0.875rem; border: 2px solid var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); border-radius: 0.25rem; color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); font-family: var( --uva-font-family, franklin-gothic-urw, 'UVA Franklin Fallback', Arial, Helvetica, sans-serif ); font-size: 0.9rem; line-height: 1.2; cursor: pointer; } :where(label)${TOGGLE}:hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } :where(label)${TOGGLE}:has(:checked) { background: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:checked):hover { border-color: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); background: var(--uva-color-button-hover-bg, var(--uva-blue-alt-A, #005679)); } ${TOGGLE} :where(input[type='checkbox']), :where(input[type='checkbox'])${TOGGLE} { inline-size: 1.125em; block-size: 1.125em; margin: 0; accent-color: var(--uva-color-button-bg, var(--uva-blue-alt, #007bac)); } :where(label)${TOGGLE}:has(:checked) :where(input[type='checkbox']) { accent-color: var(--uva-color-button-text, #ffffff); } :where(label)${TOGGLE}:has(:focus-visible), :where(input)${TOGGLE}:focus-visible { outline: ${FOCUS}; outline-offset: 2px; } ${TOGGLE} :where(input):focus-visible { outline: none; } @media (forced-colors: active) { :where(label)${TOGGLE} { border-color: ButtonText; color: ButtonText; } :where(label)${TOGGLE}:has(:checked) { forced-color-adjust: none; border-color: Highlight; background: Highlight; color: HighlightText; } ${E} :where(.pb) :where(a) { border-color: LinkText; } ${E} :where(.pb) :where(.pb-n), ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border-color: CanvasText; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid CanvasText; } ${E} :where(:target) { forced-color-adjust: none; background: Mark; color: MarkText; } } @media print { ${E} { max-inline-size: none; color: #000000; font-size: 11pt; line-height: 1.5; } ${TOGGLE} { display: none; } ${E} :where(h1, h2, h3, h4, h5, h6, .head, .speaker) { color: #000000; break-after: avoid; } ${E} :where(p, div.p) { orphans: 3; widows: 3; } ${E} :where(.lg, aside.note, .figure, figure) { break-inside: avoid; } ${E} :where(.pb, .stage, .gap, .docImprint, .docDate, .docEdition) { color: #000000; } ${E} :where(.pb) :where(a, .pb-n) { border-color: #000000; color: #000000; } ${E} :where(a) { color: #000000; } ${E} :where(aside.note-inline, aside.note:not(.note-foot, .note-end)) { border: 1px solid #000000; background: none; } /* A printed page cannot be hovered: every reading is shown. */ ${E} ${TITLED}::after { content: ' [' attr(title) ']'; font-size: 0.85em; font-style: normal; } ${E} :where(:target) { background: none; color: inherit; } } `"
3002
+ },
3003
+ {
3004
+ "kind": "variable",
3005
+ "name": "editionPage",
3006
+ "default": "css` @page { margin: 2cm 2.2cm 2.4cm; @bottom-center { content: counter(page); color: #4b5563; font-size: 9pt; } } @page :first { @bottom-center { content: none; } } `",
3007
+ "description": "The printed page for edition-print.css (a PDF printed from the same HTML as an EPUB; not in\nedition.css, whose print rules leave the page to the browser): margins, and the page number\nat the foot of every page but the first (a title page)."
2994
3008
  }
2995
3009
  ],
2996
3010
  "exports": [
@@ -3001,6 +3015,14 @@
3001
3015
  "name": "edition",
3002
3016
  "module": "src/styles/edition.ts"
3003
3017
  }
3018
+ },
3019
+ {
3020
+ "kind": "js",
3021
+ "name": "editionPage",
3022
+ "declaration": {
3023
+ "name": "editionPage",
3024
+ "module": "src/styles/edition.ts"
3025
+ }
3004
3026
  }
3005
3027
  ]
3006
3028
  },
@@ -17235,169 +17257,1357 @@
17235
17257
  ],
17236
17258
  "events": [
17237
17259
  {
17238
- "description": "Listened for on `document` (not fired): records a page view; `detail` is `{ customTitle?, referrer? }` (default: the document's title and referrer; a referrer without `http` is taken as a path on this origin).",
17239
- "name": "uvalib-analytics-pageview",
17240
- "inheritedFrom": {
17241
- "name": "SiteAnalytics",
17242
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17243
- }
17260
+ "description": "Listened for on `document` (not fired): records a page view; `detail` is `{ customTitle?, referrer? }` (default: the document's title and referrer; a referrer without `http` is taken as a path on this origin).",
17261
+ "name": "uvalib-analytics-pageview",
17262
+ "inheritedFrom": {
17263
+ "name": "SiteAnalytics",
17264
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17265
+ }
17266
+ },
17267
+ {
17268
+ "description": "Listened for on `document` (not fired): a Matomo site search; `detail` is `{ searchQuery, searchCategory?, resultCount? }`.",
17269
+ "name": "uvalib-analytics-search",
17270
+ "inheritedFrom": {
17271
+ "name": "SiteAnalytics",
17272
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17273
+ }
17274
+ },
17275
+ {
17276
+ "description": "Listened for on `document` (not fired): a Matomo event; `detail` is `{ event: [category, action, name?, value?] }` (`track` is the old name of `event`).",
17277
+ "name": "uvalib-analytics-event",
17278
+ "inheritedFrom": {
17279
+ "name": "SiteAnalytics",
17280
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17281
+ }
17282
+ },
17283
+ {
17284
+ "description": "Listened for on `document` (not fired): a Matomo content impression; `detail` is `{ name, piece, target?, interaction? }` (with `interaction`, a content interaction instead).",
17285
+ "name": "uvalib-analytics-content",
17286
+ "inheritedFrom": {
17287
+ "name": "SiteAnalytics",
17288
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17289
+ }
17290
+ },
17291
+ {
17292
+ "description": "Listened for on `document` too: the same as `uvalib-analytics-pageview`.",
17293
+ "name": "site-analytics-pageview",
17294
+ "inheritedFrom": {
17295
+ "name": "SiteAnalytics",
17296
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17297
+ }
17298
+ },
17299
+ {
17300
+ "description": "Listened for on `document` too: the same as `uvalib-analytics-search`.",
17301
+ "name": "site-analytics-search",
17302
+ "inheritedFrom": {
17303
+ "name": "SiteAnalytics",
17304
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17305
+ }
17306
+ },
17307
+ {
17308
+ "description": "Listened for on `document` too: the same as `uvalib-analytics-event`.",
17309
+ "name": "site-analytics-event",
17310
+ "inheritedFrom": {
17311
+ "name": "SiteAnalytics",
17312
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17313
+ }
17314
+ },
17315
+ {
17316
+ "description": "Listened for on `document` too: the same as `uvalib-analytics-content`.",
17317
+ "name": "site-analytics-content",
17318
+ "inheritedFrom": {
17319
+ "name": "SiteAnalytics",
17320
+ "module": "src/components/site-analytics/SiteAnalytics.ts"
17321
+ }
17322
+ }
17323
+ ]
17324
+ }
17325
+ ],
17326
+ "exports": [
17327
+ {
17328
+ "kind": "js",
17329
+ "name": "UvalibAnalytics",
17330
+ "declaration": {
17331
+ "name": "UvalibAnalytics",
17332
+ "module": "src/components/uvalib-analytics/UvalibAnalytics.ts"
17333
+ }
17334
+ }
17335
+ ]
17336
+ },
17337
+ {
17338
+ "kind": "javascript-module",
17339
+ "path": "src/components/uvalib-analytics/UvalibAnalyticsMixin.ts",
17340
+ "declarations": [
17341
+ {
17342
+ "kind": "mixin",
17343
+ "description": "The old `@uvalib/uvalib-analytics` mixin: `_analyticsEvent` and `_analyticsSearch` fire\n`uvalib-analytics-event` and `uvalib-analytics-search` (bubbling, composed) from the element\nor `eventTarget`. `SiteAnalyticsMixin` is the same with the `site-analytics-*` names.",
17344
+ "name": "UvalibAnalyticsMixin",
17345
+ "members": [
17346
+ {
17347
+ "kind": "method",
17348
+ "name": "_analyticsEvent",
17349
+ "parameters": [
17350
+ {
17351
+ "name": "events",
17352
+ "type": {
17353
+ "text": "any[]"
17354
+ }
17355
+ },
17356
+ {
17357
+ "name": "eventTarget",
17358
+ "default": "null",
17359
+ "type": {
17360
+ "text": "EventTarget | null"
17361
+ }
17362
+ }
17363
+ ]
17364
+ },
17365
+ {
17366
+ "kind": "method",
17367
+ "name": "_analyticsSearch",
17368
+ "parameters": [
17369
+ {
17370
+ "name": "query",
17371
+ "type": {
17372
+ "text": "string"
17373
+ }
17374
+ },
17375
+ {
17376
+ "name": "category",
17377
+ "default": "null",
17378
+ "type": {
17379
+ "text": "string | null"
17380
+ }
17381
+ },
17382
+ {
17383
+ "name": "count",
17384
+ "default": "null",
17385
+ "type": {
17386
+ "text": "number | null"
17387
+ }
17388
+ },
17389
+ {
17390
+ "name": "eventTarget",
17391
+ "default": "null",
17392
+ "type": {
17393
+ "text": "EventTarget | null"
17394
+ }
17395
+ }
17396
+ ]
17397
+ }
17398
+ ],
17399
+ "parameters": [
17400
+ {
17401
+ "name": "superClass",
17402
+ "type": {
17403
+ "text": "T"
17404
+ }
17405
+ }
17406
+ ]
17407
+ }
17408
+ ],
17409
+ "exports": [
17410
+ {
17411
+ "kind": "js",
17412
+ "name": "UvalibAnalyticsMixin",
17413
+ "declaration": {
17414
+ "name": "UvalibAnalyticsMixin",
17415
+ "module": "src/components/uvalib-analytics/UvalibAnalyticsMixin.ts"
17416
+ }
17417
+ }
17418
+ ]
17419
+ },
17420
+ {
17421
+ "kind": "javascript-module",
17422
+ "path": "src/components/uvalib-analytics/uvalib-analytics.ts",
17423
+ "declarations": [],
17424
+ "exports": []
17425
+ },
17426
+ {
17427
+ "kind": "javascript-module",
17428
+ "path": "src/components/uvalib-audio/UvalibAudio.ts",
17429
+ "declarations": [
17430
+ {
17431
+ "kind": "variable",
17432
+ "name": "SPEEDS",
17433
+ "type": {
17434
+ "text": "[0.75, 1, 1.25, 1.5, 1.75, 2]"
17435
+ },
17436
+ "default": "[0.75, 1, 1.25, 1.5, 1.75, 2]",
17437
+ "description": "The playback speeds offered, slowest first."
17438
+ },
17439
+ {
17440
+ "kind": "variable",
17441
+ "name": "SKIP",
17442
+ "type": {
17443
+ "text": "{ back: 15, forward: 30 }"
17444
+ },
17445
+ "default": "{ back: 15, forward: 30 }",
17446
+ "description": "Back and Forward, in seconds: the podcast convention (a missed phrase back, a skip ahead)."
17447
+ },
17448
+ {
17449
+ "kind": "variable",
17450
+ "name": "audioTiming",
17451
+ "type": {
17452
+ "text": "object"
17453
+ },
17454
+ "default": "{ announce: 600, save: 5000, speed: 1000 }",
17455
+ "description": "How long (ms) to wait before announcing (a burst of skips is announced once, where it\nends), saving the position while playing, and reporting a speed change to analytics.\nTests may shorten them."
17456
+ },
17457
+ {
17458
+ "kind": "function",
17459
+ "name": "parseDuration",
17460
+ "return": {
17461
+ "type": {
17462
+ "text": "number | undefined"
17463
+ }
17464
+ },
17465
+ "parameters": [
17466
+ {
17467
+ "name": "text",
17468
+ "type": {
17469
+ "text": "string | null | undefined"
17470
+ }
17471
+ }
17472
+ ],
17473
+ "description": "`12:31`, `1:02:03` or `751` (seconds) to seconds; undefined when unreadable."
17474
+ },
17475
+ {
17476
+ "kind": "function",
17477
+ "name": "clock",
17478
+ "return": {
17479
+ "type": {
17480
+ "text": "string"
17481
+ }
17482
+ },
17483
+ "parameters": [
17484
+ {
17485
+ "name": "seconds",
17486
+ "type": {
17487
+ "text": "number"
17488
+ }
17489
+ }
17490
+ ],
17491
+ "description": "754 → `12:34`, 3723 → `1:02:03`."
17492
+ },
17493
+ {
17494
+ "kind": "function",
17495
+ "name": "spoken",
17496
+ "return": {
17497
+ "type": {
17498
+ "text": "string"
17499
+ }
17500
+ },
17501
+ "parameters": [
17502
+ {
17503
+ "name": "seconds",
17504
+ "type": {
17505
+ "text": "number"
17506
+ }
17507
+ }
17508
+ ],
17509
+ "description": "750 → `12 minutes 30 seconds`, 3600 → `1 hour`, 0 → `0 seconds`."
17510
+ },
17511
+ {
17512
+ "kind": "function",
17513
+ "name": "formatSize",
17514
+ "return": {
17515
+ "type": {
17516
+ "text": "string"
17517
+ }
17518
+ },
17519
+ "parameters": [
17520
+ {
17521
+ "name": "value",
17522
+ "type": {
17523
+ "text": "string | null | undefined"
17524
+ }
17525
+ }
17526
+ ],
17527
+ "description": "A size as written (`312 MB`), or a number of bytes made readable in decimal units, as\noperating systems show file sizes: `312000000` → `312 MB`, `1500000` → `1.5 MB`."
17528
+ },
17529
+ {
17530
+ "kind": "class",
17531
+ "description": "A long recording played by chapter: an audiobook, an oral history's sessions. One player\nfor the whole list, so starting a chapter stops the one playing.\n\nGive the chapters as a list of links to their files, so the page works before (and\nwithout) the script: `<ol><li><a href=\"ch1.mp3\" data-duration=\"12:31\">Chapter 1. Down the\nRabbit-Hole</a></li>…</ol>`. The first link in each item is the chapter (its text is the\ntitle; inline markup such as `<i>` or `lang` is kept); `data-duration` (`12:31`, `1:02:03` or\nseconds) is shown beside it and gives the slider its length before the file loads. Other\nlinks in the item (the chapter's text, a transcript) are kept as links after it.\n`data-download` on the `<li>` adds a Download link for that chapter (its own file, or the\nURL given), with `data-size` (bytes or text) after it.\n\nUpgraded, each chapter is a real button (“Play Chapter 1. Down the Rabbit-Hole”, its\nvisible text), with its duration; the current chapter gets `aria-current=\"true\"` and says\n“Now playing” or “Paused” in text, beside an orange bar. Above the list, a player for the\ncurrent chapter: what is playing (as text, not a live region), Back 15 s, Play/Pause,\nForward 30 s, a position slider (a native range, read as “12 minutes 30 seconds of 41\nminutes”), the elapsed and total time, and a native Speed select (0.75× to 2×). One\n`<audio preload=\"none\">` plays everything: nothing loads until the visitor presses Play,\nand nothing ever plays without a press.\n\n`continuous` plays the next chapter when one ends. The position is remembered per page in\nlocalStorage (the page's path, plus `storage-key` when a page has more than one\nrecording): on the next visit a “Resume “Chapter 4” at 12:30” button offers to carry on,\nnever playing by itself. Saved on pause, every few seconds while playing, and when the page\nis left; cleared when the last chapter ends. `no-resume` turns it off. Without storage it\nsimply forgets.\n\nChapter changes, pauses, speed changes and skips are announced politely in one status\n(a burst of skips once, where it ends); the time is never announced as it runs. A chapter\nthat fails to load says so in text, with a direct link to its file. `download-href` adds a\nlink to the whole recording (an M4B audiobook), with `download-label` and `download-size`\n(bytes, shown as “312 MB”, or text). Where the browser has the Media Session API, the\nsystem's media keys and lock screen show the chapter and can play, pause, seek and change\nchapter.\n\nBefore it upgrades, `base.css` holds the player's height above the list and gives each\nitem the height of its upgraded row, so the list does not move.",
17532
+ "name": "UvalibAudio",
17533
+ "cssProperties": [
17534
+ {
17535
+ "description": "Dark-mode role token: text (else `--uva-grey-darkest`).",
17536
+ "name": "--uva-color-text"
17537
+ },
17538
+ {
17539
+ "description": "Dark-mode role token: durations (else #4b5563).",
17540
+ "name": "--uva-color-text-muted"
17541
+ },
17542
+ {
17543
+ "description": "Dark-mode role token: links and the outline buttons (else `--uva-brand-blue`).",
17544
+ "name": "--uva-color-link"
17545
+ },
17546
+ {
17547
+ "description": "Dark-mode role token: Play/Pause and the slider (else `--uva-blue-alt`).",
17548
+ "name": "--uva-color-button-bg"
17549
+ },
17550
+ {
17551
+ "description": "Dark-mode role token: Play/Pause text (else #fff).",
17552
+ "name": "--uva-color-button-text"
17553
+ },
17554
+ {
17555
+ "description": "Dark-mode role token: the player's and the controls' background (else #fff).",
17556
+ "name": "--uva-color-surface-raised"
17557
+ },
17558
+ {
17559
+ "description": "Dark-mode role token: the player's border and the rules between chapters (else #dadada).",
17560
+ "name": "--uva-color-table-border"
17561
+ },
17562
+ {
17563
+ "description": "Dark-mode role token: the “Now playing” marker (else `--uva-brand-blue`).",
17564
+ "name": "--uva-color-accent-bg"
17565
+ },
17566
+ {
17567
+ "description": "Dark-mode role token: the marker's text (else #fff).",
17568
+ "name": "--uva-color-on-accent"
17569
+ },
17570
+ {
17571
+ "description": "Dark-mode role token: the current chapter's bar (else `--uva-brand-orange`).",
17572
+ "name": "--uva-color-current"
17573
+ },
17574
+ {
17575
+ "description": "Dark-mode role token: focus ring (else `--uva-brand-orange`).",
17576
+ "name": "--uva-color-focus"
17577
+ }
17578
+ ],
17579
+ "cssParts": [
17580
+ {
17581
+ "description": "The player box above the list.",
17582
+ "name": "player"
17583
+ },
17584
+ {
17585
+ "description": "The line saying what is playing (or the Resume button).",
17586
+ "name": "now"
17587
+ },
17588
+ {
17589
+ "description": "The player's buttons, slider, time and speed.",
17590
+ "name": "controls"
17591
+ },
17592
+ {
17593
+ "description": "The whole recording's download line.",
17594
+ "name": "download"
17595
+ },
17596
+ {
17597
+ "description": "The list of chapters.",
17598
+ "name": "list"
17599
+ },
17600
+ {
17601
+ "description": "Each chapter's row.",
17602
+ "name": "chapter"
17603
+ }
17604
+ ],
17605
+ "members": [
17606
+ {
17607
+ "kind": "field",
17608
+ "name": "label",
17609
+ "type": {
17610
+ "text": "string"
17611
+ },
17612
+ "default": "''",
17613
+ "description": "The player's accessible name, such as the book's title (default “Player”).",
17614
+ "attribute": "label"
17615
+ },
17616
+ {
17617
+ "kind": "field",
17618
+ "name": "continuous",
17619
+ "type": {
17620
+ "text": "boolean"
17621
+ },
17622
+ "default": "false",
17623
+ "description": "Play the next chapter when one ends.",
17624
+ "attribute": "continuous",
17625
+ "reflects": true
17626
+ },
17627
+ {
17628
+ "kind": "field",
17629
+ "name": "noResume",
17630
+ "type": {
17631
+ "text": "boolean"
17632
+ },
17633
+ "default": "false",
17634
+ "description": "Don't remember the position (nothing is read from or written to localStorage).",
17635
+ "attribute": "no-resume"
17636
+ },
17637
+ {
17638
+ "kind": "field",
17639
+ "name": "storageKey",
17640
+ "type": {
17641
+ "text": "string"
17642
+ },
17643
+ "default": "''",
17644
+ "description": "Added to the page's path to name what is remembered, for a page with several recordings.",
17645
+ "attribute": "storage-key"
17646
+ },
17647
+ {
17648
+ "kind": "field",
17649
+ "name": "downloadHref",
17650
+ "type": {
17651
+ "text": "string"
17652
+ },
17653
+ "default": "''",
17654
+ "description": "The whole recording to download (an M4B audiobook with chapters, an MP3).",
17655
+ "attribute": "download-href"
17656
+ },
17657
+ {
17658
+ "kind": "field",
17659
+ "name": "downloadLabel",
17660
+ "type": {
17661
+ "text": "string"
17662
+ },
17663
+ "default": "'Download the whole recording'",
17664
+ "description": "The download link's text.",
17665
+ "attribute": "download-label"
17666
+ },
17667
+ {
17668
+ "kind": "field",
17669
+ "name": "downloadSize",
17670
+ "type": {
17671
+ "text": "string"
17672
+ },
17673
+ "default": "''",
17674
+ "description": "The download's size: bytes (shown as “312 MB”) or text.",
17675
+ "attribute": "download-size"
17676
+ },
17677
+ {
17678
+ "kind": "field",
17679
+ "name": "chapters",
17680
+ "type": {
17681
+ "text": "Chapter[]"
17682
+ },
17683
+ "privacy": "private",
17684
+ "default": "[]"
17685
+ },
17686
+ {
17687
+ "kind": "field",
17688
+ "name": "currentIndex",
17689
+ "type": {
17690
+ "text": "number"
17691
+ },
17692
+ "privacy": "private",
17693
+ "default": "-1",
17694
+ "description": "The current chapter's index, or -1 before any."
17695
+ },
17696
+ {
17697
+ "kind": "field",
17698
+ "name": "isPlaying",
17699
+ "type": {
17700
+ "text": "boolean"
17701
+ },
17702
+ "privacy": "private",
17703
+ "default": "false"
17704
+ },
17705
+ {
17706
+ "kind": "field",
17707
+ "name": "finished",
17708
+ "type": {
17709
+ "text": "boolean"
17710
+ },
17711
+ "privacy": "private",
17712
+ "default": "false"
17713
+ },
17714
+ {
17715
+ "kind": "field",
17716
+ "name": "time",
17717
+ "type": {
17718
+ "text": "number"
17719
+ },
17720
+ "privacy": "private",
17721
+ "default": "0",
17722
+ "description": "Whole seconds into the current chapter."
17723
+ },
17724
+ {
17725
+ "kind": "field",
17726
+ "name": "speed",
17727
+ "type": {
17728
+ "text": "number"
17729
+ },
17730
+ "privacy": "private",
17731
+ "default": "1"
17732
+ },
17733
+ {
17734
+ "kind": "field",
17735
+ "name": "resume",
17736
+ "type": {
17737
+ "text": "{ index: number; time: number } | undefined"
17738
+ },
17739
+ "privacy": "private"
17740
+ },
17741
+ {
17742
+ "kind": "field",
17743
+ "name": "failed",
17744
+ "privacy": "private",
17745
+ "default": "new Set<number>()"
17746
+ },
17747
+ {
17748
+ "kind": "field",
17749
+ "name": "loaded",
17750
+ "privacy": "private",
17751
+ "default": "new Map<number, number>()",
17752
+ "description": "Durations read from the files once loaded, by index."
17753
+ },
17754
+ {
17755
+ "kind": "field",
17756
+ "name": "announcement",
17757
+ "type": {
17758
+ "text": "string"
17759
+ },
17760
+ "privacy": "private",
17761
+ "default": "''"
17762
+ },
17763
+ {
17764
+ "kind": "field",
17765
+ "name": "uid",
17766
+ "privacy": "private",
17767
+ "readonly": true,
17768
+ "default": "`${TAG}-${++uid}`"
17769
+ },
17770
+ {
17771
+ "kind": "field",
17772
+ "name": "source",
17773
+ "type": {
17774
+ "text": "SourceChildren"
17775
+ },
17776
+ "privacy": "private",
17777
+ "readonly": true,
17778
+ "default": "new SourceChildren( this, () => this.lightDom, (nodes) => this.read(nodes), )"
17779
+ },
17780
+ {
17781
+ "kind": "field",
17782
+ "name": "sourceKey",
17783
+ "type": {
17784
+ "text": "string"
17785
+ },
17786
+ "privacy": "private",
17787
+ "default": "''"
17788
+ },
17789
+ {
17790
+ "kind": "field",
17791
+ "name": "restored",
17792
+ "type": {
17793
+ "text": "boolean"
17794
+ },
17795
+ "privacy": "private",
17796
+ "default": "false"
17797
+ },
17798
+ {
17799
+ "kind": "field",
17800
+ "name": "srcIndex",
17801
+ "type": {
17802
+ "text": "number"
17803
+ },
17804
+ "privacy": "private",
17805
+ "default": "-1",
17806
+ "description": "The chapter whose file is in the audio element, or -1."
17807
+ },
17808
+ {
17809
+ "kind": "field",
17810
+ "name": "pendingTime",
17811
+ "type": {
17812
+ "text": "number | undefined"
17813
+ },
17814
+ "privacy": "private",
17815
+ "description": "A position to seek to once the current file's metadata is in."
17816
+ },
17817
+ {
17818
+ "kind": "field",
17819
+ "name": "played",
17820
+ "privacy": "private",
17821
+ "default": "new Set<number>()"
17822
+ },
17823
+ {
17824
+ "kind": "field",
17825
+ "name": "completed",
17826
+ "privacy": "private",
17827
+ "default": "new Set<number>()"
17828
+ },
17829
+ {
17830
+ "kind": "field",
17831
+ "name": "lastSave",
17832
+ "type": {
17833
+ "text": "number"
17834
+ },
17835
+ "privacy": "private",
17836
+ "default": "0"
17837
+ },
17838
+ {
17839
+ "kind": "field",
17840
+ "name": "announceTimer",
17841
+ "type": {
17842
+ "text": "ReturnType<typeof setTimeout> | undefined"
17843
+ },
17844
+ "privacy": "private"
17845
+ },
17846
+ {
17847
+ "kind": "field",
17848
+ "name": "clearTimer",
17849
+ "type": {
17850
+ "text": "ReturnType<typeof setTimeout> | undefined"
17851
+ },
17852
+ "privacy": "private"
17853
+ },
17854
+ {
17855
+ "kind": "field",
17856
+ "name": "speedTimer",
17857
+ "type": {
17858
+ "text": "ReturnType<typeof setTimeout> | undefined"
17859
+ },
17860
+ "privacy": "private"
17861
+ },
17862
+ {
17863
+ "kind": "field",
17864
+ "name": "reportedSpeed",
17865
+ "type": {
17866
+ "text": "number"
17867
+ },
17868
+ "privacy": "private",
17869
+ "default": "1"
17870
+ },
17871
+ {
17872
+ "kind": "field",
17873
+ "name": "warned",
17874
+ "privacy": "private",
17875
+ "default": "new Set<string>()"
17876
+ },
17877
+ {
17878
+ "kind": "field",
17879
+ "name": "current",
17880
+ "type": {
17881
+ "text": "number"
17882
+ },
17883
+ "description": "The current chapter's index (0-based), or -1 before any is chosen.",
17884
+ "readonly": true
17885
+ },
17886
+ {
17887
+ "kind": "field",
17888
+ "name": "playing",
17889
+ "type": {
17890
+ "text": "boolean"
17891
+ },
17892
+ "description": "Whether a chapter is playing.",
17893
+ "readonly": true
17894
+ },
17895
+ {
17896
+ "kind": "method",
17897
+ "name": "warnOnce",
17898
+ "privacy": "private",
17899
+ "return": {
17900
+ "type": {
17901
+ "text": "void"
17902
+ }
17903
+ },
17904
+ "parameters": [
17905
+ {
17906
+ "name": "kind",
17907
+ "type": {
17908
+ "text": "string"
17909
+ }
17910
+ },
17911
+ {
17912
+ "name": "message",
17913
+ "type": {
17914
+ "text": "string"
17915
+ }
17916
+ }
17917
+ ]
17918
+ },
17919
+ {
17920
+ "kind": "method",
17921
+ "name": "read",
17922
+ "privacy": "private",
17923
+ "return": {
17924
+ "type": {
17925
+ "text": "void"
17926
+ }
17927
+ },
17928
+ "parameters": [
17929
+ {
17930
+ "name": "nodes",
17931
+ "type": {
17932
+ "text": "Node[]"
17933
+ }
17934
+ }
17935
+ ]
17936
+ },
17937
+ {
17938
+ "kind": "field",
17939
+ "name": "storeKey",
17940
+ "type": {
17941
+ "text": "string"
17942
+ },
17943
+ "privacy": "private",
17944
+ "readonly": true
17945
+ },
17946
+ {
17947
+ "kind": "method",
17948
+ "name": "readSaved",
17949
+ "privacy": "private",
17950
+ "return": {
17951
+ "type": {
17952
+ "text": "Saved | undefined"
17953
+ }
17954
+ }
17955
+ },
17956
+ {
17957
+ "kind": "method",
17958
+ "name": "write",
17959
+ "privacy": "private",
17960
+ "return": {
17961
+ "type": {
17962
+ "text": "void"
17963
+ }
17964
+ },
17965
+ "parameters": [
17966
+ {
17967
+ "name": "v",
17968
+ "type": {
17969
+ "text": "Saved | null"
17970
+ }
17971
+ }
17972
+ ]
17973
+ },
17974
+ {
17975
+ "kind": "field",
17976
+ "name": "save",
17977
+ "privacy": "private",
17978
+ "description": "Save the current chapter and position (nothing before the visitor has played one)."
17979
+ },
17980
+ {
17981
+ "kind": "field",
17982
+ "name": "audio",
17983
+ "type": {
17984
+ "text": "HTMLAudioElement | null"
17985
+ },
17986
+ "privacy": "private",
17987
+ "readonly": true
17988
+ },
17989
+ {
17990
+ "kind": "method",
17991
+ "name": "durationOf",
17992
+ "privacy": "private",
17993
+ "return": {
17994
+ "type": {
17995
+ "text": "number | undefined"
17996
+ }
17997
+ },
17998
+ "parameters": [
17999
+ {
18000
+ "name": "i",
18001
+ "type": {
18002
+ "text": "number"
18003
+ }
18004
+ }
18005
+ ]
18006
+ },
18007
+ {
18008
+ "kind": "method",
18009
+ "name": "play",
18010
+ "return": {
18011
+ "type": {
18012
+ "text": "Promise<void>"
18013
+ }
18014
+ },
18015
+ "parameters": [
18016
+ {
18017
+ "name": "index",
18018
+ "default": "this.currentIndex < 0 ? 0 : this.currentIndex"
18019
+ },
18020
+ {
18021
+ "name": "at",
18022
+ "optional": true,
18023
+ "type": {
18024
+ "text": "number"
18025
+ }
18026
+ }
18027
+ ],
18028
+ "description": "Play chapter `index` (0-based; default the current one, else the first) from where it was."
18029
+ },
18030
+ {
18031
+ "kind": "method",
18032
+ "name": "pause",
18033
+ "return": {
18034
+ "type": {
18035
+ "text": "void"
18036
+ }
18037
+ },
18038
+ "description": "Pause the chapter playing."
18039
+ },
18040
+ {
18041
+ "kind": "method",
18042
+ "name": "toggle",
18043
+ "privacy": "private",
18044
+ "return": {
18045
+ "type": {
18046
+ "text": "void"
18047
+ }
18048
+ },
18049
+ "parameters": [
18050
+ {
18051
+ "name": "index",
18052
+ "type": {
18053
+ "text": "number"
18054
+ }
18055
+ }
18056
+ ]
18057
+ },
18058
+ {
18059
+ "kind": "method",
18060
+ "name": "seek",
18061
+ "privacy": "private",
18062
+ "return": {
18063
+ "type": {
18064
+ "text": "void"
18065
+ }
18066
+ },
18067
+ "parameters": [
18068
+ {
18069
+ "name": "t",
18070
+ "type": {
18071
+ "text": "number"
18072
+ }
18073
+ }
18074
+ ]
18075
+ },
18076
+ {
18077
+ "kind": "method",
18078
+ "name": "currentPosition",
18079
+ "privacy": "private",
18080
+ "return": {
18081
+ "type": {
18082
+ "text": "number"
18083
+ }
18084
+ }
18085
+ },
18086
+ {
18087
+ "kind": "method",
18088
+ "name": "adoptResume",
18089
+ "privacy": "private",
18090
+ "return": {
18091
+ "type": {
18092
+ "text": "void"
18093
+ }
18094
+ },
18095
+ "description": "Before any chapter is current, the controls act on the one Resume offers, else the first."
18096
+ },
18097
+ {
18098
+ "kind": "method",
18099
+ "name": "skip",
18100
+ "privacy": "private",
18101
+ "return": {
18102
+ "type": {
18103
+ "text": "void"
18104
+ }
18105
+ },
18106
+ "parameters": [
18107
+ {
18108
+ "name": "by",
18109
+ "type": {
18110
+ "text": "number"
18111
+ }
18112
+ }
18113
+ ]
18114
+ },
18115
+ {
18116
+ "kind": "field",
18117
+ "name": "onSeekInput",
18118
+ "privacy": "private"
18119
+ },
18120
+ {
18121
+ "kind": "field",
18122
+ "name": "onSpeed",
18123
+ "privacy": "private"
18124
+ },
18125
+ {
18126
+ "kind": "method",
18127
+ "name": "flushSpeed",
18128
+ "privacy": "private",
18129
+ "return": {
18130
+ "type": {
18131
+ "text": "void"
18132
+ }
18133
+ }
18134
+ },
18135
+ {
18136
+ "kind": "field",
18137
+ "name": "onResume",
18138
+ "privacy": "private"
18139
+ },
18140
+ {
18141
+ "kind": "method",
18142
+ "name": "fail",
18143
+ "privacy": "private",
18144
+ "return": {
18145
+ "type": {
18146
+ "text": "void"
18147
+ }
18148
+ },
18149
+ "parameters": [
18150
+ {
18151
+ "name": "index",
18152
+ "type": {
18153
+ "text": "number"
18154
+ }
18155
+ }
18156
+ ]
18157
+ },
18158
+ {
18159
+ "kind": "field",
18160
+ "name": "onPlay",
18161
+ "privacy": "private"
18162
+ },
18163
+ {
18164
+ "kind": "field",
18165
+ "name": "onPause",
18166
+ "privacy": "private"
18167
+ },
18168
+ {
18169
+ "kind": "field",
18170
+ "name": "onTime",
18171
+ "privacy": "private"
18172
+ },
18173
+ {
18174
+ "kind": "field",
18175
+ "name": "onMeta",
18176
+ "privacy": "private"
18177
+ },
18178
+ {
18179
+ "kind": "field",
18180
+ "name": "onEnded",
18181
+ "privacy": "private"
18182
+ },
18183
+ {
18184
+ "kind": "field",
18185
+ "name": "onError",
18186
+ "privacy": "private"
18187
+ },
18188
+ {
18189
+ "kind": "method",
18190
+ "name": "claimMediaSession",
18191
+ "privacy": "private",
18192
+ "return": {
18193
+ "type": {
18194
+ "text": "void"
18195
+ }
18196
+ },
18197
+ "parameters": [
18198
+ {
18199
+ "name": "c",
18200
+ "type": {
18201
+ "text": "Chapter"
18202
+ }
18203
+ }
18204
+ ]
18205
+ },
18206
+ {
18207
+ "kind": "method",
18208
+ "name": "setPlaybackState",
18209
+ "privacy": "private",
18210
+ "return": {
18211
+ "type": {
18212
+ "text": "void"
18213
+ }
18214
+ },
18215
+ "parameters": [
18216
+ {
18217
+ "name": "s",
18218
+ "type": {
18219
+ "text": "MediaSessionPlaybackState"
18220
+ }
18221
+ }
18222
+ ]
18223
+ },
18224
+ {
18225
+ "kind": "method",
18226
+ "name": "releaseMediaSession",
18227
+ "privacy": "private",
18228
+ "return": {
18229
+ "type": {
18230
+ "text": "void"
18231
+ }
18232
+ }
18233
+ },
18234
+ {
18235
+ "kind": "method",
18236
+ "name": "announce",
18237
+ "privacy": "private",
18238
+ "return": {
18239
+ "type": {
18240
+ "text": "void"
18241
+ }
18242
+ },
18243
+ "parameters": [
18244
+ {
18245
+ "name": "text",
18246
+ "type": {
18247
+ "text": "string"
18248
+ }
18249
+ },
18250
+ {
18251
+ "name": "debounced",
18252
+ "default": "false"
18253
+ }
18254
+ ]
18255
+ },
18256
+ {
18257
+ "kind": "field",
18258
+ "name": "onDownload",
18259
+ "privacy": "private"
18260
+ },
18261
+ {
18262
+ "kind": "method",
18263
+ "name": "sizeText",
18264
+ "privacy": "private",
18265
+ "parameters": [
18266
+ {
18267
+ "name": "size",
18268
+ "type": {
18269
+ "text": "string"
18270
+ }
18271
+ }
18272
+ ]
18273
+ },
18274
+ {
18275
+ "kind": "method",
18276
+ "name": "renderNow",
18277
+ "privacy": "private"
18278
+ },
18279
+ {
18280
+ "kind": "method",
18281
+ "name": "renderPlayer",
18282
+ "privacy": "private"
18283
+ },
18284
+ {
18285
+ "kind": "method",
18286
+ "name": "renderDownload",
18287
+ "privacy": "private"
18288
+ },
18289
+ {
18290
+ "kind": "method",
18291
+ "name": "renderChapter",
18292
+ "privacy": "private",
18293
+ "parameters": [
18294
+ {
18295
+ "name": "c",
18296
+ "type": {
18297
+ "text": "Chapter"
18298
+ }
18299
+ },
18300
+ {
18301
+ "name": "i",
18302
+ "type": {
18303
+ "text": "number"
18304
+ }
18305
+ }
18306
+ ]
18307
+ },
18308
+ {
18309
+ "kind": "field",
18310
+ "name": "hostColorScheme",
18311
+ "type": {
18312
+ "text": "boolean"
18313
+ },
18314
+ "privacy": "protected",
18315
+ "static": true,
18316
+ "default": "true",
18317
+ "description": "Whether the host gets the colour-scheme rule. Off for elements that wrap the site's own\ncontent (`<site-page>`, `<site-style>`), which must keep inheriting the page's scheme.",
18318
+ "inheritedFrom": {
18319
+ "name": "UvalibElement",
18320
+ "module": "src/base/UvalibElement.ts"
18321
+ }
18322
+ },
18323
+ {
18324
+ "kind": "method",
18325
+ "name": "finalizeStyles",
18326
+ "privacy": "protected",
18327
+ "static": true,
18328
+ "return": {
18329
+ "type": {
18330
+ "text": "CSSResultOrNative[]"
18331
+ }
18332
+ },
18333
+ "parameters": [
18334
+ {
18335
+ "name": "styles",
18336
+ "optional": true,
18337
+ "type": {
18338
+ "text": "CSSResultGroup"
18339
+ }
18340
+ }
18341
+ ],
18342
+ "description": "Every component's styles start with the host colour-scheme rule (unless opted out).",
18343
+ "inheritedFrom": {
18344
+ "name": "UvalibElement",
18345
+ "module": "src/base/UvalibElement.ts"
18346
+ }
18347
+ },
18348
+ {
18349
+ "kind": "field",
18350
+ "name": "shadowRootOptions",
18351
+ "type": {
18352
+ "text": "ShadowRootInit"
18353
+ },
18354
+ "static": true,
18355
+ "default": "{ ...LitElement.shadowRootOptions, mode: 'open' }",
18356
+ "inheritedFrom": {
18357
+ "name": "UvalibElement",
18358
+ "module": "src/base/UvalibElement.ts"
18359
+ }
18360
+ },
18361
+ {
18362
+ "kind": "field",
18363
+ "name": "noShadowDom",
18364
+ "type": {
18365
+ "text": "boolean"
18366
+ },
18367
+ "default": "false",
18368
+ "attribute": "no-shadow-dom",
18369
+ "inheritedFrom": {
18370
+ "name": "UvalibElement",
18371
+ "module": "src/base/UvalibElement.ts"
18372
+ }
18373
+ },
18374
+ {
18375
+ "kind": "field",
18376
+ "name": "noStyle",
18377
+ "type": {
18378
+ "text": "boolean"
18379
+ },
18380
+ "default": "false",
18381
+ "attribute": "no-style",
18382
+ "inheritedFrom": {
18383
+ "name": "UvalibElement",
18384
+ "module": "src/base/UvalibElement.ts"
18385
+ }
18386
+ },
18387
+ {
18388
+ "kind": "field",
18389
+ "name": "_lightDom",
18390
+ "type": {
18391
+ "text": "boolean | undefined"
18392
+ },
18393
+ "privacy": "private",
18394
+ "description": "Fixed at the first createRenderRoot(); later attribute changes have no effect.",
18395
+ "inheritedFrom": {
18396
+ "name": "UvalibElement",
18397
+ "module": "src/base/UvalibElement.ts"
18398
+ }
18399
+ },
18400
+ {
18401
+ "kind": "field",
18402
+ "name": "lightDom",
18403
+ "type": {
18404
+ "text": "boolean"
18405
+ },
18406
+ "privacy": "protected",
18407
+ "readonly": true,
18408
+ "inheritedFrom": {
18409
+ "name": "UvalibElement",
18410
+ "module": "src/base/UvalibElement.ts"
18411
+ }
18412
+ },
18413
+ {
18414
+ "kind": "method",
18415
+ "name": "installLightStyles",
18416
+ "privacy": "protected",
18417
+ "return": {
18418
+ "type": {
18419
+ "text": "void"
18420
+ }
18421
+ },
18422
+ "parameters": [
18423
+ {
18424
+ "name": "root",
18425
+ "optional": true,
18426
+ "type": {
18427
+ "text": "Document | ShadowRoot"
18428
+ }
18429
+ }
18430
+ ],
18431
+ "description": "Light mode: install `static styles` into `root`, scoped to the tag. Subclasses may override.",
18432
+ "inheritedFrom": {
18433
+ "name": "UvalibElement",
18434
+ "module": "src/base/UvalibElement.ts"
18435
+ }
18436
+ }
18437
+ ],
18438
+ "events": [
18439
+ {
18440
+ "description": "For `<site-analytics>`, on the visitor's actions only, never titles or URLs: `['uvalib-audio', 'play', 'chapter <N>', N]` the first time each chapter plays in a page view (N is its place in the list), `['uvalib-audio', 'complete', 'chapter <N>', N]` when it plays to its end, `['uvalib-audio', 'speed', '<speed>', speed]` once the visitor settles on a speed, `['uvalib-audio', 'resume', 'chapter <N>', N]`, and `['uvalib-audio', 'download', 'recording' | 'chapter <N>']`. Bubbles and is composed.",
18441
+ "name": "uvalib-analytics-event"
18442
+ }
18443
+ ],
18444
+ "attributes": [
18445
+ {
18446
+ "name": "label",
18447
+ "type": {
18448
+ "text": "string"
18449
+ },
18450
+ "default": "''",
18451
+ "description": "The player's accessible name, such as the book's title (default “Player”).",
18452
+ "fieldName": "label"
17244
18453
  },
17245
18454
  {
17246
- "description": "Listened for on `document` (not fired): a Matomo site search; `detail` is `{ searchQuery, searchCategory?, resultCount? }`.",
17247
- "name": "uvalib-analytics-search",
17248
- "inheritedFrom": {
17249
- "name": "SiteAnalytics",
17250
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17251
- }
18455
+ "name": "continuous",
18456
+ "type": {
18457
+ "text": "boolean"
18458
+ },
18459
+ "default": "false",
18460
+ "description": "Play the next chapter when one ends.",
18461
+ "fieldName": "continuous"
17252
18462
  },
17253
18463
  {
17254
- "description": "Listened for on `document` (not fired): a Matomo event; `detail` is `{ event: [category, action, name?, value?] }` (`track` is the old name of `event`).",
17255
- "name": "uvalib-analytics-event",
17256
- "inheritedFrom": {
17257
- "name": "SiteAnalytics",
17258
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17259
- }
18464
+ "name": "no-resume",
18465
+ "type": {
18466
+ "text": "boolean"
18467
+ },
18468
+ "default": "false",
18469
+ "description": "Don't remember the position (nothing is read from or written to localStorage).",
18470
+ "fieldName": "noResume"
17260
18471
  },
17261
18472
  {
17262
- "description": "Listened for on `document` (not fired): a Matomo content impression; `detail` is `{ name, piece, target?, interaction? }` (with `interaction`, a content interaction instead).",
17263
- "name": "uvalib-analytics-content",
17264
- "inheritedFrom": {
17265
- "name": "SiteAnalytics",
17266
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17267
- }
18473
+ "name": "storage-key",
18474
+ "type": {
18475
+ "text": "string"
18476
+ },
18477
+ "default": "''",
18478
+ "description": "Added to the page's path to name what is remembered, for a page with several recordings.",
18479
+ "fieldName": "storageKey"
17268
18480
  },
17269
18481
  {
17270
- "description": "Listened for on `document` too: the same as `uvalib-analytics-pageview`.",
17271
- "name": "site-analytics-pageview",
17272
- "inheritedFrom": {
17273
- "name": "SiteAnalytics",
17274
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17275
- }
18482
+ "name": "download-href",
18483
+ "type": {
18484
+ "text": "string"
18485
+ },
18486
+ "default": "''",
18487
+ "description": "The whole recording to download (an M4B audiobook with chapters, an MP3).",
18488
+ "fieldName": "downloadHref"
17276
18489
  },
17277
18490
  {
17278
- "description": "Listened for on `document` too: the same as `uvalib-analytics-search`.",
17279
- "name": "site-analytics-search",
17280
- "inheritedFrom": {
17281
- "name": "SiteAnalytics",
17282
- "module": "src/components/site-analytics/SiteAnalytics.ts"
17283
- }
18491
+ "name": "download-label",
18492
+ "type": {
18493
+ "text": "string"
18494
+ },
18495
+ "default": "'Download the whole recording'",
18496
+ "description": "The download link's text.",
18497
+ "fieldName": "downloadLabel"
17284
18498
  },
17285
18499
  {
17286
- "description": "Listened for on `document` too: the same as `uvalib-analytics-event`.",
17287
- "name": "site-analytics-event",
18500
+ "name": "download-size",
18501
+ "type": {
18502
+ "text": "string"
18503
+ },
18504
+ "default": "''",
18505
+ "description": "The download's size: bytes (shown as “312 MB”) or text.",
18506
+ "fieldName": "downloadSize"
18507
+ },
18508
+ {
18509
+ "name": "no-shadow-dom",
18510
+ "type": {
18511
+ "text": "boolean"
18512
+ },
18513
+ "default": "false",
18514
+ "fieldName": "noShadowDom",
17288
18515
  "inheritedFrom": {
17289
- "name": "SiteAnalytics",
17290
- "module": "src/components/site-analytics/SiteAnalytics.ts"
18516
+ "name": "UvalibElement",
18517
+ "module": "src/base/UvalibElement.ts"
17291
18518
  }
17292
18519
  },
17293
18520
  {
17294
- "description": "Listened for on `document` too: the same as `uvalib-analytics-content`.",
17295
- "name": "site-analytics-content",
18521
+ "name": "no-style",
18522
+ "type": {
18523
+ "text": "boolean"
18524
+ },
18525
+ "default": "false",
18526
+ "fieldName": "noStyle",
17296
18527
  "inheritedFrom": {
17297
- "name": "SiteAnalytics",
17298
- "module": "src/components/site-analytics/SiteAnalytics.ts"
18528
+ "name": "UvalibElement",
18529
+ "module": "src/base/UvalibElement.ts"
17299
18530
  }
17300
18531
  }
17301
- ]
18532
+ ],
18533
+ "superclass": {
18534
+ "name": "UvalibElement",
18535
+ "module": "/src/base/UvalibElement.js"
18536
+ },
18537
+ "tagName": "uvalib-audio",
18538
+ "customElement": true
17302
18539
  }
17303
18540
  ],
17304
18541
  "exports": [
17305
18542
  {
17306
18543
  "kind": "js",
17307
- "name": "UvalibAnalytics",
18544
+ "name": "SPEEDS",
17308
18545
  "declaration": {
17309
- "name": "UvalibAnalytics",
17310
- "module": "src/components/uvalib-analytics/UvalibAnalytics.ts"
18546
+ "name": "SPEEDS",
18547
+ "module": "src/components/uvalib-audio/UvalibAudio.ts"
17311
18548
  }
17312
- }
17313
- ]
17314
- },
17315
- {
17316
- "kind": "javascript-module",
17317
- "path": "src/components/uvalib-analytics/UvalibAnalyticsMixin.ts",
17318
- "declarations": [
18549
+ },
17319
18550
  {
17320
- "kind": "mixin",
17321
- "description": "The old `@uvalib/uvalib-analytics` mixin: `_analyticsEvent` and `_analyticsSearch` fire\n`uvalib-analytics-event` and `uvalib-analytics-search` (bubbling, composed) from the element\nor `eventTarget`. `SiteAnalyticsMixin` is the same with the `site-analytics-*` names.",
17322
- "name": "UvalibAnalyticsMixin",
17323
- "members": [
17324
- {
17325
- "kind": "method",
17326
- "name": "_analyticsEvent",
17327
- "parameters": [
17328
- {
17329
- "name": "events",
17330
- "type": {
17331
- "text": "any[]"
17332
- }
17333
- },
17334
- {
17335
- "name": "eventTarget",
17336
- "default": "null",
17337
- "type": {
17338
- "text": "EventTarget | null"
17339
- }
17340
- }
17341
- ]
17342
- },
17343
- {
17344
- "kind": "method",
17345
- "name": "_analyticsSearch",
17346
- "parameters": [
17347
- {
17348
- "name": "query",
17349
- "type": {
17350
- "text": "string"
17351
- }
17352
- },
17353
- {
17354
- "name": "category",
17355
- "default": "null",
17356
- "type": {
17357
- "text": "string | null"
17358
- }
17359
- },
17360
- {
17361
- "name": "count",
17362
- "default": "null",
17363
- "type": {
17364
- "text": "number | null"
17365
- }
17366
- },
17367
- {
17368
- "name": "eventTarget",
17369
- "default": "null",
17370
- "type": {
17371
- "text": "EventTarget | null"
17372
- }
17373
- }
17374
- ]
17375
- }
17376
- ],
17377
- "parameters": [
17378
- {
17379
- "name": "superClass",
17380
- "type": {
17381
- "text": "T"
17382
- }
17383
- }
17384
- ]
17385
- }
17386
- ],
17387
- "exports": [
18551
+ "kind": "js",
18552
+ "name": "SKIP",
18553
+ "declaration": {
18554
+ "name": "SKIP",
18555
+ "module": "src/components/uvalib-audio/UvalibAudio.ts"
18556
+ }
18557
+ },
17388
18558
  {
17389
18559
  "kind": "js",
17390
- "name": "UvalibAnalyticsMixin",
18560
+ "name": "audioTiming",
17391
18561
  "declaration": {
17392
- "name": "UvalibAnalyticsMixin",
17393
- "module": "src/components/uvalib-analytics/UvalibAnalyticsMixin.ts"
18562
+ "name": "audioTiming",
18563
+ "module": "src/components/uvalib-audio/UvalibAudio.ts"
18564
+ }
18565
+ },
18566
+ {
18567
+ "kind": "js",
18568
+ "name": "parseDuration",
18569
+ "declaration": {
18570
+ "name": "parseDuration",
18571
+ "module": "src/components/uvalib-audio/UvalibAudio.ts"
18572
+ }
18573
+ },
18574
+ {
18575
+ "kind": "js",
18576
+ "name": "clock",
18577
+ "declaration": {
18578
+ "name": "clock",
18579
+ "module": "src/components/uvalib-audio/UvalibAudio.ts"
18580
+ }
18581
+ },
18582
+ {
18583
+ "kind": "js",
18584
+ "name": "spoken",
18585
+ "declaration": {
18586
+ "name": "spoken",
18587
+ "module": "src/components/uvalib-audio/UvalibAudio.ts"
18588
+ }
18589
+ },
18590
+ {
18591
+ "kind": "js",
18592
+ "name": "formatSize",
18593
+ "declaration": {
18594
+ "name": "formatSize",
18595
+ "module": "src/components/uvalib-audio/UvalibAudio.ts"
18596
+ }
18597
+ },
18598
+ {
18599
+ "kind": "js",
18600
+ "name": "UvalibAudio",
18601
+ "declaration": {
18602
+ "name": "UvalibAudio",
18603
+ "module": "src/components/uvalib-audio/UvalibAudio.ts"
17394
18604
  }
17395
18605
  }
17396
18606
  ]
17397
18607
  },
17398
18608
  {
17399
18609
  "kind": "javascript-module",
17400
- "path": "src/components/uvalib-analytics/uvalib-analytics.ts",
18610
+ "path": "src/components/uvalib-audio/uvalib-audio.ts",
17401
18611
  "declarations": [],
17402
18612
  "exports": []
17403
18613
  },
@@ -35182,6 +36392,24 @@
35182
36392
  "name": "HOLD_MAX_MS",
35183
36393
  "description": "The longest a skeleton holds the results' space before Pagefind's own state shows."
35184
36394
  },
36395
+ {
36396
+ "kind": "function",
36397
+ "name": "flagSet",
36398
+ "return": {
36399
+ "type": {
36400
+ "text": "boolean"
36401
+ }
36402
+ },
36403
+ "parameters": [
36404
+ {
36405
+ "name": "values",
36406
+ "type": {
36407
+ "text": "string[]"
36408
+ }
36409
+ }
36410
+ ],
36411
+ "description": "A `filter-flags` filter is set by its parameter with any value but one of `FLAG_OFF`."
36412
+ },
35185
36413
  {
35186
36414
  "kind": "function",
35187
36415
  "name": "withSlash",
@@ -35233,7 +36461,7 @@
35233
36461
  },
35234
36462
  {
35235
36463
  "kind": "class",
35236
- "description": "Pagefind's default search UI (`PagefindUI`, from the site's own Pagefind bundle) with the\nlibrary's defaults and the accessibility fixes that need script. Use it with pagefind.css,\nin place of Pagefind's pagefind-ui.css. It renders in light DOM, so the page's styles reach\nPagefind's markup. It loads `<bundle-path>pagefind-ui.js` unless `window.PagefindUI`\nalready exists.\n\nWhat it adds to the stock UI: a visible `<label>` for the field (the stock field is named\nonly by its title); a polite status region that announces the result count (\"12 results\nfor virginia\") once results settle (the stock message is not a live region); focus kept in\nthe field after Clear or Escape (the stock UI blurs it, dropping focus to the page) and\nmoved to the first new result after \"Load more results\"; the loading placeholders' dots\nhidden from screen readers; `?q=` read at start (and on Back and Forward) and the settled\nquery written back with `history.replaceState`, so a search can be shared; with\n`filter-params`, the named Pagefind filters read from and written to the URL the same way;\nand reports to `<site-analytics>`. While a search from the URL loads, it can hold the page\nstill (issue #37): with `searching` set in the page's HTML when the URL has a query, the\nelement holds a screen's height from first paint, and placeholder results (aria-hidden) stand\nin for Pagefind's until they, or \"no results\", are drawn; the element then still reaches the\nbottom of the window until the visitor uses the search, so a short list does not pull the\nfooter up. It does the same on Back and Forward to a new query. The\n`ui` property is the `PagefindUI` instance (for `triggerFilters`), and `ready` resolves\nwith it. Attributes are read once, when the element is first connected.",
36464
+ "description": "Pagefind's default search UI (`PagefindUI`, from the site's own Pagefind bundle) with the\nlibrary's defaults and the accessibility fixes that need script. Use it with pagefind.css,\nin place of Pagefind's pagefind-ui.css. It renders in light DOM, so the page's styles reach\nPagefind's markup. It loads `<bundle-path>pagefind-ui.js` unless `window.PagefindUI`\nalready exists.\n\nWhat it adds to the stock UI: a visible `<label>` for the field (the stock field is named\nonly by its title); a polite status region that announces the result count (\"12 results\nfor virginia\") once results settle (the stock message is not a live region); focus kept in\nthe field after Clear or Escape (the stock UI blurs it, dropping focus to the page) and\nmoved to the first new result after \"Load more results\"; the loading placeholders' dots\nhidden from screen readers; `?q=` read at start (and on Back and Forward) and the settled\nquery written back with `history.replaceState`, so a search can be shared; with\n`filter-params`, the named Pagefind filters read from and written to the URL the same way\n(and with `filter-flags`, one-value filters linked as `?audiobook=1`); and reports to `<site-analytics>`. While a search from the URL loads, it can hold the page\nstill (issue #37): with `searching` set in the page's HTML when the URL has a query, the\nelement holds a screen's height from first paint, and placeholder results (aria-hidden) stand\nin for Pagefind's until they, or \"no results\", are drawn; the element then still reaches the\nbottom of the window until the visitor uses the search, so a short list does not pull the\nfooter up. It does the same on Back and Forward to a new query. The\n`ui` property is the `PagefindUI` instance (for `triggerFilters`), and `ready` resolves\nwith it. Attributes are read once, when the element is first connected.",
35237
36465
  "name": "UvalibPagefindSearch",
35238
36466
  "members": [
35239
36467
  {
@@ -35445,6 +36673,25 @@
35445
36673
  "privacy": "private",
35446
36674
  "readonly": true
35447
36675
  },
36676
+ {
36677
+ "kind": "method",
36678
+ "name": "names",
36679
+ "privacy": "private",
36680
+ "return": {
36681
+ "type": {
36682
+ "text": "string[]"
36683
+ }
36684
+ },
36685
+ "parameters": [
36686
+ {
36687
+ "name": "attr",
36688
+ "type": {
36689
+ "text": "string"
36690
+ }
36691
+ }
36692
+ ],
36693
+ "description": "Space-separated names in an attribute."
36694
+ },
35448
36695
  {
35449
36696
  "kind": "field",
35450
36697
  "name": "filterParams",
@@ -35452,9 +36699,46 @@
35452
36699
  "text": "string[]"
35453
36700
  },
35454
36701
  "privacy": "private",
35455
- "description": "The filter names in `filter-params`.",
36702
+ "description": "The filter names read from and written to the URL: `filter-params` and `filter-flags`.",
35456
36703
  "readonly": true
35457
36704
  },
36705
+ {
36706
+ "kind": "field",
36707
+ "name": "flags",
36708
+ "type": {
36709
+ "text": "string[]"
36710
+ },
36711
+ "privacy": "private",
36712
+ "description": "The names in `filter-flags`.",
36713
+ "readonly": true
36714
+ },
36715
+ {
36716
+ "kind": "field",
36717
+ "name": "warned",
36718
+ "privacy": "private",
36719
+ "readonly": true,
36720
+ "default": "new Set<string>()",
36721
+ "description": "Flag filters already warned about (a flag the index does not give exactly one value)."
36722
+ },
36723
+ {
36724
+ "kind": "method",
36725
+ "name": "flagValue",
36726
+ "privacy": "private",
36727
+ "return": {
36728
+ "type": {
36729
+ "text": "string | undefined"
36730
+ }
36731
+ },
36732
+ "parameters": [
36733
+ {
36734
+ "name": "name",
36735
+ "type": {
36736
+ "text": "string"
36737
+ }
36738
+ }
36739
+ ],
36740
+ "description": "A flag filter's one value in the index; undefined (warned once) when it has none or\nseveral, and the filter is then read as `filter-params`."
36741
+ },
35458
36742
  {
35459
36743
  "kind": "field",
35460
36744
  "name": "boxes",
@@ -35473,7 +36757,7 @@
35473
36757
  "text": "Filters"
35474
36758
  }
35475
36759
  },
35476
- "description": "The `filter-params` filters in the page URL that have values (repeated params: several)."
36760
+ "description": "The `filter-params` filters in the page URL that have values (repeated params: several),\nand the `filter-flags` filters it sets (their raw values, '' for a bare `?audiobook`)."
35477
36761
  },
35478
36762
  {
35479
36763
  "kind": "method",
@@ -35741,7 +37025,7 @@
35741
37025
  }
35742
37026
  }
35743
37027
  ],
35744
- "description": "Write the `filter-params` filters to the URL, keeping every other parameter."
37028
+ "description": "Write the `filter-params` filters to the URL, keeping every other parameter; a flag filter\nwhose one value is checked is written `=1`."
35745
37029
  },
35746
37030
  {
35747
37031
  "kind": "method",
@@ -35888,6 +37172,13 @@
35888
37172
  },
35889
37173
  "description": "Space-separated Pagefind filter names read from and written to URL parameters of the same name (`collection author`: `?collection=A&collection=B`). URL filters are applied with the query as one search, their filter groups open; values not in the index are ignored. Empty (the default) turns it off.",
35890
37174
  "name": "filter-params"
37175
+ },
37176
+ {
37177
+ "type": {
37178
+ "text": "string"
37179
+ },
37180
+ "description": "Space-separated names of one-value Pagefind filters (\"has an audiobook\": its one value is `Available`), read from and written to the URL as on/off flags (issue #40). The parameter with any value, or none (`?audiobook`, `?audiobook=1`, `?audiobook=yes`), checks the filter's one value, whatever its spelling in the index; `0`, `false`, `no` and `off` leave it unchecked. Checking it writes `?audiobook=1`; unchecking removes it. Otherwise as `filter-params` (one search with the query, Back and Forward); a name need not be repeated there, and a name in both is a flag. If the index has more or fewer than one value for it, a console warning says so once and the filter is read as `filter-params` (exact values).",
37181
+ "name": "filter-flags"
35891
37182
  }
35892
37183
  ],
35893
37184
  "superclass": {
@@ -35942,6 +37233,14 @@
35942
37233
  "module": "src/components/uvalib-pagefind-search/UvalibPagefindSearch.ts"
35943
37234
  }
35944
37235
  },
37236
+ {
37237
+ "kind": "js",
37238
+ "name": "flagSet",
37239
+ "declaration": {
37240
+ "name": "flagSet",
37241
+ "module": "src/components/uvalib-pagefind-search/UvalibPagefindSearch.ts"
37242
+ }
37243
+ },
35945
37244
  {
35946
37245
  "kind": "js",
35947
37246
  "name": "withSlash",