@uvalib/web-components 1.7.0 → 1.8.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 (105) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +56 -12
  3. package/dist/base/states.d.ts +12 -0
  4. package/dist/base/states.js +33 -0
  5. package/dist/base/states.js.map +1 -0
  6. package/dist/base.css +15 -5
  7. package/dist/components/bento-box/BentoBox.js +1 -0
  8. package/dist/components/bento-box/BentoBox.js.map +1 -1
  9. package/dist/components/events-section/EventsSection.js +1 -0
  10. package/dist/components/events-section/EventsSection.js.map +1 -1
  11. package/dist/components/library-hours/hours-data.js +1 -1
  12. package/dist/components/library-hours/hours-data.js.map +1 -1
  13. package/dist/components/library-weekly-hours/LibraryWeeklyHours.js +1 -0
  14. package/dist/components/library-weekly-hours/LibraryWeeklyHours.js.map +1 -1
  15. package/dist/components/uvalib-card/UvalibCard.js +6 -0
  16. package/dist/components/uvalib-card/UvalibCard.js.map +1 -1
  17. package/dist/components/uvalib-combobox/UvalibCombobox.d.ts +27 -0
  18. package/dist/components/uvalib-combobox/UvalibCombobox.js +85 -1
  19. package/dist/components/uvalib-combobox/UvalibCombobox.js.map +1 -1
  20. package/dist/components/uvalib-contents/UvalibContents.js +5 -0
  21. package/dist/components/uvalib-contents/UvalibContents.js.map +1 -1
  22. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.d.ts +6 -0
  23. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.js +10 -0
  24. package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.js.map +1 -1
  25. package/dist/components/uvalib-image-regions/UvalibImageRegions.js +2 -0
  26. package/dist/components/uvalib-image-regions/UvalibImageRegions.js.map +1 -1
  27. package/dist/components/uvalib-image-regions/regions.d.ts +6 -2
  28. package/dist/components/uvalib-image-regions/regions.js +6 -3
  29. package/dist/components/uvalib-image-regions/regions.js.map +1 -1
  30. package/dist/components/uvalib-lightbox/UvalibLightbox.d.ts +9 -2
  31. package/dist/components/uvalib-lightbox/UvalibLightbox.js +23 -3
  32. package/dist/components/uvalib-lightbox/UvalibLightbox.js.map +1 -1
  33. package/dist/components/uvalib-lightbox/compare.d.ts +30 -3
  34. package/dist/components/uvalib-lightbox/compare.js +98 -29
  35. package/dist/components/uvalib-lightbox/compare.js.map +1 -1
  36. package/dist/components/uvalib-map/UvalibMap.js +2 -2
  37. package/dist/components/uvalib-map/UvalibMap.js.map +1 -1
  38. package/dist/components/uvalib-metadata/UvalibMetadata.js +3 -0
  39. package/dist/components/uvalib-metadata/UvalibMetadata.js.map +1 -1
  40. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +3 -1
  41. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
  42. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.d.ts +3 -3
  43. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js +16 -8
  44. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js.map +1 -1
  45. package/dist/components/uvalib-tag-list/UvalibTagList.d.ts +4 -1
  46. package/dist/components/uvalib-tag-list/UvalibTagList.js +9 -2
  47. package/dist/components/uvalib-tag-list/UvalibTagList.js.map +1 -1
  48. package/dist/custom-elements.json +1926 -1637
  49. package/dist/styles/message.js +4 -0
  50. package/dist/styles/message.js.map +1 -1
  51. package/dist/styles/result-list.js +25 -4
  52. package/dist/styles/result-list.js.map +1 -1
  53. package/dist/styles/results.js +17 -2
  54. package/dist/styles/results.js.map +1 -1
  55. package/dist-cdn/base.css +15 -5
  56. package/dist-cdn/bento-box.js +1 -0
  57. package/dist-cdn/bento-box.js.map +1 -1
  58. package/dist-cdn/chunks/{compare-DV6ltvsJ.js → compare-C0nhByn7.js} +66 -29
  59. package/dist-cdn/chunks/compare-C0nhByn7.js.map +1 -0
  60. package/dist-cdn/chunks/{hours-data-Bw6vkIw7.js → hours-data-gMu5uT7H.js} +2 -2
  61. package/dist-cdn/chunks/hours-data-gMu5uT7H.js.map +1 -0
  62. package/dist-cdn/chunks/{library-weekly-hours-CrV3TlP5.js → library-weekly-hours-BJgxAyah.js} +3 -2
  63. package/dist-cdn/chunks/library-weekly-hours-BJgxAyah.js.map +1 -0
  64. package/dist-cdn/chunks/{regions-B8ExwUGP.js → regions-B-rOwa-v.js} +15 -15
  65. package/dist-cdn/chunks/regions-B-rOwa-v.js.map +1 -0
  66. package/dist-cdn/chunks/states-DGXGzcte.js +17 -0
  67. package/dist-cdn/chunks/states-DGXGzcte.js.map +1 -0
  68. package/dist-cdn/custom-elements.json +1926 -1637
  69. package/dist-cdn/events-section.js +1 -0
  70. package/dist-cdn/events-section.js.map +1 -1
  71. package/dist-cdn/library-hours-setup.js +1 -1
  72. package/dist-cdn/library-weekly-hours.js +1 -1
  73. package/dist-cdn/manifest.json +1 -1
  74. package/dist-cdn/site-hours-section.js +1 -1
  75. package/dist-cdn/skills/uvalib-web-components/SKILL.md +5 -4
  76. package/dist-cdn/skills/uvalib-web-components/reference/components.md +33 -6
  77. package/dist-cdn/uvalib-card.js +6 -0
  78. package/dist-cdn/uvalib-card.js.map +1 -1
  79. package/dist-cdn/uvalib-combobox.js +107 -68
  80. package/dist-cdn/uvalib-combobox.js.map +1 -1
  81. package/dist-cdn/uvalib-contents.js +5 -0
  82. package/dist-cdn/uvalib-contents.js.map +1 -1
  83. package/dist-cdn/uvalib-filter-drawer.js +27 -25
  84. package/dist-cdn/uvalib-filter-drawer.js.map +1 -1
  85. package/dist-cdn/uvalib-image-regions.js +3 -1
  86. package/dist-cdn/uvalib-image-regions.js.map +1 -1
  87. package/dist-cdn/uvalib-lightbox.js +80 -69
  88. package/dist-cdn/uvalib-lightbox.js.map +1 -1
  89. package/dist-cdn/uvalib-map.js +2 -2
  90. package/dist-cdn/uvalib-map.js.map +1 -1
  91. package/dist-cdn/uvalib-metadata.js +3 -0
  92. package/dist-cdn/uvalib-metadata.js.map +1 -1
  93. package/dist-cdn/uvalib-pagefind-search.js +2 -1
  94. package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
  95. package/dist-cdn/uvalib-photo-grid.js +4 -5
  96. package/dist-cdn/uvalib-photo-grid.js.map +1 -1
  97. package/dist-cdn/uvalib-tag-list.js +21 -16
  98. package/dist-cdn/uvalib-tag-list.js.map +1 -1
  99. package/package.json +1 -1
  100. package/skills/uvalib-web-components/SKILL.md +5 -4
  101. package/skills/uvalib-web-components/reference/components.md +33 -6
  102. package/dist-cdn/chunks/compare-DV6ltvsJ.js.map +0 -1
  103. package/dist-cdn/chunks/hours-data-Bw6vkIw7.js.map +0 -1
  104. package/dist-cdn/chunks/library-weekly-hours-CrV3TlP5.js.map +0 -1
  105. package/dist-cdn/chunks/regions-B8ExwUGP.js.map +0 -1
@@ -2276,6 +2276,78 @@
2276
2276
  }
2277
2277
  ]
2278
2278
  },
2279
+ {
2280
+ "kind": "javascript-module",
2281
+ "path": "src/base/states.ts",
2282
+ "declarations": [
2283
+ {
2284
+ "kind": "function",
2285
+ "name": "attachStateInternals",
2286
+ "return": {
2287
+ "type": {
2288
+ "text": "ElementInternals | undefined"
2289
+ }
2290
+ },
2291
+ "parameters": [
2292
+ {
2293
+ "name": "el",
2294
+ "type": {
2295
+ "text": "HTMLElement"
2296
+ }
2297
+ }
2298
+ ],
2299
+ "description": "The element's internals, or undefined where the browser has none (or they are taken)."
2300
+ },
2301
+ {
2302
+ "kind": "function",
2303
+ "name": "setState",
2304
+ "return": {
2305
+ "type": {
2306
+ "text": "void"
2307
+ }
2308
+ },
2309
+ "parameters": [
2310
+ {
2311
+ "name": "internals",
2312
+ "type": {
2313
+ "text": "ElementInternals | undefined"
2314
+ }
2315
+ },
2316
+ {
2317
+ "name": "name",
2318
+ "type": {
2319
+ "text": "string"
2320
+ }
2321
+ },
2322
+ {
2323
+ "name": "on",
2324
+ "type": {
2325
+ "text": "boolean"
2326
+ }
2327
+ }
2328
+ ],
2329
+ "description": "Turn `name` on or off. A no-op without `states` (older engines), and where only the old\n`--name` syntax is accepted (Chromium before 125 throws on a plain name)."
2330
+ }
2331
+ ],
2332
+ "exports": [
2333
+ {
2334
+ "kind": "js",
2335
+ "name": "attachStateInternals",
2336
+ "declaration": {
2337
+ "name": "attachStateInternals",
2338
+ "module": "src/base/states.ts"
2339
+ }
2340
+ },
2341
+ {
2342
+ "kind": "js",
2343
+ "name": "setState",
2344
+ "declaration": {
2345
+ "name": "setState",
2346
+ "module": "src/base/states.ts"
2347
+ }
2348
+ }
2349
+ ]
2350
+ },
2279
2351
  {
2280
2352
  "kind": "javascript-module",
2281
2353
  "path": "src/base/url-param.ts",
@@ -2815,7 +2887,7 @@
2815
2887
  {
2816
2888
  "kind": "variable",
2817
2889
  "name": "message",
2818
- "default": "css` .uvalib-message { display: block; box-sizing: border-box; max-inline-size: 100%; margin-block: 1rem; padding: 0.75rem 1rem; border: 1px solid transparent; border-inline-start: 6px solid var(--uva-color-alert-info-border, var(--uva-blue-alt, #007bac)); border-radius: 0.3rem; background: var(--uva-color-alert-info-bg, var(--uva-blue-alt-300, #bfe7f7)); color: var(--uva-color-alert-text, var(--uva-grey-darkest, #2b2b2b)); line-height: 1.5; overflow-wrap: anywhere; } .uvalib-message > :first-child { margin-block-start: 0; } .uvalib-message > :last-child { margin-block-end: 0; } .uvalib-message a, .uvalib-message a:visited { color: var(--uva-color-alert-link, var(--uva-blue-alt-B, #141e3c)); text-decoration: underline; } /* The ring follows the text colour, chosen to read on the message's own background. */ .uvalib-message a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; } .uvalib-message__label { font-weight: 700; } .uvalib-message__icon { display: inline-block; inline-size: 1.25em; block-size: 1.25em; margin-inline-end: 0.35em; vertical-align: -0.25em; } .uvalib-message--error { border-inline-start-color: var(--uva-color-alert-critical-border, var(--uva-red-B, #b30000)); background: var(--uva-color-alert-critical-bg, var(--uva-red-100, #fbcfda)); } .uvalib-message--warning { border-inline-start-color: var(--uva-color-alert-warning-border, var(--uva-yellow, #ecc602)); background: var(--uva-color-alert-warning-bg, var(--uva-yellow-100, #fef6c8)); } .uvalib-message:is(.uvalib-message--info, .uvalib-message--notice) { border-inline-start-color: var(--uva-color-alert-info-border, var(--uva-blue-alt, #007bac)); background: var(--uva-color-alert-info-bg, var(--uva-blue-alt-300, #bfe7f7)); } .uvalib-message--success { border-inline-start-color: var(--uva-color-status-success-border, var(--uva-green-A, #4e9737)); background: var(--uva-color-status-success-bg, var(--uva-green-200, #ddefdc)); } @media (forced-colors: active) { .uvalib-message { border-color: CanvasText; } .uvalib-message a:focus-visible { outline-color: Highlight; } } `"
2890
+ "default": "css` .uvalib-message { display: block; box-sizing: border-box; max-inline-size: 100%; margin-block: 1rem; padding: 0.75rem 1rem; border: 1px solid transparent; border-inline-start: 6px solid var(--uva-color-alert-info-border, var(--uva-blue-alt, #007bac)); border-radius: 0.3rem; background: var(--uva-color-alert-info-bg, var(--uva-blue-alt-300, #bfe7f7)); color: var(--uva-color-alert-text, var(--uva-grey-darkest, #2b2b2b)); line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; } .uvalib-message > :first-child { margin-block-start: 0; } .uvalib-message > :last-child { margin-block-end: 0; } .uvalib-message a, .uvalib-message a:visited { color: var(--uva-color-alert-link, var(--uva-blue-alt-B, #141e3c)); text-decoration: underline; } /* The ring follows the text colour, chosen to read on the message's own background. */ .uvalib-message a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; } .uvalib-message__label { font-weight: 700; } .uvalib-message__icon { display: inline-block; inline-size: 1.25em; block-size: 1.25em; margin-inline-end: 0.35em; vertical-align: -0.25em; } .uvalib-message--error { border-inline-start-color: var(--uva-color-alert-critical-border, var(--uva-red-B, #b30000)); background: var(--uva-color-alert-critical-bg, var(--uva-red-100, #fbcfda)); } .uvalib-message--warning { border-inline-start-color: var(--uva-color-alert-warning-border, var(--uva-yellow, #ecc602)); background: var(--uva-color-alert-warning-bg, var(--uva-yellow-100, #fef6c8)); } .uvalib-message:is(.uvalib-message--info, .uvalib-message--notice) { border-inline-start-color: var(--uva-color-alert-info-border, var(--uva-blue-alt, #007bac)); background: var(--uva-color-alert-info-bg, var(--uva-blue-alt-300, #bfe7f7)); } .uvalib-message--success { border-inline-start-color: var(--uva-color-status-success-border, var(--uva-green-A, #4e9737)); background: var(--uva-color-status-success-bg, var(--uva-green-200, #ddefdc)); } @media (forced-colors: active) { .uvalib-message { border-color: CanvasText; } .uvalib-message a:focus-visible { outline-color: Highlight; } } `"
2819
2891
  }
2820
2892
  ],
2821
2893
  "exports": [
@@ -2857,7 +2929,7 @@
2857
2929
  {
2858
2930
  "kind": "variable",
2859
2931
  "name": "resultList",
2860
- "default": "css` .uvalib-result-list { display: block; margin: 0 0 1rem; padding: 0; list-style: none; } .uvalib-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: start; margin: 0; padding: 0.75rem 0.5rem; border-block-end: 1px solid var(--uva-color-track, #e5e7eb); line-height: 1.5; overflow-wrap: anywhere; content-visibility: auto; contain-intrinsic-block-size: auto 7rem; } .uvalib-result > * { grid-column: 1; min-inline-size: 0; margin: 0; } .uvalib-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f)); font-size: 0.875rem; } /* Only as wide as its text, so the space beside a short title is not a link. */ .uvalib-result__title { display: block; justify-self: start; font-size: 1.125rem; font-weight: 600; line-height: 1.4; } :is(a.uvalib-result__title, .uvalib-result__title a) { color: var(--uva-color-link, var(--uva-brand-blue, #232d4b)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } :is(a.uvalib-result__title, .uvalib-result__title a):hover { text-decoration-thickness: 3px; } :is(a.uvalib-result__title, .uvalib-result__title a):focus-visible { outline: 3px solid var(--uva-color-focus, var(--uva-brand-orange, #e57200)); outline-offset: 2px; } .uvalib-result__snippet { display: block; margin-block-start: 0.25rem; } .uvalib-result__snippet mark { padding-inline: 0.1em; border-radius: 2px; background: var(--uva-color-highlight, var(--uva-brand-orange-200, #ffc999)); color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b)); font-weight: 700; } /* Wide: the actions at the end of the row, beside its first lines. */ .uvalib-result > .uvalib-result__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; grid-column: 2; grid-row: 1 / span 4; } /* Phones: the actions below the row's text, wrapping. */ @media (max-width: 40em) { .uvalib-result > .uvalib-result__actions { justify-content: flex-start; grid-column: 1; grid-row: auto; margin-block-start: 0.5rem; } } @media (forced-colors: active) { .uvalib-result__snippet mark { forced-color-adjust: none; background: Highlight; color: HighlightText; } } `"
2932
+ "default": "css` .uvalib-result-list { display: block; container: uvalib-result-list / inline-size; margin: 0 0 1rem; padding: 0; list-style: none; } .uvalib-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: start; margin: 0; padding: 0.75rem 0.5rem; border-block-end: 1px solid var(--uva-color-track, #e5e7eb); line-height: 1.5; overflow-wrap: anywhere; content-visibility: auto; contain-intrinsic-block-size: auto 7rem; } .uvalib-result > * { grid-column: 1; min-inline-size: 0; margin: 0; } .uvalib-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f)); font-size: 0.875rem; } /* Only as wide as its text, so the space beside a short title is not a link. */ .uvalib-result__title { display: block; justify-self: start; font-size: 1.125rem; font-weight: 600; line-height: 1.4; } .uvalib-result__title:not(a) { text-wrap: balance; } :is(a.uvalib-result__title, .uvalib-result__title a) { color: var(--uva-color-link, var(--uva-brand-blue, #232d4b)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } :is(a.uvalib-result__title, .uvalib-result__title a):hover { text-decoration-thickness: 3px; } :is(a.uvalib-result__title, .uvalib-result__title a):focus-visible { outline: 3px solid var(--uva-color-focus, var(--uva-brand-orange, #e57200)); outline-offset: 2px; } .uvalib-result__snippet { display: block; margin-block-start: 0.25rem; text-wrap: pretty; } .uvalib-result__snippet mark { padding-inline: 0.1em; border-radius: 2px; background: var(--uva-color-highlight, var(--uva-brand-orange-200, #ffc999)); color: var(--uva-color-on-highlight, var(--uva-grey-darkest, #2b2b2b)); font-weight: 700; } /* A wide list: the actions at the end of the row, beside its first lines. */ .uvalib-result > .uvalib-result__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; grid-column: 2; grid-row: 1 / span 4; } /* A narrow list (a phone, a sidebar, a drawer): the actions below the row's text, wrapping. */ @container uvalib-result-list (width <= 40em) { .uvalib-result > .uvalib-result__actions { justify-content: flex-start; grid-column: 1; grid-row: auto; margin-block-start: 0.5rem; } } @media (forced-colors: active) { .uvalib-result__snippet mark { forced-color-adjust: none; background: Highlight; color: HighlightText; } } `"
2861
2933
  }
2862
2934
  ],
2863
2935
  "exports": [
@@ -2878,7 +2950,7 @@
2878
2950
  {
2879
2951
  "kind": "variable",
2880
2952
  "name": "results",
2881
- "default": "css` .uvalib-badge { display: inline-flex; align-items: center; gap: 0.3em; box-sizing: border-box; max-inline-size: 100%; margin: 0; padding: 0.1rem 0.6rem; border: 1px solid transparent; border-radius: 999px; background: var(--uva-color-track, var(--uva-grey-200, #f1f1f1)); color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b)); font-size: 0.875rem; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; vertical-align: middle; } .uvalib-badge--category { background: var(--uva-blue-alt-300, #bfe7f7); color: var(--uva-blue-alt-dark, #005679); } .uvalib-badge--body { font-size: 1rem; } .uvalib-badge > :is(svg, img, .uvalib-badge__icon) { flex: none; inline-size: 1em; block-size: 1em; } .uvalib-badge--count { border-radius: 5px; background: rgb(14 17 23 / 0.82); color: #ffffff; font-weight: 600; } .uvalib-badge--status { font-weight: 600; } .uvalib-badge:is( .uvalib-badge--success, .uvalib-badge--warning, .uvalib-badge--danger, .uvalib-badge--info ) { color: var(--uva-color-alert-text, var(--uva-grey-darkest, #2b2b2b)); } .uvalib-badge--success { border-color: var(--uva-color-status-success-border, var(--uva-green-A, #4e9737)); background: var(--uva-color-status-success-bg, var(--uva-green-200, #ddefdc)); } .uvalib-badge--warning { border-color: var(--uva-color-alert-warning-border, var(--uva-yellow, #ecc602)); background: var(--uva-color-alert-warning-bg, var(--uva-yellow-100, #fef6c8)); } .uvalib-badge--danger { border-color: var(--uva-color-alert-critical-border, var(--uva-red-B, #b30000)); background: var(--uva-color-alert-critical-bg, var(--uva-red-100, #fbcfda)); } .uvalib-badge--info { border-color: var(--uva-color-alert-info-border, var(--uva-blue-alt, #007bac)); background: var(--uva-color-alert-info-bg, var(--uva-blue-alt-300, #bfe7f7)); } .uvalib-badge--new { background: var(--uva-color-accent-bg, var(--uva-brand-blue, #232d4b)); color: var(--uva-color-on-accent, #ffffff); font-weight: 700; } /* Badges over an image: the wrapper is the positioning box; the badge sits top-start. */ .uvalib-media { position: relative; display: block; } .uvalib-media > :is(img, video, picture) { display: block; inline-size: 100%; block-size: auto; } .uvalib-media > :is(.uvalib-badge, .uvalib-media__badges) { position: absolute; inset-block-start: 0.5rem; inset-inline-start: 0.5rem; max-inline-size: calc(100% - 1rem); } .uvalib-media__badges { display: flex; flex-wrap: wrap; gap: 0.25rem; } /* A results toolbar: search, selects, chip groups and the count, wrapping on phones. */ .uvalib-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-block: 0 1rem; } .uvalib-toolbar > * { min-inline-size: 0; max-inline-size: 100%; margin-block: 0; } .uvalib-toolbar__field { display: flex; flex-direction: column; gap: 0.25rem; } .uvalib-toolbar__field > .uvalib-input { inline-size: 100%; } /* :where keeps it as specific as the phone rule below, which then wins. */ .uvalib-toolbar > :where(.uvalib-toolbar__field--grow, .uvalib-search-form) { flex: 1 1 16rem; } .uvalib-toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; } .uvalib-toolbar__summary { align-self: center; margin-inline-start: auto; color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f)); } @media (max-width: 30em) { .uvalib-toolbar > * { flex: 1 1 100%; } .uvalib-toolbar__summary { margin-inline-start: 0; } } /* No results: an optional decorative icon, a heading, a sentence and an action. */ .uvalib-empty-state { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-block: 1rem; padding: 2.5rem 1rem; border: 1px dashed var(--uva-color-control-border, var(--uva-grey, #808080)); border-radius: 0.3rem; text-align: center; } .uvalib-empty-state > * { margin: 0; max-inline-size: 40rem; } .uvalib-empty-state__icon { inline-size: 3rem; block-size: 3rem; color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f)); } .uvalib-empty-state > :is(h2, h3, h4, .uvalib-empty-state__heading) { font-size: 1.25rem; line-height: 1.3; } .uvalib-empty-state > p { color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f)); } /* Loading placeholders: a box (give it a height or an aspect ratio) and a text line, which reserves one line of text (1em plus the 0.25em above and below at line-height 1.5). */ .uvalib-skeleton, .uvalib-skeleton-text { display: block; border-radius: 0.3rem; background-color: var(--uva-color-track, var(--uva-grey-200, #f1f1f1)); background-image: linear-gradient( 90deg, transparent 0%, color-mix(in srgb, currentColor 9%, transparent) 50%, transparent 100% ); background-repeat: no-repeat; background-size: 50% 100%; animation: uvalib-skeleton-shimmer 1.6s linear infinite; } .uvalib-skeleton { min-block-size: 1em; } .uvalib-skeleton--media { aspect-ratio: 3 / 2; } .uvalib-skeleton-text { block-size: 1em; margin-block: 0.25em; border-radius: 0.2rem; } .uvalib-skeleton-text:last-child:not(:first-child) { inline-size: 60%; } @keyframes uvalib-skeleton-shimmer { from { background-position: -100% 0; } to { background-position: 200% 0; } } @media (prefers-reduced-motion: reduce) { .uvalib-skeleton, .uvalib-skeleton-text { animation: none; background-image: none; } } @media (forced-colors: active) { .uvalib-badge { border-color: CanvasText; } /* Over a photo, which keeps its pixels: an opaque system-colour box, as the card badge. */ .uvalib-badge--count { forced-color-adjust: none; border-color: Canvas; background: CanvasText; color: Canvas; } .uvalib-skeleton, .uvalib-skeleton-text { border: 1px solid GrayText; animation: none; } } `"
2953
+ "default": "css` .uvalib-badge { display: inline-flex; align-items: center; gap: 0.3em; box-sizing: border-box; max-inline-size: 100%; margin: 0; padding: 0.1rem 0.6rem; border: 1px solid transparent; border-radius: 999px; background: var(--uva-color-track, var(--uva-grey-200, #f1f1f1)); color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b)); font-size: 0.875rem; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; vertical-align: middle; } .uvalib-badge--category { background: var(--uva-blue-alt-300, #bfe7f7); color: var(--uva-blue-alt-dark, #005679); } .uvalib-badge--body { font-size: 1rem; } .uvalib-badge > :is(svg, img, .uvalib-badge__icon) { flex: none; inline-size: 1em; block-size: 1em; } .uvalib-badge--count { border-radius: 5px; background: rgb(14 17 23 / 0.82); color: #ffffff; font-weight: 600; } .uvalib-badge--status { font-weight: 600; } .uvalib-badge:is( .uvalib-badge--success, .uvalib-badge--warning, .uvalib-badge--danger, .uvalib-badge--info ) { color: var(--uva-color-alert-text, var(--uva-grey-darkest, #2b2b2b)); } .uvalib-badge--success { border-color: var(--uva-color-status-success-border, var(--uva-green-A, #4e9737)); background: var(--uva-color-status-success-bg, var(--uva-green-200, #ddefdc)); } .uvalib-badge--warning { border-color: var(--uva-color-alert-warning-border, var(--uva-yellow, #ecc602)); background: var(--uva-color-alert-warning-bg, var(--uva-yellow-100, #fef6c8)); } .uvalib-badge--danger { border-color: var(--uva-color-alert-critical-border, var(--uva-red-B, #b30000)); background: var(--uva-color-alert-critical-bg, var(--uva-red-100, #fbcfda)); } .uvalib-badge--info { border-color: var(--uva-color-alert-info-border, var(--uva-blue-alt, #007bac)); background: var(--uva-color-alert-info-bg, var(--uva-blue-alt-300, #bfe7f7)); } .uvalib-badge--new { background: var(--uva-color-accent-bg, var(--uva-brand-blue, #232d4b)); color: var(--uva-color-on-accent, #ffffff); font-weight: 700; } /* Badges over an image: the wrapper is the positioning box; the badge sits top-start. */ .uvalib-media { position: relative; display: block; } .uvalib-media > :is(img, video, picture) { display: block; inline-size: 100%; block-size: auto; } .uvalib-media > :is(.uvalib-badge, .uvalib-media__badges) { position: absolute; inset-block-start: 0.5rem; inset-inline-start: 0.5rem; max-inline-size: calc(100% - 1rem); } .uvalib-media__badges { display: flex; flex-wrap: wrap; gap: 0.25rem; } /* A results toolbar: search, selects, chip groups and the count, wrapping on phones. */ .uvalib-toolbar { container: uvalib-toolbar / inline-size; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin-block: 0 1rem; } .uvalib-toolbar > * { min-inline-size: 0; max-inline-size: 100%; margin-block: 0; } .uvalib-toolbar__field { display: flex; flex-direction: column; gap: 0.25rem; } .uvalib-toolbar__field > .uvalib-input { inline-size: 100%; } /* :where keeps it as specific as the narrow rule below, which then wins. */ .uvalib-toolbar > :where(.uvalib-toolbar__field--grow, .uvalib-search-form) { flex: 1 1 16rem; } .uvalib-toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; } .uvalib-toolbar__summary { align-self: center; margin-inline-start: auto; color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f)); } /* A narrow toolbar (a phone, a sidebar, a drawer): every item on its own line. */ @container uvalib-toolbar (width <= 30em) { .uvalib-toolbar > * { flex: 1 1 100%; } .uvalib-toolbar__summary { margin-inline-start: 0; } } /* No results: an optional decorative icon, a heading, a sentence and an action. */ .uvalib-empty-state { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-block: 1rem; padding: 2.5rem 1rem; border: 1px dashed var(--uva-color-control-border, var(--uva-grey, #808080)); border-radius: 0.3rem; text-align: center; } .uvalib-empty-state > * { margin: 0; max-inline-size: 40rem; } .uvalib-empty-state__icon { inline-size: 3rem; block-size: 3rem; color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f)); } .uvalib-empty-state > :is(h2, h3, h4, .uvalib-empty-state__heading) { font-size: 1.25rem; line-height: 1.3; text-wrap: balance; } .uvalib-empty-state > p { color: var(--uva-color-text-muted, var(--uva-grey-A, #4f4f4f)); text-wrap: pretty; } /* Loading placeholders: a box (give it a height or an aspect ratio) and a text line, which reserves one line of text (1em plus the 0.25em above and below at line-height 1.5). */ .uvalib-skeleton, .uvalib-skeleton-text { display: block; border-radius: 0.3rem; background-color: var(--uva-color-track, var(--uva-grey-200, #f1f1f1)); background-image: linear-gradient( 90deg, transparent 0%, color-mix(in srgb, currentColor 9%, transparent) 50%, transparent 100% ); background-repeat: no-repeat; background-size: 50% 100%; animation: uvalib-skeleton-shimmer 1.6s linear infinite; } .uvalib-skeleton { min-block-size: 1em; } .uvalib-skeleton--media { aspect-ratio: 3 / 2; } .uvalib-skeleton-text { block-size: 1em; margin-block: 0.25em; border-radius: 0.2rem; } .uvalib-skeleton-text:last-child:not(:first-child) { inline-size: 60%; } @keyframes uvalib-skeleton-shimmer { from { background-position: -100% 0; } to { background-position: 200% 0; } } @media (prefers-reduced-motion: reduce) { .uvalib-skeleton, .uvalib-skeleton-text { animation: none; background-image: none; } } @media (forced-colors: active) { .uvalib-badge { border-color: CanvasText; } /* Over a photo, which keeps its pixels: an opaque system-colour box, as the card badge. */ .uvalib-badge--count { forced-color-adjust: none; border-color: Canvas; background: CanvasText; color: Canvas; } .uvalib-skeleton, .uvalib-skeleton-text { border: 1px solid GrayText; animation: none; } } `"
2882
2954
  }
2883
2955
  ],
2884
2956
  "exports": [
@@ -15178,265 +15250,6 @@
15178
15250
  "declarations": [],
15179
15251
  "exports": []
15180
15252
  },
15181
- {
15182
- "kind": "javascript-module",
15183
- "path": "src/components/site-style/SiteStyle.ts",
15184
- "declarations": [
15185
- {
15186
- "kind": "class",
15187
- "description": "Compatibility element. Light mode (`no-shadow-dom`) installs the tokens and base page\nstyles on the document. Shadow mode only styles inside its own shadow root, so the\n`:root` and `html, body` rules of those sheets match nothing there and the slotted content\nis not restyled; it inherits whatever inherited tokens and fonts the page already provides.",
15188
- "name": "SiteStyle",
15189
- "cssProperties": [
15190
- {
15191
- "description": "Font family.",
15192
- "name": "--uva-font-family",
15193
- "default": "franklin-gothic-urw, Arial, Helvetica, sans-serif"
15194
- },
15195
- {
15196
- "description": "Base font size.",
15197
- "name": "--uva-font-size-base",
15198
- "default": "17px"
15199
- },
15200
- {
15201
- "description": "Text colour.",
15202
- "name": "--uva-grey-darkest",
15203
- "default": "#2b2b2b"
15204
- },
15205
- {
15206
- "description": "Dark-mode role token: text colour (else `--uva-grey-darkest`).",
15207
- "name": "--uva-color-text"
15208
- },
15209
- {
15210
- "description": "Dark-mode role token: page background (else none).",
15211
- "name": "--uva-color-surface"
15212
- }
15213
- ],
15214
- "slots": [
15215
- {
15216
- "description": "Content rendered in shadow mode; it is not restyled by this element. In light mode there is no shadow root and the children stay in place.",
15217
- "name": ""
15218
- }
15219
- ],
15220
- "members": [
15221
- {
15222
- "kind": "field",
15223
- "name": "hostColorScheme",
15224
- "type": {
15225
- "text": "boolean"
15226
- },
15227
- "privacy": "protected",
15228
- "static": true,
15229
- "default": "false",
15230
- "description": "The wrapped content keeps the page's own colour scheme.",
15231
- "inheritedFrom": {
15232
- "name": "UvalibElement",
15233
- "module": "src/base/UvalibElement.ts"
15234
- }
15235
- },
15236
- {
15237
- "kind": "field",
15238
- "name": "imports",
15239
- "type": {
15240
- "text": "{ [key: string]: string }"
15241
- },
15242
- "default": "{}",
15243
- "description": "Map of tag name to a module URL whose default export is a stylesheet; ported as is.",
15244
- "attribute": "imports"
15245
- },
15246
- {
15247
- "kind": "field",
15248
- "name": "importedStyles",
15249
- "type": {
15250
- "text": "string"
15251
- },
15252
- "default": "''",
15253
- "description": "Accumulated text of the stylesheets loaded through `imports`. Carried over from the old\ncomponent for compatibility; it is not rendered anywhere.",
15254
- "attribute": "importedStyles"
15255
- },
15256
- {
15257
- "kind": "method",
15258
- "name": "installLightStyles",
15259
- "privacy": "protected",
15260
- "return": {
15261
- "type": {
15262
- "text": "void"
15263
- }
15264
- },
15265
- "parameters": [
15266
- {
15267
- "name": "root",
15268
- "optional": true,
15269
- "type": {
15270
- "text": "Document | ShadowRoot"
15271
- }
15272
- }
15273
- ],
15274
- "description": "Page-level styles: unscoped; the base rules are unlayered (so they beat host resets), the tokens layered, under their own dedupe key, always on the owner\ndocument (not the root node) because `:root` tokens inherit into shadow roots.",
15275
- "inheritedFrom": {
15276
- "name": "UvalibElement",
15277
- "module": "src/base/UvalibElement.ts"
15278
- }
15279
- },
15280
- {
15281
- "kind": "method",
15282
- "name": "finalizeStyles",
15283
- "privacy": "protected",
15284
- "static": true,
15285
- "return": {
15286
- "type": {
15287
- "text": "CSSResultOrNative[]"
15288
- }
15289
- },
15290
- "parameters": [
15291
- {
15292
- "name": "styles",
15293
- "optional": true,
15294
- "type": {
15295
- "text": "CSSResultGroup"
15296
- }
15297
- }
15298
- ],
15299
- "description": "Every component's styles start with the host colour-scheme rule (unless opted out).",
15300
- "inheritedFrom": {
15301
- "name": "UvalibElement",
15302
- "module": "src/base/UvalibElement.ts"
15303
- }
15304
- },
15305
- {
15306
- "kind": "field",
15307
- "name": "shadowRootOptions",
15308
- "type": {
15309
- "text": "ShadowRootInit"
15310
- },
15311
- "static": true,
15312
- "default": "{ ...LitElement.shadowRootOptions, mode: 'open' }",
15313
- "inheritedFrom": {
15314
- "name": "UvalibElement",
15315
- "module": "src/base/UvalibElement.ts"
15316
- }
15317
- },
15318
- {
15319
- "kind": "field",
15320
- "name": "noShadowDom",
15321
- "type": {
15322
- "text": "boolean"
15323
- },
15324
- "default": "false",
15325
- "attribute": "no-shadow-dom",
15326
- "inheritedFrom": {
15327
- "name": "UvalibElement",
15328
- "module": "src/base/UvalibElement.ts"
15329
- }
15330
- },
15331
- {
15332
- "kind": "field",
15333
- "name": "noStyle",
15334
- "type": {
15335
- "text": "boolean"
15336
- },
15337
- "default": "false",
15338
- "attribute": "no-style",
15339
- "inheritedFrom": {
15340
- "name": "UvalibElement",
15341
- "module": "src/base/UvalibElement.ts"
15342
- }
15343
- },
15344
- {
15345
- "kind": "field",
15346
- "name": "_lightDom",
15347
- "type": {
15348
- "text": "boolean | undefined"
15349
- },
15350
- "privacy": "private",
15351
- "description": "Fixed at the first createRenderRoot(); later attribute changes have no effect.",
15352
- "inheritedFrom": {
15353
- "name": "UvalibElement",
15354
- "module": "src/base/UvalibElement.ts"
15355
- }
15356
- },
15357
- {
15358
- "kind": "field",
15359
- "name": "lightDom",
15360
- "type": {
15361
- "text": "boolean"
15362
- },
15363
- "privacy": "protected",
15364
- "readonly": true,
15365
- "inheritedFrom": {
15366
- "name": "UvalibElement",
15367
- "module": "src/base/UvalibElement.ts"
15368
- }
15369
- }
15370
- ],
15371
- "attributes": [
15372
- {
15373
- "name": "imports",
15374
- "type": {
15375
- "text": "{ [key: string]: string }"
15376
- },
15377
- "default": "{}",
15378
- "description": "Map of tag name to a module URL whose default export is a stylesheet; ported as is.",
15379
- "fieldName": "imports"
15380
- },
15381
- {
15382
- "name": "importedStyles",
15383
- "type": {
15384
- "text": "string"
15385
- },
15386
- "default": "''",
15387
- "description": "Accumulated text of the stylesheets loaded through `imports`. Carried over from the old\ncomponent for compatibility; it is not rendered anywhere.",
15388
- "fieldName": "importedStyles"
15389
- },
15390
- {
15391
- "name": "no-shadow-dom",
15392
- "type": {
15393
- "text": "boolean"
15394
- },
15395
- "default": "false",
15396
- "fieldName": "noShadowDom",
15397
- "inheritedFrom": {
15398
- "name": "UvalibElement",
15399
- "module": "src/base/UvalibElement.ts"
15400
- }
15401
- },
15402
- {
15403
- "name": "no-style",
15404
- "type": {
15405
- "text": "boolean"
15406
- },
15407
- "default": "false",
15408
- "fieldName": "noStyle",
15409
- "inheritedFrom": {
15410
- "name": "UvalibElement",
15411
- "module": "src/base/UvalibElement.ts"
15412
- }
15413
- }
15414
- ],
15415
- "superclass": {
15416
- "name": "UvalibElement",
15417
- "module": "/src/base/UvalibElement.js"
15418
- },
15419
- "tagName": "site-style",
15420
- "customElement": true
15421
- }
15422
- ],
15423
- "exports": [
15424
- {
15425
- "kind": "js",
15426
- "name": "SiteStyle",
15427
- "declaration": {
15428
- "name": "SiteStyle",
15429
- "module": "src/components/site-style/SiteStyle.ts"
15430
- }
15431
- }
15432
- ]
15433
- },
15434
- {
15435
- "kind": "javascript-module",
15436
- "path": "src/components/site-style/site-style.ts",
15437
- "declarations": [],
15438
- "exports": []
15439
- },
15440
15253
  {
15441
15254
  "kind": "javascript-module",
15442
15255
  "path": "src/components/site-page/SitePage.ts",
@@ -16359,6 +16172,265 @@
16359
16172
  "declarations": [],
16360
16173
  "exports": []
16361
16174
  },
16175
+ {
16176
+ "kind": "javascript-module",
16177
+ "path": "src/components/site-style/SiteStyle.ts",
16178
+ "declarations": [
16179
+ {
16180
+ "kind": "class",
16181
+ "description": "Compatibility element. Light mode (`no-shadow-dom`) installs the tokens and base page\nstyles on the document. Shadow mode only styles inside its own shadow root, so the\n`:root` and `html, body` rules of those sheets match nothing there and the slotted content\nis not restyled; it inherits whatever inherited tokens and fonts the page already provides.",
16182
+ "name": "SiteStyle",
16183
+ "cssProperties": [
16184
+ {
16185
+ "description": "Font family.",
16186
+ "name": "--uva-font-family",
16187
+ "default": "franklin-gothic-urw, Arial, Helvetica, sans-serif"
16188
+ },
16189
+ {
16190
+ "description": "Base font size.",
16191
+ "name": "--uva-font-size-base",
16192
+ "default": "17px"
16193
+ },
16194
+ {
16195
+ "description": "Text colour.",
16196
+ "name": "--uva-grey-darkest",
16197
+ "default": "#2b2b2b"
16198
+ },
16199
+ {
16200
+ "description": "Dark-mode role token: text colour (else `--uva-grey-darkest`).",
16201
+ "name": "--uva-color-text"
16202
+ },
16203
+ {
16204
+ "description": "Dark-mode role token: page background (else none).",
16205
+ "name": "--uva-color-surface"
16206
+ }
16207
+ ],
16208
+ "slots": [
16209
+ {
16210
+ "description": "Content rendered in shadow mode; it is not restyled by this element. In light mode there is no shadow root and the children stay in place.",
16211
+ "name": ""
16212
+ }
16213
+ ],
16214
+ "members": [
16215
+ {
16216
+ "kind": "field",
16217
+ "name": "hostColorScheme",
16218
+ "type": {
16219
+ "text": "boolean"
16220
+ },
16221
+ "privacy": "protected",
16222
+ "static": true,
16223
+ "default": "false",
16224
+ "description": "The wrapped content keeps the page's own colour scheme.",
16225
+ "inheritedFrom": {
16226
+ "name": "UvalibElement",
16227
+ "module": "src/base/UvalibElement.ts"
16228
+ }
16229
+ },
16230
+ {
16231
+ "kind": "field",
16232
+ "name": "imports",
16233
+ "type": {
16234
+ "text": "{ [key: string]: string }"
16235
+ },
16236
+ "default": "{}",
16237
+ "description": "Map of tag name to a module URL whose default export is a stylesheet; ported as is.",
16238
+ "attribute": "imports"
16239
+ },
16240
+ {
16241
+ "kind": "field",
16242
+ "name": "importedStyles",
16243
+ "type": {
16244
+ "text": "string"
16245
+ },
16246
+ "default": "''",
16247
+ "description": "Accumulated text of the stylesheets loaded through `imports`. Carried over from the old\ncomponent for compatibility; it is not rendered anywhere.",
16248
+ "attribute": "importedStyles"
16249
+ },
16250
+ {
16251
+ "kind": "method",
16252
+ "name": "installLightStyles",
16253
+ "privacy": "protected",
16254
+ "return": {
16255
+ "type": {
16256
+ "text": "void"
16257
+ }
16258
+ },
16259
+ "parameters": [
16260
+ {
16261
+ "name": "root",
16262
+ "optional": true,
16263
+ "type": {
16264
+ "text": "Document | ShadowRoot"
16265
+ }
16266
+ }
16267
+ ],
16268
+ "description": "Page-level styles: unscoped; the base rules are unlayered (so they beat host resets), the tokens layered, under their own dedupe key, always on the owner\ndocument (not the root node) because `:root` tokens inherit into shadow roots.",
16269
+ "inheritedFrom": {
16270
+ "name": "UvalibElement",
16271
+ "module": "src/base/UvalibElement.ts"
16272
+ }
16273
+ },
16274
+ {
16275
+ "kind": "method",
16276
+ "name": "finalizeStyles",
16277
+ "privacy": "protected",
16278
+ "static": true,
16279
+ "return": {
16280
+ "type": {
16281
+ "text": "CSSResultOrNative[]"
16282
+ }
16283
+ },
16284
+ "parameters": [
16285
+ {
16286
+ "name": "styles",
16287
+ "optional": true,
16288
+ "type": {
16289
+ "text": "CSSResultGroup"
16290
+ }
16291
+ }
16292
+ ],
16293
+ "description": "Every component's styles start with the host colour-scheme rule (unless opted out).",
16294
+ "inheritedFrom": {
16295
+ "name": "UvalibElement",
16296
+ "module": "src/base/UvalibElement.ts"
16297
+ }
16298
+ },
16299
+ {
16300
+ "kind": "field",
16301
+ "name": "shadowRootOptions",
16302
+ "type": {
16303
+ "text": "ShadowRootInit"
16304
+ },
16305
+ "static": true,
16306
+ "default": "{ ...LitElement.shadowRootOptions, mode: 'open' }",
16307
+ "inheritedFrom": {
16308
+ "name": "UvalibElement",
16309
+ "module": "src/base/UvalibElement.ts"
16310
+ }
16311
+ },
16312
+ {
16313
+ "kind": "field",
16314
+ "name": "noShadowDom",
16315
+ "type": {
16316
+ "text": "boolean"
16317
+ },
16318
+ "default": "false",
16319
+ "attribute": "no-shadow-dom",
16320
+ "inheritedFrom": {
16321
+ "name": "UvalibElement",
16322
+ "module": "src/base/UvalibElement.ts"
16323
+ }
16324
+ },
16325
+ {
16326
+ "kind": "field",
16327
+ "name": "noStyle",
16328
+ "type": {
16329
+ "text": "boolean"
16330
+ },
16331
+ "default": "false",
16332
+ "attribute": "no-style",
16333
+ "inheritedFrom": {
16334
+ "name": "UvalibElement",
16335
+ "module": "src/base/UvalibElement.ts"
16336
+ }
16337
+ },
16338
+ {
16339
+ "kind": "field",
16340
+ "name": "_lightDom",
16341
+ "type": {
16342
+ "text": "boolean | undefined"
16343
+ },
16344
+ "privacy": "private",
16345
+ "description": "Fixed at the first createRenderRoot(); later attribute changes have no effect.",
16346
+ "inheritedFrom": {
16347
+ "name": "UvalibElement",
16348
+ "module": "src/base/UvalibElement.ts"
16349
+ }
16350
+ },
16351
+ {
16352
+ "kind": "field",
16353
+ "name": "lightDom",
16354
+ "type": {
16355
+ "text": "boolean"
16356
+ },
16357
+ "privacy": "protected",
16358
+ "readonly": true,
16359
+ "inheritedFrom": {
16360
+ "name": "UvalibElement",
16361
+ "module": "src/base/UvalibElement.ts"
16362
+ }
16363
+ }
16364
+ ],
16365
+ "attributes": [
16366
+ {
16367
+ "name": "imports",
16368
+ "type": {
16369
+ "text": "{ [key: string]: string }"
16370
+ },
16371
+ "default": "{}",
16372
+ "description": "Map of tag name to a module URL whose default export is a stylesheet; ported as is.",
16373
+ "fieldName": "imports"
16374
+ },
16375
+ {
16376
+ "name": "importedStyles",
16377
+ "type": {
16378
+ "text": "string"
16379
+ },
16380
+ "default": "''",
16381
+ "description": "Accumulated text of the stylesheets loaded through `imports`. Carried over from the old\ncomponent for compatibility; it is not rendered anywhere.",
16382
+ "fieldName": "importedStyles"
16383
+ },
16384
+ {
16385
+ "name": "no-shadow-dom",
16386
+ "type": {
16387
+ "text": "boolean"
16388
+ },
16389
+ "default": "false",
16390
+ "fieldName": "noShadowDom",
16391
+ "inheritedFrom": {
16392
+ "name": "UvalibElement",
16393
+ "module": "src/base/UvalibElement.ts"
16394
+ }
16395
+ },
16396
+ {
16397
+ "name": "no-style",
16398
+ "type": {
16399
+ "text": "boolean"
16400
+ },
16401
+ "default": "false",
16402
+ "fieldName": "noStyle",
16403
+ "inheritedFrom": {
16404
+ "name": "UvalibElement",
16405
+ "module": "src/base/UvalibElement.ts"
16406
+ }
16407
+ }
16408
+ ],
16409
+ "superclass": {
16410
+ "name": "UvalibElement",
16411
+ "module": "/src/base/UvalibElement.js"
16412
+ },
16413
+ "tagName": "site-style",
16414
+ "customElement": true
16415
+ }
16416
+ ],
16417
+ "exports": [
16418
+ {
16419
+ "kind": "js",
16420
+ "name": "SiteStyle",
16421
+ "declaration": {
16422
+ "name": "SiteStyle",
16423
+ "module": "src/components/site-style/SiteStyle.ts"
16424
+ }
16425
+ }
16426
+ ]
16427
+ },
16428
+ {
16429
+ "kind": "javascript-module",
16430
+ "path": "src/components/site-style/site-style.ts",
16431
+ "declarations": [],
16432
+ "exports": []
16433
+ },
16362
16434
  {
16363
16435
  "kind": "javascript-module",
16364
16436
  "path": "src/components/uvalib-analytics/UvalibAnalytics.ts",
@@ -19899,6 +19971,15 @@
19899
19971
  "default": "{ debounce: 250, announce: 500 }",
19900
19972
  "description": "`debounce`: milliseconds after the last keystroke before `src` is fetched. `announce`:\nmilliseconds the suggestion count must stay put before it is announced. Tests may shorten them."
19901
19973
  },
19974
+ {
19975
+ "kind": "variable",
19976
+ "name": "comboboxSupport",
19977
+ "type": {
19978
+ "text": "object"
19979
+ },
19980
+ "default": "{ topLayer: detectTopLayer() }",
19981
+ "description": "`topLayer`: whether a new element puts its popup in the top layer, anchored to the field\n(where the browser supports the Popover API and CSS anchor positioning). Read when each\nelement is created; tests may turn it off to check the fallback."
19982
+ },
19902
19983
  {
19903
19984
  "kind": "function",
19904
19985
  "name": "fold",
@@ -19923,7 +20004,7 @@
19923
20004
  },
19924
20005
  {
19925
20006
  "kind": "class",
19926
- "description": "An editable text field that suggests values as you type, from a local list or a URL: a\nperson, place or subject picker. It follows the WAI-ARIA APG “Editable Combobox With List\nAutocomplete”: a real `<input role=\"combobox\">` and a `role=\"listbox\"` popup under it.\n\nSuggestions come from the `items` property (`{ value, label?, description?, disabled? }`\nobjects, or strings), from `<option>` children (directly or inside a `<datalist>`; the\n`label` attribute or text is the label, `data-description` the second line), or from `src`,\na URL template with `{q}` (fetched 250 ms after the last keystroke once the text has\n`min-length` characters, default 1; a newer keystroke aborts the older request; the\nresponse is a JSON array of the same shape, or anything `transform(data, query)` turns\ninto one). `items` wins over the children while set. Local suggestions match anywhere in\nthe label, ignoring case and accents, those starting with the text first, then those with\na word starting with it; at most `max-results` (default 50, 0 for all) are shown, which\nkeeps a list of 16,000 people fast. The matched text is bold and underlined in a `<mark>`.\n\nKeys: Down opens the list on the first suggestion and moves (wrapping), Up opens on the\nlast, Alt+Down opens without moving, Alt+Up closes, Enter chooses the active suggestion\n(and then does not submit the form; with none active, Enter submits as in any field),\nEscape closes the list and a second Escape clears the field, Home, End, Left and Right move\nthe caret, and Tab leaves without choosing. A real clear button (“Clear <label>”, 44px,\nshown only with text) empties the field and returns focus to it.\n\nFree text is allowed: `value` is whatever is in the field, and `selected` the chosen\nsuggestion (or null); typing after choosing clears it, and leaving the field with text that\nis exactly one suggestion's label chooses it. `must-choose` makes any other text invalid\n(“Choose one of the suggestions.”). The element is form-associated: with `name` it submits\nthe chosen suggestion's value, or else the text, and a form reset restores the `value`\nattribute. `required` and `disabled` (also from a disabled fieldset) work as on an input.\n\nA polite status says “5 suggestions”, “50 of 1,234 suggestions”, “No suggestions”,\n“Loading suggestions” or “Couldn't load suggestions” half a second after the list settles\n(never on the first render); the popup shows the same notes visibly. A failed load never\nthrows.\n\nBefore it upgrades, `base.css` shows the label (from the attribute) and holds the field's\nheight. A fallback `<input list>` child works as a plain field meanwhile; on upgrade its\ntext, `name` and `placeholder` carry over, and it is disabled so it does not submit twice.",
20007
+ "description": "An editable text field that suggests values as you type, from a local list or a URL: a\nperson, place or subject picker. It follows the WAI-ARIA APG “Editable Combobox With List\nAutocomplete”: a real `<input role=\"combobox\">` and a `role=\"listbox\"` popup under it.\n\nSuggestions come from the `items` property (`{ value, label?, description?, disabled? }`\nobjects, or strings), from `<option>` children (directly or inside a `<datalist>`; the\n`label` attribute or text is the label, `data-description` the second line), or from `src`,\na URL template with `{q}` (fetched 250 ms after the last keystroke once the text has\n`min-length` characters, default 1; a newer keystroke aborts the older request; the\nresponse is a JSON array of the same shape, or anything `transform(data, query)` turns\ninto one). `items` wins over the children while set. Local suggestions match anywhere in\nthe label, ignoring case and accents, those starting with the text first, then those with\na word starting with it; at most `max-results` (default 50, 0 for all) are shown, which\nkeeps a list of 16,000 people fast. The matched text is bold and underlined in a `<mark>`.\n\nKeys: Down opens the list on the first suggestion and moves (wrapping), Up opens on the\nlast, Alt+Down opens without moving, Alt+Up closes, Enter chooses the active suggestion\n(and then does not submit the form; with none active, Enter submits as in any field),\nEscape closes the list and a second Escape clears the field, Home, End, Left and Right move\nthe caret, and Tab leaves without choosing. A real clear button (“Clear <label>”, 44px,\nshown only with text) empties the field and returns focus to it.\n\nFree text is allowed: `value` is whatever is in the field, and `selected` the chosen\nsuggestion (or null); typing after choosing clears it, and leaving the field with text that\nis exactly one suggestion's label chooses it. `must-choose` makes any other text invalid\n(“Choose one of the suggestions.”). The element is form-associated: with `name` it submits\nthe chosen suggestion's value, or else the text, and a form reset restores the `value`\nattribute. `required` and `disabled` (also from a disabled fieldset) work as on an input.\n\nA polite status says “5 suggestions”, “50 of 1,234 suggestions”, “No suggestions”,\n“Loading suggestions” or “Couldn't load suggestions” half a second after the list settles\n(never on the first render); the popup shows the same notes visibly. A failed load never\nthrows.\n\nWhere the browser supports the Popover API and CSS anchor positioning, the popup is a manual\npopover in the top layer, anchored under the field and as wide as it (above it when there is\nno room below), so an ancestor with `overflow: hidden` or a scrolling panel never clips it.\nElsewhere it is positioned under the field inside the element, as before.\n\nPages can style the runtime state with `:state(open)`, `:state(invalid)` and\n`:state(loading)` (no attributes are added).\n\nBefore it upgrades, `base.css` shows the label (from the attribute) and holds the field's\nheight. A fallback `<input list>` child works as a plain field meanwhile; on upgrade its\ntext, `name` and `placeholder` carry over, and it is disabled so it does not submit twice.",
19927
20008
  "name": "UvalibCombobox",
19928
20009
  "cssProperties": [
19929
20010
  {
@@ -20371,6 +20452,13 @@
20371
20452
  "privacy": "private",
20372
20453
  "default": "false"
20373
20454
  },
20455
+ {
20456
+ "kind": "field",
20457
+ "name": "topLayer",
20458
+ "privacy": "private",
20459
+ "readonly": true,
20460
+ "description": "The popup is a popover in the top layer, anchored to the field (see `comboboxSupport`)."
20461
+ },
20374
20462
  {
20375
20463
  "kind": "field",
20376
20464
  "name": "form",
@@ -20946,6 +21034,26 @@
20946
21034
  }
20947
21035
  }
20948
21036
  },
21037
+ {
21038
+ "kind": "field",
21039
+ "name": "popup",
21040
+ "type": {
21041
+ "text": "HTMLElement | null"
21042
+ },
21043
+ "privacy": "private",
21044
+ "readonly": true
21045
+ },
21046
+ {
21047
+ "kind": "method",
21048
+ "name": "syncPopup",
21049
+ "privacy": "private",
21050
+ "return": {
21051
+ "type": {
21052
+ "text": "void"
21053
+ }
21054
+ },
21055
+ "description": "Custom states, and in the top layer: show or hide the popover with the popup, and name\nthe field as its anchor (an instance-unique name, so light-DOM comboboxes never share one)."
21056
+ },
20949
21057
  {
20950
21058
  "kind": "method",
20951
21059
  "name": "reveal",
@@ -21239,6 +21347,20 @@
21239
21347
  }
21240
21348
  }
21241
21349
  ],
21350
+ "cssStates": [
21351
+ {
21352
+ "description": "The popup is showing (suggestions or a note such as “No suggestions”).",
21353
+ "name": "open"
21354
+ },
21355
+ {
21356
+ "description": "The text was shown as invalid (`aria-invalid=\"true\"`: `must-choose` text that is not a suggestion, after leaving the field or pressing Enter).",
21357
+ "name": "invalid"
21358
+ },
21359
+ {
21360
+ "description": "Suggestions from `src` are loading.",
21361
+ "name": "loading"
21362
+ }
21363
+ ],
21242
21364
  "superclass": {
21243
21365
  "name": "UvalibElement",
21244
21366
  "module": "/src/base/UvalibElement.js"
@@ -21256,6 +21378,14 @@
21256
21378
  "module": "src/components/uvalib-combobox/UvalibCombobox.ts"
21257
21379
  }
21258
21380
  },
21381
+ {
21382
+ "kind": "js",
21383
+ "name": "comboboxSupport",
21384
+ "declaration": {
21385
+ "name": "comboboxSupport",
21386
+ "module": "src/components/uvalib-combobox/UvalibCombobox.ts"
21387
+ }
21388
+ },
21259
21389
  {
21260
21390
  "kind": "js",
21261
21391
  "name": "fold",
@@ -24383,7 +24513,7 @@
24383
24513
  "declarations": [
24384
24514
  {
24385
24515
  "kind": "class",
24386
- "description": "A search page's form and filters: a plain sidebar on wide screens, and on narrow ones a\n“Search and filters” button that opens them in a modal panel from the side.\n\nPut the page's search form, `<uvalib-filter>`s and other facets inside. Above `breakpoint`\n(default `48rem`) they are shown as written: no button, no dialog role. At and below it only\nthe button is shown; it opens a native `<dialog>` (`showModal()`) with a visible heading (the\n`label`) and a 44px Close button, which takes focus. Escape, Close and a click on the backdrop\nclose it, and focus returns to the button; widening the window past the breakpoint closes it\nand keeps focus where it was. While it is open the rest of the page, including `<site-page>`'s\nheader, skip link and alerts, is inert (the browser's modal dialog), so focus cannot leave it\nexcept to the browser itself, and nothing else is announced. The children are the same nodes\nin both layouts (moved, never re-created): typed text, checked boxes, listeners and each\nfilter's state are kept.\n\nInert content is not announced, so results counts and status notices outside the panel would\ngo silent while the visitor filters: name them in `live` (space-separated ids) and the drawer\nrepeats what they announce in its own polite live region while it is open.\n\n`count` (the page's number of active filters) is shown on the button when above 0. The\ndrawer never counts by itself: only the page knows which inputs are filters.",
24516
+ "description": "A search page's form and filters: a plain sidebar on wide screens, and on narrow ones a\n“Search and filters” button that opens them in a modal panel from the side.\n\nPut the page's search form, `<uvalib-filter>`s and other facets inside. Above `breakpoint`\n(default `48rem`) they are shown as written: no button, no dialog role. At and below it only\nthe button is shown; it opens a native `<dialog>` (`showModal()`) with a visible heading (the\n`label`) and a 44px Close button, which takes focus. Escape, Close and a click on the backdrop\nclose it, and focus returns to the button; widening the window past the breakpoint closes it\nand keeps focus where it was. While it is open the rest of the page, including `<site-page>`'s\nheader, skip link and alerts, is inert (the browser's modal dialog), so focus cannot leave it\nexcept to the browser itself, and nothing else is announced. The children are the same nodes\nin both layouts (moved, never re-created): typed text, checked boxes, listeners and each\nfilter's state are kept.\n\nInert content is not announced, so results counts and status notices outside the panel would\ngo silent while the visitor filters: name them in `live` (space-separated ids) and the drawer\nrepeats what they announce in its own polite live region while it is open.\n\n`count` (the page's number of active filters) is shown on the button when above 0. The\ndrawer never counts by itself: only the page knows which inputs are filters.\n\nPages can style the runtime layout with `:state(modal)` (at or below the breakpoint: the\nbutton and panel) and `:state(open)` (the panel is open).",
24387
24517
  "name": "UvalibFilterDrawer",
24388
24518
  "cssProperties": [
24389
24519
  {
@@ -24528,6 +24658,12 @@
24528
24658
  "readonly": true,
24529
24659
  "default": "`${TAG}-${++instances}`"
24530
24660
  },
24661
+ {
24662
+ "kind": "field",
24663
+ "name": "internals",
24664
+ "privacy": "private",
24665
+ "readonly": true
24666
+ },
24531
24667
  {
24532
24668
  "kind": "field",
24533
24669
  "name": "media",
@@ -25055,6 +25191,16 @@
25055
25191
  }
25056
25192
  }
25057
25193
  ],
25194
+ "cssStates": [
25195
+ {
25196
+ "description": "The viewport is at or below the breakpoint: the button and panel, not the sidebar.",
25197
+ "name": "modal"
25198
+ },
25199
+ {
25200
+ "description": "The panel is open.",
25201
+ "name": "open"
25202
+ }
25203
+ ],
25058
25204
  "superclass": {
25059
25205
  "name": "UvalibElement",
25060
25206
  "module": "/src/base/UvalibElement.js"
@@ -26011,9 +26157,16 @@
26011
26157
  "type": {
26012
26158
  "text": "string | null | undefined"
26013
26159
  }
26160
+ },
26161
+ {
26162
+ "name": "options",
26163
+ "default": "{}",
26164
+ "type": {
26165
+ "text": "{ signed?: boolean }"
26166
+ }
26014
26167
  }
26015
26168
  ],
26016
- "description": "A IIIF / Media Fragments `xywh` value: `percent:10,20,30,40`, `pixel:160,120,320,240`\nor `160,120,320,240` (pixels), optionally as `xywh=…` or a URL ending `#xywh=…`.\nReturns null for anything else, and for a zero width or height."
26169
+ "description": "A IIIF / Media Fragments `xywh` value: `percent:10,20,30,40`, `pixel:160,120,320,240`\nor `160,120,320,240` (pixels), optionally as `xywh=…` or a URL ending `#xywh=…`.\nReturns null for anything else, and for a zero width or height. Regions are unsigned;\n`signed` also takes a negative `x` and `y` (a lightbox version's `frame`: the original's\nbox in a crop starts left of or above it). The width and height stay positive."
26017
26170
  },
26018
26171
  {
26019
26172
  "kind": "function",
@@ -26133,7 +26286,7 @@
26133
26286
  "declarations": [
26134
26287
  {
26135
26288
  "kind": "class",
26136
- "description": "An accessible image viewer over a set of plain links. With JavaScript a primary click opens\na modal dialog; without it (or with a modified click) the link opens the image as before.\nWrap the links, or point at them with `selector` (for example `a.pb-image` on a reading\npage). There is no autoplay and no carousel.\n\nThe dialog is labelled by the caption (`data-caption`, else the image alt, else the link\ntext). Focus moves to Close on open and back to the trigger on close. Escape and a click on\nthe backdrop close it. With more than one image, Previous and Next and the arrow keys move\nthrough the set (wrapping), and a polite “3 of 13” counter is shown. Full size opens the\noriginal image in a new tab. A IIIF Image API URL keeps its region; only the size becomes\n`!W,H` for the viewport. TIFF and JPEG2000 URLs are left as written. `url-param` (for\nexample `photo`) keeps `?photo=<id>` in sync, including on a hash route\n(`#/text?photo=<id>`): opening pushes a history entry, stepping replaces it, and\nBack closes.\n\nOptional details: children with `slot=\"details\"` (and `data-for` equal to the item's id or\nits position from 1; without `data-for` they show for every image), or `data-details-id` on\na link pointing at an element elsewhere on the page. Either is shown inside the dialog and\nput back exactly (same place, `hidden` and `slot`) when the viewer moves on or closes. The\n`data-details-id` element stays in the page (in shadow mode it becomes a child of the\nlightbox slotted into the dialog), so `getElementById`, the page's CSS (except selectors\nthrough its old ancestors) and listeners keep working; nothing is cloned. Details that appear\nwhile their image is open (rendered after a fetch) are shown then.\n\n`open(idOrIndex)` and `close({ focus })` let the page open or close the viewer itself;\n`uvalib-lightbox-open` and `uvalib-lightbox-close` say when it did.\n\nOptional regions (people, objects, inscriptions): `data-regions` on a link, a JSON array of\n`{ label, x, y, w, h, unit? }` or `xywh` values each followed by its label, separated by\n`;` (`percent:10,20,30,40 Person 1; percent:55,15,20,30 Sign`), or the `regions` callback.\nThe open image then shows numbered outlines (`<uvalib-image-regions>`, loaded on first use)\nand a list of the regions beside it, with a \"Show regions\" toggle (`aria-pressed`) that\nhides the outlines. Pixel regions are measured in `data-image-width` × `data-image-height`\nwhen set (the viewer shows a resized IIIF image), else in the image's natural size.\n\nOr the page's own list, with its own buttons: `data-regions-list=\"<id>\"` on a link (or the\n`regionsList` callback) names an `<ol>` or `<ul>` of `<li data-xywh>` anywhere in the page,\nusually `hidden`. While that image is open the list (the same nodes, so the page's listeners\nkeep working) is the region list: in shadow mode it becomes a child of the lightbox slotted\ninto the viewer, not moved into the shadow root, so the page's CSS still applies to it. When\nthe image changes or the viewer closes it goes back where it was, `hidden` as before. It wins\nover `data-regions`.\n\nOptional versions of an image (an original scan and an AI colorization, a restoration, an\ninfrared capture): `data-versions` on a link, a JSON array of `{ label, href?, note? }`\nwhose first entry is the link's own image, or the `versions` callback. The viewer then\ncompares them over the photo (loaded on first use): Switch (a segmented control), Reveal\n(a divider: click or tap the photo, or use the slider) or Fade (a slider), `compare`\nchoosing the first. A version's `note` shows under the photo while it is visible, and\nthe image's accessible name ends with the label of the version shown. `version-param`\n(with `url-param`) keeps the comparison in the address: `?version=2` (Switch, the version\nfrom 0), `?version=wipe:40` or `?version=fade:60` (the percentage of the other version\nshown; `wipe:40:2` compares the original with version 2). A version with a different\nframing (an AI-expanded frame, a crop, the whole plate) gives `frame`, the original's box\nin it (`percent:x,y,w,h`, or pixels of its `width` × `height`): the viewer draws every\nversion at the original's scale in one box, the original lined up, and regions stay on it.",
26289
+ "description": "An accessible image viewer over a set of plain links. With JavaScript a primary click opens\na modal dialog; without it (or with a modified click) the link opens the image as before.\nWrap the links, or point at them with `selector` (for example `a.pb-image` on a reading\npage). There is no autoplay and no carousel.\n\nThe dialog is labelled by the caption (`data-caption`, else the image alt, else the link\ntext). Focus moves to Close on open and back to the trigger on close. Escape and a click on\nthe backdrop close it. With more than one image, Previous and Next and the arrow keys move\nthrough the set (wrapping), and a polite “3 of 13” counter is shown. Full size opens the\noriginal image in a new tab. A IIIF Image API URL keeps its region; only the size becomes\n`!W,H` for the viewport. TIFF and JPEG2000 URLs are left as written. `url-param` (for\nexample `photo`) keeps `?photo=<id>` in sync, including on a hash route\n(`#/text?photo=<id>`): opening pushes a history entry, stepping replaces it, and\nBack closes.\n\nOptional details: children with `slot=\"details\"` (and `data-for` equal to the item's id or\nits position from 1; without `data-for` they show for every image), or `data-details-id` on\na link pointing at an element elsewhere on the page. Either is shown inside the dialog and\nput back exactly (same place, `hidden` and `slot`) when the viewer moves on or closes. The\n`data-details-id` element stays in the page (in shadow mode it becomes a child of the\nlightbox slotted into the dialog), so `getElementById`, the page's CSS (except selectors\nthrough its old ancestors) and listeners keep working; nothing is cloned. Details that appear\nwhile their image is open (rendered after a fetch) are shown then.\n\n`open(idOrIndex)` and `close({ focus })` let the page open or close the viewer itself;\n`uvalib-lightbox-open` and `uvalib-lightbox-close` say when it did.\n\nOptional regions (people, objects, inscriptions): `data-regions` on a link, a JSON array of\n`{ label, x, y, w, h, unit? }` or `xywh` values each followed by its label, separated by\n`;` (`percent:10,20,30,40 Person 1; percent:55,15,20,30 Sign`), or the `regions` callback.\nThe open image then shows numbered outlines (`<uvalib-image-regions>`, loaded on first use)\nand a list of the regions beside it, with a \"Show regions\" toggle (`aria-pressed`) that\nhides the outlines. Pixel regions are measured in `data-image-width` × `data-image-height`\nwhen set (the viewer shows a resized IIIF image), else in the image's natural size.\n\nOr the page's own list, with its own buttons: `data-regions-list=\"<id>\"` on a link (or the\n`regionsList` callback) names an `<ol>` or `<ul>` of `<li data-xywh>` anywhere in the page,\nusually `hidden`. While that image is open the list (the same nodes, so the page's listeners\nkeep working) is the region list: in shadow mode it becomes a child of the lightbox slotted\ninto the viewer, not moved into the shadow root, so the page's CSS still applies to it. When\nthe image changes or the viewer closes it goes back where it was, `hidden` as before. It wins\nover `data-regions`.\n\nOptional versions of an image (an original scan and an AI colorization, a restoration, an\ninfrared capture): `data-versions` on a link, a JSON array of `{ label, href?, note? }`\nwhose first entry is the link's own image, or the `versions` callback. The viewer then\ncompares them over the photo (loaded on first use): Switch (a segmented control), Reveal\n(a divider: click or tap the photo, or use the slider) or Fade (a slider), `compare`\nchoosing the first. A version's `note` shows under the photo while it is visible, and\nthe image's accessible name ends with the label of the version shown. `version-param`\n(with `url-param`) keeps the comparison in the address: `?version=2` (Switch, the version\nfrom 0), `?version=wipe:40` or `?version=fade:60` (the percentage of the other version\nshown; `wipe:40:2` compares the original with version 2). `data-version` on a link (the\nsame values) opens that image on that version, from a click, `open()` or Previous and\nNext; an address with `version-param` wins. A version with a different\nframing (an AI-expanded frame, a crop, the whole plate) gives `frame`, the original's box\nin it (`percent:x,y,w,h`, or pixels of its `width` × `height`): the viewer draws every\nversion at the original's scale in one box, the original lined up, and regions stay on it.\n\nPages can style the element while the viewer is open with `:state(open)`.",
26137
26290
  "name": "UvalibLightbox",
26138
26291
  "cssProperties": [
26139
26292
  {
@@ -26290,7 +26443,7 @@
26290
26443
  "type": {
26291
26444
  "text": "LightboxVersions | undefined"
26292
26445
  },
26293
- "description": "Versions of each image, instead of `data-versions`: called with\n`{ element, id, href, index }`, it returns `{ label, href?, note? }` objects, the first\nbeing the link's own image (null: none)."
26446
+ "description": "Versions of each image, instead of `data-versions`: called with\n`{ element, id, href, index }`, it returns `{ label, href?, note? }` objects, the first\nbeing the link's own image (null: none). The link's `data-version` still picks the\nversion it opens on."
26294
26447
  },
26295
26448
  {
26296
26449
  "kind": "field",
@@ -26383,6 +26536,12 @@
26383
26536
  "readonly": true,
26384
26537
  "default": "`uvalib-lightbox-caption-${++nextCaption}`"
26385
26538
  },
26539
+ {
26540
+ "kind": "field",
26541
+ "name": "internals",
26542
+ "privacy": "private",
26543
+ "readonly": true
26544
+ },
26386
26545
  {
26387
26546
  "kind": "field",
26388
26547
  "name": "mount",
@@ -27926,6 +28085,12 @@
27926
28085
  }
27927
28086
  }
27928
28087
  ],
28088
+ "cssStates": [
28089
+ {
28090
+ "description": "The viewer is open.",
28091
+ "name": "open"
28092
+ }
28093
+ ],
27929
28094
  "superclass": {
27930
28095
  "name": "UvalibElement",
27931
28096
  "module": "/src/base/UvalibElement.js"
@@ -28008,6 +28173,25 @@
28008
28173
  "privacy": "private",
28009
28174
  "default": "false"
28010
28175
  },
28176
+ {
28177
+ "kind": "field",
28178
+ "name": "warnedStart",
28179
+ "type": {
28180
+ "text": "boolean"
28181
+ },
28182
+ "privacy": "private",
28183
+ "default": "false"
28184
+ },
28185
+ {
28186
+ "kind": "field",
28187
+ "name": "startPending",
28188
+ "type": {
28189
+ "text": "boolean"
28190
+ },
28191
+ "privacy": "private",
28192
+ "default": "false",
28193
+ "description": "The image opened on another version (`data-version`): hidden until that version is drawn."
28194
+ },
28011
28195
  {
28012
28196
  "kind": "field",
28013
28197
  "name": "geo",
@@ -28270,7 +28454,7 @@
28270
28454
  }
28271
28455
  }
28272
28456
  ],
28273
- "description": "A version's `frame`: the original's box in it, `percent:x,y,w,h`, or pixels\n(`x,y,w,h` / `pixel:`) of the version's `width` × `height`. Anything else is ignored\n(the same framing), with one warning."
28457
+ "description": "A version's `frame`: the original's box in it, `percent:x,y,w,h`, or pixels\n(`x,y,w,h` / `pixel:`) of the version's `width` × `height`. `x` and `y` may be negative\nand `w` and `h` over the version (a crop: the original reaches past it); `w` and `h` must\nbe positive. Anything else is ignored (the same framing), with one warning."
28274
28458
  },
28275
28459
  {
28276
28460
  "kind": "method",
@@ -28283,6 +28467,49 @@
28283
28467
  },
28284
28468
  "description": "The original's natural size, once its image (the one rendered now) has loaded: the framed\nlayout needs it, and is used only from then on (before, the original sizes the stack)."
28285
28469
  },
28470
+ {
28471
+ "kind": "method",
28472
+ "name": "parseState",
28473
+ "privacy": "private",
28474
+ "return": {
28475
+ "type": {
28476
+ "text": "State | null"
28477
+ }
28478
+ },
28479
+ "parameters": [
28480
+ {
28481
+ "name": "param",
28482
+ "type": {
28483
+ "text": "string"
28484
+ }
28485
+ },
28486
+ {
28487
+ "name": "strict",
28488
+ "type": {
28489
+ "text": "boolean"
28490
+ }
28491
+ }
28492
+ ],
28493
+ "description": "`2`, `switch:2`, `wipe:40`, `fade:60`, `wipe:40:2` (the version compared, from 1), or\nnull. `strict` (`data-version`) refuses what the address forgives: a percentage over 100\nor a version compared that does not exist."
28494
+ },
28495
+ {
28496
+ "kind": "method",
28497
+ "name": "apply",
28498
+ "privacy": "private",
28499
+ "return": {
28500
+ "type": {
28501
+ "text": "void"
28502
+ }
28503
+ },
28504
+ "parameters": [
28505
+ {
28506
+ "name": "st",
28507
+ "type": {
28508
+ "text": "State"
28509
+ }
28510
+ }
28511
+ ]
28512
+ },
28286
28513
  {
28287
28514
  "kind": "method",
28288
28515
  "name": "restore",
@@ -28300,7 +28527,57 @@
28300
28527
  }
28301
28528
  }
28302
28529
  ],
28303
- "description": "`2`, `switch:2`, `wipe:40`, `fade:60`, `wipe:40:2` (the version compared, from 1)."
28530
+ "description": "The comparison from the address: the visitor's mode from now on."
28531
+ },
28532
+ {
28533
+ "kind": "method",
28534
+ "name": "begin",
28535
+ "privacy": "private",
28536
+ "return": {
28537
+ "type": {
28538
+ "text": "void"
28539
+ }
28540
+ },
28541
+ "parameters": [
28542
+ {
28543
+ "name": "start",
28544
+ "type": {
28545
+ "text": "string"
28546
+ }
28547
+ }
28548
+ ],
28549
+ "description": "The link's starting version (`data-version`): not the visitor's change, so no event, no\nanalytics, nothing written to the address, and the mode chosen stays for other images."
28550
+ },
28551
+ {
28552
+ "kind": "method",
28553
+ "name": "baseImg",
28554
+ "privacy": "private",
28555
+ "return": {
28556
+ "type": {
28557
+ "text": "HTMLImageElement | null"
28558
+ }
28559
+ },
28560
+ "description": "The open image's own image element (the original)."
28561
+ },
28562
+ {
28563
+ "kind": "field",
28564
+ "name": "starting",
28565
+ "type": {
28566
+ "text": "boolean"
28567
+ },
28568
+ "privacy": "private",
28569
+ "description": "Opening on another version: the photo stays hidden until that version (and the\noriginal, which sizes a framed stack) has loaded, so the original never flashes first.",
28570
+ "readonly": true
28571
+ },
28572
+ {
28573
+ "kind": "field",
28574
+ "name": "named",
28575
+ "type": {
28576
+ "text": "number"
28577
+ },
28578
+ "privacy": "private",
28579
+ "description": "The percentage of the top version named and noted: the start's at once, else what is drawn.",
28580
+ "readonly": true
28304
28581
  },
28305
28582
  {
28306
28583
  "kind": "method",
@@ -28902,439 +29179,597 @@
28902
29179
  },
28903
29180
  {
28904
29181
  "kind": "javascript-module",
28905
- "path": "src/components/uvalib-metadata/UvalibMetadata.ts",
29182
+ "path": "src/components/uvalib-map/UvalibMap.ts",
28906
29183
  "declarations": [
29184
+ {
29185
+ "kind": "variable",
29186
+ "name": "OSM_TILE_URL",
29187
+ "type": {
29188
+ "text": "string"
29189
+ },
29190
+ "default": "'https://tile.openstreetmap.org/{z}/{x}/{y}.png'",
29191
+ "description": "OpenStreetMap's standard tiles: fine for low traffic only (see the README)."
29192
+ },
29193
+ {
29194
+ "kind": "variable",
29195
+ "name": "OSM_ATTRIBUTION",
29196
+ "type": {
29197
+ "text": "string"
29198
+ },
29199
+ "default": "'&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors'"
29200
+ },
29201
+ {
29202
+ "kind": "variable",
29203
+ "name": "MAP_INSTRUCTIONS",
29204
+ "type": {
29205
+ "text": "string"
29206
+ },
29207
+ "default": "'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.'",
29208
+ "description": "Shown above the map, and kept in step with base.css's pre-upgrade placeholder."
29209
+ },
28907
29210
  {
28908
29211
  "kind": "class",
28909
- "description": "A record's details as a description list, as on the library's digital collections: label\nand value side by side on wide screens (the element's own width, 36rem and up), stacked on\nnarrow ones. Values may be text, links or lists (subjects).\n\nGive the rows as a `<dl>` child (so the page reads the same before the script loads):\n`<dt>` labels and `<dd>` values, optionally wrapped in a `<div>` per row; several `<dd>`\nafter one `<dt>` are several values. The values are copied as written (links, lists,\n`download` attributes kept); a link with `data-size=\"184 KB\"` is shown as a download,\n\"EPUB · 184 KB\". The list follows changes to the children. Apps set the `items`\nproperty instead (`{ label, value }`, winning over the children while set).\n\nBuilt-in rows for credit and rights (as Special Collections asks): `creator` and\n`organization` come first; `rights` (a rightsstatements.org or Creative Commons URL, shown\nas its short name linked to it, or plain text) and `citation` (\"How to cite\", with a Copy\ncitation button that announces \"Copied\" politely) come last. `citation-title` builds the\nSpecial Collections citation, \"<title>, Albert and Shirley Small Special Collections\nLibrary, University of Virginia\".\n\nLong lists: `list-limit=\"8\"` shortens every value that is a list (a `<ul>`/`<ol>` in the\n`<dd>`) of more than 8 items to its first 8 and a “Show all 34 participants” button\n(`aria-expanded`, `aria-controls`) that reveals the rest in place and moves focus to the\nfirst one; it then reads “Show fewer”. `data-limit` on a `<dd>` or its list sets that row's\nown limit (`0`: none); the noun is the label with a lowercase first letter, or\n`data-limit-label`. Every value stays in the markup (the hidden ones `hidden`).",
28910
- "name": "UvalibMetadata",
29212
+ "description": "A map of places with a linked list of the same places: buildings, rooms or outdoor spaces,\neach a marker sized by a count, with a link to the place's page. It wraps\n[Leaflet](https://leafletjs.com) 1.9, which the page provides (the library never bundles\nit): set the `leaflet` property to the Leaflet module (`import * as L from 'leaflet'`), or\nload leaflet.js so that `window.L` exists. Without Leaflet only the list is shown, with\none console warning. Leaflet's leaflet.css is optional: the element carries the layout\nrules it needs, in shadow DOM and light DOM alike.\n\nPlaces come from `items` (`{ id?, name, lat, lng, count?, href?, description? }`) or from\na child `<ul>`/`<ol>` of `<li><a href data-lat data-lng data-count>Name</a></li>`, which is\nthe list before the script runs (and without it). The list always stays, under the map:\nit is the text equivalent.\n\nEach marker is a real link (a button when the place has no `href`) named like \"The\nRotunda, 2,702 photos\" (`count-label` is the noun), sized by the square root of its count\n(a 24 to 56px dot in a hit area of at least 44px). Tab or the arrow keys move between\nmarkers, Enter follows the link (or chooses the place), and Escape hides the tooltip.\nHovering or focusing a marker shows a tooltip with its name and count and highlights its\nlist entry; hovering or focusing a list entry highlights its marker (a ring and a larger\ndot, not colour alone) and brings it into view.\n\nMarkers whose 44px targets would overlap at the current zoom are drawn as one group\nmarker (regrouped after every zoom and resize): a button\nshowing how many places it holds, sized by their summed count and named like \"The Rotunda\nand 2 more places, 3,610 photos\" (the largest place's name; `place-label` is the noun).\nChoosing it zooms in until its places part; when they cannot (one point, or the\nmaximum zoom) it spreads them in a ring around it instead, with focus on the first;\nEscape or a zoom closes the ring and focus returns to the group. The arrow keys move\nbetween the markers shown (a group is one); a place in the list that is in a group\nhighlights the group, whose tooltip names the place.\n\nThe map is a region named by `label`, after a \"Skip map, go to the list\" link and a line\nof key instructions. It opens on the bounds of the places, or on `center` and `zoom`. The\nzoom buttons are 44px with a visible focus ring; the attribution stays. Tiles come from\n`tile-url` (OpenStreetMap by default: low-traffic use only) with `attribution`. In the\npage's dark mode the tiles are inverted with a CSS filter (`--uvalib-map-dark-filter`)\nunless `dark-tile-url` gives dark tiles; markers and controls are never filtered. With\n`prefers-reduced-motion` nothing animates.",
29213
+ "name": "UvalibMap",
28911
29214
  "cssProperties": [
28912
29215
  {
28913
- "description": "Link colour.",
28914
- "name": "--uva-blue-alt-dark",
28915
- "default": "#005679"
29216
+ "description": "Height of the map.",
29217
+ "name": "--uvalib-map-height",
29218
+ "default": "min(24rem, 75vw)"
28916
29219
  },
28917
29220
  {
28918
- "description": "Value colour.",
28919
- "name": "--uva-grey-darkest",
28920
- "default": "#2b2b2b"
29221
+ "description": "The filter on the tiles in dark mode, when there is no `dark-tile-url`.",
29222
+ "name": "--uvalib-map-dark-filter",
29223
+ "default": "invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9)"
28921
29224
  },
28922
29225
  {
28923
- "description": "Dark-mode role token: link colour (else `--uva-blue-alt-dark`).",
28924
- "name": "--uva-color-utility-link"
29226
+ "description": "Marker fill.",
29227
+ "name": "--uva-brand-blue",
29228
+ "default": "#232d4b"
28925
29229
  },
28926
29230
  {
28927
- "description": "Dark-mode role token: value colour (else `--uva-grey-darkest`).",
29231
+ "description": "Focus ring when `--uva-color-focus` is unset.",
29232
+ "name": "--uva-brand-orange",
29233
+ "default": "#e57200"
29234
+ },
29235
+ {
29236
+ "description": "Font family.",
29237
+ "name": "--uva-font-family",
29238
+ "default": "inherit"
29239
+ },
29240
+ {
29241
+ "description": "Dark-mode role token: marker fill (else `--uva-brand-blue`).",
29242
+ "name": "--uva-color-accent-bg"
29243
+ },
29244
+ {
29245
+ "description": "Dark-mode role token: marker border (else #fff).",
29246
+ "name": "--uva-color-on-accent"
29247
+ },
29248
+ {
29249
+ "description": "Dark-mode role token: text and the highlight ring (else #2b2b2b).",
28928
29250
  "name": "--uva-color-text"
28929
29251
  },
28930
29252
  {
28931
- "description": "Dark-mode role token: label and status colour (else #4b5563).",
29253
+ "description": "Dark-mode role token: instructions and descriptions (else #4b5563).",
28932
29254
  "name": "--uva-color-text-muted"
28933
29255
  },
28934
29256
  {
28935
- "description": "Dark-mode role token: row dividers (else #dadada).",
28936
- "name": "--uva-color-border"
29257
+ "description": "Dark-mode role token: links (else `--uva-brand-blue`).",
29258
+ "name": "--uva-color-link"
28937
29259
  },
28938
29260
  {
28939
- "description": "Dark-mode role token: the buttons' text and the Copy citation button's border (else `--uva-brand-blue`).",
28940
- "name": "--uva-color-link"
29261
+ "description": "Dark-mode role token: attribution background and the highlight ring's gap (else #fff).",
29262
+ "name": "--uva-color-surface"
28941
29263
  },
28942
29264
  {
28943
- "description": "Dark-mode role token: the button's background (else #fff).",
29265
+ "description": "Dark-mode role token: zoom buttons, tooltip and list entries (else #fff).",
28944
29266
  "name": "--uva-color-surface-raised"
28945
29267
  },
29268
+ {
29269
+ "description": "Dark-mode role token: hovered zoom button (else #dadada).",
29270
+ "name": "--uva-color-surface-hover"
29271
+ },
29272
+ {
29273
+ "description": "Dark-mode role token: the map before tiles load, and count badges (else #e5e7eb).",
29274
+ "name": "--uva-color-track"
29275
+ },
29276
+ {
29277
+ "description": "Dark-mode role token: borders (else #808080).",
29278
+ "name": "--uva-color-control-border"
29279
+ },
28946
29280
  {
28947
29281
  "description": "Dark-mode role token: focus ring (else `--uva-brand-orange`).",
28948
29282
  "name": "--uva-color-focus"
29283
+ },
29284
+ {
29285
+ "description": "Dark-mode role token: control and tooltip shadow.",
29286
+ "name": "--uva-color-shadow"
29287
+ }
29288
+ ],
29289
+ "cssParts": [
29290
+ {
29291
+ "description": "The map region (the Leaflet container).",
29292
+ "name": "map"
29293
+ },
29294
+ {
29295
+ "description": "The line of key instructions above the map.",
29296
+ "name": "instructions"
29297
+ },
29298
+ {
29299
+ "description": "The list of places.",
29300
+ "name": "list"
29301
+ },
29302
+ {
29303
+ "description": "Each list entry.",
29304
+ "name": "place"
29305
+ }
29306
+ ],
29307
+ "slots": [
29308
+ {
29309
+ "description": "A `<ul>` or `<ol>` of places: each `<li>` holds an `<a href>` (or the `<li>` itself) with `data-lat`, `data-lng` and optionally `data-count`, `data-id` and `data-description`. Used when `items` is empty; without JavaScript it is the list.",
29310
+ "name": ""
28949
29311
  }
28950
29312
  ],
28951
29313
  "members": [
28952
29314
  {
28953
29315
  "kind": "field",
28954
- "name": "creator",
29316
+ "name": "items",
28955
29317
  "type": {
28956
- "text": "string | undefined"
29318
+ "text": "MapItem[]"
28957
29319
  },
28958
- "description": "The creator (author, photographer…), shown first.",
28959
- "attribute": "creator"
29320
+ "default": "[]",
29321
+ "description": "The places. When non-empty, wins over the child list. Set a new array to update.",
29322
+ "attribute": "items"
28960
29323
  },
28961
29324
  {
28962
29325
  "kind": "field",
28963
- "name": "organization",
29326
+ "name": "label",
28964
29327
  "type": {
28965
- "text": "string | undefined"
29328
+ "text": "string"
28966
29329
  },
28967
- "description": "The organization holding or crediting the item, shown after the creator.",
28968
- "attribute": "organization"
29330
+ "default": "''",
29331
+ "description": "The map's name (required): the region's label, the list's label and the analytics name.",
29332
+ "attribute": "label"
28969
29333
  },
28970
29334
  {
28971
29335
  "kind": "field",
28972
- "name": "rights",
29336
+ "name": "countLabel",
28973
29337
  "type": {
28974
- "text": "string | undefined"
29338
+ "text": "string"
28975
29339
  },
28976
- "description": "The rights statement: a rightsstatements.org or Creative Commons URL (shown as its short\nname, linked), another http(s) URL (shown as `rights-label`, or \"Rights statement\"), or\nplain text.",
28977
- "attribute": "rights"
29340
+ "default": "'items'",
29341
+ "description": "The noun after each count, plural (\"photos\"); a count of one drops a trailing s.",
29342
+ "attribute": "count-label"
28978
29343
  },
28979
29344
  {
28980
29345
  "kind": "field",
28981
- "name": "rightsLabel",
29346
+ "name": "placeLabel",
28982
29347
  "type": {
28983
- "text": "string | undefined"
29348
+ "text": "string"
28984
29349
  },
28985
- "description": "The link text for a `rights` URL, instead of its short name.",
28986
- "attribute": "rights-label"
29350
+ "default": "'places'",
29351
+ "description": "The noun for places in a group's name, plural: \"The Rotunda and 2 more places\" (one\ndrops a trailing s: \"and 1 more place\"). For example \"rooms\".",
29352
+ "attribute": "place-label"
28987
29353
  },
28988
29354
  {
28989
29355
  "kind": "field",
28990
- "name": "rightsInfo",
29356
+ "name": "tileUrl",
29357
+ "default": "'https://tile.openstreetmap.org/{z}/{x}/{y}.png'",
29358
+ "description": "The tile URL template (`{z}/{x}/{y}`, optionally `{s}` and `{r}`).",
29359
+ "attribute": "tile-url",
28991
29360
  "type": {
28992
- "text": "string | undefined"
28993
- },
28994
- "description": "A \"More about rights and permissions\" link under the statement, such as\n`https://www.library.virginia.edu/policies/use-of-materials`.",
28995
- "attribute": "rights-info"
29361
+ "text": "string"
29362
+ }
28996
29363
  },
28997
29364
  {
28998
29365
  "kind": "field",
28999
- "name": "citation",
29366
+ "name": "darkTileUrl",
29000
29367
  "type": {
29001
- "text": "string | undefined"
29368
+ "text": "string"
29002
29369
  },
29003
- "description": "\"How to cite\": the citation, as written. Wins over `citation-title`.",
29004
- "attribute": "citation"
29370
+ "default": "''",
29371
+ "description": "Tiles for the page's dark mode. Without it, dark mode filters the light tiles instead.",
29372
+ "attribute": "dark-tile-url"
29005
29373
  },
29006
29374
  {
29007
29375
  "kind": "field",
29008
- "name": "citationTitle",
29376
+ "name": "attribution",
29377
+ "default": "'&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors'",
29378
+ "description": "The tiles' attribution, as HTML. Required by most tile sources; always shown.",
29379
+ "attribute": "attribution",
29009
29380
  "type": {
29010
- "text": "string | undefined"
29011
- },
29012
- "description": "A title or collection name for the Special Collections citation: \"<title>, Albert and\nShirley Small Special Collections Library, University of Virginia\".",
29013
- "attribute": "citation-title"
29381
+ "text": "string"
29382
+ }
29014
29383
  },
29015
29384
  {
29016
29385
  "kind": "field",
29017
- "name": "items",
29386
+ "name": "center",
29018
29387
  "type": {
29019
- "text": "MetadataItem[] | undefined"
29388
+ "text": "string"
29020
29389
  },
29021
- "description": "The rows as data, for apps that build them in JavaScript: `{ label, value }`, a value\nbeing text, a link `{ label, href, size?, download? }` or an array of them (a list).\nWins over the children while set; `undefined` goes back to them."
29390
+ "default": "''",
29391
+ "description": "Where the map opens, `\"lat,lng\"`. Without it the map fits every place.",
29392
+ "attribute": "center"
29022
29393
  },
29023
29394
  {
29024
29395
  "kind": "field",
29025
- "name": "listLimit",
29396
+ "name": "zoom",
29026
29397
  "type": {
29027
29398
  "text": "number | undefined"
29028
29399
  },
29029
- "description": "Shorten every list value of more than this many items to its first ones and a “Show all\nN” button. Zero or empty shows every item. A row's `data-limit` wins.",
29030
- "attribute": "list-limit"
29400
+ "description": "The opening zoom level (with `center`, or centred on the places).",
29401
+ "attribute": "zoom"
29031
29402
  },
29032
29403
  {
29033
29404
  "kind": "field",
29034
- "name": "childRows",
29405
+ "name": "leaflet",
29035
29406
  "type": {
29036
- "text": "Row[]"
29407
+ "text": "unknown | undefined"
29408
+ },
29409
+ "description": "The Leaflet module (`import * as L from 'leaflet'; map.leaflet = L`). Without it\n`window.L` is used (leaflet.js from a script tag)."
29410
+ },
29411
+ {
29412
+ "kind": "field",
29413
+ "name": "sourceItems",
29414
+ "type": {
29415
+ "text": "MapItem[]"
29037
29416
  },
29038
29417
  "privacy": "private",
29039
29418
  "default": "[]"
29040
29419
  },
29041
29420
  {
29042
29421
  "kind": "field",
29043
- "name": "open",
29422
+ "name": "hasLeaflet",
29423
+ "type": {
29424
+ "text": "boolean"
29425
+ },
29044
29426
  "privacy": "private",
29045
- "default": "new Set<string>()",
29046
- "description": "The list values shown in full (after Show all), by `row-value` place."
29427
+ "default": "false"
29047
29428
  },
29048
29429
  {
29049
29430
  "kind": "field",
29050
- "name": "hid",
29431
+ "name": "active",
29432
+ "type": {
29433
+ "text": "string"
29434
+ },
29051
29435
  "privacy": "private",
29052
- "default": "new WeakSet<Element>()",
29053
- "description": "The items this element hid, so that only those are shown again."
29436
+ "default": "''",
29437
+ "description": "The highlighted target: \"3\" a place, \"g:1,3\" a group, \"\" none."
29438
+ },
29439
+ {
29440
+ "kind": "field",
29441
+ "name": "dark",
29442
+ "type": {
29443
+ "text": "boolean"
29444
+ },
29445
+ "privacy": "private",
29446
+ "default": "false"
29054
29447
  },
29055
29448
  {
29056
29449
  "kind": "field",
29057
29450
  "name": "uid",
29058
29451
  "privacy": "private",
29059
29452
  "readonly": true,
29060
- "default": "`uvalib-metadata-${++instances}`"
29453
+ "default": "`uvalib-map-${++instanceCounter}`"
29061
29454
  },
29062
29455
  {
29063
29456
  "kind": "field",
29064
- "name": "status",
29457
+ "name": "sourceKey",
29065
29458
  "type": {
29066
29459
  "text": "string"
29067
29460
  },
29068
29461
  "privacy": "private",
29069
- "default": "''",
29070
- "description": "The Copy citation button's result, announced politely."
29462
+ "default": "'[]'"
29071
29463
  },
29072
29464
  {
29073
29465
  "kind": "field",
29074
- "name": "sourceKey",
29466
+ "name": "L",
29075
29467
  "type": {
29076
- "text": "string"
29468
+ "text": "LeafletNS | undefined"
29077
29469
  },
29078
- "privacy": "private",
29079
- "default": "''"
29470
+ "privacy": "private"
29080
29471
  },
29081
29472
  {
29082
29473
  "kind": "field",
29083
- "name": "warned",
29084
- "privacy": "private",
29085
- "default": "new Set<string>()"
29474
+ "name": "map",
29475
+ "type": {
29476
+ "text": "Leaflet.Map | undefined"
29477
+ },
29478
+ "privacy": "private"
29086
29479
  },
29087
29480
  {
29088
29481
  "kind": "field",
29089
- "name": "timer",
29482
+ "name": "tiles",
29090
29483
  "type": {
29091
- "text": "ReturnType<typeof setTimeout> | undefined"
29484
+ "text": "Leaflet.TileLayer | undefined"
29092
29485
  },
29093
29486
  "privacy": "private"
29094
29487
  },
29095
29488
  {
29096
- "kind": "method",
29097
- "name": "warnOnce",
29098
- "privacy": "private",
29099
- "return": {
29100
- "type": {
29101
- "text": "void"
29102
- }
29489
+ "kind": "field",
29490
+ "name": "tooltip",
29491
+ "type": {
29492
+ "text": "Leaflet.Tooltip | undefined"
29103
29493
  },
29104
- "parameters": [
29105
- {
29106
- "name": "kind",
29107
- "type": {
29108
- "text": "string"
29109
- }
29110
- },
29111
- {
29112
- "name": "message",
29113
- "type": {
29114
- "text": "string"
29115
- }
29116
- }
29117
- ]
29494
+ "privacy": "private"
29118
29495
  },
29119
29496
  {
29120
- "kind": "method",
29121
- "name": "read",
29122
- "privacy": "private",
29123
- "return": {
29124
- "type": {
29125
- "text": "void"
29126
- }
29497
+ "kind": "field",
29498
+ "name": "markers",
29499
+ "type": {
29500
+ "text": "(Leaflet.Marker | undefined)[]"
29127
29501
  },
29128
- "parameters": [
29129
- {
29130
- "name": "nodes",
29131
- "type": {
29132
- "text": "Node[]"
29133
- }
29134
- }
29135
- ],
29136
- "description": "Read the rows from the first `<dl>` among the children."
29502
+ "privacy": "private",
29503
+ "default": "[]"
29137
29504
  },
29138
29505
  {
29139
- "kind": "method",
29140
- "name": "parse",
29506
+ "kind": "field",
29507
+ "name": "dots",
29508
+ "type": {
29509
+ "text": "number[]"
29510
+ },
29141
29511
  "privacy": "private",
29142
- "return": {
29143
- "type": {
29144
- "text": "Row[]"
29145
- }
29512
+ "default": "[]"
29513
+ },
29514
+ {
29515
+ "kind": "field",
29516
+ "name": "maxCount",
29517
+ "type": {
29518
+ "text": "number"
29146
29519
  },
29147
- "parameters": [
29148
- {
29149
- "name": "dl",
29150
- "type": {
29151
- "text": "Element"
29152
- }
29153
- }
29154
- ]
29520
+ "privacy": "private",
29521
+ "default": "0"
29155
29522
  },
29156
29523
  {
29157
- "kind": "method",
29158
- "name": "copy",
29524
+ "kind": "field",
29525
+ "name": "groups",
29159
29526
  "privacy": "private",
29160
- "return": {
29161
- "type": {
29162
- "text": "Node"
29163
- }
29164
- },
29165
- "parameters": [
29166
- {
29167
- "name": "n",
29168
- "type": {
29169
- "text": "Node"
29170
- }
29171
- }
29172
- ],
29173
- "description": "A copy of an author's node: links with an unsafe href (javascript:, data:, …) replaced\nby their content, with one warning; sizes added to downloads once (not when the link's\ntext already ends with it), `data-size` dropped; ids dropped in light DOM."
29527
+ "default": "new Map<string, MapGroup>()",
29528
+ "description": "The groups drawn at the current zoom, by key."
29174
29529
  },
29175
29530
  {
29176
- "kind": "method",
29177
- "name": "sizeNodes",
29531
+ "kind": "field",
29532
+ "name": "groupOf",
29178
29533
  "privacy": "private",
29179
- "return": {
29180
- "type": {
29181
- "text": "DocumentFragment"
29182
- }
29534
+ "default": "new Map<number, string>()",
29535
+ "description": "A grouped place's index → its group's key."
29536
+ },
29537
+ {
29538
+ "kind": "field",
29539
+ "name": "ring",
29540
+ "type": {
29541
+ "text": "string"
29183
29542
  },
29184
- "parameters": [
29185
- {
29186
- "name": "size",
29187
- "type": {
29188
- "text": "string"
29189
- }
29190
- }
29191
- ],
29192
- "description": "\" · 184 KB\", read as \", 184 KB\"."
29543
+ "privacy": "private",
29544
+ "default": "''",
29545
+ "description": "The key of the group whose places are spread in a ring, or \"\"."
29193
29546
  },
29194
29547
  {
29195
- "kind": "method",
29196
- "name": "renderValue",
29548
+ "kind": "field",
29549
+ "name": "order",
29550
+ "type": {
29551
+ "text": "HTMLElement[]"
29552
+ },
29197
29553
  "privacy": "private",
29198
- "return": {
29199
- "type": {
29200
- "text": "TemplateResult | string"
29201
- }
29554
+ "default": "[]",
29555
+ "description": "The visible markers' controls, in keyboard (and document) order."
29556
+ },
29557
+ {
29558
+ "kind": "field",
29559
+ "name": "activeIcon",
29560
+ "type": {
29561
+ "text": "{ marker: Leaflet.Marker; z: number } | undefined"
29202
29562
  },
29203
- "parameters": [
29204
- {
29205
- "name": "v",
29206
- "type": {
29207
- "text": "MetadataValue"
29208
- }
29209
- }
29210
- ]
29563
+ "privacy": "private"
29211
29564
  },
29212
29565
  {
29213
- "kind": "method",
29214
- "name": "fromItems",
29566
+ "kind": "field",
29567
+ "name": "drawn",
29568
+ "type": {
29569
+ "text": "MapItem[]"
29570
+ },
29215
29571
  "privacy": "private",
29216
- "return": {
29217
- "type": {
29218
- "text": "Row[]"
29219
- }
29572
+ "default": "[]"
29573
+ },
29574
+ {
29575
+ "kind": "field",
29576
+ "name": "reduceMotion",
29577
+ "type": {
29578
+ "text": "boolean"
29220
29579
  },
29221
- "parameters": [
29222
- {
29223
- "name": "items",
29224
- "type": {
29225
- "text": "readonly MetadataItem[]"
29226
- }
29227
- }
29228
- ]
29580
+ "privacy": "private",
29581
+ "default": "false"
29229
29582
  },
29230
29583
  {
29231
29584
  "kind": "field",
29232
- "name": "citationText",
29585
+ "name": "userMoved",
29233
29586
  "type": {
29234
- "text": "string"
29587
+ "text": "boolean"
29235
29588
  },
29236
29589
  "privacy": "private",
29237
- "description": "The citation text: `citation`, else the Special Collections one for `citation-title`.",
29238
- "readonly": true
29590
+ "default": "false",
29591
+ "description": "The visitor moved the map: a resize no longer refits it."
29239
29592
  },
29240
29593
  {
29241
- "kind": "method",
29242
- "name": "renderRights",
29594
+ "kind": "field",
29595
+ "name": "fitting",
29596
+ "type": {
29597
+ "text": "boolean"
29598
+ },
29243
29599
  "privacy": "private",
29244
- "return": {
29245
- "type": {
29246
- "text": "TemplateResult | typeof nothing"
29247
- }
29248
- }
29600
+ "default": "false"
29249
29601
  },
29250
29602
  {
29251
- "kind": "method",
29252
- "name": "renderCitation",
29603
+ "kind": "field",
29604
+ "name": "hoverKey",
29605
+ "type": {
29606
+ "text": "string"
29607
+ },
29253
29608
  "privacy": "private",
29254
- "return": {
29255
- "type": {
29256
- "text": "TemplateResult | typeof nothing"
29257
- }
29258
- }
29609
+ "default": "''"
29259
29610
  },
29260
29611
  {
29261
- "kind": "method",
29262
- "name": "copyCitation",
29612
+ "kind": "field",
29613
+ "name": "focusKey",
29614
+ "type": {
29615
+ "text": "string"
29616
+ },
29263
29617
  "privacy": "private",
29264
- "return": {
29265
- "type": {
29266
- "text": "Promise<void>"
29267
- }
29618
+ "default": "''"
29619
+ },
29620
+ {
29621
+ "kind": "field",
29622
+ "name": "dismissed",
29623
+ "type": {
29624
+ "text": "boolean"
29268
29625
  },
29269
- "description": "Copy the citation; on failure select it, so the keyboard can copy it."
29626
+ "privacy": "private",
29627
+ "default": "false"
29270
29628
  },
29271
29629
  {
29272
29630
  "kind": "field",
29273
- "name": "rows",
29631
+ "name": "warnedLabel",
29274
29632
  "type": {
29275
- "text": "Row[]"
29633
+ "text": "boolean"
29276
29634
  },
29277
29635
  "privacy": "private",
29278
- "readonly": true
29636
+ "default": "false"
29279
29637
  },
29280
29638
  {
29281
29639
  "kind": "field",
29282
- "name": "clonedFor",
29640
+ "name": "warnedLeaflet",
29283
29641
  "type": {
29284
- "text": "unknown | undefined"
29642
+ "text": "boolean"
29285
29643
  },
29286
29644
  "privacy": "private",
29287
- "description": "The rows' source the clones below were made for."
29645
+ "default": "false"
29288
29646
  },
29289
29647
  {
29290
29648
  "kind": "field",
29291
- "name": "clones",
29649
+ "name": "zoomTimer",
29650
+ "type": {
29651
+ "text": "ReturnType<typeof setTimeout> | undefined"
29652
+ },
29653
+ "privacy": "private"
29654
+ },
29655
+ {
29656
+ "kind": "field",
29657
+ "name": "ro",
29658
+ "type": {
29659
+ "text": "ResizeObserver | undefined"
29660
+ },
29661
+ "privacy": "private"
29662
+ },
29663
+ {
29664
+ "kind": "field",
29665
+ "name": "schemeObserver",
29666
+ "type": {
29667
+ "text": "MutationObserver | undefined"
29668
+ },
29669
+ "privacy": "private"
29670
+ },
29671
+ {
29672
+ "kind": "field",
29673
+ "name": "darkQuery",
29674
+ "type": {
29675
+ "text": "MediaQueryList | undefined"
29676
+ },
29677
+ "privacy": "private"
29678
+ },
29679
+ {
29680
+ "kind": "field",
29681
+ "name": "onPageLoad",
29682
+ "privacy": "private"
29683
+ },
29684
+ {
29685
+ "kind": "field",
29686
+ "name": "readScheme",
29687
+ "privacy": "private"
29688
+ },
29689
+ {
29690
+ "kind": "field",
29691
+ "name": "places",
29692
+ "type": {
29693
+ "text": "MapItem[]"
29694
+ },
29292
29695
  "privacy": "private",
29293
- "default": "new WeakMap<Node[], Node[]>()"
29696
+ "description": "The places shown: `items`, else the child list.",
29697
+ "readonly": true
29294
29698
  },
29295
29699
  {
29296
29700
  "kind": "method",
29297
- "name": "nodesOf",
29701
+ "name": "readList",
29298
29702
  "privacy": "private",
29299
29703
  "return": {
29300
29704
  "type": {
29301
- "text": "Node[]"
29705
+ "text": "void"
29302
29706
  }
29303
29707
  },
29304
29708
  "parameters": [
29305
29709
  {
29306
- "name": "source",
29710
+ "name": "nodes",
29307
29711
  "type": {
29308
29712
  "text": "Node[]"
29309
29713
  }
29310
29714
  }
29311
29715
  ],
29312
- "description": "A value's nodes: fresh clones of its prepared source whenever the rows shown change\n(new markup, or back from `items`), reused by unrelated updates (the citation status) so\nthat focus in a value is not lost."
29716
+ "description": "The child list's places, compared with the last read so only a real change re-renders."
29717
+ },
29718
+ {
29719
+ "kind": "method",
29720
+ "name": "findLeaflet",
29721
+ "privacy": "private",
29722
+ "return": {
29723
+ "type": {
29724
+ "text": "LeafletNS | undefined"
29725
+ }
29726
+ },
29727
+ "description": "The page's Leaflet: the `leaflet` property (a module namespace or its default), or `window.L`."
29313
29728
  },
29314
29729
  {
29315
29730
  "kind": "field",
29316
- "name": "list",
29731
+ "name": "container",
29317
29732
  "type": {
29318
29733
  "text": "HTMLElement | null"
29319
29734
  },
29320
29735
  "privacy": "private",
29321
- "description": "The rendered `<dl>` (in light DOM, not the author's source).",
29322
29736
  "readonly": true
29323
29737
  },
29324
29738
  {
29325
29739
  "kind": "method",
29326
- "name": "applyLimits",
29740
+ "name": "setUpMap",
29741
+ "privacy": "private",
29742
+ "return": {
29743
+ "type": {
29744
+ "text": "boolean"
29745
+ }
29746
+ },
29747
+ "description": "Create the Leaflet map once its container is rendered. True when it was created now."
29748
+ },
29749
+ {
29750
+ "kind": "method",
29751
+ "name": "teardown",
29752
+ "privacy": "private",
29753
+ "return": {
29754
+ "type": {
29755
+ "text": "void"
29756
+ }
29757
+ }
29758
+ },
29759
+ {
29760
+ "kind": "method",
29761
+ "name": "drawTiles",
29327
29762
  "privacy": "private",
29328
29763
  "return": {
29329
29764
  "type": {
29330
29765
  "text": "void"
29331
29766
  }
29332
29767
  },
29333
- "description": "Hide the items past each shortened list's limit (until Show all), and show again the\nones this element hid when the list is open or no longer shortened."
29768
+ "description": "The tile layer for the current scheme: dark tiles when given, else the filtered light ones."
29334
29769
  },
29335
29770
  {
29336
29771
  "kind": "method",
29337
- "name": "limitFor",
29772
+ "name": "dotSize",
29338
29773
  "privacy": "private",
29339
29774
  "return": {
29340
29775
  "type": {
@@ -29343,51 +29778,97 @@
29343
29778
  },
29344
29779
  "parameters": [
29345
29780
  {
29346
- "name": "v",
29781
+ "name": "count",
29347
29782
  "type": {
29348
- "text": "Value"
29783
+ "text": "number | undefined"
29784
+ }
29785
+ },
29786
+ {
29787
+ "name": "max",
29788
+ "type": {
29789
+ "text": "number"
29349
29790
  }
29350
29791
  }
29351
29792
  ],
29352
- "description": "A value's limit: its own, else `list-limit`; 0 for none."
29793
+ "description": "Marker dot diameter: the square root of the count, between MIN_DOT and MAX_DOT."
29353
29794
  },
29354
29795
  {
29355
- "kind": "field",
29356
- "name": "locale",
29357
- "type": {
29358
- "text": "string"
29796
+ "kind": "method",
29797
+ "name": "placeName",
29798
+ "privacy": "private",
29799
+ "return": {
29800
+ "type": {
29801
+ "text": "string"
29802
+ }
29359
29803
  },
29804
+ "parameters": [
29805
+ {
29806
+ "name": "p",
29807
+ "type": {
29808
+ "text": "MapItem"
29809
+ }
29810
+ }
29811
+ ],
29812
+ "description": "\"The Rotunda, 2,702 photos\", or the name alone without a count."
29813
+ },
29814
+ {
29815
+ "kind": "method",
29816
+ "name": "countText",
29360
29817
  "privacy": "private",
29361
- "readonly": true
29818
+ "return": {
29819
+ "type": {
29820
+ "text": "string"
29821
+ }
29822
+ },
29823
+ "parameters": [
29824
+ {
29825
+ "name": "n",
29826
+ "type": {
29827
+ "text": "number"
29828
+ }
29829
+ }
29830
+ ]
29362
29831
  },
29363
29832
  {
29364
29833
  "kind": "method",
29365
- "name": "noun",
29834
+ "name": "href",
29366
29835
  "privacy": "private",
29367
29836
  "return": {
29368
29837
  "type": {
29369
- "text": "TemplateResult | string"
29838
+ "text": "string | null"
29370
29839
  }
29371
29840
  },
29372
29841
  "parameters": [
29373
29842
  {
29374
- "name": "r",
29843
+ "name": "p",
29375
29844
  "type": {
29376
- "text": "Row"
29845
+ "text": "MapItem"
29377
29846
  }
29378
- },
29847
+ }
29848
+ ]
29849
+ },
29850
+ {
29851
+ "kind": "method",
29852
+ "name": "groupDot",
29853
+ "privacy": "private",
29854
+ "return": {
29855
+ "type": {
29856
+ "text": "number"
29857
+ }
29858
+ },
29859
+ "parameters": [
29379
29860
  {
29380
- "name": "v",
29861
+ "name": "sum",
29381
29862
  "type": {
29382
- "text": "Value"
29863
+ "text": "number"
29383
29864
  }
29384
29865
  }
29385
29866
  ],
29386
- "description": "The toggle's noun: `data-limit-label`, else the label with a lowercase first letter\n(kept as written when it starts with an acronym, “ORCID iDs”)."
29867
+ "description": "A group's dot: by the square root of its summed count, between MIN_GROUP_DOT and MAX_GROUP_DOT."
29387
29868
  },
29388
29869
  {
29389
29870
  "kind": "method",
29390
- "name": "formatCount",
29871
+ "name": "groupName",
29391
29872
  "privacy": "private",
29392
29873
  "return": {
29393
29874
  "type": {
@@ -29396,147 +29877,596 @@
29396
29877
  },
29397
29878
  "parameters": [
29398
29879
  {
29399
- "name": "n",
29880
+ "name": "members",
29400
29881
  "type": {
29401
- "text": "number"
29882
+ "text": "number[]"
29402
29883
  }
29403
29884
  }
29404
- ]
29885
+ ],
29886
+ "description": "\"The Rotunda and 2 more places\": the largest place's name and how many more."
29405
29887
  },
29406
29888
  {
29407
29889
  "kind": "method",
29408
- "name": "toggleList",
29890
+ "name": "hitOf",
29409
29891
  "privacy": "private",
29410
29892
  "return": {
29411
29893
  "type": {
29412
- "text": "Promise<void>"
29894
+ "text": "number"
29413
29895
  }
29414
29896
  },
29415
29897
  "parameters": [
29416
29898
  {
29417
- "name": "e",
29899
+ "name": "members",
29418
29900
  "type": {
29419
- "text": "Event"
29901
+ "text": "number[]"
29902
+ }
29903
+ }
29904
+ ],
29905
+ "description": "A marker's hit area (px): its dot, at least 44px; a group's dot for several places."
29906
+ },
29907
+ {
29908
+ "kind": "method",
29909
+ "name": "makeMarker",
29910
+ "privacy": "private",
29911
+ "return": {
29912
+ "type": {
29913
+ "text": "Leaflet.Marker"
29914
+ }
29915
+ },
29916
+ "parameters": [
29917
+ {
29918
+ "name": "ll",
29919
+ "type": {
29920
+ "text": "Leaflet.LatLngExpression"
29420
29921
  }
29421
29922
  },
29422
29923
  {
29423
- "name": "key",
29924
+ "name": "ctl",
29424
29925
  "type": {
29425
- "text": "string"
29926
+ "text": "HTMLElement"
29426
29927
  }
29427
29928
  },
29428
29929
  {
29429
- "name": "limit",
29930
+ "name": "d",
29430
29931
  "type": {
29431
29932
  "text": "number"
29432
29933
  }
29934
+ },
29935
+ {
29936
+ "name": "className",
29937
+ "type": {
29938
+ "text": "string"
29939
+ }
29433
29940
  }
29434
29941
  ]
29435
29942
  },
29436
29943
  {
29437
29944
  "kind": "method",
29438
- "name": "renderToggle",
29945
+ "name": "makeControl",
29439
29946
  "privacy": "private",
29947
+ "return": {
29948
+ "type": {
29949
+ "text": "HTMLElement"
29950
+ }
29951
+ },
29440
29952
  "parameters": [
29441
29953
  {
29442
- "name": "r",
29954
+ "name": "tag",
29443
29955
  "type": {
29444
- "text": "Row"
29956
+ "text": "'a' | 'button'"
29445
29957
  }
29446
29958
  },
29447
29959
  {
29448
- "name": "v",
29960
+ "name": "d",
29449
29961
  "type": {
29450
- "text": "Value"
29962
+ "text": "number"
29451
29963
  }
29452
29964
  },
29453
29965
  {
29454
- "name": "key",
29966
+ "name": "label",
29455
29967
  "type": {
29456
29968
  "text": "string"
29457
29969
  }
29458
29970
  },
29459
29971
  {
29460
- "name": "limit",
29461
- "type": {
29462
- "text": "number"
29463
- }
29972
+ "name": "text",
29973
+ "default": "''"
29464
29974
  }
29465
- ]
29975
+ ],
29976
+ "description": "The control inside a marker: its dot (with `text`, for a group) and its hidden name."
29466
29977
  },
29467
29978
  {
29468
- "kind": "field",
29469
- "name": "hostColorScheme",
29470
- "type": {
29471
- "text": "boolean"
29979
+ "kind": "method",
29980
+ "name": "drawMarkers",
29981
+ "privacy": "private",
29982
+ "return": {
29983
+ "type": {
29984
+ "text": "void"
29985
+ }
29472
29986
  },
29473
- "privacy": "protected",
29474
- "static": true,
29475
- "default": "true",
29476
- "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.",
29477
- "inheritedFrom": {
29478
- "name": "UvalibElement",
29479
- "module": "src/base/UvalibElement.ts"
29480
- }
29987
+ "description": "One marker per place, not yet on the map: `regroup()` adds the ones not in a group."
29481
29988
  },
29482
29989
  {
29483
29990
  "kind": "method",
29484
- "name": "finalizeStyles",
29485
- "privacy": "protected",
29486
- "static": true,
29991
+ "name": "cluster",
29992
+ "privacy": "private",
29487
29993
  "return": {
29488
29994
  "type": {
29489
- "text": "CSSResultOrNative[]"
29995
+ "text": "number[][]"
29490
29996
  }
29491
29997
  },
29492
29998
  "parameters": [
29493
29999
  {
29494
- "name": "styles",
29495
- "optional": true,
30000
+ "name": "idx",
29496
30001
  "type": {
29497
- "text": "CSSResultGroup"
30002
+ "text": "number[]"
30003
+ }
30004
+ },
30005
+ {
30006
+ "name": "zoom",
30007
+ "type": {
30008
+ "text": "number"
29498
30009
  }
29499
30010
  }
29500
30011
  ],
29501
- "description": "Every component's styles start with the host colour-scheme rule (unless opted out).",
29502
- "inheritedFrom": {
29503
- "name": "UvalibElement",
29504
- "module": "src/base/UvalibElement.ts"
29505
- }
30012
+ "description": "Greedy screen-space grouping at `zoom`: largest count first, each place takes every\nlater one whose hit area (plus GROUP_GAP) would overlap its own; then groups whose larger\nmarkers now overlap merge, until none do. Each group's largest place comes first."
29506
30013
  },
29507
30014
  {
29508
- "kind": "field",
29509
- "name": "shadowRootOptions",
29510
- "type": {
29511
- "text": "ShadowRootInit"
30015
+ "kind": "method",
30016
+ "name": "makeGroup",
30017
+ "privacy": "private",
30018
+ "return": {
30019
+ "type": {
30020
+ "text": "MapGroup"
30021
+ }
29512
30022
  },
29513
- "static": true,
29514
- "default": "{ ...LitElement.shadowRootOptions, mode: 'open' }",
29515
- "inheritedFrom": {
29516
- "name": "UvalibElement",
29517
- "module": "src/base/UvalibElement.ts"
29518
- }
30023
+ "parameters": [
30024
+ {
30025
+ "name": "key",
30026
+ "type": {
30027
+ "text": "string"
30028
+ }
30029
+ },
30030
+ {
30031
+ "name": "members",
30032
+ "type": {
30033
+ "text": "number[]"
30034
+ }
30035
+ }
30036
+ ]
29519
30037
  },
29520
30038
  {
29521
- "kind": "field",
29522
- "name": "noShadowDom",
29523
- "type": {
29524
- "text": "boolean"
30039
+ "kind": "method",
30040
+ "name": "focusedControl",
30041
+ "privacy": "private",
30042
+ "return": {
30043
+ "type": {
30044
+ "text": "HTMLElement | null"
30045
+ }
29525
30046
  },
29526
- "default": "false",
29527
- "attribute": "no-shadow-dom",
29528
- "inheritedFrom": {
29529
- "name": "UvalibElement",
29530
- "module": "src/base/UvalibElement.ts"
29531
- }
30047
+ "description": "The marker control that has focus, if any."
29532
30048
  },
29533
30049
  {
29534
- "kind": "field",
29535
- "name": "noStyle",
29536
- "type": {
29537
- "text": "boolean"
29538
- },
29539
- "default": "false",
30050
+ "kind": "method",
30051
+ "name": "regroup",
30052
+ "privacy": "private",
30053
+ "return": {
30054
+ "type": {
30055
+ "text": "void"
30056
+ }
30057
+ },
30058
+ "description": "Group the markers whose hit areas would overlap at the current zoom, show one marker\nper group (and the ring's places, when one is open), keep the markers' document order\nthe keyboard order, and give focus back if its marker went."
30059
+ },
30060
+ {
30061
+ "kind": "method",
30062
+ "name": "spot",
30063
+ "privacy": "private",
30064
+ "return": {
30065
+ "type": {
30066
+ "text": "{ marker: Leaflet.Marker; ctl: HTMLElement }"
30067
+ }
30068
+ },
30069
+ "parameters": [
30070
+ {
30071
+ "name": "i",
30072
+ "type": {
30073
+ "text": "number"
30074
+ }
30075
+ }
30076
+ ]
30077
+ },
30078
+ {
30079
+ "kind": "method",
30080
+ "name": "splitZoom",
30081
+ "privacy": "private",
30082
+ "return": {
30083
+ "type": {
30084
+ "text": "number | undefined"
30085
+ }
30086
+ },
30087
+ "parameters": [
30088
+ {
30089
+ "name": "members",
30090
+ "type": {
30091
+ "text": "number[]"
30092
+ }
30093
+ }
30094
+ ],
30095
+ "description": "The first zoom (in zoomSnap steps, up to the maximum) at which a group's places part."
30096
+ },
30097
+ {
30098
+ "kind": "method",
30099
+ "name": "expand",
30100
+ "privacy": "private",
30101
+ "return": {
30102
+ "type": {
30103
+ "text": "void"
30104
+ }
30105
+ },
30106
+ "parameters": [
30107
+ {
30108
+ "name": "key",
30109
+ "type": {
30110
+ "text": "string"
30111
+ }
30112
+ }
30113
+ ],
30114
+ "description": "A group chosen: zoom in until its places part, or (when they cannot) spread them in a ring."
30115
+ },
30116
+ {
30117
+ "kind": "method",
30118
+ "name": "spread",
30119
+ "privacy": "private",
30120
+ "return": {
30121
+ "type": {
30122
+ "text": "void"
30123
+ }
30124
+ },
30125
+ "parameters": [
30126
+ {
30127
+ "name": "g",
30128
+ "type": {
30129
+ "text": "MapGroup"
30130
+ }
30131
+ }
30132
+ ],
30133
+ "description": "Spread a group's places in a ring around it, far enough apart that each 44px target\nkeeps 24px from its neighbours and from the group's own marker; focus the first."
30134
+ },
30135
+ {
30136
+ "kind": "method",
30137
+ "name": "unring",
30138
+ "privacy": "private",
30139
+ "return": {
30140
+ "type": {
30141
+ "text": "void"
30142
+ }
30143
+ },
30144
+ "description": "Put a ring's places back on their own point (the next regroup hides them)."
30145
+ },
30146
+ {
30147
+ "kind": "method",
30148
+ "name": "fit",
30149
+ "privacy": "private",
30150
+ "return": {
30151
+ "type": {
30152
+ "text": "void"
30153
+ }
30154
+ },
30155
+ "description": "Open on `center`/`zoom`, else on the places' bounds, else on Grounds."
30156
+ },
30157
+ {
30158
+ "kind": "method",
30159
+ "name": "underControls",
30160
+ "privacy": "private",
30161
+ "return": {
30162
+ "type": {
30163
+ "text": "boolean"
30164
+ }
30165
+ },
30166
+ "parameters": [
30167
+ {
30168
+ "name": "pts",
30169
+ "type": {
30170
+ "text": "Leaflet.LatLng[]"
30171
+ }
30172
+ }
30173
+ ],
30174
+ "description": "Whether any of `pts` is under (or within 12px of) the zoom buttons or the attribution."
30175
+ },
30176
+ {
30177
+ "kind": "method",
30178
+ "name": "markerFor",
30179
+ "privacy": "private",
30180
+ "return": {
30181
+ "type": {
30182
+ "text": "{ marker: Leaflet.Marker; group?: MapGroup } | undefined"
30183
+ }
30184
+ },
30185
+ "parameters": [
30186
+ {
30187
+ "name": "key",
30188
+ "type": {
30189
+ "text": "string"
30190
+ }
30191
+ }
30192
+ ],
30193
+ "description": "The marker on the map for a target (\"3\" a place, \"g:1,3\" a group): a place's own, or its group's."
30194
+ },
30195
+ {
30196
+ "kind": "method",
30197
+ "name": "hover",
30198
+ "privacy": "private",
30199
+ "return": {
30200
+ "type": {
30201
+ "text": "void"
30202
+ }
30203
+ },
30204
+ "parameters": [
30205
+ {
30206
+ "name": "key",
30207
+ "type": {
30208
+ "text": "string"
30209
+ }
30210
+ }
30211
+ ]
30212
+ },
30213
+ {
30214
+ "kind": "method",
30215
+ "name": "syncActive",
30216
+ "privacy": "private",
30217
+ "return": {
30218
+ "type": {
30219
+ "text": "void"
30220
+ }
30221
+ },
30222
+ "description": "The highlighted target: the one hovered, else the one focused (none after Escape)."
30223
+ },
30224
+ {
30225
+ "kind": "method",
30226
+ "name": "showActive",
30227
+ "privacy": "private",
30228
+ "return": {
30229
+ "type": {
30230
+ "text": "void"
30231
+ }
30232
+ },
30233
+ "description": "Highlight the active target's marker (a place inside a group highlights the group) and\nshow its tooltip: the name and count, and for a place in a group, how many share it."
30234
+ },
30235
+ {
30236
+ "kind": "method",
30237
+ "name": "reveal",
30238
+ "privacy": "private",
30239
+ "return": {
30240
+ "type": {
30241
+ "text": "void"
30242
+ }
30243
+ },
30244
+ "parameters": [
30245
+ {
30246
+ "name": "key",
30247
+ "type": {
30248
+ "text": "string"
30249
+ }
30250
+ }
30251
+ ],
30252
+ "description": "Bring a target's marker into view (on focus), without animation under reduced motion."
30253
+ },
30254
+ {
30255
+ "kind": "method",
30256
+ "name": "keyOf",
30257
+ "privacy": "private",
30258
+ "return": {
30259
+ "type": {
30260
+ "text": "string"
30261
+ }
30262
+ },
30263
+ "parameters": [
30264
+ {
30265
+ "name": "ctl",
30266
+ "type": {
30267
+ "text": "HTMLElement"
30268
+ }
30269
+ }
30270
+ ],
30271
+ "description": "\"3\" for a place's marker, \"g:1,3\" for a group's."
30272
+ },
30273
+ {
30274
+ "kind": "method",
30275
+ "name": "targetOf",
30276
+ "privacy": "private",
30277
+ "return": {
30278
+ "type": {
30279
+ "text": "string"
30280
+ }
30281
+ },
30282
+ "parameters": [
30283
+ {
30284
+ "name": "e",
30285
+ "type": {
30286
+ "text": "Event"
30287
+ }
30288
+ }
30289
+ ]
30290
+ },
30291
+ {
30292
+ "kind": "field",
30293
+ "name": "onMapClick",
30294
+ "privacy": "private"
30295
+ },
30296
+ {
30297
+ "kind": "method",
30298
+ "name": "queueZoomReport",
30299
+ "privacy": "private",
30300
+ "return": {
30301
+ "type": {
30302
+ "text": "void"
30303
+ }
30304
+ },
30305
+ "description": "Report the zoom level 1 s after the last zoom-button press."
30306
+ },
30307
+ {
30308
+ "kind": "field",
30309
+ "name": "onMapKeydown",
30310
+ "privacy": "private"
30311
+ },
30312
+ {
30313
+ "kind": "field",
30314
+ "name": "onMapFocusIn",
30315
+ "privacy": "private"
30316
+ },
30317
+ {
30318
+ "kind": "field",
30319
+ "name": "onMapFocusOut",
30320
+ "privacy": "private"
30321
+ },
30322
+ {
30323
+ "kind": "field",
30324
+ "name": "onMapLeave",
30325
+ "privacy": "private"
30326
+ },
30327
+ {
30328
+ "kind": "method",
30329
+ "name": "onPlaceEnter",
30330
+ "privacy": "private",
30331
+ "return": {
30332
+ "type": {
30333
+ "text": "void"
30334
+ }
30335
+ },
30336
+ "parameters": [
30337
+ {
30338
+ "name": "i",
30339
+ "type": {
30340
+ "text": "number"
30341
+ }
30342
+ }
30343
+ ]
30344
+ },
30345
+ {
30346
+ "kind": "method",
30347
+ "name": "onPlaceLeave",
30348
+ "privacy": "private",
30349
+ "return": {
30350
+ "type": {
30351
+ "text": "void"
30352
+ }
30353
+ }
30354
+ },
30355
+ {
30356
+ "kind": "method",
30357
+ "name": "onPlaceFocusIn",
30358
+ "privacy": "private",
30359
+ "return": {
30360
+ "type": {
30361
+ "text": "void"
30362
+ }
30363
+ },
30364
+ "parameters": [
30365
+ {
30366
+ "name": "i",
30367
+ "type": {
30368
+ "text": "number"
30369
+ }
30370
+ }
30371
+ ]
30372
+ },
30373
+ {
30374
+ "kind": "method",
30375
+ "name": "onPlaceFocusOut",
30376
+ "privacy": "private",
30377
+ "return": {
30378
+ "type": {
30379
+ "text": "void"
30380
+ }
30381
+ },
30382
+ "parameters": [
30383
+ {
30384
+ "name": "e",
30385
+ "type": {
30386
+ "text": "FocusEvent"
30387
+ }
30388
+ }
30389
+ ]
30390
+ },
30391
+ {
30392
+ "kind": "field",
30393
+ "name": "skipToList",
30394
+ "privacy": "private",
30395
+ "description": "The skip link: focus the list (a fragment link cannot reach into a shadow root)."
30396
+ },
30397
+ {
30398
+ "kind": "field",
30399
+ "name": "hostColorScheme",
30400
+ "type": {
30401
+ "text": "boolean"
30402
+ },
30403
+ "privacy": "protected",
30404
+ "static": true,
30405
+ "default": "true",
30406
+ "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.",
30407
+ "inheritedFrom": {
30408
+ "name": "UvalibElement",
30409
+ "module": "src/base/UvalibElement.ts"
30410
+ }
30411
+ },
30412
+ {
30413
+ "kind": "method",
30414
+ "name": "finalizeStyles",
30415
+ "privacy": "protected",
30416
+ "static": true,
30417
+ "return": {
30418
+ "type": {
30419
+ "text": "CSSResultOrNative[]"
30420
+ }
30421
+ },
30422
+ "parameters": [
30423
+ {
30424
+ "name": "styles",
30425
+ "optional": true,
30426
+ "type": {
30427
+ "text": "CSSResultGroup"
30428
+ }
30429
+ }
30430
+ ],
30431
+ "description": "Every component's styles start with the host colour-scheme rule (unless opted out).",
30432
+ "inheritedFrom": {
30433
+ "name": "UvalibElement",
30434
+ "module": "src/base/UvalibElement.ts"
30435
+ }
30436
+ },
30437
+ {
30438
+ "kind": "field",
30439
+ "name": "shadowRootOptions",
30440
+ "type": {
30441
+ "text": "ShadowRootInit"
30442
+ },
30443
+ "static": true,
30444
+ "default": "{ ...LitElement.shadowRootOptions, mode: 'open' }",
30445
+ "inheritedFrom": {
30446
+ "name": "UvalibElement",
30447
+ "module": "src/base/UvalibElement.ts"
30448
+ }
30449
+ },
30450
+ {
30451
+ "kind": "field",
30452
+ "name": "noShadowDom",
30453
+ "type": {
30454
+ "text": "boolean"
30455
+ },
30456
+ "default": "false",
30457
+ "attribute": "no-shadow-dom",
30458
+ "inheritedFrom": {
30459
+ "name": "UvalibElement",
30460
+ "module": "src/base/UvalibElement.ts"
30461
+ }
30462
+ },
30463
+ {
30464
+ "kind": "field",
30465
+ "name": "noStyle",
30466
+ "type": {
30467
+ "text": "boolean"
30468
+ },
30469
+ "default": "false",
29540
30470
  "attribute": "no-style",
29541
30471
  "inheritedFrom": {
29542
30472
  "name": "UvalibElement",
@@ -29596,74 +30526,88 @@
29596
30526
  ],
29597
30527
  "events": [
29598
30528
  {
29599
- "description": "For `<site-analytics>`: the Copy citation button, `['uvalib-metadata', 'copy-citation']`, and a list's toggle, `['uvalib-metadata', 'show-all'|'show-fewer', 'row N']` (N from 1, the row's place in the list; never its label or values). Downloads are left to Matomo's own download tracking. Bubbles and is composed.",
30529
+ "description": "A place's marker was chosen (click, Enter or Space); never a group's. `detail` is `{ item }`. Cancelable: for a place with `href`, `preventDefault()` keeps the page from following the link. Bubbles and is composed.",
30530
+ "name": "select"
30531
+ },
30532
+ {
30533
+ "description": "For `<site-analytics>`: `['uvalib-map', 'select', '<label>', <position from 1>]` when a place's marker is chosen, `['uvalib-map', 'expand', '<label>', <places in it>]` when a group is chosen (it zooms in or opens its ring), and `['uvalib-map', 'zoom', '<label>', <zoom level>]` 1 s after the last zoom-button press. Never a place's name, coordinates or URL. Bubbles and is composed.",
29600
30534
  "name": "uvalib-analytics-event"
29601
30535
  }
29602
30536
  ],
29603
30537
  "attributes": [
29604
30538
  {
29605
- "name": "creator",
30539
+ "name": "items",
29606
30540
  "type": {
29607
- "text": "string | undefined"
30541
+ "text": "MapItem[]"
29608
30542
  },
29609
- "description": "The creator (author, photographer…), shown first.",
29610
- "fieldName": "creator"
30543
+ "default": "[]",
30544
+ "description": "The places. When non-empty, wins over the child list. Set a new array to update.",
30545
+ "fieldName": "items"
29611
30546
  },
29612
30547
  {
29613
- "name": "organization",
30548
+ "name": "label",
29614
30549
  "type": {
29615
- "text": "string | undefined"
30550
+ "text": "string"
29616
30551
  },
29617
- "description": "The organization holding or crediting the item, shown after the creator.",
29618
- "fieldName": "organization"
30552
+ "default": "''",
30553
+ "description": "The map's name (required): the region's label, the list's label and the analytics name.",
30554
+ "fieldName": "label"
29619
30555
  },
29620
30556
  {
29621
- "name": "rights",
30557
+ "name": "count-label",
29622
30558
  "type": {
29623
- "text": "string | undefined"
30559
+ "text": "string"
29624
30560
  },
29625
- "description": "The rights statement: a rightsstatements.org or Creative Commons URL (shown as its short\nname, linked), another http(s) URL (shown as `rights-label`, or \"Rights statement\"), or\nplain text.",
29626
- "fieldName": "rights"
30561
+ "default": "'items'",
30562
+ "description": "The noun after each count, plural (\"photos\"); a count of one drops a trailing s.",
30563
+ "fieldName": "countLabel"
29627
30564
  },
29628
30565
  {
29629
- "name": "rights-label",
30566
+ "name": "place-label",
29630
30567
  "type": {
29631
- "text": "string | undefined"
30568
+ "text": "string"
29632
30569
  },
29633
- "description": "The link text for a `rights` URL, instead of its short name.",
29634
- "fieldName": "rightsLabel"
30570
+ "default": "'places'",
30571
+ "description": "The noun for places in a group's name, plural: \"The Rotunda and 2 more places\" (one\ndrops a trailing s: \"and 1 more place\"). For example \"rooms\".",
30572
+ "fieldName": "placeLabel"
29635
30573
  },
29636
30574
  {
29637
- "name": "rights-info",
29638
- "type": {
29639
- "text": "string | undefined"
29640
- },
29641
- "description": "A \"More about rights and permissions\" link under the statement, such as\n`https://www.library.virginia.edu/policies/use-of-materials`.",
29642
- "fieldName": "rightsInfo"
30575
+ "name": "tile-url",
30576
+ "default": "OSM_TILE_URL",
30577
+ "description": "The tile URL template (`{z}/{x}/{y}`, optionally `{s}` and `{r}`).",
30578
+ "fieldName": "tileUrl"
29643
30579
  },
29644
30580
  {
29645
- "name": "citation",
30581
+ "name": "dark-tile-url",
29646
30582
  "type": {
29647
- "text": "string | undefined"
30583
+ "text": "string"
29648
30584
  },
29649
- "description": "\"How to cite\": the citation, as written. Wins over `citation-title`.",
29650
- "fieldName": "citation"
30585
+ "default": "''",
30586
+ "description": "Tiles for the page's dark mode. Without it, dark mode filters the light tiles instead.",
30587
+ "fieldName": "darkTileUrl"
29651
30588
  },
29652
30589
  {
29653
- "name": "citation-title",
30590
+ "name": "attribution",
30591
+ "default": "OSM_ATTRIBUTION",
30592
+ "description": "The tiles' attribution, as HTML. Required by most tile sources; always shown.",
30593
+ "fieldName": "attribution"
30594
+ },
30595
+ {
30596
+ "name": "center",
29654
30597
  "type": {
29655
- "text": "string | undefined"
30598
+ "text": "string"
29656
30599
  },
29657
- "description": "A title or collection name for the Special Collections citation: \"<title>, Albert and\nShirley Small Special Collections Library, University of Virginia\".",
29658
- "fieldName": "citationTitle"
30600
+ "default": "''",
30601
+ "description": "Where the map opens, `\"lat,lng\"`. Without it the map fits every place.",
30602
+ "fieldName": "center"
29659
30603
  },
29660
30604
  {
29661
- "name": "list-limit",
30605
+ "name": "zoom",
29662
30606
  "type": {
29663
30607
  "text": "number | undefined"
29664
30608
  },
29665
- "description": "Shorten every list value of more than this many items to its first ones and a “Show all\nN” button. Zero or empty shows every item. A row's `data-limit` wins.",
29666
- "fieldName": "listLimit"
30609
+ "description": "The opening zoom level (with `center`, or centred on the places).",
30610
+ "fieldName": "zoom"
29667
30611
  },
29668
30612
  {
29669
30613
  "name": "no-shadow-dom",
@@ -29694,521 +30638,223 @@
29694
30638
  "name": "UvalibElement",
29695
30639
  "module": "/src/base/UvalibElement.js"
29696
30640
  },
29697
- "tagName": "uvalib-metadata",
30641
+ "tagName": "uvalib-map",
29698
30642
  "customElement": true
29699
30643
  }
29700
30644
  ],
29701
30645
  "exports": [
29702
30646
  {
29703
30647
  "kind": "js",
29704
- "name": "UvalibMetadata",
30648
+ "name": "OSM_TILE_URL",
29705
30649
  "declaration": {
29706
- "name": "UvalibMetadata",
29707
- "module": "src/components/uvalib-metadata/UvalibMetadata.ts"
30650
+ "name": "OSM_TILE_URL",
30651
+ "module": "src/components/uvalib-map/UvalibMap.ts"
29708
30652
  }
29709
- }
29710
- ]
29711
- },
29712
- {
29713
- "kind": "javascript-module",
29714
- "path": "src/components/uvalib-metadata/rights.ts",
29715
- "declarations": [
29716
- {
29717
- "kind": "function",
29718
- "name": "rightsName",
29719
- "return": {
29720
- "type": {
29721
- "text": "string | undefined"
29722
- }
29723
- },
29724
- "parameters": [
29725
- {
29726
- "name": "href",
29727
- "type": {
29728
- "text": "string"
29729
- }
29730
- }
29731
- ],
29732
- "description": "The short name of a rightsstatements.org statement or Creative Commons licence or tool from\nits URL (\"In Copyright\", \"CC BY-NC 4.0\", \"CC0 1.0\", \"Public Domain Mark 1.0\"), or\n`undefined` for any other URL."
29733
30653
  },
29734
30654
  {
29735
- "kind": "function",
29736
- "name": "specialCollectionsCitation",
29737
- "return": {
29738
- "type": {
29739
- "text": "string"
29740
- }
29741
- },
29742
- "parameters": [
29743
- {
29744
- "name": "title",
29745
- "type": {
29746
- "text": "string"
29747
- }
29748
- }
29749
- ],
29750
- "description": "The Albert and Shirley Small Special Collections Library's citation for a title or collection."
29751
- }
29752
- ],
29753
- "exports": [
30655
+ "kind": "js",
30656
+ "name": "OSM_ATTRIBUTION",
30657
+ "declaration": {
30658
+ "name": "OSM_ATTRIBUTION",
30659
+ "module": "src/components/uvalib-map/UvalibMap.ts"
30660
+ }
30661
+ },
29754
30662
  {
29755
30663
  "kind": "js",
29756
- "name": "rightsName",
30664
+ "name": "MAP_INSTRUCTIONS",
29757
30665
  "declaration": {
29758
- "name": "rightsName",
29759
- "module": "src/components/uvalib-metadata/rights.ts"
30666
+ "name": "MAP_INSTRUCTIONS",
30667
+ "module": "src/components/uvalib-map/UvalibMap.ts"
29760
30668
  }
29761
30669
  },
29762
30670
  {
29763
30671
  "kind": "js",
29764
- "name": "specialCollectionsCitation",
30672
+ "name": "UvalibMap",
29765
30673
  "declaration": {
29766
- "name": "specialCollectionsCitation",
29767
- "module": "src/components/uvalib-metadata/rights.ts"
30674
+ "name": "UvalibMap",
30675
+ "module": "src/components/uvalib-map/UvalibMap.ts"
29768
30676
  }
29769
30677
  }
29770
30678
  ]
29771
30679
  },
29772
30680
  {
29773
30681
  "kind": "javascript-module",
29774
- "path": "src/components/uvalib-metadata/uvalib-metadata.ts",
30682
+ "path": "src/components/uvalib-map/uvalib-map.ts",
29775
30683
  "declarations": [],
29776
30684
  "exports": []
29777
30685
  },
29778
30686
  {
29779
30687
  "kind": "javascript-module",
29780
- "path": "src/components/uvalib-map/UvalibMap.ts",
30688
+ "path": "src/components/uvalib-metadata/UvalibMetadata.ts",
29781
30689
  "declarations": [
29782
- {
29783
- "kind": "variable",
29784
- "name": "OSM_TILE_URL",
29785
- "type": {
29786
- "text": "string"
29787
- },
29788
- "default": "'https://tile.openstreetmap.org/{z}/{x}/{y}.png'",
29789
- "description": "OpenStreetMap's standard tiles: fine for low traffic only (see the README)."
29790
- },
29791
- {
29792
- "kind": "variable",
29793
- "name": "OSM_ATTRIBUTION",
29794
- "type": {
29795
- "text": "string"
29796
- },
29797
- "default": "'&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors'"
29798
- },
29799
- {
29800
- "kind": "variable",
29801
- "name": "MAP_INSTRUCTIONS",
29802
- "type": {
29803
- "text": "string"
29804
- },
29805
- "default": "'Tab or arrow keys move between places; Enter opens one. With the map focused, arrow keys pan and + and − zoom.'",
29806
- "description": "Shown above the map, and kept in step with base.css's pre-upgrade placeholder."
29807
- },
29808
30690
  {
29809
30691
  "kind": "class",
29810
- "description": "A map of places with a linked list of the same places: buildings, rooms or outdoor spaces,\neach a marker sized by a count, with a link to the place's page. It wraps\n[Leaflet](https://leafletjs.com) 1.9, which the page provides (the library never bundles\nit): set the `leaflet` property to the Leaflet module (`import * as L from 'leaflet'`), or\nload leaflet.js so that `window.L` exists. Without Leaflet only the list is shown, with\none console warning. Leaflet's leaflet.css is optional: the element carries the layout\nrules it needs, in shadow DOM and light DOM alike.\n\nPlaces come from `items` (`{ id?, name, lat, lng, count?, href?, description? }`) or from\na child `<ul>`/`<ol>` of `<li><a href data-lat data-lng data-count>Name</a></li>`, which is\nthe list before the script runs (and without it). The list always stays, under the map:\nit is the text equivalent.\n\nEach marker is a real link (a button when the place has no `href`) named like \"The\nRotunda, 2,702 photos\" (`count-label` is the noun), sized by the square root of its count\n(a 24 to 56px dot in a hit area of at least 44px). Tab or the arrow keys move between\nmarkers, Enter follows the link (or chooses the place), and Escape hides the tooltip.\nHovering or focusing a marker shows a tooltip with its name and count and highlights its\nlist entry; hovering or focusing a list entry highlights its marker (a ring and a larger\ndot, not colour alone) and brings it into view.\n\nMarkers whose 44px targets would overlap at the current zoom are drawn as one group\nmarker (regrouped after every zoom and resize): a button\nshowing how many places it holds, sized by their summed count and named like \"The Rotunda\nand 2 more places, 3,610 photos\" (the largest place's name; `place-label` is the noun).\nChoosing it zooms in until its places part; when they cannot (one point, or the\nmaximum zoom) it spreads them in a ring around it instead, with focus on the first;\nEscape or a zoom closes the ring and focus returns to the group. The arrow keys move\nbetween the markers shown (a group is one); a place in the list that is in a group\nhighlights the group, whose tooltip names the place.\n\nThe map is a region named by `label`, after a \"Skip map, go to the list\" link and a line\nof key instructions. It opens on the bounds of the places, or on `center` and `zoom`. The\nzoom buttons are 44px with a visible focus ring; the attribution stays. Tiles come from\n`tile-url` (OpenStreetMap by default: low-traffic use only) with `attribution`. In the\npage's dark mode the tiles are inverted with a CSS filter (`--uvalib-map-dark-filter`)\nunless `dark-tile-url` gives dark tiles; markers and controls are never filtered. With\n`prefers-reduced-motion` nothing animates.",
29811
- "name": "UvalibMap",
30692
+ "description": "A record's details as a description list, as on the library's digital collections: label\nand value side by side on wide screens (the element's own width, 36rem and up), stacked on\nnarrow ones. Values may be text, links or lists (subjects).\n\nGive the rows as a `<dl>` child (so the page reads the same before the script loads):\n`<dt>` labels and `<dd>` values, optionally wrapped in a `<div>` per row; several `<dd>`\nafter one `<dt>` are several values. The values are copied as written (links, lists,\n`download` attributes kept); a link with `data-size=\"184 KB\"` is shown as a download,\n\"EPUB · 184 KB\". The list follows changes to the children. Apps set the `items`\nproperty instead (`{ label, value }`, winning over the children while set).\n\nBuilt-in rows for credit and rights (as Special Collections asks): `creator` and\n`organization` come first; `rights` (a rightsstatements.org or Creative Commons URL, shown\nas its short name linked to it, or plain text) and `citation` (\"How to cite\", with a Copy\ncitation button that announces \"Copied\" politely) come last. `citation-title` builds the\nSpecial Collections citation, \"<title>, Albert and Shirley Small Special Collections\nLibrary, University of Virginia\".\n\nLong lists: `list-limit=\"8\"` shortens every value that is a list (a `<ul>`/`<ol>` in the\n`<dd>`) of more than 8 items to its first 8 and a “Show all 34 participants” button\n(`aria-expanded`, `aria-controls`) that reveals the rest in place and moves focus to the\nfirst one; it then reads “Show fewer”. `data-limit` on a `<dd>` or its list sets that row's\nown limit (`0`: none); the noun is the label with a lowercase first letter, or\n`data-limit-label`. Every value stays in the markup (the hidden ones `hidden`).",
30693
+ "name": "UvalibMetadata",
29812
30694
  "cssProperties": [
29813
30695
  {
29814
- "description": "Height of the map.",
29815
- "name": "--uvalib-map-height",
29816
- "default": "min(24rem, 75vw)"
29817
- },
29818
- {
29819
- "description": "The filter on the tiles in dark mode, when there is no `dark-tile-url`.",
29820
- "name": "--uvalib-map-dark-filter",
29821
- "default": "invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9)"
29822
- },
29823
- {
29824
- "description": "Marker fill.",
29825
- "name": "--uva-brand-blue",
29826
- "default": "#232d4b"
29827
- },
29828
- {
29829
- "description": "Focus ring when `--uva-color-focus` is unset.",
29830
- "name": "--uva-brand-orange",
29831
- "default": "#e57200"
29832
- },
29833
- {
29834
- "description": "Font family.",
29835
- "name": "--uva-font-family",
29836
- "default": "inherit"
30696
+ "description": "Link colour.",
30697
+ "name": "--uva-blue-alt-dark",
30698
+ "default": "#005679"
29837
30699
  },
29838
30700
  {
29839
- "description": "Dark-mode role token: marker fill (else `--uva-brand-blue`).",
29840
- "name": "--uva-color-accent-bg"
30701
+ "description": "Value colour.",
30702
+ "name": "--uva-grey-darkest",
30703
+ "default": "#2b2b2b"
29841
30704
  },
29842
30705
  {
29843
- "description": "Dark-mode role token: marker border (else #fff).",
29844
- "name": "--uva-color-on-accent"
30706
+ "description": "Dark-mode role token: link colour (else `--uva-blue-alt-dark`).",
30707
+ "name": "--uva-color-utility-link"
29845
30708
  },
29846
30709
  {
29847
- "description": "Dark-mode role token: text and the highlight ring (else #2b2b2b).",
30710
+ "description": "Dark-mode role token: value colour (else `--uva-grey-darkest`).",
29848
30711
  "name": "--uva-color-text"
29849
30712
  },
29850
30713
  {
29851
- "description": "Dark-mode role token: instructions and descriptions (else #4b5563).",
30714
+ "description": "Dark-mode role token: label and status colour (else #4b5563).",
29852
30715
  "name": "--uva-color-text-muted"
29853
30716
  },
29854
30717
  {
29855
- "description": "Dark-mode role token: links (else `--uva-brand-blue`).",
29856
- "name": "--uva-color-link"
30718
+ "description": "Dark-mode role token: row dividers (else #dadada).",
30719
+ "name": "--uva-color-border"
29857
30720
  },
29858
30721
  {
29859
- "description": "Dark-mode role token: attribution background and the highlight ring's gap (else #fff).",
29860
- "name": "--uva-color-surface"
30722
+ "description": "Dark-mode role token: the buttons' text and the Copy citation button's border (else `--uva-brand-blue`).",
30723
+ "name": "--uva-color-link"
29861
30724
  },
29862
30725
  {
29863
- "description": "Dark-mode role token: zoom buttons, tooltip and list entries (else #fff).",
30726
+ "description": "Dark-mode role token: the button's background (else #fff).",
29864
30727
  "name": "--uva-color-surface-raised"
29865
30728
  },
29866
- {
29867
- "description": "Dark-mode role token: hovered zoom button (else #dadada).",
29868
- "name": "--uva-color-surface-hover"
29869
- },
29870
- {
29871
- "description": "Dark-mode role token: the map before tiles load, and count badges (else #e5e7eb).",
29872
- "name": "--uva-color-track"
29873
- },
29874
- {
29875
- "description": "Dark-mode role token: borders (else #808080).",
29876
- "name": "--uva-color-control-border"
29877
- },
29878
30729
  {
29879
30730
  "description": "Dark-mode role token: focus ring (else `--uva-brand-orange`).",
29880
30731
  "name": "--uva-color-focus"
29881
- },
29882
- {
29883
- "description": "Dark-mode role token: control and tooltip shadow.",
29884
- "name": "--uva-color-shadow"
29885
- }
29886
- ],
29887
- "cssParts": [
29888
- {
29889
- "description": "The map region (the Leaflet container).",
29890
- "name": "map"
29891
- },
29892
- {
29893
- "description": "The line of key instructions above the map.",
29894
- "name": "instructions"
29895
- },
29896
- {
29897
- "description": "The list of places.",
29898
- "name": "list"
29899
- },
29900
- {
29901
- "description": "Each list entry.",
29902
- "name": "place"
29903
- }
29904
- ],
29905
- "slots": [
29906
- {
29907
- "description": "A `<ul>` or `<ol>` of places: each `<li>` holds an `<a href>` (or the `<li>` itself) with `data-lat`, `data-lng` and optionally `data-count`, `data-id` and `data-description`. Used when `items` is empty; without JavaScript it is the list.",
29908
- "name": ""
29909
30732
  }
29910
30733
  ],
29911
30734
  "members": [
29912
30735
  {
29913
30736
  "kind": "field",
29914
- "name": "items",
30737
+ "name": "creator",
29915
30738
  "type": {
29916
- "text": "MapItem[]"
30739
+ "text": "string | undefined"
29917
30740
  },
29918
- "default": "[]",
29919
- "description": "The places. When non-empty, wins over the child list. Set a new array to update.",
29920
- "attribute": "items"
30741
+ "description": "The creator (author, photographer…), shown first.",
30742
+ "attribute": "creator"
29921
30743
  },
29922
30744
  {
29923
30745
  "kind": "field",
29924
- "name": "label",
30746
+ "name": "organization",
29925
30747
  "type": {
29926
- "text": "string"
30748
+ "text": "string | undefined"
29927
30749
  },
29928
- "default": "''",
29929
- "description": "The map's name (required): the region's label, the list's label and the analytics name.",
29930
- "attribute": "label"
30750
+ "description": "The organization holding or crediting the item, shown after the creator.",
30751
+ "attribute": "organization"
29931
30752
  },
29932
30753
  {
29933
30754
  "kind": "field",
29934
- "name": "countLabel",
30755
+ "name": "rights",
29935
30756
  "type": {
29936
- "text": "string"
30757
+ "text": "string | undefined"
29937
30758
  },
29938
- "default": "'items'",
29939
- "description": "The noun after each count, plural (\"photos\"); a count of one drops a trailing s.",
29940
- "attribute": "count-label"
30759
+ "description": "The rights statement: a rightsstatements.org or Creative Commons URL (shown as its short\nname, linked), another http(s) URL (shown as `rights-label`, or \"Rights statement\"), or\nplain text.",
30760
+ "attribute": "rights"
29941
30761
  },
29942
30762
  {
29943
30763
  "kind": "field",
29944
- "name": "placeLabel",
30764
+ "name": "rightsLabel",
29945
30765
  "type": {
29946
- "text": "string"
30766
+ "text": "string | undefined"
29947
30767
  },
29948
- "default": "'places'",
29949
- "description": "The noun for places in a group's name, plural: \"The Rotunda and 2 more places\" (one\ndrops a trailing s: \"and 1 more place\"). For example \"rooms\".",
29950
- "attribute": "place-label"
29951
- },
29952
- {
29953
- "kind": "field",
29954
- "name": "tileUrl",
29955
- "default": "'https://tile.openstreetmap.org/{z}/{x}/{y}.png'",
29956
- "description": "The tile URL template (`{z}/{x}/{y}`, optionally `{s}` and `{r}`).",
29957
- "attribute": "tile-url",
29958
- "type": {
29959
- "text": "string"
29960
- }
30768
+ "description": "The link text for a `rights` URL, instead of its short name.",
30769
+ "attribute": "rights-label"
29961
30770
  },
29962
30771
  {
29963
30772
  "kind": "field",
29964
- "name": "darkTileUrl",
30773
+ "name": "rightsInfo",
29965
30774
  "type": {
29966
- "text": "string"
30775
+ "text": "string | undefined"
29967
30776
  },
29968
- "default": "''",
29969
- "description": "Tiles for the page's dark mode. Without it, dark mode filters the light tiles instead.",
29970
- "attribute": "dark-tile-url"
29971
- },
29972
- {
29973
- "kind": "field",
29974
- "name": "attribution",
29975
- "default": "'&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors'",
29976
- "description": "The tiles' attribution, as HTML. Required by most tile sources; always shown.",
29977
- "attribute": "attribution",
29978
- "type": {
29979
- "text": "string"
29980
- }
30777
+ "description": "A \"More about rights and permissions\" link under the statement, such as\n`https://www.library.virginia.edu/policies/use-of-materials`.",
30778
+ "attribute": "rights-info"
29981
30779
  },
29982
30780
  {
29983
30781
  "kind": "field",
29984
- "name": "center",
30782
+ "name": "citation",
29985
30783
  "type": {
29986
- "text": "string"
30784
+ "text": "string | undefined"
29987
30785
  },
29988
- "default": "''",
29989
- "description": "Where the map opens, `\"lat,lng\"`. Without it the map fits every place.",
29990
- "attribute": "center"
30786
+ "description": "\"How to cite\": the citation, as written. Wins over `citation-title`.",
30787
+ "attribute": "citation"
29991
30788
  },
29992
30789
  {
29993
30790
  "kind": "field",
29994
- "name": "zoom",
30791
+ "name": "citationTitle",
29995
30792
  "type": {
29996
- "text": "number | undefined"
30793
+ "text": "string | undefined"
29997
30794
  },
29998
- "description": "The opening zoom level (with `center`, or centred on the places).",
29999
- "attribute": "zoom"
30795
+ "description": "A title or collection name for the Special Collections citation: \"<title>, Albert and\nShirley Small Special Collections Library, University of Virginia\".",
30796
+ "attribute": "citation-title"
30000
30797
  },
30001
30798
  {
30002
30799
  "kind": "field",
30003
- "name": "leaflet",
30800
+ "name": "items",
30004
30801
  "type": {
30005
- "text": "unknown | undefined"
30802
+ "text": "MetadataItem[] | undefined"
30006
30803
  },
30007
- "description": "The Leaflet module (`import * as L from 'leaflet'; map.leaflet = L`). Without it\n`window.L` is used (leaflet.js from a script tag)."
30804
+ "description": "The rows as data, for apps that build them in JavaScript: `{ label, value }`, a value\nbeing text, a link `{ label, href, size?, download? }` or an array of them (a list).\nWins over the children while set; `undefined` goes back to them."
30008
30805
  },
30009
30806
  {
30010
30807
  "kind": "field",
30011
- "name": "sourceItems",
30808
+ "name": "listLimit",
30012
30809
  "type": {
30013
- "text": "MapItem[]"
30810
+ "text": "number | undefined"
30014
30811
  },
30015
- "privacy": "private",
30016
- "default": "[]"
30812
+ "description": "Shorten every list value of more than this many items to its first ones and a “Show all\nN” button. Zero or empty shows every item. A row's `data-limit` wins.",
30813
+ "attribute": "list-limit"
30017
30814
  },
30018
30815
  {
30019
30816
  "kind": "field",
30020
- "name": "hasLeaflet",
30817
+ "name": "childRows",
30021
30818
  "type": {
30022
- "text": "boolean"
30819
+ "text": "Row[]"
30023
30820
  },
30024
30821
  "privacy": "private",
30025
- "default": "false"
30822
+ "default": "[]"
30026
30823
  },
30027
30824
  {
30028
30825
  "kind": "field",
30029
- "name": "active",
30030
- "type": {
30031
- "text": "string"
30032
- },
30826
+ "name": "open",
30033
30827
  "privacy": "private",
30034
- "default": "''",
30035
- "description": "The highlighted target: \"3\" a place, \"g:1,3\" a group, \"\" none."
30828
+ "default": "new Set<string>()",
30829
+ "description": "The list values shown in full (after Show all), by `row-value` place."
30036
30830
  },
30037
30831
  {
30038
30832
  "kind": "field",
30039
- "name": "dark",
30040
- "type": {
30041
- "text": "boolean"
30042
- },
30833
+ "name": "hid",
30043
30834
  "privacy": "private",
30044
- "default": "false"
30835
+ "default": "new WeakSet<Element>()",
30836
+ "description": "The items this element hid, so that only those are shown again."
30045
30837
  },
30046
30838
  {
30047
30839
  "kind": "field",
30048
30840
  "name": "uid",
30049
30841
  "privacy": "private",
30050
30842
  "readonly": true,
30051
- "default": "`uvalib-map-${++instanceCounter}`"
30052
- },
30053
- {
30054
- "kind": "field",
30055
- "name": "sourceKey",
30056
- "type": {
30057
- "text": "string"
30058
- },
30059
- "privacy": "private",
30060
- "default": "'[]'"
30061
- },
30062
- {
30063
- "kind": "field",
30064
- "name": "L",
30065
- "type": {
30066
- "text": "LeafletNS | undefined"
30067
- },
30068
- "privacy": "private"
30069
- },
30070
- {
30071
- "kind": "field",
30072
- "name": "map",
30073
- "type": {
30074
- "text": "Leaflet.Map | undefined"
30075
- },
30076
- "privacy": "private"
30077
- },
30078
- {
30079
- "kind": "field",
30080
- "name": "tiles",
30081
- "type": {
30082
- "text": "Leaflet.TileLayer | undefined"
30083
- },
30084
- "privacy": "private"
30085
- },
30086
- {
30087
- "kind": "field",
30088
- "name": "tooltip",
30089
- "type": {
30090
- "text": "Leaflet.Tooltip | undefined"
30091
- },
30092
- "privacy": "private"
30093
- },
30094
- {
30095
- "kind": "field",
30096
- "name": "markers",
30097
- "type": {
30098
- "text": "(Leaflet.Marker | undefined)[]"
30099
- },
30100
- "privacy": "private",
30101
- "default": "[]"
30102
- },
30103
- {
30104
- "kind": "field",
30105
- "name": "dots",
30106
- "type": {
30107
- "text": "number[]"
30108
- },
30109
- "privacy": "private",
30110
- "default": "[]"
30111
- },
30112
- {
30113
- "kind": "field",
30114
- "name": "maxCount",
30115
- "type": {
30116
- "text": "number"
30117
- },
30118
- "privacy": "private",
30119
- "default": "0"
30120
- },
30121
- {
30122
- "kind": "field",
30123
- "name": "groups",
30124
- "privacy": "private",
30125
- "default": "new Map<string, MapGroup>()",
30126
- "description": "The groups drawn at the current zoom, by key."
30127
- },
30128
- {
30129
- "kind": "field",
30130
- "name": "groupOf",
30131
- "privacy": "private",
30132
- "default": "new Map<number, string>()",
30133
- "description": "A grouped place's index → its group's key."
30843
+ "default": "`uvalib-metadata-${++instances}`"
30134
30844
  },
30135
30845
  {
30136
30846
  "kind": "field",
30137
- "name": "ring",
30847
+ "name": "status",
30138
30848
  "type": {
30139
30849
  "text": "string"
30140
30850
  },
30141
30851
  "privacy": "private",
30142
30852
  "default": "''",
30143
- "description": "The key of the group whose places are spread in a ring, or \"\"."
30144
- },
30145
- {
30146
- "kind": "field",
30147
- "name": "order",
30148
- "type": {
30149
- "text": "HTMLElement[]"
30150
- },
30151
- "privacy": "private",
30152
- "default": "[]",
30153
- "description": "The visible markers' controls, in keyboard (and document) order."
30154
- },
30155
- {
30156
- "kind": "field",
30157
- "name": "activeIcon",
30158
- "type": {
30159
- "text": "{ marker: Leaflet.Marker; z: number } | undefined"
30160
- },
30161
- "privacy": "private"
30162
- },
30163
- {
30164
- "kind": "field",
30165
- "name": "drawn",
30166
- "type": {
30167
- "text": "MapItem[]"
30168
- },
30169
- "privacy": "private",
30170
- "default": "[]"
30171
- },
30172
- {
30173
- "kind": "field",
30174
- "name": "reduceMotion",
30175
- "type": {
30176
- "text": "boolean"
30177
- },
30178
- "privacy": "private",
30179
- "default": "false"
30180
- },
30181
- {
30182
- "kind": "field",
30183
- "name": "userMoved",
30184
- "type": {
30185
- "text": "boolean"
30186
- },
30187
- "privacy": "private",
30188
- "default": "false",
30189
- "description": "The visitor moved the map: a resize no longer refits it."
30190
- },
30191
- {
30192
- "kind": "field",
30193
- "name": "fitting",
30194
- "type": {
30195
- "text": "boolean"
30196
- },
30197
- "privacy": "private",
30198
- "default": "false"
30199
- },
30200
- {
30201
- "kind": "field",
30202
- "name": "hoverKey",
30203
- "type": {
30204
- "text": "string"
30205
- },
30206
- "privacy": "private",
30207
- "default": "''"
30853
+ "description": "The Copy citation button's result, announced politely."
30208
30854
  },
30209
30855
  {
30210
30856
  "kind": "field",
30211
- "name": "focusKey",
30857
+ "name": "sourceKey",
30212
30858
  "type": {
30213
30859
  "text": "string"
30214
30860
  },
@@ -30216,724 +30862,324 @@
30216
30862
  "default": "''"
30217
30863
  },
30218
30864
  {
30219
- "kind": "field",
30220
- "name": "dismissed",
30221
- "type": {
30222
- "text": "boolean"
30223
- },
30224
- "privacy": "private",
30225
- "default": "false"
30226
- },
30227
- {
30228
- "kind": "field",
30229
- "name": "warnedLabel",
30230
- "type": {
30231
- "text": "boolean"
30232
- },
30233
- "privacy": "private",
30234
- "default": "false"
30235
- },
30236
- {
30237
- "kind": "field",
30238
- "name": "warnedLeaflet",
30239
- "type": {
30240
- "text": "boolean"
30241
- },
30242
- "privacy": "private",
30243
- "default": "false"
30244
- },
30245
- {
30246
- "kind": "field",
30247
- "name": "zoomTimer",
30248
- "type": {
30249
- "text": "ReturnType<typeof setTimeout> | undefined"
30250
- },
30251
- "privacy": "private"
30252
- },
30253
- {
30254
- "kind": "field",
30255
- "name": "ro",
30256
- "type": {
30257
- "text": "ResizeObserver | undefined"
30258
- },
30259
- "privacy": "private"
30260
- },
30261
- {
30262
- "kind": "field",
30263
- "name": "schemeObserver",
30264
- "type": {
30265
- "text": "MutationObserver | undefined"
30266
- },
30267
- "privacy": "private"
30268
- },
30269
- {
30270
- "kind": "field",
30271
- "name": "darkQuery",
30272
- "type": {
30273
- "text": "MediaQueryList | undefined"
30274
- },
30275
- "privacy": "private"
30276
- },
30277
- {
30278
- "kind": "field",
30279
- "name": "onPageLoad",
30280
- "privacy": "private"
30281
- },
30282
- {
30283
- "kind": "field",
30284
- "name": "readScheme",
30285
- "privacy": "private"
30286
- },
30287
- {
30288
- "kind": "field",
30289
- "name": "places",
30290
- "type": {
30291
- "text": "MapItem[]"
30292
- },
30293
- "privacy": "private",
30294
- "description": "The places shown: `items`, else the child list.",
30295
- "readonly": true
30296
- },
30297
- {
30298
- "kind": "method",
30299
- "name": "readList",
30300
- "privacy": "private",
30301
- "return": {
30302
- "type": {
30303
- "text": "void"
30304
- }
30305
- },
30306
- "parameters": [
30307
- {
30308
- "name": "nodes",
30309
- "type": {
30310
- "text": "Node[]"
30311
- }
30312
- }
30313
- ],
30314
- "description": "The child list's places, compared with the last read so only a real change re-renders."
30315
- },
30316
- {
30317
- "kind": "method",
30318
- "name": "findLeaflet",
30319
- "privacy": "private",
30320
- "return": {
30321
- "type": {
30322
- "text": "LeafletNS | undefined"
30323
- }
30324
- },
30325
- "description": "The page's Leaflet: the `leaflet` property (a module namespace or its default), or `window.L`."
30326
- },
30327
- {
30328
- "kind": "field",
30329
- "name": "container",
30330
- "type": {
30331
- "text": "HTMLElement | null"
30332
- },
30333
- "privacy": "private",
30334
- "readonly": true
30335
- },
30336
- {
30337
- "kind": "method",
30338
- "name": "setUpMap",
30339
- "privacy": "private",
30340
- "return": {
30341
- "type": {
30342
- "text": "boolean"
30343
- }
30344
- },
30345
- "description": "Create the Leaflet map once its container is rendered. True when it was created now."
30346
- },
30347
- {
30348
- "kind": "method",
30349
- "name": "teardown",
30350
- "privacy": "private",
30351
- "return": {
30352
- "type": {
30353
- "text": "void"
30354
- }
30355
- }
30356
- },
30357
- {
30358
- "kind": "method",
30359
- "name": "drawTiles",
30360
- "privacy": "private",
30361
- "return": {
30362
- "type": {
30363
- "text": "void"
30364
- }
30365
- },
30366
- "description": "The tile layer for the current scheme: dark tiles when given, else the filtered light ones."
30367
- },
30368
- {
30369
- "kind": "method",
30370
- "name": "dotSize",
30371
- "privacy": "private",
30372
- "return": {
30373
- "type": {
30374
- "text": "number"
30375
- }
30376
- },
30377
- "parameters": [
30378
- {
30379
- "name": "count",
30380
- "type": {
30381
- "text": "number | undefined"
30382
- }
30383
- },
30384
- {
30385
- "name": "max",
30386
- "type": {
30387
- "text": "number"
30388
- }
30389
- }
30390
- ],
30391
- "description": "Marker dot diameter: the square root of the count, between MIN_DOT and MAX_DOT."
30392
- },
30393
- {
30394
- "kind": "method",
30395
- "name": "placeName",
30396
- "privacy": "private",
30397
- "return": {
30398
- "type": {
30399
- "text": "string"
30400
- }
30401
- },
30402
- "parameters": [
30403
- {
30404
- "name": "p",
30405
- "type": {
30406
- "text": "MapItem"
30407
- }
30408
- }
30409
- ],
30410
- "description": "\"The Rotunda, 2,702 photos\", or the name alone without a count."
30411
- },
30412
- {
30413
- "kind": "method",
30414
- "name": "countText",
30415
- "privacy": "private",
30416
- "return": {
30417
- "type": {
30418
- "text": "string"
30419
- }
30420
- },
30421
- "parameters": [
30422
- {
30423
- "name": "n",
30424
- "type": {
30425
- "text": "number"
30426
- }
30427
- }
30428
- ]
30429
- },
30430
- {
30431
- "kind": "method",
30432
- "name": "href",
30433
- "privacy": "private",
30434
- "return": {
30435
- "type": {
30436
- "text": "string | null"
30437
- }
30438
- },
30439
- "parameters": [
30440
- {
30441
- "name": "p",
30442
- "type": {
30443
- "text": "MapItem"
30444
- }
30445
- }
30446
- ]
30447
- },
30448
- {
30449
- "kind": "method",
30450
- "name": "groupDot",
30451
- "privacy": "private",
30452
- "return": {
30453
- "type": {
30454
- "text": "number"
30455
- }
30456
- },
30457
- "parameters": [
30458
- {
30459
- "name": "sum",
30460
- "type": {
30461
- "text": "number"
30462
- }
30463
- }
30464
- ],
30465
- "description": "A group's dot: by the square root of its summed count, between MIN_GROUP_DOT and MAX_GROUP_DOT."
30466
- },
30467
- {
30468
- "kind": "method",
30469
- "name": "groupName",
30470
- "privacy": "private",
30471
- "return": {
30472
- "type": {
30473
- "text": "string"
30474
- }
30475
- },
30476
- "parameters": [
30477
- {
30478
- "name": "members",
30479
- "type": {
30480
- "text": "number[]"
30481
- }
30482
- }
30483
- ],
30484
- "description": "\"The Rotunda and 2 more places\": the largest place's name and how many more."
30485
- },
30486
- {
30487
- "kind": "method",
30488
- "name": "hitOf",
30489
- "privacy": "private",
30490
- "return": {
30491
- "type": {
30492
- "text": "number"
30493
- }
30494
- },
30495
- "parameters": [
30496
- {
30497
- "name": "members",
30498
- "type": {
30499
- "text": "number[]"
30500
- }
30501
- }
30502
- ],
30503
- "description": "A marker's hit area (px): its dot, at least 44px; a group's dot for several places."
30504
- },
30505
- {
30506
- "kind": "method",
30507
- "name": "makeMarker",
30508
- "privacy": "private",
30509
- "return": {
30510
- "type": {
30511
- "text": "Leaflet.Marker"
30512
- }
30513
- },
30514
- "parameters": [
30515
- {
30516
- "name": "ll",
30517
- "type": {
30518
- "text": "Leaflet.LatLngExpression"
30519
- }
30520
- },
30521
- {
30522
- "name": "ctl",
30523
- "type": {
30524
- "text": "HTMLElement"
30525
- }
30526
- },
30527
- {
30528
- "name": "d",
30529
- "type": {
30530
- "text": "number"
30531
- }
30532
- },
30533
- {
30534
- "name": "className",
30535
- "type": {
30536
- "text": "string"
30537
- }
30538
- }
30539
- ]
30540
- },
30541
- {
30542
- "kind": "method",
30543
- "name": "makeControl",
30544
- "privacy": "private",
30545
- "return": {
30546
- "type": {
30547
- "text": "HTMLElement"
30548
- }
30549
- },
30550
- "parameters": [
30551
- {
30552
- "name": "tag",
30553
- "type": {
30554
- "text": "'a' | 'button'"
30555
- }
30556
- },
30557
- {
30558
- "name": "d",
30559
- "type": {
30560
- "text": "number"
30561
- }
30562
- },
30563
- {
30564
- "name": "label",
30565
- "type": {
30566
- "text": "string"
30567
- }
30568
- },
30569
- {
30570
- "name": "text",
30571
- "default": "''"
30572
- }
30573
- ],
30574
- "description": "The control inside a marker: its dot (with `text`, for a group) and its hidden name."
30575
- },
30576
- {
30577
- "kind": "method",
30578
- "name": "drawMarkers",
30579
- "privacy": "private",
30580
- "return": {
30581
- "type": {
30582
- "text": "void"
30583
- }
30584
- },
30585
- "description": "One marker per place, not yet on the map: `regroup()` adds the ones not in a group."
30586
- },
30587
- {
30588
- "kind": "method",
30589
- "name": "cluster",
30590
- "privacy": "private",
30591
- "return": {
30592
- "type": {
30593
- "text": "number[][]"
30594
- }
30595
- },
30596
- "parameters": [
30597
- {
30598
- "name": "idx",
30599
- "type": {
30600
- "text": "number[]"
30601
- }
30602
- },
30603
- {
30604
- "name": "zoom",
30605
- "type": {
30606
- "text": "number"
30607
- }
30608
- }
30609
- ],
30610
- "description": "Greedy screen-space grouping at `zoom`: largest count first, each place takes every\nlater one whose hit area (plus GROUP_GAP) would overlap its own; then groups whose larger\nmarkers now overlap merge, until none do. Each group's largest place comes first."
30611
- },
30612
- {
30865
+ "kind": "field",
30866
+ "name": "warned",
30867
+ "privacy": "private",
30868
+ "default": "new Set<string>()"
30869
+ },
30870
+ {
30871
+ "kind": "field",
30872
+ "name": "timer",
30873
+ "type": {
30874
+ "text": "ReturnType<typeof setTimeout> | undefined"
30875
+ },
30876
+ "privacy": "private"
30877
+ },
30878
+ {
30613
30879
  "kind": "method",
30614
- "name": "makeGroup",
30880
+ "name": "warnOnce",
30615
30881
  "privacy": "private",
30616
30882
  "return": {
30617
30883
  "type": {
30618
- "text": "MapGroup"
30884
+ "text": "void"
30619
30885
  }
30620
30886
  },
30621
30887
  "parameters": [
30622
30888
  {
30623
- "name": "key",
30889
+ "name": "kind",
30624
30890
  "type": {
30625
30891
  "text": "string"
30626
30892
  }
30627
30893
  },
30628
30894
  {
30629
- "name": "members",
30895
+ "name": "message",
30630
30896
  "type": {
30631
- "text": "number[]"
30897
+ "text": "string"
30632
30898
  }
30633
30899
  }
30634
30900
  ]
30635
30901
  },
30636
30902
  {
30637
30903
  "kind": "method",
30638
- "name": "focusedControl",
30639
- "privacy": "private",
30640
- "return": {
30641
- "type": {
30642
- "text": "HTMLElement | null"
30643
- }
30644
- },
30645
- "description": "The marker control that has focus, if any."
30646
- },
30647
- {
30648
- "kind": "method",
30649
- "name": "regroup",
30904
+ "name": "read",
30650
30905
  "privacy": "private",
30651
30906
  "return": {
30652
30907
  "type": {
30653
30908
  "text": "void"
30654
30909
  }
30655
30910
  },
30656
- "description": "Group the markers whose hit areas would overlap at the current zoom, show one marker\nper group (and the ring's places, when one is open), keep the markers' document order\nthe keyboard order, and give focus back if its marker went."
30911
+ "parameters": [
30912
+ {
30913
+ "name": "nodes",
30914
+ "type": {
30915
+ "text": "Node[]"
30916
+ }
30917
+ }
30918
+ ],
30919
+ "description": "Read the rows from the first `<dl>` among the children."
30657
30920
  },
30658
30921
  {
30659
30922
  "kind": "method",
30660
- "name": "spot",
30923
+ "name": "parse",
30661
30924
  "privacy": "private",
30662
30925
  "return": {
30663
30926
  "type": {
30664
- "text": "{ marker: Leaflet.Marker; ctl: HTMLElement }"
30927
+ "text": "Row[]"
30665
30928
  }
30666
30929
  },
30667
30930
  "parameters": [
30668
30931
  {
30669
- "name": "i",
30932
+ "name": "dl",
30670
30933
  "type": {
30671
- "text": "number"
30934
+ "text": "Element"
30672
30935
  }
30673
30936
  }
30674
30937
  ]
30675
30938
  },
30676
30939
  {
30677
30940
  "kind": "method",
30678
- "name": "splitZoom",
30941
+ "name": "copy",
30679
30942
  "privacy": "private",
30680
30943
  "return": {
30681
30944
  "type": {
30682
- "text": "number | undefined"
30945
+ "text": "Node"
30683
30946
  }
30684
30947
  },
30685
30948
  "parameters": [
30686
30949
  {
30687
- "name": "members",
30950
+ "name": "n",
30688
30951
  "type": {
30689
- "text": "number[]"
30952
+ "text": "Node"
30690
30953
  }
30691
30954
  }
30692
30955
  ],
30693
- "description": "The first zoom (in zoomSnap steps, up to the maximum) at which a group's places part."
30956
+ "description": "A copy of an author's node: links with an unsafe href (javascript:, data:, …) replaced\nby their content, with one warning; sizes added to downloads once (not when the link's\ntext already ends with it), `data-size` dropped; ids dropped in light DOM."
30694
30957
  },
30695
30958
  {
30696
30959
  "kind": "method",
30697
- "name": "expand",
30960
+ "name": "sizeNodes",
30698
30961
  "privacy": "private",
30699
30962
  "return": {
30700
30963
  "type": {
30701
- "text": "void"
30964
+ "text": "DocumentFragment"
30702
30965
  }
30703
30966
  },
30704
30967
  "parameters": [
30705
30968
  {
30706
- "name": "key",
30969
+ "name": "size",
30707
30970
  "type": {
30708
30971
  "text": "string"
30709
30972
  }
30710
30973
  }
30711
30974
  ],
30712
- "description": "A group chosen: zoom in until its places part, or (when they cannot) spread them in a ring."
30975
+ "description": "\" · 184 KB\", read as \", 184 KB\"."
30713
30976
  },
30714
30977
  {
30715
30978
  "kind": "method",
30716
- "name": "spread",
30979
+ "name": "renderValue",
30717
30980
  "privacy": "private",
30718
30981
  "return": {
30719
30982
  "type": {
30720
- "text": "void"
30983
+ "text": "TemplateResult | string"
30721
30984
  }
30722
30985
  },
30723
30986
  "parameters": [
30724
30987
  {
30725
- "name": "g",
30988
+ "name": "v",
30726
30989
  "type": {
30727
- "text": "MapGroup"
30990
+ "text": "MetadataValue"
30728
30991
  }
30729
30992
  }
30730
- ],
30731
- "description": "Spread a group's places in a ring around it, far enough apart that each 44px target\nkeeps 24px from its neighbours and from the group's own marker; focus the first."
30993
+ ]
30732
30994
  },
30733
30995
  {
30734
30996
  "kind": "method",
30735
- "name": "unring",
30997
+ "name": "fromItems",
30736
30998
  "privacy": "private",
30737
30999
  "return": {
30738
31000
  "type": {
30739
- "text": "void"
31001
+ "text": "Row[]"
30740
31002
  }
30741
31003
  },
30742
- "description": "Put a ring's places back on their own point (the next regroup hides them)."
31004
+ "parameters": [
31005
+ {
31006
+ "name": "items",
31007
+ "type": {
31008
+ "text": "readonly MetadataItem[]"
31009
+ }
31010
+ }
31011
+ ]
30743
31012
  },
30744
31013
  {
30745
- "kind": "method",
30746
- "name": "fit",
30747
- "privacy": "private",
30748
- "return": {
30749
- "type": {
30750
- "text": "void"
30751
- }
31014
+ "kind": "field",
31015
+ "name": "citationText",
31016
+ "type": {
31017
+ "text": "string"
30752
31018
  },
30753
- "description": "Open on `center`/`zoom`, else on the places' bounds, else on Grounds."
31019
+ "privacy": "private",
31020
+ "description": "The citation text: `citation`, else the Special Collections one for `citation-title`.",
31021
+ "readonly": true
30754
31022
  },
30755
31023
  {
30756
31024
  "kind": "method",
30757
- "name": "underControls",
31025
+ "name": "renderRights",
30758
31026
  "privacy": "private",
30759
31027
  "return": {
30760
31028
  "type": {
30761
- "text": "boolean"
30762
- }
30763
- },
30764
- "parameters": [
30765
- {
30766
- "name": "pts",
30767
- "type": {
30768
- "text": "Leaflet.LatLng[]"
30769
- }
31029
+ "text": "TemplateResult | typeof nothing"
30770
31030
  }
30771
- ],
30772
- "description": "Whether any of `pts` is under (or within 12px of) the zoom buttons or the attribution."
31031
+ }
30773
31032
  },
30774
31033
  {
30775
31034
  "kind": "method",
30776
- "name": "markerFor",
31035
+ "name": "renderCitation",
30777
31036
  "privacy": "private",
30778
31037
  "return": {
30779
31038
  "type": {
30780
- "text": "{ marker: Leaflet.Marker; group?: MapGroup } | undefined"
30781
- }
30782
- },
30783
- "parameters": [
30784
- {
30785
- "name": "key",
30786
- "type": {
30787
- "text": "string"
30788
- }
31039
+ "text": "TemplateResult | typeof nothing"
30789
31040
  }
30790
- ],
30791
- "description": "The marker on the map for a target (\"3\" a place, \"g:1,3\" a group): a place's own, or its group's."
31041
+ }
30792
31042
  },
30793
31043
  {
30794
31044
  "kind": "method",
30795
- "name": "hover",
31045
+ "name": "copyCitation",
30796
31046
  "privacy": "private",
30797
31047
  "return": {
30798
31048
  "type": {
30799
- "text": "void"
31049
+ "text": "Promise<void>"
30800
31050
  }
30801
31051
  },
30802
- "parameters": [
30803
- {
30804
- "name": "key",
30805
- "type": {
30806
- "text": "string"
30807
- }
30808
- }
30809
- ]
31052
+ "description": "Copy the citation; on failure select it, so the keyboard can copy it."
30810
31053
  },
30811
31054
  {
30812
- "kind": "method",
30813
- "name": "syncActive",
31055
+ "kind": "field",
31056
+ "name": "rows",
31057
+ "type": {
31058
+ "text": "Row[]"
31059
+ },
30814
31060
  "privacy": "private",
30815
- "return": {
30816
- "type": {
30817
- "text": "void"
30818
- }
31061
+ "readonly": true
31062
+ },
31063
+ {
31064
+ "kind": "field",
31065
+ "name": "clonedFor",
31066
+ "type": {
31067
+ "text": "unknown | undefined"
30819
31068
  },
30820
- "description": "The highlighted target: the one hovered, else the one focused (none after Escape)."
31069
+ "privacy": "private",
31070
+ "description": "The rows' source the clones below were made for."
30821
31071
  },
30822
31072
  {
30823
- "kind": "method",
30824
- "name": "showActive",
31073
+ "kind": "field",
31074
+ "name": "clones",
30825
31075
  "privacy": "private",
30826
- "return": {
30827
- "type": {
30828
- "text": "void"
30829
- }
30830
- },
30831
- "description": "Highlight the active target's marker (a place inside a group highlights the group) and\nshow its tooltip: the name and count, and for a place in a group, how many share it."
31076
+ "default": "new WeakMap<Node[], Node[]>()"
30832
31077
  },
30833
31078
  {
30834
31079
  "kind": "method",
30835
- "name": "reveal",
31080
+ "name": "nodesOf",
30836
31081
  "privacy": "private",
30837
31082
  "return": {
30838
31083
  "type": {
30839
- "text": "void"
31084
+ "text": "Node[]"
30840
31085
  }
30841
31086
  },
30842
31087
  "parameters": [
30843
31088
  {
30844
- "name": "key",
31089
+ "name": "source",
30845
31090
  "type": {
30846
- "text": "string"
31091
+ "text": "Node[]"
30847
31092
  }
30848
31093
  }
30849
31094
  ],
30850
- "description": "Bring a target's marker into view (on focus), without animation under reduced motion."
31095
+ "description": "A value's nodes: fresh clones of its prepared source whenever the rows shown change\n(new markup, or back from `items`), reused by unrelated updates (the citation status) so\nthat focus in a value is not lost."
31096
+ },
31097
+ {
31098
+ "kind": "field",
31099
+ "name": "list",
31100
+ "type": {
31101
+ "text": "HTMLElement | null"
31102
+ },
31103
+ "privacy": "private",
31104
+ "description": "The rendered `<dl>` (in light DOM, not the author's source).",
31105
+ "readonly": true
30851
31106
  },
30852
31107
  {
30853
31108
  "kind": "method",
30854
- "name": "keyOf",
31109
+ "name": "applyLimits",
30855
31110
  "privacy": "private",
30856
31111
  "return": {
30857
31112
  "type": {
30858
- "text": "string"
31113
+ "text": "void"
30859
31114
  }
30860
31115
  },
30861
- "parameters": [
30862
- {
30863
- "name": "ctl",
30864
- "type": {
30865
- "text": "HTMLElement"
30866
- }
30867
- }
30868
- ],
30869
- "description": "\"3\" for a place's marker, \"g:1,3\" for a group's."
31116
+ "description": "Hide the items past each shortened list's limit (until Show all), and show again the\nones this element hid when the list is open or no longer shortened."
30870
31117
  },
30871
31118
  {
30872
31119
  "kind": "method",
30873
- "name": "targetOf",
31120
+ "name": "limitFor",
30874
31121
  "privacy": "private",
30875
31122
  "return": {
30876
31123
  "type": {
30877
- "text": "string"
31124
+ "text": "number"
30878
31125
  }
30879
31126
  },
30880
31127
  "parameters": [
30881
31128
  {
30882
- "name": "e",
31129
+ "name": "v",
30883
31130
  "type": {
30884
- "text": "Event"
31131
+ "text": "Value"
30885
31132
  }
30886
31133
  }
30887
- ]
31134
+ ],
31135
+ "description": "A value's limit: its own, else `list-limit`; 0 for none."
30888
31136
  },
30889
31137
  {
30890
31138
  "kind": "field",
30891
- "name": "onMapClick",
30892
- "privacy": "private"
31139
+ "name": "locale",
31140
+ "type": {
31141
+ "text": "string"
31142
+ },
31143
+ "privacy": "private",
31144
+ "readonly": true
30893
31145
  },
30894
31146
  {
30895
31147
  "kind": "method",
30896
- "name": "queueZoomReport",
31148
+ "name": "noun",
30897
31149
  "privacy": "private",
30898
31150
  "return": {
30899
31151
  "type": {
30900
- "text": "void"
31152
+ "text": "TemplateResult | string"
30901
31153
  }
30902
31154
  },
30903
- "description": "Report the zoom level 1 s after the last zoom-button press."
30904
- },
30905
- {
30906
- "kind": "field",
30907
- "name": "onMapKeydown",
30908
- "privacy": "private"
30909
- },
30910
- {
30911
- "kind": "field",
30912
- "name": "onMapFocusIn",
30913
- "privacy": "private"
30914
- },
30915
- {
30916
- "kind": "field",
30917
- "name": "onMapFocusOut",
30918
- "privacy": "private"
30919
- },
30920
- {
30921
- "kind": "field",
30922
- "name": "onMapLeave",
30923
- "privacy": "private"
31155
+ "parameters": [
31156
+ {
31157
+ "name": "r",
31158
+ "type": {
31159
+ "text": "Row"
31160
+ }
31161
+ },
31162
+ {
31163
+ "name": "v",
31164
+ "type": {
31165
+ "text": "Value"
31166
+ }
31167
+ }
31168
+ ],
31169
+ "description": "The toggle's noun: `data-limit-label`, else the label with a lowercase first letter\n(kept as written when it starts with an acronym, “ORCID iDs”)."
30924
31170
  },
30925
31171
  {
30926
31172
  "kind": "method",
30927
- "name": "onPlaceEnter",
31173
+ "name": "formatCount",
30928
31174
  "privacy": "private",
30929
31175
  "return": {
30930
31176
  "type": {
30931
- "text": "void"
31177
+ "text": "string"
30932
31178
  }
30933
31179
  },
30934
31180
  "parameters": [
30935
31181
  {
30936
- "name": "i",
31182
+ "name": "n",
30937
31183
  "type": {
30938
31184
  "text": "number"
30939
31185
  }
@@ -30942,26 +31188,28 @@
30942
31188
  },
30943
31189
  {
30944
31190
  "kind": "method",
30945
- "name": "onPlaceLeave",
30946
- "privacy": "private",
30947
- "return": {
30948
- "type": {
30949
- "text": "void"
30950
- }
30951
- }
30952
- },
30953
- {
30954
- "kind": "method",
30955
- "name": "onPlaceFocusIn",
31191
+ "name": "toggleList",
30956
31192
  "privacy": "private",
30957
31193
  "return": {
30958
31194
  "type": {
30959
- "text": "void"
31195
+ "text": "Promise<void>"
30960
31196
  }
30961
31197
  },
30962
31198
  "parameters": [
30963
31199
  {
30964
- "name": "i",
31200
+ "name": "e",
31201
+ "type": {
31202
+ "text": "Event"
31203
+ }
31204
+ },
31205
+ {
31206
+ "name": "key",
31207
+ "type": {
31208
+ "text": "string"
31209
+ }
31210
+ },
31211
+ {
31212
+ "name": "limit",
30965
31213
  "type": {
30966
31214
  "text": "number"
30967
31215
  }
@@ -30970,28 +31218,35 @@
30970
31218
  },
30971
31219
  {
30972
31220
  "kind": "method",
30973
- "name": "onPlaceFocusOut",
31221
+ "name": "renderToggle",
30974
31222
  "privacy": "private",
30975
- "return": {
30976
- "type": {
30977
- "text": "void"
30978
- }
30979
- },
30980
31223
  "parameters": [
30981
31224
  {
30982
- "name": "e",
31225
+ "name": "r",
30983
31226
  "type": {
30984
- "text": "FocusEvent"
31227
+ "text": "Row"
31228
+ }
31229
+ },
31230
+ {
31231
+ "name": "v",
31232
+ "type": {
31233
+ "text": "Value"
31234
+ }
31235
+ },
31236
+ {
31237
+ "name": "key",
31238
+ "type": {
31239
+ "text": "string"
31240
+ }
31241
+ },
31242
+ {
31243
+ "name": "limit",
31244
+ "type": {
31245
+ "text": "number"
30985
31246
  }
30986
31247
  }
30987
31248
  ]
30988
31249
  },
30989
- {
30990
- "kind": "field",
30991
- "name": "skipToList",
30992
- "privacy": "private",
30993
- "description": "The skip link: focus the list (a fragment link cannot reach into a shadow root)."
30994
- },
30995
31250
  {
30996
31251
  "kind": "field",
30997
31252
  "name": "hostColorScheme",
@@ -31124,88 +31379,74 @@
31124
31379
  ],
31125
31380
  "events": [
31126
31381
  {
31127
- "description": "A place's marker was chosen (click, Enter or Space); never a group's. `detail` is `{ item }`. Cancelable: for a place with `href`, `preventDefault()` keeps the page from following the link. Bubbles and is composed.",
31128
- "name": "select"
31129
- },
31130
- {
31131
- "description": "For `<site-analytics>`: `['uvalib-map', 'select', '<label>', <position from 1>]` when a place's marker is chosen, `['uvalib-map', 'expand', '<label>', <places in it>]` when a group is chosen (it zooms in or opens its ring), and `['uvalib-map', 'zoom', '<label>', <zoom level>]` 1 s after the last zoom-button press. Never a place's name, coordinates or URL. Bubbles and is composed.",
31382
+ "description": "For `<site-analytics>`: the Copy citation button, `['uvalib-metadata', 'copy-citation']`, and a list's toggle, `['uvalib-metadata', 'show-all'|'show-fewer', 'row N']` (N from 1, the row's place in the list; never its label or values). Downloads are left to Matomo's own download tracking. Bubbles and is composed.",
31132
31383
  "name": "uvalib-analytics-event"
31133
31384
  }
31134
31385
  ],
31135
31386
  "attributes": [
31136
31387
  {
31137
- "name": "items",
31388
+ "name": "creator",
31138
31389
  "type": {
31139
- "text": "MapItem[]"
31390
+ "text": "string | undefined"
31140
31391
  },
31141
- "default": "[]",
31142
- "description": "The places. When non-empty, wins over the child list. Set a new array to update.",
31143
- "fieldName": "items"
31392
+ "description": "The creator (author, photographer…), shown first.",
31393
+ "fieldName": "creator"
31144
31394
  },
31145
31395
  {
31146
- "name": "label",
31396
+ "name": "organization",
31147
31397
  "type": {
31148
- "text": "string"
31398
+ "text": "string | undefined"
31149
31399
  },
31150
- "default": "''",
31151
- "description": "The map's name (required): the region's label, the list's label and the analytics name.",
31152
- "fieldName": "label"
31400
+ "description": "The organization holding or crediting the item, shown after the creator.",
31401
+ "fieldName": "organization"
31153
31402
  },
31154
31403
  {
31155
- "name": "count-label",
31404
+ "name": "rights",
31156
31405
  "type": {
31157
- "text": "string"
31406
+ "text": "string | undefined"
31158
31407
  },
31159
- "default": "'items'",
31160
- "description": "The noun after each count, plural (\"photos\"); a count of one drops a trailing s.",
31161
- "fieldName": "countLabel"
31408
+ "description": "The rights statement: a rightsstatements.org or Creative Commons URL (shown as its short\nname, linked), another http(s) URL (shown as `rights-label`, or \"Rights statement\"), or\nplain text.",
31409
+ "fieldName": "rights"
31162
31410
  },
31163
31411
  {
31164
- "name": "place-label",
31412
+ "name": "rights-label",
31165
31413
  "type": {
31166
- "text": "string"
31414
+ "text": "string | undefined"
31167
31415
  },
31168
- "default": "'places'",
31169
- "description": "The noun for places in a group's name, plural: \"The Rotunda and 2 more places\" (one\ndrops a trailing s: \"and 1 more place\"). For example \"rooms\".",
31170
- "fieldName": "placeLabel"
31171
- },
31172
- {
31173
- "name": "tile-url",
31174
- "default": "OSM_TILE_URL",
31175
- "description": "The tile URL template (`{z}/{x}/{y}`, optionally `{s}` and `{r}`).",
31176
- "fieldName": "tileUrl"
31416
+ "description": "The link text for a `rights` URL, instead of its short name.",
31417
+ "fieldName": "rightsLabel"
31177
31418
  },
31178
31419
  {
31179
- "name": "dark-tile-url",
31420
+ "name": "rights-info",
31180
31421
  "type": {
31181
- "text": "string"
31422
+ "text": "string | undefined"
31182
31423
  },
31183
- "default": "''",
31184
- "description": "Tiles for the page's dark mode. Without it, dark mode filters the light tiles instead.",
31185
- "fieldName": "darkTileUrl"
31424
+ "description": "A \"More about rights and permissions\" link under the statement, such as\n`https://www.library.virginia.edu/policies/use-of-materials`.",
31425
+ "fieldName": "rightsInfo"
31186
31426
  },
31187
31427
  {
31188
- "name": "attribution",
31189
- "default": "OSM_ATTRIBUTION",
31190
- "description": "The tiles' attribution, as HTML. Required by most tile sources; always shown.",
31191
- "fieldName": "attribution"
31428
+ "name": "citation",
31429
+ "type": {
31430
+ "text": "string | undefined"
31431
+ },
31432
+ "description": "\"How to cite\": the citation, as written. Wins over `citation-title`.",
31433
+ "fieldName": "citation"
31192
31434
  },
31193
31435
  {
31194
- "name": "center",
31436
+ "name": "citation-title",
31195
31437
  "type": {
31196
- "text": "string"
31438
+ "text": "string | undefined"
31197
31439
  },
31198
- "default": "''",
31199
- "description": "Where the map opens, `\"lat,lng\"`. Without it the map fits every place.",
31200
- "fieldName": "center"
31440
+ "description": "A title or collection name for the Special Collections citation: \"<title>, Albert and\nShirley Small Special Collections Library, University of Virginia\".",
31441
+ "fieldName": "citationTitle"
31201
31442
  },
31202
31443
  {
31203
- "name": "zoom",
31444
+ "name": "list-limit",
31204
31445
  "type": {
31205
31446
  "text": "number | undefined"
31206
31447
  },
31207
- "description": "The opening zoom level (with `center`, or centred on the places).",
31208
- "fieldName": "zoom"
31448
+ "description": "Shorten every list value of more than this many items to its first ones and a “Show all\nN” button. Zero or empty shows every item. A row's `data-limit` wins.",
31449
+ "fieldName": "listLimit"
31209
31450
  },
31210
31451
  {
31211
31452
  "name": "no-shadow-dom",
@@ -31236,48 +31477,84 @@
31236
31477
  "name": "UvalibElement",
31237
31478
  "module": "/src/base/UvalibElement.js"
31238
31479
  },
31239
- "tagName": "uvalib-map",
31480
+ "tagName": "uvalib-metadata",
31240
31481
  "customElement": true
31241
31482
  }
31242
31483
  ],
31243
31484
  "exports": [
31244
31485
  {
31245
31486
  "kind": "js",
31246
- "name": "OSM_TILE_URL",
31487
+ "name": "UvalibMetadata",
31247
31488
  "declaration": {
31248
- "name": "OSM_TILE_URL",
31249
- "module": "src/components/uvalib-map/UvalibMap.ts"
31489
+ "name": "UvalibMetadata",
31490
+ "module": "src/components/uvalib-metadata/UvalibMetadata.ts"
31250
31491
  }
31251
- },
31492
+ }
31493
+ ]
31494
+ },
31495
+ {
31496
+ "kind": "javascript-module",
31497
+ "path": "src/components/uvalib-metadata/rights.ts",
31498
+ "declarations": [
31252
31499
  {
31253
- "kind": "js",
31254
- "name": "OSM_ATTRIBUTION",
31255
- "declaration": {
31256
- "name": "OSM_ATTRIBUTION",
31257
- "module": "src/components/uvalib-map/UvalibMap.ts"
31258
- }
31500
+ "kind": "function",
31501
+ "name": "rightsName",
31502
+ "return": {
31503
+ "type": {
31504
+ "text": "string | undefined"
31505
+ }
31506
+ },
31507
+ "parameters": [
31508
+ {
31509
+ "name": "href",
31510
+ "type": {
31511
+ "text": "string"
31512
+ }
31513
+ }
31514
+ ],
31515
+ "description": "The short name of a rightsstatements.org statement or Creative Commons licence or tool from\nits URL (\"In Copyright\", \"CC BY-NC 4.0\", \"CC0 1.0\", \"Public Domain Mark 1.0\"), or\n`undefined` for any other URL."
31259
31516
  },
31517
+ {
31518
+ "kind": "function",
31519
+ "name": "specialCollectionsCitation",
31520
+ "return": {
31521
+ "type": {
31522
+ "text": "string"
31523
+ }
31524
+ },
31525
+ "parameters": [
31526
+ {
31527
+ "name": "title",
31528
+ "type": {
31529
+ "text": "string"
31530
+ }
31531
+ }
31532
+ ],
31533
+ "description": "The Albert and Shirley Small Special Collections Library's citation for a title or collection."
31534
+ }
31535
+ ],
31536
+ "exports": [
31260
31537
  {
31261
31538
  "kind": "js",
31262
- "name": "MAP_INSTRUCTIONS",
31539
+ "name": "rightsName",
31263
31540
  "declaration": {
31264
- "name": "MAP_INSTRUCTIONS",
31265
- "module": "src/components/uvalib-map/UvalibMap.ts"
31541
+ "name": "rightsName",
31542
+ "module": "src/components/uvalib-metadata/rights.ts"
31266
31543
  }
31267
31544
  },
31268
31545
  {
31269
31546
  "kind": "js",
31270
- "name": "UvalibMap",
31547
+ "name": "specialCollectionsCitation",
31271
31548
  "declaration": {
31272
- "name": "UvalibMap",
31273
- "module": "src/components/uvalib-map/UvalibMap.ts"
31549
+ "name": "specialCollectionsCitation",
31550
+ "module": "src/components/uvalib-metadata/rights.ts"
31274
31551
  }
31275
31552
  }
31276
31553
  ]
31277
31554
  },
31278
31555
  {
31279
31556
  "kind": "javascript-module",
31280
- "path": "src/components/uvalib-map/uvalib-map.ts",
31557
+ "path": "src/components/uvalib-metadata/uvalib-metadata.ts",
31281
31558
  "declarations": [],
31282
31559
  "exports": []
31283
31560
  },
@@ -32753,7 +33030,7 @@
32753
33030
  "declarations": [
32754
33031
  {
32755
33032
  "kind": "class",
32756
- "description": "Justified rows of thumbnails. Each direct child that is a link or a button is one photo;\nits image keeps its shape from the `width` and `height` attributes, or from the loaded\nimage, so the row does not jump when the picture arrives. The row is about 220px tall and\nshorter on a phone; `row-height` sets that height.\n\nEvery item stays a real link or button. An image with no visible text gets a visible\ncaption from its alt (the caption is then the accessible name, and a repeated alt is\ncleared). The original alt is kept in `data-uvalib-alt` so a lightbox still describes\nthe picture. An item with no name at all is captioned “Photo N” and warned about once;\nthat caption is renumbered when the photos change order. An `aria-label` is left as the\nname: the grid does not add a caption that would disagree with it.\nPut the grid inside `<uvalib-lightbox>` and a plain click opens the viewer.\n\nA badge sits on the thumbnail: `<span slot=\"badge\">` inside the link or button, or\n`data-badge` on that item (for example “seq” or “3 photos”). It is read after the\ncaption (“The Lawn, 3 photos”). When the item already has an `aria-label`, the badge\nis appended to that label (the author’s words stay in `data-uvalib-label`) and an alt\nthat repeats those words is cleared. A badge does not replace the alt caption.",
33033
+ "description": "Justified rows of thumbnails. Each direct child that is a link or a button is one photo;\nits image keeps its shape from the `width` and `height` attributes, or from the loaded\nimage, so the row does not jump when the picture arrives. The row is about 220px tall and\nshorter when the grid is narrow (a phone, a sidebar); `row-height` sets that height.\n\nEvery item stays a real link or button. An image with no visible text gets a visible\ncaption from its alt (the caption is then the accessible name, and a repeated alt is\ncleared). The original alt is kept in `data-uvalib-alt` so a lightbox still describes\nthe picture. An item with no name at all is captioned “Photo N” and warned about once;\nthat caption is renumbered when the photos change order. An `aria-label` is left as the\nname: the grid does not add a caption that would disagree with it.\nPut the grid inside `<uvalib-lightbox>` and a plain click opens the viewer.\n\nA badge sits on the thumbnail: `<span slot=\"badge\">` inside the link or button, or\n`data-badge` on that item (for example “seq” or “3 photos”). It is read after the\ncaption (“The Lawn, 3 photos”). When the item already has an `aria-label`, the badge\nis appended to that label (the author’s words stay in `data-uvalib-label`) and an alt\nthat repeats those words is cleared. A badge does not replace the alt caption.",
32757
33034
  "name": "UvalibPhotoGrid",
32758
33035
  "cssProperties": [
32759
33036
  {
@@ -32793,7 +33070,7 @@
32793
33070
  "text": "string"
32794
33071
  },
32795
33072
  "default": "''",
32796
- "description": "Row height. A bare number is pixels (`220` is 220px); `px`, `rem`, `em`, `vh`, `vw`,\n`vmin`, `vmax`, `ch` and `%` are kept. Empty uses 220px, or 140px when the viewport is\n767px or narrower.",
33073
+ "description": "Row height. A bare number is pixels (`220` is 220px); `px`, `rem`, `em`, `vh`, `vw`,\n`vmin`, `vmax`, `ch` and `%` are kept. Empty uses 220px, or 140px when the grid itself\nis narrower than 48rem (a phone, a sidebar, a drawer).",
32797
33074
  "attribute": "row-height"
32798
33075
  },
32799
33076
  {
@@ -33235,7 +33512,7 @@
33235
33512
  "text": "string"
33236
33513
  },
33237
33514
  "default": "''",
33238
- "description": "Row height. A bare number is pixels (`220` is 220px); `px`, `rem`, `em`, `vh`, `vw`,\n`vmin`, `vmax`, `ch` and `%` are kept. Empty uses 220px, or 140px when the viewport is\n767px or narrower.",
33515
+ "description": "Row height. A bare number is pixels (`220` is 220px); `px`, `rem`, `em`, `vh`, `vw`,\n`vmin`, `vmax`, `ch` and `%` are kept. Empty uses 220px, or 140px when the grid itself\nis narrower than 48rem (a phone, a sidebar, a drawer).",
33239
33516
  "fieldName": "rowHeight"
33240
33517
  },
33241
33518
  {
@@ -34705,7 +34982,7 @@
34705
34982
  "declarations": [
34706
34983
  {
34707
34984
  "kind": "class",
34708
- "description": "A labelled list of keywords or subjects that wraps: each tag a link (for example a search\nfor that term) or plain text. Link tags are outlined pills in the link colour; plain tags\nare filled chips (the card chip's colours), so a link never looks like a label. Every tag\nand the toggle are at least 2rem (34px) tall and wide, 0.5rem apart.\n\nGive the tags as children: `<a href>` for a link, any other element (`<span>`) for plain\ntext. A child's `lang` and `dir` are kept, and so is inline markup inside it (`em`, `cite`,\n`abbr`, `bdi`, a `span lang`…), copied element by element (never parsed as HTML). Or set\n`href-template` (with `{tag}`, replaced by the URL-encoded text) to make every tag without\nits own href a link; a blank href counts as none. Apps can set the `items` property\n(`{ label, href?, lang?, dir? }`) instead; it wins over the children. Children with no text\nare skipped with one warning.\n\n`label` names the list (shown above it, or visually hidden with `hide-label`); without one\na console warning is logged. `limit` shows that many tags and a “Show all N” button\n(`aria-expanded`, `aria-controls`), which reveals the rest in place and keeps focus.\n\nAnalytics never sends a tag's text (record tags can be user-submitted or machine-made), and\nby default not the label either, which a template may fill from a record: the name is the\nlist's place among the tag lists on the page, `list N`. Add `track-label` when the label is\nfixed text the page author wrote (“Subjects”), to send it instead.",
34985
+ "description": "A labelled list of keywords or subjects that wraps: each tag a link (for example a search\nfor that term) or plain text. Link tags are outlined pills in the link colour; plain tags\nare filled chips (the card chip's colours), so a link never looks like a label. Every tag\nand the toggle are at least 2rem (34px) tall and wide, 0.5rem apart.\n\nGive the tags as children: `<a href>` for a link, any other element (`<span>`) for plain\ntext. A child's `lang` and `dir` are kept, and so is inline markup inside it (`em`, `cite`,\n`abbr`, `bdi`, a `span lang`…), copied element by element (never parsed as HTML). Or set\n`href-template` (with `{tag}`, replaced by the URL-encoded text) to make every tag without\nits own href a link; a blank href counts as none. Apps can set the `items` property\n(`{ label, href?, lang?, dir? }`) instead; it wins over the children. Children with no text\nare skipped with one warning.\n\n`label` names the list (shown above it, or visually hidden with `hide-label`); without one\na console warning is logged. `limit` shows that many tags and a “Show all N” button\n(`aria-expanded`, `aria-controls`), which reveals the rest in place and keeps focus. Pages\ncan style the list while every tag is shown with `:state(expanded)`.\n\nAnalytics never sends a tag's text (record tags can be user-submitted or machine-made), and\nby default not the label either, which a template may fill from a record: the name is the\nlist's place among the tag lists on the page, `list N`. Add `track-label` when the label is\nfixed text the page author wrote (“Subjects”), to send it instead.",
34709
34986
  "name": "UvalibTagList",
34710
34987
  "cssProperties": [
34711
34988
  {
@@ -34826,6 +35103,12 @@
34826
35103
  "privacy": "private",
34827
35104
  "default": "new Set<string>()"
34828
35105
  },
35106
+ {
35107
+ "kind": "field",
35108
+ "name": "internals",
35109
+ "privacy": "private",
35110
+ "readonly": true
35111
+ },
34829
35112
  {
34830
35113
  "kind": "method",
34831
35114
  "name": "warnOnce",
@@ -35174,6 +35457,12 @@
35174
35457
  }
35175
35458
  }
35176
35459
  ],
35460
+ "cssStates": [
35461
+ {
35462
+ "description": "Show all was pressed: every tag is shown (the toggle's `aria-expanded=\"true\"`).",
35463
+ "name": "expanded"
35464
+ }
35465
+ ],
35177
35466
  "superclass": {
35178
35467
  "name": "UvalibElement",
35179
35468
  "module": "/src/base/UvalibElement.js"