@uvalib/web-components 1.12.1 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -932,6 +932,30 @@
932
932
  "name": "UvalibAudio",
933
933
  "module": "./components/uvalib-audio/UvalibAudio.js"
934
934
  }
935
+ },
936
+ {
937
+ "kind": "js",
938
+ "name": "UvalibQr",
939
+ "declaration": {
940
+ "name": "UvalibQr",
941
+ "module": "./components/uvalib-qr/UvalibQr.js"
942
+ }
943
+ },
944
+ {
945
+ "kind": "js",
946
+ "name": "QrCode",
947
+ "declaration": {
948
+ "name": "QrCode",
949
+ "module": "./components/uvalib-qr/UvalibQr.js"
950
+ }
951
+ },
952
+ {
953
+ "kind": "js",
954
+ "name": "QrErrorCorrection",
955
+ "declaration": {
956
+ "name": "QrErrorCorrection",
957
+ "module": "./components/uvalib-qr/UvalibQr.js"
958
+ }
935
959
  }
936
960
  ]
937
961
  },
@@ -2911,7 +2935,7 @@
2911
2935
  {
2912
2936
  "kind": "variable",
2913
2937
  "name": "base",
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; } } `"
2938
+ "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, uvalib-qr ):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); } /* A QR code (<uvalib-qr>): the square tile, as wide as --uvalib-qr-size (or the size attribute, where the browser reads attr() as a length) and at most its container, and one line for the visible link (show-link or link-label), so nothing moves when it is drawn. A link that wraps to more lines still moves what follows by those lines. Keep in step with UvalibQr's rules. */ uvalib-qr:not(:defined) { display: block; inline-size: var(--uvalib-qr-size, 10rem); max-inline-size: 100%; } /* A number is pixels, else a length: one of the two terms is 0. A browser without attr() lengths drops this and holds --uvalib-qr-size. */ uvalib-qr[size]:not(:defined) { inline-size: calc(attr(size px, 0px) + attr(size type(<length-percentage>), 0px)); } uvalib-qr:not(:defined)::before { content: ''; display: block; aspect-ratio: 1; } uvalib-qr:is([show-link], [link-label]):not(:defined)::after { content: ''; display: block; block-size: calc(0.5rem + 0.875rem * 1.7); } /* 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; } } `"
2915
2939
  }
2916
2940
  ],
2917
2941
  "exports": [
@@ -38723,6 +38747,814 @@
38723
38747
  "declarations": [],
38724
38748
  "exports": []
38725
38749
  },
38750
+ {
38751
+ "kind": "javascript-module",
38752
+ "path": "src/components/uvalib-qr/UvalibQr.ts",
38753
+ "declarations": [
38754
+ {
38755
+ "kind": "variable",
38756
+ "name": "QR_LOGO_SIZE",
38757
+ "type": {
38758
+ "text": "number"
38759
+ },
38760
+ "default": "20",
38761
+ "description": "Default `logo-size`: the cleared centre's side, in % of the symbol's side."
38762
+ },
38763
+ {
38764
+ "kind": "variable",
38765
+ "name": "QR_LOGO_MAX_AREA",
38766
+ "type": {
38767
+ "text": "number"
38768
+ },
38769
+ "default": "0.1",
38770
+ "description": "The cleared centre may cover at most this share of the symbol's area (with level H): 10%, about\n31% of the side. 20% did not decode at every size in testing (version 13 failed from 11%)."
38771
+ },
38772
+ {
38773
+ "kind": "function",
38774
+ "name": "shortUrl",
38775
+ "return": {
38776
+ "type": {
38777
+ "text": "string | null"
38778
+ }
38779
+ },
38780
+ "parameters": [
38781
+ {
38782
+ "name": "value",
38783
+ "type": {
38784
+ "text": "string"
38785
+ }
38786
+ }
38787
+ ],
38788
+ "description": "`https://www.example.org/a/b/?q#h` → `example.org/a/b`; null when `value` is not such a URL."
38789
+ },
38790
+ {
38791
+ "kind": "function",
38792
+ "name": "qrPath",
38793
+ "return": {
38794
+ "type": {
38795
+ "text": "string"
38796
+ }
38797
+ },
38798
+ "parameters": [
38799
+ {
38800
+ "name": "code",
38801
+ "type": {
38802
+ "text": "QrCode"
38803
+ }
38804
+ },
38805
+ {
38806
+ "name": "plain",
38807
+ "type": {
38808
+ "text": "boolean"
38809
+ }
38810
+ }
38811
+ ],
38812
+ "description": "The modules as one path (even-odd fill), with rounded eyes unless `plain`."
38813
+ },
38814
+ {
38815
+ "kind": "function",
38816
+ "name": "clearSide",
38817
+ "return": {
38818
+ "type": {
38819
+ "text": "{ side: number; limited: boolean }"
38820
+ }
38821
+ },
38822
+ "parameters": [
38823
+ {
38824
+ "name": "n",
38825
+ "type": {
38826
+ "text": "number"
38827
+ }
38828
+ },
38829
+ {
38830
+ "name": "percent",
38831
+ "type": {
38832
+ "text": "number"
38833
+ }
38834
+ }
38835
+ ],
38836
+ "description": "The side of the cleared centre, in modules: odd (so it is centred), about `percent` of the\nside, and never more than `QR_LOGO_MAX_AREA` of the symbol's area."
38837
+ },
38838
+ {
38839
+ "kind": "class",
38840
+ "description": "A QR code for a link (an event's page on a slide or a poster), styled for UVA Library:\nmodules in UVA navy on a white tile, the three \"eyes\" with rounded corners, and a thin orange\nframe around the tile that carries no part of the code. `variant=\"plain\"` is a square black\ncode with no frame, for the oldest scanners.\n\nIt is an inline `<svg role=\"img\">` whose `<title>` names it (`label`, else \"QR code for\nexample.org/path\"), crisp at any size and in print. The code stays dark on its white tile in\ndark mode and in forced colors (scanners need that), and the quiet zone (`quiet-zone`, 4\nmodules) is part of the tile. The image is not a link; `show-link` (or `link-label`) adds the\naddress as a real link under it, for people who cannot scan.\n\nNo logo is drawn by default (the University's marks may not be cut apart or boxed). A site\nwith approved artwork gives `logo-src` (and `logo-alt`): the modules under the centre are\ncleared (`logo-size`, 20% of the side; at most 10% of the area), and level H is used.\n\nA value that cannot be encoded (empty, or too long) shows \"QR code unavailable\" in the tile,\nwith a console warning.",
38841
+ "name": "UvalibQr",
38842
+ "cssProperties": [
38843
+ {
38844
+ "description": "The tile's width and height (the `size` attribute sets it). At most the container's width.",
38845
+ "name": "--uvalib-qr-size",
38846
+ "default": "10rem"
38847
+ },
38848
+ {
38849
+ "description": "The modules (else `--uva-brand-blue`). Keep it dark: at least 7:1 on white.",
38850
+ "name": "--uvalib-qr-color",
38851
+ "default": "#232d4b"
38852
+ },
38853
+ {
38854
+ "description": "The frame (else `--uva-brand-orange`). It is decoration: never needed to scan.",
38855
+ "name": "--uvalib-qr-frame",
38856
+ "default": "#e57200"
38857
+ },
38858
+ {
38859
+ "description": "Dark-mode role token: the visible link (else `--uva-brand-blue`).",
38860
+ "name": "--uva-color-link"
38861
+ },
38862
+ {
38863
+ "description": "Dark-mode role token: focus ring (else `--uva-brand-orange`).",
38864
+ "name": "--uva-color-focus"
38865
+ }
38866
+ ],
38867
+ "cssParts": [
38868
+ {
38869
+ "description": "The white tile (the code and its quiet zone), with the frame.",
38870
+ "name": "tile"
38871
+ },
38872
+ {
38873
+ "description": "The code's `<svg>`.",
38874
+ "name": "svg"
38875
+ },
38876
+ {
38877
+ "description": "The visible link under the code (`show-link`).",
38878
+ "name": "link"
38879
+ },
38880
+ {
38881
+ "description": "The \"QR code unavailable\" text.",
38882
+ "name": "fallback"
38883
+ }
38884
+ ],
38885
+ "members": [
38886
+ {
38887
+ "kind": "field",
38888
+ "name": "value",
38889
+ "type": {
38890
+ "text": "string"
38891
+ },
38892
+ "default": "''",
38893
+ "description": "The text encoded: usually a URL (required).",
38894
+ "attribute": "value"
38895
+ },
38896
+ {
38897
+ "kind": "field",
38898
+ "name": "label",
38899
+ "type": {
38900
+ "text": "string"
38901
+ },
38902
+ "default": "''",
38903
+ "description": "The code's accessible name (default \"QR code for example.org/path\").",
38904
+ "attribute": "label"
38905
+ },
38906
+ {
38907
+ "kind": "field",
38908
+ "name": "size",
38909
+ "type": {
38910
+ "text": "string"
38911
+ },
38912
+ "default": "''",
38913
+ "description": "The tile's width and height: a number of pixels, or a CSS length (default 10rem).",
38914
+ "attribute": "size"
38915
+ },
38916
+ {
38917
+ "kind": "field",
38918
+ "name": "errorCorrection",
38919
+ "type": {
38920
+ "text": "string"
38921
+ },
38922
+ "default": "''",
38923
+ "description": "`L`, `M`, `Q` or `H` (default `M`; always `H` with a logo).",
38924
+ "attribute": "error-correction"
38925
+ },
38926
+ {
38927
+ "kind": "field",
38928
+ "name": "quietZone",
38929
+ "type": {
38930
+ "text": "number"
38931
+ },
38932
+ "default": "4",
38933
+ "description": "White modules around the code: 4 is the standard minimum (0 to 16).",
38934
+ "attribute": "quiet-zone"
38935
+ },
38936
+ {
38937
+ "kind": "field",
38938
+ "name": "variant",
38939
+ "type": {
38940
+ "text": "string"
38941
+ },
38942
+ "default": "''",
38943
+ "description": "`plain`: square black modules, no frame, for maximum compatibility. Default: branded.",
38944
+ "attribute": "variant",
38945
+ "reflects": true
38946
+ },
38947
+ {
38948
+ "kind": "field",
38949
+ "name": "showLink",
38950
+ "type": {
38951
+ "text": "boolean"
38952
+ },
38953
+ "default": "false",
38954
+ "description": "Show the address as a link under the code (http, https, mailto and tel only).",
38955
+ "attribute": "show-link"
38956
+ },
38957
+ {
38958
+ "kind": "field",
38959
+ "name": "linkLabel",
38960
+ "type": {
38961
+ "text": "string"
38962
+ },
38963
+ "default": "''",
38964
+ "description": "The visible link's text (default the address without its scheme); implies `show-link`.",
38965
+ "attribute": "link-label"
38966
+ },
38967
+ {
38968
+ "kind": "field",
38969
+ "name": "logoSrc",
38970
+ "type": {
38971
+ "text": "string"
38972
+ },
38973
+ "default": "''",
38974
+ "description": "Approved logo artwork for the centre (an image URL). Off by default.",
38975
+ "attribute": "logo-src"
38976
+ },
38977
+ {
38978
+ "kind": "field",
38979
+ "name": "logoAlt",
38980
+ "type": {
38981
+ "text": "string"
38982
+ },
38983
+ "default": "''",
38984
+ "description": "The logo's text alternative, added to the code's name; empty means decorative.",
38985
+ "attribute": "logo-alt"
38986
+ },
38987
+ {
38988
+ "kind": "field",
38989
+ "name": "logoSize",
38990
+ "default": "20",
38991
+ "description": "The cleared centre's side, in % of the symbol's side (default 20; at most about 31).",
38992
+ "attribute": "logo-size",
38993
+ "type": {
38994
+ "text": "number"
38995
+ }
38996
+ },
38997
+ {
38998
+ "kind": "field",
38999
+ "name": "_code",
39000
+ "type": {
39001
+ "text": "QrCode | null"
39002
+ },
39003
+ "privacy": "private",
39004
+ "default": "null"
39005
+ },
39006
+ {
39007
+ "kind": "field",
39008
+ "name": "_path",
39009
+ "type": {
39010
+ "text": "string"
39011
+ },
39012
+ "privacy": "private",
39013
+ "default": "''"
39014
+ },
39015
+ {
39016
+ "kind": "field",
39017
+ "name": "warned",
39018
+ "privacy": "private",
39019
+ "default": "new Set<string>()"
39020
+ },
39021
+ {
39022
+ "kind": "field",
39023
+ "name": "code",
39024
+ "type": {
39025
+ "text": "QrCode | null"
39026
+ },
39027
+ "description": "The encoded symbol, or null when the value could not be encoded.",
39028
+ "readonly": true
39029
+ },
39030
+ {
39031
+ "kind": "method",
39032
+ "name": "warn",
39033
+ "privacy": "private",
39034
+ "return": {
39035
+ "type": {
39036
+ "text": "void"
39037
+ }
39038
+ },
39039
+ "parameters": [
39040
+ {
39041
+ "name": "message",
39042
+ "type": {
39043
+ "text": "string"
39044
+ }
39045
+ }
39046
+ ]
39047
+ },
39048
+ {
39049
+ "kind": "field",
39050
+ "name": "hasLogo",
39051
+ "type": {
39052
+ "text": "boolean"
39053
+ },
39054
+ "privacy": "private",
39055
+ "readonly": true
39056
+ },
39057
+ {
39058
+ "kind": "field",
39059
+ "name": "quiet",
39060
+ "type": {
39061
+ "text": "number"
39062
+ },
39063
+ "privacy": "private",
39064
+ "readonly": true
39065
+ },
39066
+ {
39067
+ "kind": "field",
39068
+ "name": "plain",
39069
+ "type": {
39070
+ "text": "boolean"
39071
+ },
39072
+ "privacy": "private",
39073
+ "readonly": true
39074
+ },
39075
+ {
39076
+ "kind": "method",
39077
+ "name": "level",
39078
+ "privacy": "private",
39079
+ "return": {
39080
+ "type": {
39081
+ "text": "QrErrorCorrection"
39082
+ }
39083
+ }
39084
+ },
39085
+ {
39086
+ "kind": "method",
39087
+ "name": "encode",
39088
+ "privacy": "private",
39089
+ "return": {
39090
+ "type": {
39091
+ "text": "void"
39092
+ }
39093
+ }
39094
+ },
39095
+ {
39096
+ "kind": "method",
39097
+ "name": "applySize",
39098
+ "privacy": "private",
39099
+ "return": {
39100
+ "type": {
39101
+ "text": "void"
39102
+ }
39103
+ },
39104
+ "description": "`size` sets `--uvalib-qr-size` on the element (a number is pixels)."
39105
+ },
39106
+ {
39107
+ "kind": "field",
39108
+ "name": "ownSize",
39109
+ "type": {
39110
+ "text": "string | undefined"
39111
+ },
39112
+ "privacy": "private",
39113
+ "description": "The page's inline `--uvalib-qr-size` from before `size` set it ('' for none)."
39114
+ },
39115
+ {
39116
+ "kind": "field",
39117
+ "name": "short",
39118
+ "type": {
39119
+ "text": "string | null"
39120
+ },
39121
+ "privacy": "private",
39122
+ "description": "The visible address, or null when `value` is not a URL.",
39123
+ "readonly": true
39124
+ },
39125
+ {
39126
+ "kind": "field",
39127
+ "name": "accessibleName",
39128
+ "type": {
39129
+ "text": "string"
39130
+ },
39131
+ "description": "The code's accessible name, as the `<title>` gives it.",
39132
+ "readonly": true
39133
+ },
39134
+ {
39135
+ "kind": "field",
39136
+ "name": "href",
39137
+ "type": {
39138
+ "text": "string | null"
39139
+ },
39140
+ "privacy": "private",
39141
+ "description": "The href of the visible link, if the value is a URL with a safe scheme.",
39142
+ "readonly": true
39143
+ },
39144
+ {
39145
+ "kind": "field",
39146
+ "name": "onLinkClick",
39147
+ "privacy": "private",
39148
+ "readonly": true
39149
+ },
39150
+ {
39151
+ "kind": "method",
39152
+ "name": "colors",
39153
+ "privacy": "private",
39154
+ "return": {
39155
+ "type": {
39156
+ "text": "{ on: string; off: string }"
39157
+ }
39158
+ },
39159
+ "description": "The colours the code is drawn in now (resolved from the page's styles)."
39160
+ },
39161
+ {
39162
+ "kind": "method",
39163
+ "name": "toSvgString",
39164
+ "return": {
39165
+ "type": {
39166
+ "text": "string"
39167
+ }
39168
+ },
39169
+ "parameters": [
39170
+ {
39171
+ "name": "{ scale = 10 }",
39172
+ "default": "{}",
39173
+ "type": {
39174
+ "text": "{ scale?: number }"
39175
+ }
39176
+ }
39177
+ ],
39178
+ "description": "The code as a standalone SVG document (for a poster or a print shop): the modules in the\ncolour they are drawn in, on white, with the quiet zone and the logo (by its URL), at\n`scale` pixels per module (default 10). The frame is the page's and is not included.\nEmpty when the value could not be encoded."
39179
+ },
39180
+ {
39181
+ "kind": "method",
39182
+ "name": "toDataURL",
39183
+ "return": {
39184
+ "type": {
39185
+ "text": "string"
39186
+ }
39187
+ },
39188
+ "parameters": [
39189
+ {
39190
+ "name": "options",
39191
+ "optional": true,
39192
+ "type": {
39193
+ "text": "{ scale?: number }"
39194
+ }
39195
+ }
39196
+ ],
39197
+ "description": "`toSvgString()` as a `data:image/svg+xml` URL. Empty when the value could not be encoded."
39198
+ },
39199
+ {
39200
+ "kind": "method",
39201
+ "name": "download",
39202
+ "return": {
39203
+ "type": {
39204
+ "text": "void"
39205
+ }
39206
+ },
39207
+ "parameters": [
39208
+ {
39209
+ "name": "filename",
39210
+ "default": "'qr-code.svg'"
39211
+ }
39212
+ ],
39213
+ "description": "Save `toSvgString()` as a file (default `qr-code.svg`). Call it from a visitor's click."
39214
+ },
39215
+ {
39216
+ "kind": "method",
39217
+ "name": "logoBox",
39218
+ "privacy": "private",
39219
+ "return": {
39220
+ "type": {
39221
+ "text": "{ x: number; y: number; size: number } | null"
39222
+ }
39223
+ }
39224
+ },
39225
+ {
39226
+ "kind": "method",
39227
+ "name": "logoMarkup",
39228
+ "privacy": "private",
39229
+ "return": {
39230
+ "type": {
39231
+ "text": "string"
39232
+ }
39233
+ }
39234
+ },
39235
+ {
39236
+ "kind": "field",
39237
+ "name": "hostColorScheme",
39238
+ "type": {
39239
+ "text": "boolean"
39240
+ },
39241
+ "privacy": "protected",
39242
+ "static": true,
39243
+ "default": "true",
39244
+ "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.",
39245
+ "inheritedFrom": {
39246
+ "name": "UvalibElement",
39247
+ "module": "src/base/UvalibElement.ts"
39248
+ }
39249
+ },
39250
+ {
39251
+ "kind": "method",
39252
+ "name": "finalizeStyles",
39253
+ "privacy": "protected",
39254
+ "static": true,
39255
+ "return": {
39256
+ "type": {
39257
+ "text": "CSSResultOrNative[]"
39258
+ }
39259
+ },
39260
+ "parameters": [
39261
+ {
39262
+ "name": "styles",
39263
+ "optional": true,
39264
+ "type": {
39265
+ "text": "CSSResultGroup"
39266
+ }
39267
+ }
39268
+ ],
39269
+ "description": "Every component's styles start with the host colour-scheme rule (unless opted out).",
39270
+ "inheritedFrom": {
39271
+ "name": "UvalibElement",
39272
+ "module": "src/base/UvalibElement.ts"
39273
+ }
39274
+ },
39275
+ {
39276
+ "kind": "field",
39277
+ "name": "shadowRootOptions",
39278
+ "type": {
39279
+ "text": "ShadowRootInit"
39280
+ },
39281
+ "static": true,
39282
+ "default": "{ ...LitElement.shadowRootOptions, mode: 'open' }",
39283
+ "inheritedFrom": {
39284
+ "name": "UvalibElement",
39285
+ "module": "src/base/UvalibElement.ts"
39286
+ }
39287
+ },
39288
+ {
39289
+ "kind": "field",
39290
+ "name": "noShadowDom",
39291
+ "type": {
39292
+ "text": "boolean"
39293
+ },
39294
+ "default": "false",
39295
+ "attribute": "no-shadow-dom",
39296
+ "inheritedFrom": {
39297
+ "name": "UvalibElement",
39298
+ "module": "src/base/UvalibElement.ts"
39299
+ }
39300
+ },
39301
+ {
39302
+ "kind": "field",
39303
+ "name": "noStyle",
39304
+ "type": {
39305
+ "text": "boolean"
39306
+ },
39307
+ "default": "false",
39308
+ "attribute": "no-style",
39309
+ "inheritedFrom": {
39310
+ "name": "UvalibElement",
39311
+ "module": "src/base/UvalibElement.ts"
39312
+ }
39313
+ },
39314
+ {
39315
+ "kind": "field",
39316
+ "name": "_lightDom",
39317
+ "type": {
39318
+ "text": "boolean | undefined"
39319
+ },
39320
+ "privacy": "private",
39321
+ "description": "Fixed at the first createRenderRoot(); later attribute changes have no effect.",
39322
+ "inheritedFrom": {
39323
+ "name": "UvalibElement",
39324
+ "module": "src/base/UvalibElement.ts"
39325
+ }
39326
+ },
39327
+ {
39328
+ "kind": "field",
39329
+ "name": "lightDom",
39330
+ "type": {
39331
+ "text": "boolean"
39332
+ },
39333
+ "privacy": "protected",
39334
+ "readonly": true,
39335
+ "inheritedFrom": {
39336
+ "name": "UvalibElement",
39337
+ "module": "src/base/UvalibElement.ts"
39338
+ }
39339
+ },
39340
+ {
39341
+ "kind": "method",
39342
+ "name": "installLightStyles",
39343
+ "privacy": "protected",
39344
+ "return": {
39345
+ "type": {
39346
+ "text": "void"
39347
+ }
39348
+ },
39349
+ "parameters": [
39350
+ {
39351
+ "name": "root",
39352
+ "optional": true,
39353
+ "type": {
39354
+ "text": "Document | ShadowRoot"
39355
+ }
39356
+ }
39357
+ ],
39358
+ "description": "Light mode: install `static styles` into `root`, scoped to the tag. Subclasses may override.",
39359
+ "inheritedFrom": {
39360
+ "name": "UvalibElement",
39361
+ "module": "src/base/UvalibElement.ts"
39362
+ }
39363
+ }
39364
+ ],
39365
+ "events": [
39366
+ {
39367
+ "description": "For `<site-analytics>`: `['uvalib-qr', 'link-click']` when the visible link is followed (never the URL). Bubbles and is composed.",
39368
+ "name": "uvalib-analytics-event"
39369
+ }
39370
+ ],
39371
+ "attributes": [
39372
+ {
39373
+ "name": "value",
39374
+ "type": {
39375
+ "text": "string"
39376
+ },
39377
+ "default": "''",
39378
+ "description": "The text encoded: usually a URL (required).",
39379
+ "fieldName": "value"
39380
+ },
39381
+ {
39382
+ "name": "label",
39383
+ "type": {
39384
+ "text": "string"
39385
+ },
39386
+ "default": "''",
39387
+ "description": "The code's accessible name (default \"QR code for example.org/path\").",
39388
+ "fieldName": "label"
39389
+ },
39390
+ {
39391
+ "name": "size",
39392
+ "type": {
39393
+ "text": "string"
39394
+ },
39395
+ "default": "''",
39396
+ "description": "The tile's width and height: a number of pixels, or a CSS length (default 10rem).",
39397
+ "fieldName": "size"
39398
+ },
39399
+ {
39400
+ "name": "error-correction",
39401
+ "type": {
39402
+ "text": "string"
39403
+ },
39404
+ "default": "''",
39405
+ "description": "`L`, `M`, `Q` or `H` (default `M`; always `H` with a logo).",
39406
+ "fieldName": "errorCorrection"
39407
+ },
39408
+ {
39409
+ "name": "quiet-zone",
39410
+ "type": {
39411
+ "text": "number"
39412
+ },
39413
+ "default": "4",
39414
+ "description": "White modules around the code: 4 is the standard minimum (0 to 16).",
39415
+ "fieldName": "quietZone"
39416
+ },
39417
+ {
39418
+ "name": "variant",
39419
+ "type": {
39420
+ "text": "string"
39421
+ },
39422
+ "default": "''",
39423
+ "description": "`plain`: square black modules, no frame, for maximum compatibility. Default: branded.",
39424
+ "fieldName": "variant"
39425
+ },
39426
+ {
39427
+ "name": "show-link",
39428
+ "type": {
39429
+ "text": "boolean"
39430
+ },
39431
+ "default": "false",
39432
+ "description": "Show the address as a link under the code (http, https, mailto and tel only).",
39433
+ "fieldName": "showLink"
39434
+ },
39435
+ {
39436
+ "name": "link-label",
39437
+ "type": {
39438
+ "text": "string"
39439
+ },
39440
+ "default": "''",
39441
+ "description": "The visible link's text (default the address without its scheme); implies `show-link`.",
39442
+ "fieldName": "linkLabel"
39443
+ },
39444
+ {
39445
+ "name": "logo-src",
39446
+ "type": {
39447
+ "text": "string"
39448
+ },
39449
+ "default": "''",
39450
+ "description": "Approved logo artwork for the centre (an image URL). Off by default.",
39451
+ "fieldName": "logoSrc"
39452
+ },
39453
+ {
39454
+ "name": "logo-alt",
39455
+ "type": {
39456
+ "text": "string"
39457
+ },
39458
+ "default": "''",
39459
+ "description": "The logo's text alternative, added to the code's name; empty means decorative.",
39460
+ "fieldName": "logoAlt"
39461
+ },
39462
+ {
39463
+ "name": "logo-size",
39464
+ "default": "QR_LOGO_SIZE",
39465
+ "description": "The cleared centre's side, in % of the symbol's side (default 20; at most about 31).",
39466
+ "fieldName": "logoSize"
39467
+ },
39468
+ {
39469
+ "name": "no-shadow-dom",
39470
+ "type": {
39471
+ "text": "boolean"
39472
+ },
39473
+ "default": "false",
39474
+ "fieldName": "noShadowDom",
39475
+ "inheritedFrom": {
39476
+ "name": "UvalibElement",
39477
+ "module": "src/base/UvalibElement.ts"
39478
+ }
39479
+ },
39480
+ {
39481
+ "name": "no-style",
39482
+ "type": {
39483
+ "text": "boolean"
39484
+ },
39485
+ "default": "false",
39486
+ "fieldName": "noStyle",
39487
+ "inheritedFrom": {
39488
+ "name": "UvalibElement",
39489
+ "module": "src/base/UvalibElement.ts"
39490
+ }
39491
+ }
39492
+ ],
39493
+ "superclass": {
39494
+ "name": "UvalibElement",
39495
+ "module": "/src/base/UvalibElement.js"
39496
+ },
39497
+ "tagName": "uvalib-qr",
39498
+ "customElement": true
39499
+ }
39500
+ ],
39501
+ "exports": [
39502
+ {
39503
+ "kind": "js",
39504
+ "name": "QR_LOGO_SIZE",
39505
+ "declaration": {
39506
+ "name": "QR_LOGO_SIZE",
39507
+ "module": "src/components/uvalib-qr/UvalibQr.ts"
39508
+ }
39509
+ },
39510
+ {
39511
+ "kind": "js",
39512
+ "name": "QR_LOGO_MAX_AREA",
39513
+ "declaration": {
39514
+ "name": "QR_LOGO_MAX_AREA",
39515
+ "module": "src/components/uvalib-qr/UvalibQr.ts"
39516
+ }
39517
+ },
39518
+ {
39519
+ "kind": "js",
39520
+ "name": "shortUrl",
39521
+ "declaration": {
39522
+ "name": "shortUrl",
39523
+ "module": "src/components/uvalib-qr/UvalibQr.ts"
39524
+ }
39525
+ },
39526
+ {
39527
+ "kind": "js",
39528
+ "name": "qrPath",
39529
+ "declaration": {
39530
+ "name": "qrPath",
39531
+ "module": "src/components/uvalib-qr/UvalibQr.ts"
39532
+ }
39533
+ },
39534
+ {
39535
+ "kind": "js",
39536
+ "name": "clearSide",
39537
+ "declaration": {
39538
+ "name": "clearSide",
39539
+ "module": "src/components/uvalib-qr/UvalibQr.ts"
39540
+ }
39541
+ },
39542
+ {
39543
+ "kind": "js",
39544
+ "name": "UvalibQr",
39545
+ "declaration": {
39546
+ "name": "UvalibQr",
39547
+ "module": "src/components/uvalib-qr/UvalibQr.ts"
39548
+ }
39549
+ }
39550
+ ]
39551
+ },
39552
+ {
39553
+ "kind": "javascript-module",
39554
+ "path": "src/components/uvalib-qr/uvalib-qr.ts",
39555
+ "declarations": [],
39556
+ "exports": []
39557
+ },
38726
39558
  {
38727
39559
  "kind": "javascript-module",
38728
39560
  "path": "src/components/uvalib-results-count/UvalibResultsCount.ts",