@uvalib/web-components 1.6.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 (106) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +133 -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.d.ts +1 -0
  26. package/dist/components/uvalib-image-regions/UvalibImageRegions.js +4 -1
  27. package/dist/components/uvalib-image-regions/UvalibImageRegions.js.map +1 -1
  28. package/dist/components/uvalib-image-regions/regions.d.ts +6 -2
  29. package/dist/components/uvalib-image-regions/regions.js +6 -3
  30. package/dist/components/uvalib-image-regions/regions.js.map +1 -1
  31. package/dist/components/uvalib-lightbox/UvalibLightbox.d.ts +100 -7
  32. package/dist/components/uvalib-lightbox/UvalibLightbox.js +310 -83
  33. package/dist/components/uvalib-lightbox/UvalibLightbox.js.map +1 -1
  34. package/dist/components/uvalib-lightbox/compare.d.ts +48 -8
  35. package/dist/components/uvalib-lightbox/compare.js +226 -22
  36. package/dist/components/uvalib-lightbox/compare.js.map +1 -1
  37. package/dist/components/uvalib-map/UvalibMap.js +2 -2
  38. package/dist/components/uvalib-map/UvalibMap.js.map +1 -1
  39. package/dist/components/uvalib-metadata/UvalibMetadata.js +3 -0
  40. package/dist/components/uvalib-metadata/UvalibMetadata.js.map +1 -1
  41. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +3 -1
  42. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -1
  43. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.d.ts +3 -3
  44. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js +16 -8
  45. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js.map +1 -1
  46. package/dist/components/uvalib-tag-list/UvalibTagList.d.ts +4 -1
  47. package/dist/components/uvalib-tag-list/UvalibTagList.js +9 -2
  48. package/dist/components/uvalib-tag-list/UvalibTagList.js.map +1 -1
  49. package/dist/custom-elements.json +596 -19
  50. package/dist/styles/message.js +4 -0
  51. package/dist/styles/message.js.map +1 -1
  52. package/dist/styles/result-list.js +25 -4
  53. package/dist/styles/result-list.js.map +1 -1
  54. package/dist/styles/results.js +17 -2
  55. package/dist/styles/results.js.map +1 -1
  56. package/dist-cdn/base.css +15 -5
  57. package/dist-cdn/bento-box.js +1 -0
  58. package/dist-cdn/bento-box.js.map +1 -1
  59. package/dist-cdn/chunks/{compare-D4VdaIJN.js → compare-C0nhByn7.js} +185 -56
  60. package/dist-cdn/chunks/compare-C0nhByn7.js.map +1 -0
  61. package/dist-cdn/chunks/{hours-data-Bw6vkIw7.js → hours-data-gMu5uT7H.js} +2 -2
  62. package/dist-cdn/chunks/hours-data-gMu5uT7H.js.map +1 -0
  63. package/dist-cdn/chunks/{library-weekly-hours-CrV3TlP5.js → library-weekly-hours-BJgxAyah.js} +3 -2
  64. package/dist-cdn/chunks/library-weekly-hours-BJgxAyah.js.map +1 -0
  65. package/dist-cdn/chunks/{regions-B8ExwUGP.js → regions-B-rOwa-v.js} +15 -15
  66. package/dist-cdn/chunks/regions-B-rOwa-v.js.map +1 -0
  67. package/dist-cdn/chunks/states-DGXGzcte.js +17 -0
  68. package/dist-cdn/chunks/states-DGXGzcte.js.map +1 -0
  69. package/dist-cdn/custom-elements.json +596 -19
  70. package/dist-cdn/events-section.js +1 -0
  71. package/dist-cdn/events-section.js.map +1 -1
  72. package/dist-cdn/library-hours-setup.js +1 -1
  73. package/dist-cdn/library-weekly-hours.js +1 -1
  74. package/dist-cdn/manifest.json +1 -1
  75. package/dist-cdn/site-hours-section.js +1 -1
  76. package/dist-cdn/skills/uvalib-web-components/SKILL.md +8 -6
  77. package/dist-cdn/skills/uvalib-web-components/reference/components.md +37 -6
  78. package/dist-cdn/uvalib-card.js +6 -0
  79. package/dist-cdn/uvalib-card.js.map +1 -1
  80. package/dist-cdn/uvalib-combobox.js +107 -68
  81. package/dist-cdn/uvalib-combobox.js.map +1 -1
  82. package/dist-cdn/uvalib-contents.js +5 -0
  83. package/dist-cdn/uvalib-contents.js.map +1 -1
  84. package/dist-cdn/uvalib-filter-drawer.js +27 -25
  85. package/dist-cdn/uvalib-filter-drawer.js.map +1 -1
  86. package/dist-cdn/uvalib-image-regions.js +4 -2
  87. package/dist-cdn/uvalib-image-regions.js.map +1 -1
  88. package/dist-cdn/uvalib-lightbox.js +230 -129
  89. package/dist-cdn/uvalib-lightbox.js.map +1 -1
  90. package/dist-cdn/uvalib-map.js +2 -2
  91. package/dist-cdn/uvalib-map.js.map +1 -1
  92. package/dist-cdn/uvalib-metadata.js +3 -0
  93. package/dist-cdn/uvalib-metadata.js.map +1 -1
  94. package/dist-cdn/uvalib-pagefind-search.js +2 -1
  95. package/dist-cdn/uvalib-pagefind-search.js.map +1 -1
  96. package/dist-cdn/uvalib-photo-grid.js +4 -5
  97. package/dist-cdn/uvalib-photo-grid.js.map +1 -1
  98. package/dist-cdn/uvalib-tag-list.js +21 -16
  99. package/dist-cdn/uvalib-tag-list.js.map +1 -1
  100. package/package.json +1 -1
  101. package/skills/uvalib-web-components/SKILL.md +8 -6
  102. package/skills/uvalib-web-components/reference/components.md +37 -6
  103. package/dist-cdn/chunks/compare-D4VdaIJN.js.map +0 -1
  104. package/dist-cdn/chunks/hours-data-Bw6vkIw7.js.map +0 -1
  105. package/dist-cdn/chunks/library-weekly-hours-CrV3TlP5.js.map +0 -1
  106. 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": [
@@ -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"
@@ -25108,6 +25254,10 @@
25108
25254
  {
25109
25255
  "description": "Dark-mode role token: descriptions (else #4b5563).",
25110
25256
  "name": "--uva-color-text-muted"
25257
+ },
25258
+ {
25259
+ "description": "Where the outlines sit inside the image slot (an `inset` value, default 0): set by `<uvalib-lightbox>` when the slot holds versions with a wider framing, so the outlines stay on the original.",
25260
+ "name": "--uvalib-image-regions-inset"
25111
25261
  }
25112
25262
  ],
25113
25263
  "cssParts": [
@@ -26007,9 +26157,16 @@
26007
26157
  "type": {
26008
26158
  "text": "string | null | undefined"
26009
26159
  }
26160
+ },
26161
+ {
26162
+ "name": "options",
26163
+ "default": "{}",
26164
+ "type": {
26165
+ "text": "{ signed?: boolean }"
26166
+ }
26010
26167
  }
26011
26168
  ],
26012
- "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."
26013
26170
  },
26014
26171
  {
26015
26172
  "kind": "function",
@@ -26129,7 +26286,7 @@
26129
26286
  "declarations": [
26130
26287
  {
26131
26288
  "kind": "class",
26132
- "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 when the viewer moves on or closes.\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).",
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)`.",
26133
26290
  "name": "UvalibLightbox",
26134
26291
  "cssProperties": [
26135
26292
  {
@@ -26286,7 +26443,7 @@
26286
26443
  "type": {
26287
26444
  "text": "LightboxVersions | undefined"
26288
26445
  },
26289
- "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."
26290
26447
  },
26291
26448
  {
26292
26449
  "kind": "field",
@@ -26328,7 +26485,7 @@
26328
26485
  },
26329
26486
  {
26330
26487
  "kind": "field",
26331
- "name": "open",
26488
+ "name": "shown",
26332
26489
  "type": {
26333
26490
  "text": "boolean"
26334
26491
  },
@@ -26379,6 +26536,12 @@
26379
26536
  "readonly": true,
26380
26537
  "default": "`uvalib-lightbox-caption-${++nextCaption}`"
26381
26538
  },
26539
+ {
26540
+ "kind": "field",
26541
+ "name": "internals",
26542
+ "privacy": "private",
26543
+ "readonly": true
26544
+ },
26382
26545
  {
26383
26546
  "kind": "field",
26384
26547
  "name": "mount",
@@ -26596,7 +26759,7 @@
26596
26759
  "kind": "field",
26597
26760
  "name": "parked",
26598
26761
  "type": {
26599
- "text": "{ el: HTMLElement; parent: Node; next: ChildNode | null; hidden: boolean }[]"
26762
+ "text": "{\n el: HTMLElement;\n parent: Node;\n next: ChildNode | null;\n hidden: boolean;\n slot: string | null;\n /** Where the viewer put it: the details panel, or the lightbox itself (slotted). */\n at: Node;\n }[]"
26600
26763
  },
26601
26764
  "privacy": "private",
26602
26765
  "default": "[]",
@@ -26611,6 +26774,43 @@
26611
26774
  "privacy": "private",
26612
26775
  "default": "''"
26613
26776
  },
26777
+ {
26778
+ "kind": "field",
26779
+ "name": "lateDetails",
26780
+ "type": {
26781
+ "text": "MutationObserver | undefined"
26782
+ },
26783
+ "privacy": "private",
26784
+ "description": "Watches for the open image's `data-details-id` element while it is missing."
26785
+ },
26786
+ {
26787
+ "kind": "field",
26788
+ "name": "lateDetailsId",
26789
+ "type": {
26790
+ "text": "string"
26791
+ },
26792
+ "privacy": "private",
26793
+ "default": "''"
26794
+ },
26795
+ {
26796
+ "kind": "field",
26797
+ "name": "watchedBox",
26798
+ "type": {
26799
+ "text": "HTMLElement | undefined"
26800
+ },
26801
+ "privacy": "private",
26802
+ "description": "The details panel, observed (shadow mode) for `data-for` changes on details moved into it."
26803
+ },
26804
+ {
26805
+ "kind": "field",
26806
+ "name": "orphan",
26807
+ "type": {
26808
+ "text": "Slide | null"
26809
+ },
26810
+ "privacy": "private",
26811
+ "default": "null",
26812
+ "description": "The open image after its link left the page: still shown, dropped once the viewer moves on."
26813
+ },
26614
26814
  {
26615
26815
  "kind": "field",
26616
26816
  "name": "lent",
@@ -27025,6 +27225,115 @@
27025
27225
  }
27026
27226
  ]
27027
27227
  },
27228
+ {
27229
+ "kind": "method",
27230
+ "name": "open",
27231
+ "return": {
27232
+ "type": {
27233
+ "text": "boolean"
27234
+ }
27235
+ },
27236
+ "parameters": [
27237
+ {
27238
+ "name": "item",
27239
+ "type": {
27240
+ "text": "string | number"
27241
+ }
27242
+ }
27243
+ ],
27244
+ "description": "Opens an item as a click on its link would: `item` is its id (as `url-param` writes it)\nor its place in the set from 0. Returns false when there is no such item. Focus goes back\nto the item's link on close. With the viewer open it shows that item instead. Fires\n`uvalib-lightbox-open` (when the viewer was closed), not analytics: it is the page's call."
27245
+ },
27246
+ {
27247
+ "kind": "method",
27248
+ "name": "close",
27249
+ "return": {
27250
+ "type": {
27251
+ "text": "boolean"
27252
+ }
27253
+ },
27254
+ "parameters": [
27255
+ {
27256
+ "name": "options",
27257
+ "default": "{}",
27258
+ "type": {
27259
+ "text": "LightboxCloseOptions"
27260
+ }
27261
+ }
27262
+ ],
27263
+ "description": "Closes the viewer as Close does, `url-param` and `version-param` included (Back when the\nviewer pushed the entry, else they are removed). Focus goes to `focus` when given, else to\nthe item's link; when that link has left the page, to the first image link left, else to\nthe lightbox itself (made focusable with `tabindex=\"-1\"` until it loses focus). Returns\nfalse when the viewer was not open."
27264
+ },
27265
+ {
27266
+ "kind": "method",
27267
+ "name": "announce",
27268
+ "privacy": "private",
27269
+ "return": {
27270
+ "type": {
27271
+ "text": "void"
27272
+ }
27273
+ },
27274
+ "parameters": [
27275
+ {
27276
+ "name": "type",
27277
+ "type": {
27278
+ "text": "'open'"
27279
+ }
27280
+ },
27281
+ {
27282
+ "name": "detail",
27283
+ "type": {
27284
+ "text": "LightboxOpenDetail"
27285
+ }
27286
+ }
27287
+ ]
27288
+ },
27289
+ {
27290
+ "kind": "method",
27291
+ "name": "announce",
27292
+ "privacy": "private",
27293
+ "return": {
27294
+ "type": {
27295
+ "text": "void"
27296
+ }
27297
+ },
27298
+ "parameters": [
27299
+ {
27300
+ "name": "type",
27301
+ "type": {
27302
+ "text": "'close'"
27303
+ }
27304
+ },
27305
+ {
27306
+ "name": "detail",
27307
+ "type": {
27308
+ "text": "LightboxCloseDetail"
27309
+ }
27310
+ }
27311
+ ]
27312
+ },
27313
+ {
27314
+ "kind": "method",
27315
+ "name": "announce",
27316
+ "privacy": "private",
27317
+ "return": {
27318
+ "type": {
27319
+ "text": "void"
27320
+ }
27321
+ },
27322
+ "parameters": [
27323
+ {
27324
+ "name": "type",
27325
+ "type": {
27326
+ "text": "string"
27327
+ }
27328
+ },
27329
+ {
27330
+ "name": "detail",
27331
+ "type": {
27332
+ "text": "unknown"
27333
+ }
27334
+ }
27335
+ ]
27336
+ },
27028
27337
  {
27029
27338
  "kind": "method",
27030
27339
  "name": "activate",
@@ -27046,6 +27355,10 @@
27046
27355
  "type": {
27047
27356
  "text": "Slide[]"
27048
27357
  }
27358
+ },
27359
+ {
27360
+ "name": "track",
27361
+ "default": "true"
27049
27362
  }
27050
27363
  ],
27051
27364
  "description": "A visitor chose `slides[i]`. The first open pushes a history entry; a later choice replaces it."
@@ -27102,7 +27415,14 @@
27102
27415
  {
27103
27416
  "name": "source",
27104
27417
  "type": {
27105
- "text": "'ui' | 'pop' | 'empty'"
27418
+ "text": "'ui' | 'api' | 'pop' | 'empty'"
27419
+ }
27420
+ },
27421
+ {
27422
+ "name": "focus",
27423
+ "default": "null",
27424
+ "type": {
27425
+ "text": "HTMLElement | null"
27106
27426
  }
27107
27427
  }
27108
27428
  ],
@@ -27263,13 +27583,22 @@
27263
27583
  },
27264
27584
  {
27265
27585
  "kind": "method",
27266
- "name": "focusTrigger",
27586
+ "name": "focusAfterClose",
27267
27587
  "privacy": "private",
27268
27588
  "return": {
27269
27589
  "type": {
27270
27590
  "text": "void"
27271
27591
  }
27272
- }
27592
+ },
27593
+ "parameters": [
27594
+ {
27595
+ "name": "focus",
27596
+ "type": {
27597
+ "text": "HTMLElement | null"
27598
+ }
27599
+ }
27600
+ ],
27601
+ "description": "Focus after a close: `focus` when the page gave one, else the trigger; when the trigger\nhas left the page, the first image link left, else the lightbox itself (focusable with\n`tabindex=\"-1\"` until it loses focus), so focus is never dropped on the body."
27273
27602
  },
27274
27603
  {
27275
27604
  "kind": "method",
@@ -27374,6 +27703,39 @@
27374
27703
  "kind": "method",
27375
27704
  "name": "placeDetails",
27376
27705
  "privacy": "private",
27706
+ "return": {
27707
+ "type": {
27708
+ "text": "void"
27709
+ }
27710
+ },
27711
+ "description": "Show the open image's details. `slot=\"details\"` children move into the details panel. A\n`data-details-id` element stays in the page: in shadow mode it becomes a light-DOM child of\nthe lightbox slotted into the panel (so `getElementById`, the page's CSS and its listeners\nkeep working); in light DOM it moves into the panel, which is in the page too. Nothing is\ncloned. Called again for late details; a key keeps it from moving anything twice."
27712
+ },
27713
+ {
27714
+ "kind": "method",
27715
+ "name": "markDetailsBox",
27716
+ "privacy": "private",
27717
+ "return": {
27718
+ "type": {
27719
+ "text": "void"
27720
+ }
27721
+ },
27722
+ "description": "The panel shows only while it has something in it."
27723
+ },
27724
+ {
27725
+ "kind": "method",
27726
+ "name": "awaitDetails",
27727
+ "privacy": "private",
27728
+ "return": {
27729
+ "type": {
27730
+ "text": "void"
27731
+ }
27732
+ },
27733
+ "description": "The open image names a details element that is not in the page yet (a framework renders\nit after a fetch): watch this root, only while open and only for that id, and show it\nwhen it appears."
27734
+ },
27735
+ {
27736
+ "kind": "method",
27737
+ "name": "stopAwaitingDetails",
27738
+ "privacy": "private",
27377
27739
  "return": {
27378
27740
  "type": {
27379
27741
  "text": "void"
@@ -27397,7 +27759,7 @@
27397
27759
  }
27398
27760
  }
27399
27761
  ],
27400
- "description": "Put a parked element back. Restoring later siblings first keeps `next` inside `parent`;\nif it is not (it was parked too), insert at the end instead of throwing NotFoundError."
27762
+ "description": "Put a parked element back as it was: same parent and place, same `hidden` and `slot`.\nRestoring later siblings first keeps `next` inside `parent`; if it is not (it was parked\ntoo), insert at the end instead of throwing NotFoundError. An element the page has\nremoved or moved meanwhile stays where the page put it."
27401
27763
  },
27402
27764
  {
27403
27765
  "kind": "method",
@@ -27630,6 +27992,19 @@
27630
27992
  }
27631
27993
  ],
27632
27994
  "events": [
27995
+ {
27996
+ "type": {
27997
+ "text": "CustomEvent"
27998
+ }
27999
+ },
28000
+ {
28001
+ "description": "The viewer opened (a click, `open()`, or restored from the address): `detail` is `{ id, index, restored }` (`index` from 0; `restored` true for the address, Back and Forward). Not fired when it moves to another image. Bubbles and is composed.",
28002
+ "name": "uvalib-lightbox-open"
28003
+ },
28004
+ {
28005
+ "description": "The viewer closed: `detail` is `{ id, index, reason }`, the image shown and `reason` `close` (Close, Escape, the backdrop), `api` (`close()`), `history` (Back or Forward) or `empty` (the last image left the page). Not fired when the element is removed. Bubbles and is composed.",
28006
+ "name": "uvalib-lightbox-close"
28007
+ },
27633
28008
  {
27634
28009
  "description": "The visitor changed the comparison (mode, version or position; once a slider settles): `detail` is `{ id, mode, index, value }` (`mode` `switch`, `wipe` or `fade`; `index` the version shown or compared, from 0; `value` the percentage of it shown, null for Switch). Not fired on open or for a comparison restored from the URL. Bubbles and is composed.",
27635
28010
  "name": "uvalib-lightbox-version"
@@ -27710,6 +28085,12 @@
27710
28085
  }
27711
28086
  }
27712
28087
  ],
28088
+ "cssStates": [
28089
+ {
28090
+ "description": "The viewer is open.",
28091
+ "name": "open"
28092
+ }
28093
+ ],
27713
28094
  "superclass": {
27714
28095
  "name": "UvalibElement",
27715
28096
  "module": "/src/base/UvalibElement.js"
@@ -27783,6 +28164,52 @@
27783
28164
  "privacy": "private",
27784
28165
  "default": "false"
27785
28166
  },
28167
+ {
28168
+ "kind": "field",
28169
+ "name": "warnedFrame",
28170
+ "type": {
28171
+ "text": "boolean"
28172
+ },
28173
+ "privacy": "private",
28174
+ "default": "false"
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
+ },
28195
+ {
28196
+ "kind": "field",
28197
+ "name": "geo",
28198
+ "type": {
28199
+ "text": "Framing | null"
28200
+ },
28201
+ "privacy": "private",
28202
+ "default": "null"
28203
+ },
28204
+ {
28205
+ "kind": "field",
28206
+ "name": "baseHref",
28207
+ "type": {
28208
+ "text": "string"
28209
+ },
28210
+ "privacy": "private",
28211
+ "default": "''"
28212
+ },
27786
28213
  {
27787
28214
  "kind": "field",
27788
28215
  "name": "chosen",
@@ -28004,6 +28431,85 @@
28004
28431
  }
28005
28432
  ]
28006
28433
  },
28434
+ {
28435
+ "kind": "method",
28436
+ "name": "frame",
28437
+ "privacy": "private",
28438
+ "return": {
28439
+ "type": {
28440
+ "text": "Box | null"
28441
+ }
28442
+ },
28443
+ "parameters": [
28444
+ {
28445
+ "name": "o",
28446
+ "type": {
28447
+ "text": "Record<string, unknown>"
28448
+ }
28449
+ },
28450
+ {
28451
+ "name": "i",
28452
+ "type": {
28453
+ "text": "number"
28454
+ }
28455
+ }
28456
+ ],
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."
28458
+ },
28459
+ {
28460
+ "kind": "method",
28461
+ "name": "natural",
28462
+ "privacy": "private",
28463
+ "return": {
28464
+ "type": {
28465
+ "text": "{ w: number; h: number } | null"
28466
+ }
28467
+ },
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)."
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
+ },
28007
28513
  {
28008
28514
  "kind": "method",
28009
28515
  "name": "restore",
@@ -28021,7 +28527,57 @@
28021
28527
  }
28022
28528
  }
28023
28529
  ],
28024
- "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
28025
28581
  },
28026
28582
  {
28027
28583
  "kind": "method",
@@ -28350,6 +28906,15 @@
28350
28906
  },
28351
28907
  "readonly": true
28352
28908
  },
28909
+ {
28910
+ "kind": "field",
28911
+ "name": "regionsStyle",
28912
+ "type": {
28913
+ "text": "string"
28914
+ },
28915
+ "description": "With a different framing, where the outlines of regions go: the original's box in the\nstack, as `<uvalib-image-regions>`'s overlay inset. Empty otherwise.",
28916
+ "readonly": true
28917
+ },
28353
28918
  {
28354
28919
  "kind": "method",
28355
28920
  "name": "layers",
@@ -32465,7 +33030,7 @@
32465
33030
  "declarations": [
32466
33031
  {
32467
33032
  "kind": "class",
32468
- "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.",
32469
33034
  "name": "UvalibPhotoGrid",
32470
33035
  "cssProperties": [
32471
33036
  {
@@ -32505,7 +33070,7 @@
32505
33070
  "text": "string"
32506
33071
  },
32507
33072
  "default": "''",
32508
- "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).",
32509
33074
  "attribute": "row-height"
32510
33075
  },
32511
33076
  {
@@ -32947,7 +33512,7 @@
32947
33512
  "text": "string"
32948
33513
  },
32949
33514
  "default": "''",
32950
- "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).",
32951
33516
  "fieldName": "rowHeight"
32952
33517
  },
32953
33518
  {
@@ -34417,7 +34982,7 @@
34417
34982
  "declarations": [
34418
34983
  {
34419
34984
  "kind": "class",
34420
- "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.",
34421
34986
  "name": "UvalibTagList",
34422
34987
  "cssProperties": [
34423
34988
  {
@@ -34538,6 +35103,12 @@
34538
35103
  "privacy": "private",
34539
35104
  "default": "new Set<string>()"
34540
35105
  },
35106
+ {
35107
+ "kind": "field",
35108
+ "name": "internals",
35109
+ "privacy": "private",
35110
+ "readonly": true
35111
+ },
34541
35112
  {
34542
35113
  "kind": "method",
34543
35114
  "name": "warnOnce",
@@ -34886,6 +35457,12 @@
34886
35457
  }
34887
35458
  }
34888
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
+ ],
34889
35466
  "superclass": {
34890
35467
  "name": "UvalibElement",
34891
35468
  "module": "/src/base/UvalibElement.js"