@uvalib/web-components 1.2.0 → 1.4.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.
- package/CHANGELOG.md +105 -0
- package/README.md +849 -47
- package/dist/analytics.d.ts +10 -0
- package/dist/analytics.js +9 -0
- package/dist/analytics.js.map +1 -0
- package/dist/base/UvalibElement.js +8 -5
- package/dist/base/UvalibElement.js.map +1 -1
- package/dist/base/analytics-state.d.ts +7 -0
- package/dist/base/analytics-state.js.map +1 -1
- package/dist/base/light-dom-styles.d.ts +13 -0
- package/dist/base/light-dom-styles.js +26 -0
- package/dist/base/light-dom-styles.js.map +1 -1
- package/dist/base/search-tracker.d.ts +57 -0
- package/dist/base/search-tracker.js +51 -0
- package/dist/base/search-tracker.js.map +1 -0
- package/dist/base.css +286 -14
- package/dist/base.d.ts +2 -0
- package/dist/base.js +1 -0
- package/dist/base.js.map +1 -1
- package/dist/components/site-analytics/SiteAnalytics.d.ts +20 -1
- package/dist/components/site-analytics/SiteAnalytics.js +93 -12
- package/dist/components/site-analytics/SiteAnalytics.js.map +1 -1
- package/dist/components/site-page/SitePage.d.ts +23 -0
- package/dist/components/site-page/SitePage.js +77 -0
- package/dist/components/site-page/SitePage.js.map +1 -1
- package/dist/components/uvalib-back-to-top/UvalibBackToTop.d.ts +58 -0
- package/dist/components/uvalib-back-to-top/UvalibBackToTop.js +250 -0
- package/dist/components/uvalib-back-to-top/UvalibBackToTop.js.map +1 -0
- package/dist/components/uvalib-back-to-top/uvalib-back-to-top.d.ts +1 -0
- package/dist/components/uvalib-back-to-top/uvalib-back-to-top.js +4 -0
- package/dist/components/uvalib-back-to-top/uvalib-back-to-top.js.map +1 -0
- package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.d.ts +14 -0
- package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.js +56 -4
- package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.js.map +1 -1
- package/dist/components/uvalib-chip-group/UvalibChipGroup.d.ts +25 -3
- package/dist/components/uvalib-chip-group/UvalibChipGroup.js +80 -10
- package/dist/components/uvalib-chip-group/UvalibChipGroup.js.map +1 -1
- package/dist/components/uvalib-combobox/UvalibCombobox.d.ts +212 -0
- package/dist/components/uvalib-combobox/UvalibCombobox.js +1088 -0
- package/dist/components/uvalib-combobox/UvalibCombobox.js.map +1 -0
- package/dist/components/uvalib-combobox/uvalib-combobox.d.ts +1 -0
- package/dist/components/uvalib-combobox/uvalib-combobox.js +4 -0
- package/dist/components/uvalib-combobox/uvalib-combobox.js.map +1 -0
- package/dist/components/uvalib-contents/UvalibContents.d.ts +53 -0
- package/dist/components/uvalib-contents/UvalibContents.js +202 -3
- package/dist/components/uvalib-contents/UvalibContents.js.map +1 -1
- package/dist/components/uvalib-date-histogram/UvalibDateHistogram.d.ts +56 -17
- package/dist/components/uvalib-date-histogram/UvalibDateHistogram.js +285 -81
- package/dist/components/uvalib-date-histogram/UvalibDateHistogram.js.map +1 -1
- package/dist/components/uvalib-date-range/UvalibDateRange.d.ts +6 -0
- package/dist/components/uvalib-date-range/UvalibDateRange.js +23 -0
- package/dist/components/uvalib-date-range/UvalibDateRange.js.map +1 -1
- package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.d.ts +113 -0
- package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.js +589 -0
- package/dist/components/uvalib-filter-drawer/UvalibFilterDrawer.js.map +1 -0
- package/dist/components/uvalib-filter-drawer/uvalib-filter-drawer.d.ts +1 -0
- package/dist/components/uvalib-filter-drawer/uvalib-filter-drawer.js +4 -0
- package/dist/components/uvalib-filter-drawer/uvalib-filter-drawer.js.map +1 -0
- package/dist/components/uvalib-image-regions/UvalibImageRegions.d.ts +138 -0
- package/dist/components/uvalib-image-regions/UvalibImageRegions.js +689 -0
- package/dist/components/uvalib-image-regions/UvalibImageRegions.js.map +1 -0
- package/dist/components/uvalib-image-regions/regions.d.ts +57 -0
- package/dist/components/uvalib-image-regions/regions.js +117 -0
- package/dist/components/uvalib-image-regions/regions.js.map +1 -0
- package/dist/components/uvalib-image-regions/uvalib-image-regions.d.ts +1 -0
- package/dist/components/uvalib-image-regions/uvalib-image-regions.js +4 -0
- package/dist/components/uvalib-image-regions/uvalib-image-regions.js.map +1 -0
- package/dist/components/uvalib-lightbox/UvalibLightbox.d.ts +79 -0
- package/dist/components/uvalib-lightbox/UvalibLightbox.js +295 -16
- package/dist/components/uvalib-lightbox/UvalibLightbox.js.map +1 -1
- package/dist/components/uvalib-map/UvalibMap.d.ts +251 -0
- package/dist/components/uvalib-map/UvalibMap.js +1395 -0
- package/dist/components/uvalib-map/UvalibMap.js.map +1 -0
- package/dist/components/uvalib-map/uvalib-map.d.ts +1 -0
- package/dist/components/uvalib-map/uvalib-map.js +4 -0
- package/dist/components/uvalib-map/uvalib-map.js.map +1 -0
- package/dist/components/uvalib-metadata/UvalibMetadata.d.ts +39 -2
- package/dist/components/uvalib-metadata/UvalibMetadata.js +214 -8
- package/dist/components/uvalib-metadata/UvalibMetadata.js.map +1 -1
- package/dist/components/uvalib-pager/UvalibPager.d.ts +22 -3
- package/dist/components/uvalib-pager/UvalibPager.js +42 -4
- package/dist/components/uvalib-pager/UvalibPager.js.map +1 -1
- package/dist/custom-elements.json +9641 -3131
- package/dist/index.d.ts +8 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/pagefind.css +4 -0
- package/dist/styles/base.js +119 -0
- package/dist/styles/base.js.map +1 -1
- package/dist/styles/color-scheme.js +5 -0
- package/dist/styles/color-scheme.js.map +1 -1
- package/dist/styles/controls.js +6 -0
- package/dist/styles/controls.js.map +1 -1
- package/dist/styles/hidden.d.ts +2 -0
- package/dist/styles/hidden.js +51 -0
- package/dist/styles/hidden.js.map +1 -0
- package/dist/styles/message.d.ts +1 -0
- package/dist/styles/message.js +82 -0
- package/dist/styles/message.js.map +1 -0
- package/dist/styles/pagefind.js +4 -0
- package/dist/styles/pagefind.js.map +1 -1
- package/dist/styles/result-list.d.ts +1 -0
- package/dist/styles/result-list.js +111 -0
- package/dist/styles/result-list.js.map +1 -0
- package/dist/styles/results.js +0 -15
- package/dist/styles/results.js.map +1 -1
- package/dist/testing/index.d.ts +110 -0
- package/dist/testing/index.js +100 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/lighthouse-rules.d.ts +10 -0
- package/dist/testing/lighthouse-rules.js +44 -0
- package/dist/testing/lighthouse-rules.js.map +1 -0
- package/dist/tokens.css +5 -0
- package/dist-cdn/analytics.js +32 -0
- package/dist-cdn/analytics.js.map +1 -0
- package/dist-cdn/base.css +286 -14
- package/dist-cdn/bento-box.js +3 -3
- package/dist-cdn/chunks/{SiteAnalytics-Cm-FyhYS.js → SiteAnalytics-B9gu5aGO.js} +59 -30
- package/dist-cdn/chunks/SiteAnalytics-B9gu5aGO.js.map +1 -0
- package/dist-cdn/chunks/{UvalibElement-BnI-eRRR.js → UvalibElement-pGONDAwB.js} +108 -101
- package/dist-cdn/chunks/UvalibElement-pGONDAwB.js.map +1 -0
- package/dist-cdn/chunks/{accessible-GqhVn5_H.js → accessible-DJv7YOtS.js} +2 -2
- package/dist-cdn/chunks/{accessible-GqhVn5_H.js.map → accessible-DJv7YOtS.js.map} +1 -1
- package/dist-cdn/chunks/analytics-state-Ce8DKe4F.js.map +1 -1
- package/dist-cdn/chunks/{base-p5pk0vb2.js → base-BI8h0Gf3.js} +121 -2
- package/dist-cdn/chunks/base-BI8h0Gf3.js.map +1 -0
- package/dist-cdn/chunks/{library-weekly-hours-COE7Vv6V.js → library-weekly-hours-CrV3TlP5.js} +3 -3
- package/dist-cdn/chunks/{library-weekly-hours-COE7Vv6V.js.map → library-weekly-hours-CrV3TlP5.js.map} +1 -1
- package/dist-cdn/chunks/regions-B8ExwUGP.js +86 -0
- package/dist-cdn/chunks/regions-B8ExwUGP.js.map +1 -0
- package/dist-cdn/chunks/{repeat-CIFUYkyh.js → repeat-m5Zd_QeP.js} +2 -2
- package/dist-cdn/chunks/{repeat-CIFUYkyh.js.map → repeat-m5Zd_QeP.js.map} +1 -1
- package/dist-cdn/chunks/{site-header-BlOYvQg1.js → site-header-DYRMpdBj.js} +9 -4
- package/dist-cdn/chunks/{site-header-BlOYvQg1.js.map → site-header-DYRMpdBj.js.map} +1 -1
- package/dist-cdn/chunks/{site-main-nav-AaxZ9rQf.js → site-main-nav-DURrQMal.js} +3 -3
- package/dist-cdn/chunks/{site-main-nav-AaxZ9rQf.js.map → site-main-nav-DURrQMal.js.map} +1 -1
- package/dist-cdn/chunks/{static-html-1mTAG6nS.js → static-html-C1rhtCHu.js} +2 -2
- package/dist-cdn/chunks/{static-html-1mTAG6nS.js.map → static-html-C1rhtCHu.js.map} +1 -1
- package/dist-cdn/custom-elements.json +9641 -3131
- package/dist-cdn/events-section.js +3 -3
- package/dist-cdn/library-hours-setup.js +2 -2
- package/dist-cdn/library-weekly-hours.js +1 -1
- package/dist-cdn/manifest.json +10 -2
- package/dist-cdn/pagefind.css +4 -0
- package/dist-cdn/site-alerts.js +4 -4
- package/dist-cdn/site-analytics.js +2 -2
- package/dist-cdn/site-footer.js +2 -2
- package/dist-cdn/site-header.js +1 -1
- package/dist-cdn/site-hours-section.js +4 -4
- package/dist-cdn/site-main-nav.js +1 -1
- package/dist-cdn/site-page.js +56 -11
- package/dist-cdn/site-page.js.map +1 -1
- package/dist-cdn/site-style.js +2 -2
- package/dist-cdn/skills/uvalib-web-components/SKILL.md +98 -13
- package/dist-cdn/skills/uvalib-web-components/reference/accessibility-testing.md +34 -2
- package/dist-cdn/skills/uvalib-web-components/reference/components.md +302 -14
- package/dist-cdn/skills/uvalib-web-components/reference/snippets.md +1 -1
- package/dist-cdn/tokens.css +5 -0
- package/dist-cdn/uvalib-analytics.js +2 -2
- package/dist-cdn/uvalib-back-to-top.js +156 -0
- package/dist-cdn/uvalib-back-to-top.js.map +1 -0
- package/dist-cdn/uvalib-breadcrumbs.js +31 -11
- package/dist-cdn/uvalib-breadcrumbs.js.map +1 -1
- package/dist-cdn/uvalib-card-grid.js +1 -1
- package/dist-cdn/uvalib-card.js +3 -3
- package/dist-cdn/uvalib-chip-group.js +53 -14
- package/dist-cdn/uvalib-chip-group.js.map +1 -1
- package/dist-cdn/uvalib-combobox.js +667 -0
- package/dist-cdn/uvalib-combobox.js.map +1 -0
- package/dist-cdn/uvalib-contents.js +100 -22
- package/dist-cdn/uvalib-contents.js.map +1 -1
- package/dist-cdn/uvalib-date-histogram.js +237 -127
- package/dist-cdn/uvalib-date-histogram.js.map +1 -1
- package/dist-cdn/uvalib-date-range.js +14 -2
- package/dist-cdn/uvalib-date-range.js.map +1 -1
- package/dist-cdn/uvalib-filter-drawer.js +355 -0
- package/dist-cdn/uvalib-filter-drawer.js.map +1 -0
- package/dist-cdn/uvalib-filter.js +3 -3
- package/dist-cdn/uvalib-image-regions.js +460 -0
- package/dist-cdn/uvalib-image-regions.js.map +1 -0
- package/dist-cdn/uvalib-lightbox.js +214 -59
- package/dist-cdn/uvalib-lightbox.js.map +1 -1
- package/dist-cdn/uvalib-map.js +667 -0
- package/dist-cdn/uvalib-map.js.map +1 -0
- package/dist-cdn/uvalib-metadata.js +150 -24
- package/dist-cdn/uvalib-metadata.js.map +1 -1
- package/dist-cdn/uvalib-pager.js +29 -17
- package/dist-cdn/uvalib-pager.js.map +1 -1
- package/dist-cdn/uvalib-photo-grid.js +2 -2
- package/dist-cdn/uvalib-results-count.js +2 -2
- package/dist-cdn/uvalib-tabs.js +2 -2
- package/dist-cdn/uvalib-tag-list.js +2 -2
- package/package.json +43 -1
- package/skills/uvalib-web-components/SKILL.md +98 -13
- package/skills/uvalib-web-components/reference/accessibility-testing.md +34 -2
- package/skills/uvalib-web-components/reference/components.md +302 -14
- package/skills/uvalib-web-components/reference/snippets.md +1 -1
- package/dist-cdn/chunks/SiteAnalytics-Cm-FyhYS.js.map +0 -1
- package/dist-cdn/chunks/UvalibElement-BnI-eRRR.js.map +0 -1
- package/dist-cdn/chunks/base-p5pk0vb2.js.map +0 -1
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
import { a as e, f as t, i as n, l as r, m as i, n as a, o, p as s, r as c, t as l } from "./chunks/UvalibElement-pGONDAwB.js";
|
|
2
|
+
import { a as u } from "./chunks/analytics-DTTihuBD.js";
|
|
3
|
+
import { t as d } from "./chunks/heading-level-DIuNS44-.js";
|
|
4
|
+
import { n as f, r as p } from "./chunks/source-children-BHsDwCvL.js";
|
|
5
|
+
import { t as m } from "./chunks/accessible-DJv7YOtS.js";
|
|
6
|
+
import { i as h, n as g, r as _ } from "./chunks/regions-B8ExwUGP.js";
|
|
7
|
+
// src/components/uvalib-image-regions/UvalibImageRegions.ts
|
|
8
|
+
var v = "Regions", y = 0, b = "button, input, select, textarea, ol, ul, [hidden], [aria-hidden=\"true\"]", x = (e) => `
|
|
9
|
+
${e} { display: block; }
|
|
10
|
+
${e} .layout {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
gap: 1rem;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
}
|
|
16
|
+
${e} .media {
|
|
17
|
+
position: relative;
|
|
18
|
+
flex: 0 1 auto;
|
|
19
|
+
width: fit-content;
|
|
20
|
+
min-width: 0;
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
${e} .list { flex: 1 1 14rem; min-width: 0; }
|
|
25
|
+
${e} .media img, ${e} .img-host > picture${e === ":host" ? ", ::slotted(img), ::slotted(picture)" : ""} { display: block; max-width: 100%; height: auto; }
|
|
26
|
+
${e} .overlay {
|
|
27
|
+
position: absolute;
|
|
28
|
+
inset: 0;
|
|
29
|
+
overflow: clip;
|
|
30
|
+
overflow-clip-margin: 0.5rem;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
forced-color-adjust: none;
|
|
33
|
+
}
|
|
34
|
+
${e} .region {
|
|
35
|
+
position: absolute;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
border: 2px solid #fff;
|
|
38
|
+
outline: 2px solid #000;
|
|
39
|
+
pointer-events: auto;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
${e} .region.active { z-index: 1; border-width: 4px; outline-width: 4px; }
|
|
43
|
+
${e} .overlay.has-active .region:not(.active) { opacity: 0.6; }
|
|
44
|
+
${e} .badge {
|
|
45
|
+
position: absolute;
|
|
46
|
+
inset-block-start: 0;
|
|
47
|
+
inset-inline-start: 0;
|
|
48
|
+
display: flex;
|
|
49
|
+
gap: 0.375em;
|
|
50
|
+
max-width: 16rem;
|
|
51
|
+
padding: 0.0625rem 0.375rem;
|
|
52
|
+
background: #000;
|
|
53
|
+
color: #fff;
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
line-height: 1.25;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
outline: 1px solid #fff;
|
|
59
|
+
}
|
|
60
|
+
${e} .region:not([data-inside]) .badge {
|
|
61
|
+
inset-block-start: auto;
|
|
62
|
+
inset-block-end: calc(100% + 4px);
|
|
63
|
+
inset-inline-start: -4px;
|
|
64
|
+
}
|
|
65
|
+
${e} .region.active:not([data-inside]) .badge {
|
|
66
|
+
inset-block-end: calc(100% + 8px);
|
|
67
|
+
inset-inline-start: -8px;
|
|
68
|
+
}
|
|
69
|
+
${e} .badge .name { overflow: hidden; text-overflow: ellipsis; }
|
|
70
|
+
${e} .region:not(.active) .badge .name, ${e} .badge:empty { display: none; }
|
|
71
|
+
${e} .region:not(.active) .badge.no-number { display: none; }
|
|
72
|
+
${e} .heading { margin: 0 0 0.5rem; }
|
|
73
|
+
${e} .items { margin: 0; }
|
|
74
|
+
@media (forced-colors: active) {
|
|
75
|
+
${e} .region { border-color: Canvas; outline-color: CanvasText; }
|
|
76
|
+
${e} .region.active { outline-color: Highlight; }
|
|
77
|
+
${e} .badge { background: CanvasText; color: Canvas; outline-color: Canvas; }
|
|
78
|
+
${e} .region.active .badge { background: Highlight; color: HighlightText; }
|
|
79
|
+
}
|
|
80
|
+
${e}[hidden], ${e} [hidden] { display: none !important; }
|
|
81
|
+
`, S = s(x(":host")), C = (e) => `
|
|
82
|
+
${e}[data-uvalib-region] {
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
padding-block: 0.5rem;
|
|
85
|
+
padding-inline: calc(0.5rem + 0.375rem) 0.5rem;
|
|
86
|
+
overflow-wrap: anywhere;
|
|
87
|
+
}
|
|
88
|
+
${e}[data-uvalib-region][data-uvalib-active] {
|
|
89
|
+
padding-inline-start: 0.5rem;
|
|
90
|
+
border-inline-start: 0.375rem solid currentColor;
|
|
91
|
+
background: var(--uva-color-surface-hover, #f1f1f1);
|
|
92
|
+
}
|
|
93
|
+
${e}[data-uvalib-region]:focus-visible {
|
|
94
|
+
outline: 3px solid var(--uva-color-focus, var(--uva-brand-orange, #e57200));
|
|
95
|
+
outline-offset: 2px;
|
|
96
|
+
}
|
|
97
|
+
${e}[data-uvalib-region][tabindex='-1']:focus:not(:focus-visible) { outline: none; }
|
|
98
|
+
@media (forced-colors: active) {
|
|
99
|
+
${e}[data-uvalib-region][data-uvalib-active] { border-inline-start-color: Highlight; }
|
|
100
|
+
}
|
|
101
|
+
`, w = s(C("")), T = class extends l {
|
|
102
|
+
static {
|
|
103
|
+
this.styles = [
|
|
104
|
+
m,
|
|
105
|
+
S,
|
|
106
|
+
w,
|
|
107
|
+
t`
|
|
108
|
+
.list {
|
|
109
|
+
color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b));
|
|
110
|
+
}
|
|
111
|
+
.heading {
|
|
112
|
+
font-size: 1.125rem;
|
|
113
|
+
font-weight: 700;
|
|
114
|
+
line-height: 1.3;
|
|
115
|
+
}
|
|
116
|
+
.items {
|
|
117
|
+
padding-inline-start: 1.75rem;
|
|
118
|
+
}
|
|
119
|
+
.items a {
|
|
120
|
+
color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));
|
|
121
|
+
}
|
|
122
|
+
.description {
|
|
123
|
+
display: block;
|
|
124
|
+
color: var(--uva-color-text-muted, #4b5563);
|
|
125
|
+
font-size: 0.9375rem;
|
|
126
|
+
}
|
|
127
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
128
|
+
.region {
|
|
129
|
+
transition: opacity 0.15s ease;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
`
|
|
133
|
+
];
|
|
134
|
+
}
|
|
135
|
+
constructor() {
|
|
136
|
+
super(), this.items = null, this.src = "", this.alt = "", this.label = "Regions", this.numbering = "numbers", this.hideOutlines = !1, this.entries = [], this.natural = null, this.active = -1, this.inferredLevel = 2, this.hover = -1, this.focused = -1, this.headingId = `uvalib-image-regions-heading-${++y}`, this.watchedImg = null, this.slottedList = null, this.key = "", this.resized = 0, this.onImageLoad = () => this.measure(), this.onPointerOver = (e) => {
|
|
137
|
+
this.hover = this.indexFrom(e)?.i ?? -1, this.setActive();
|
|
138
|
+
}, this.onPointerLeave = () => {
|
|
139
|
+
this.hover = -1, this.setActive();
|
|
140
|
+
}, this.onFocusIn = (e) => {
|
|
141
|
+
this.focused = this.indexFrom(e)?.i ?? -1, this.setActive();
|
|
142
|
+
}, this.onFocusOut = (e) => {
|
|
143
|
+
let t = e.relatedTarget;
|
|
144
|
+
t instanceof Node && (this.contains(t) || this.renderRoot.contains(t) || this.slottedList?.contains(t)) || (this.focused = -1, this.setActive());
|
|
145
|
+
}, this.onClick = (e) => {
|
|
146
|
+
let t = this.indexFrom(e);
|
|
147
|
+
t?.outline && this.choose(t.i);
|
|
148
|
+
}, this.addEventListener("pointerover", this.onPointerOver), this.addEventListener("pointerleave", this.onPointerLeave), this.addEventListener("focusin", this.onFocusIn), this.addEventListener("focusout", this.onFocusOut), this.addEventListener("click", this.onClick);
|
|
149
|
+
}
|
|
150
|
+
createRenderRoot() {
|
|
151
|
+
let e = super.createRenderRoot();
|
|
152
|
+
return this.noStyle && e instanceof ShadowRoot && S.styleSheet && (e.adoptedStyleSheets = [S.styleSheet]), e;
|
|
153
|
+
}
|
|
154
|
+
connectedCallback() {
|
|
155
|
+
super.connectedCallback();
|
|
156
|
+
let e = this.getRootNode(), t = e instanceof Document || e instanceof ShadowRoot ? e : void 0;
|
|
157
|
+
this.lightDom && this.noStyle ? c(`${this.localName}::structure`, s(x(this.localName)), {
|
|
158
|
+
root: t,
|
|
159
|
+
scope: !1
|
|
160
|
+
}) : !this.lightDom && !this.noStyle && c(`${this.localName}::entries`, s(C(`${this.localName} `)), {
|
|
161
|
+
root: t,
|
|
162
|
+
scope: !1
|
|
163
|
+
});
|
|
164
|
+
let n = d(this);
|
|
165
|
+
this.inferredLevel = n === null ? 2 : Math.min(Math.max(n + 1, 2), 6), this.slottedList = null, this.sync(), this.observe();
|
|
166
|
+
}
|
|
167
|
+
observe() {
|
|
168
|
+
this.observer ??= new MutationObserver(() => this.sync()), this.observer.disconnect();
|
|
169
|
+
let e = {
|
|
170
|
+
childList: !0,
|
|
171
|
+
subtree: !0,
|
|
172
|
+
attributes: !0,
|
|
173
|
+
attributeFilter: [
|
|
174
|
+
"data-xywh",
|
|
175
|
+
"data-label",
|
|
176
|
+
"data-id",
|
|
177
|
+
"href",
|
|
178
|
+
"start",
|
|
179
|
+
"src",
|
|
180
|
+
"srcset"
|
|
181
|
+
],
|
|
182
|
+
characterData: !0
|
|
183
|
+
};
|
|
184
|
+
this.observer.observe(this, e), this.slottedList && this.observer.observe(this.slottedList, e);
|
|
185
|
+
}
|
|
186
|
+
disconnectedCallback() {
|
|
187
|
+
super.disconnectedCallback(), this.observer?.disconnect(), this.resizer?.disconnect(), this.resizer = void 0, this.watchImage(null);
|
|
188
|
+
}
|
|
189
|
+
willUpdate(e) {
|
|
190
|
+
(e.has("items") || e.has("src")) && this.sync();
|
|
191
|
+
}
|
|
192
|
+
updated(e) {
|
|
193
|
+
super.updated(e), this.arrange(), this.observeSize(), this.place(), this.mark(), queueMicrotask(() => {
|
|
194
|
+
this.isConnected && this.watchImage(this.imageEl());
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
sourceImage() {
|
|
198
|
+
if (this.src) return null;
|
|
199
|
+
let e = this.lightDom ? [...this.children, ...this.imgHost?.children ?? []] : [...this.children], t = e.find((e) => e.getAttribute("slot") === "image") ?? e.find((e) => e.localName === "img" || e.localName === "picture");
|
|
200
|
+
return t instanceof HTMLElement ? t : null;
|
|
201
|
+
}
|
|
202
|
+
sourceList() {
|
|
203
|
+
return (this.lightDom ? [...this.children, ...this.listHost?.children ?? []] : [...this.children]).flatMap((e) => e instanceof HTMLSlotElement ? e.assignedElements({ flatten: !0 }) : [e]).find((e) => e.localName === "ol" || e.localName === "ul") ?? null;
|
|
204
|
+
}
|
|
205
|
+
get imgHost() {
|
|
206
|
+
return this.lightDom ? this.querySelector(":scope > .layout .img-host") : null;
|
|
207
|
+
}
|
|
208
|
+
get listHost() {
|
|
209
|
+
return this.lightDom ? this.querySelector(":scope > .layout .list-host") : null;
|
|
210
|
+
}
|
|
211
|
+
imageEl() {
|
|
212
|
+
if (this.src) return this.renderRoot.querySelector(".media > img");
|
|
213
|
+
let e = this.sourceImage();
|
|
214
|
+
return e ? e instanceof HTMLImageElement ? e : e.querySelector("img") : null;
|
|
215
|
+
}
|
|
216
|
+
sync() {
|
|
217
|
+
let e = this.sourceImage();
|
|
218
|
+
e && !this.lightDom && !e.hasAttribute("slot") && e.setAttribute("slot", "image");
|
|
219
|
+
let t = this.items ? this.fromItems(this.items) : this.fromList(), n = JSON.stringify(t.map((e) => [
|
|
220
|
+
e.item,
|
|
221
|
+
e.box,
|
|
222
|
+
e.number
|
|
223
|
+
])), r = t.length === this.entries.length && t.every((e, t) => e.el === this.entries[t]?.el);
|
|
224
|
+
n === this.key && r || (this.key = n, this.entries = t, this.active >= t.length && (this.active = -1));
|
|
225
|
+
}
|
|
226
|
+
fromItems(e) {
|
|
227
|
+
let t = [];
|
|
228
|
+
for (let n of Array.isArray(e) ? e : []) {
|
|
229
|
+
let e = h(n);
|
|
230
|
+
if (!e) continue;
|
|
231
|
+
let { x: r, y: i, w: a, h: o, unit: s = "px" } = e;
|
|
232
|
+
t.push({
|
|
233
|
+
item: e,
|
|
234
|
+
box: {
|
|
235
|
+
x: r,
|
|
236
|
+
y: i,
|
|
237
|
+
w: a,
|
|
238
|
+
h: o,
|
|
239
|
+
unit: s
|
|
240
|
+
},
|
|
241
|
+
number: t.length + 1,
|
|
242
|
+
el: null
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
return t;
|
|
246
|
+
}
|
|
247
|
+
fromList() {
|
|
248
|
+
let e = this.sourceList(), t = e && !this.contains(e) ? e : null;
|
|
249
|
+
if (t !== this.slottedList && (this.slottedList = t, this.isConnected && this.observe(), t && !this.noStyle)) {
|
|
250
|
+
let e = t.getRootNode();
|
|
251
|
+
(e instanceof Document || e instanceof ShadowRoot) && c(`${this.localName}::slotted-entries`, w, {
|
|
252
|
+
root: e,
|
|
253
|
+
scope: !1
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
if (!e) return [];
|
|
257
|
+
let n = e.localName === "ol" && Number(e.getAttribute("start") ?? 1) || 1, r = [];
|
|
258
|
+
return [...e.children].forEach((e, t) => {
|
|
259
|
+
if (e.localName !== "li" || !(e instanceof HTMLElement)) return;
|
|
260
|
+
let i = g(e.dataset.xywh), a = e.querySelector("a[href]"), o = f(e.dataset.label) || f(a?.textContent) || this.text(e), s = i ? {
|
|
261
|
+
label: o,
|
|
262
|
+
...i
|
|
263
|
+
} : {
|
|
264
|
+
label: o,
|
|
265
|
+
x: 0,
|
|
266
|
+
y: 0,
|
|
267
|
+
w: 0,
|
|
268
|
+
h: 0
|
|
269
|
+
}, c = f(e.dataset.id) || e.id;
|
|
270
|
+
c && (s.id = c);
|
|
271
|
+
let l = a?.getAttribute("href");
|
|
272
|
+
l && (s.href = l), r.push({
|
|
273
|
+
item: s,
|
|
274
|
+
box: i,
|
|
275
|
+
number: n + t,
|
|
276
|
+
el: e
|
|
277
|
+
});
|
|
278
|
+
}), r;
|
|
279
|
+
}
|
|
280
|
+
text(e) {
|
|
281
|
+
let t = [], n = (e) => {
|
|
282
|
+
e.nodeType === Node.TEXT_NODE ? t.push(e.textContent ?? "") : e instanceof Element && !e.matches(b) && e.childNodes.forEach(n);
|
|
283
|
+
};
|
|
284
|
+
return e.childNodes.forEach(n), f(t.join(" "));
|
|
285
|
+
}
|
|
286
|
+
arrange() {
|
|
287
|
+
if (!this.lightDom) return;
|
|
288
|
+
let e = this.sourceImage(), t = this.imgHost;
|
|
289
|
+
e && t && e.parentElement !== t && t.append(e);
|
|
290
|
+
let n = this.items ? null : this.sourceList(), r = this.listHost;
|
|
291
|
+
n && r && n.parentElement !== r && r.append(n);
|
|
292
|
+
}
|
|
293
|
+
watchImage(e) {
|
|
294
|
+
e === this.watchedImg ? e && this.measure() : (this.watchedImg?.removeEventListener("load", this.onImageLoad), this.watchedImg = e, e?.addEventListener("load", this.onImageLoad), this.measure());
|
|
295
|
+
}
|
|
296
|
+
measure() {
|
|
297
|
+
let e = this.watchedImg, t = e?.complete ? e.naturalWidth : 0, n = e?.complete ? e.naturalHeight : 0, r = t > 0 && n > 0 ? {
|
|
298
|
+
w: t,
|
|
299
|
+
h: n
|
|
300
|
+
} : null;
|
|
301
|
+
(r?.w !== this.natural?.w || r?.h !== this.natural?.h) && (this.natural = r);
|
|
302
|
+
}
|
|
303
|
+
get space() {
|
|
304
|
+
let e = Number(this.imageWidth), t = Number(this.imageHeight);
|
|
305
|
+
return e > 0 && t > 0 ? {
|
|
306
|
+
w: e,
|
|
307
|
+
h: t
|
|
308
|
+
} : this.natural ?? {
|
|
309
|
+
w: 0,
|
|
310
|
+
h: 0
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
place() {
|
|
314
|
+
let { w: e, h: t } = this.space, n = this.renderRoot.querySelector(".overlay")?.clientHeight ?? 0;
|
|
315
|
+
for (let r of this.renderRoot.querySelectorAll(".overlay > .region")) {
|
|
316
|
+
let i = this.entries[Number(r.dataset.index)], a = i?.box ? _(i.box, e, t) : null;
|
|
317
|
+
r.hidden = !a, a && (r.style.left = `${a.x}%`, r.style.top = `${a.y}%`, r.style.width = `${a.w}%`, r.style.height = `${a.h}%`, r.toggleAttribute("data-inside", a.y / 100 * n < 28));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
observeSize() {
|
|
321
|
+
let e = this.renderRoot.querySelector(".media");
|
|
322
|
+
e && typeof ResizeObserver < "u" && (this.resizer || (this.resizer = new ResizeObserver(() => {
|
|
323
|
+
let t = e.clientHeight;
|
|
324
|
+
t !== this.resized && (this.resized = t, this.place());
|
|
325
|
+
}), this.resizer.observe(e)));
|
|
326
|
+
}
|
|
327
|
+
entryEl(e) {
|
|
328
|
+
let t = this.entries[e];
|
|
329
|
+
return t ? t.el ? t.el : this.renderRoot.querySelector(`.items > li[data-index="${e}"]`) : null;
|
|
330
|
+
}
|
|
331
|
+
mark() {
|
|
332
|
+
let e = this.items ? null : this.sourceList();
|
|
333
|
+
this.entries.forEach((t, n) => {
|
|
334
|
+
let r = this.entryEl(n);
|
|
335
|
+
!r || t.el && t.el.parentElement !== e || (r.getAttribute("data-uvalib-region") !== String(t.number) && r.setAttribute("data-uvalib-region", String(t.number)), r.toggleAttribute("data-uvalib-active", n === this.active));
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
indexFrom(e) {
|
|
339
|
+
for (let t of e.composedPath()) {
|
|
340
|
+
if (t === this) break;
|
|
341
|
+
if (!(t instanceof HTMLElement)) continue;
|
|
342
|
+
if (t.classList.contains("region") && t.parentElement?.classList.contains("overlay")) return {
|
|
343
|
+
i: Number(t.dataset.index),
|
|
344
|
+
outline: !0
|
|
345
|
+
};
|
|
346
|
+
let e = this.entries.findIndex((e, n) => (e.el ?? this.entryEl(n)) === t);
|
|
347
|
+
if (e >= 0) return {
|
|
348
|
+
i: e,
|
|
349
|
+
outline: !1
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
return null;
|
|
353
|
+
}
|
|
354
|
+
setActive() {
|
|
355
|
+
let e = this.hover >= 0 ? this.hover : this.focused;
|
|
356
|
+
if (e === this.active) return;
|
|
357
|
+
this.active = e;
|
|
358
|
+
let t = this.entries[e]?.item ?? null;
|
|
359
|
+
this.dispatchEvent(new CustomEvent("highlight", {
|
|
360
|
+
detail: {
|
|
361
|
+
item: t,
|
|
362
|
+
index: t ? e : -1
|
|
363
|
+
},
|
|
364
|
+
bubbles: !0,
|
|
365
|
+
composed: !0
|
|
366
|
+
}));
|
|
367
|
+
}
|
|
368
|
+
choose(e) {
|
|
369
|
+
let t = this.entries[e], n = this.entryEl(e);
|
|
370
|
+
if (!t || !n) return;
|
|
371
|
+
n.hasAttribute("tabindex") || (n.tabIndex = -1), n.focus(), n.scrollIntoView({
|
|
372
|
+
block: "nearest",
|
|
373
|
+
inline: "nearest"
|
|
374
|
+
}), this.dispatchEvent(new CustomEvent("select", {
|
|
375
|
+
detail: {
|
|
376
|
+
item: t.item,
|
|
377
|
+
index: e
|
|
378
|
+
},
|
|
379
|
+
bubbles: !0,
|
|
380
|
+
composed: !0
|
|
381
|
+
}));
|
|
382
|
+
let r = f(this.label) || v;
|
|
383
|
+
u(this, [
|
|
384
|
+
"uvalib-image-regions",
|
|
385
|
+
"select",
|
|
386
|
+
r,
|
|
387
|
+
t.number
|
|
388
|
+
]);
|
|
389
|
+
}
|
|
390
|
+
get level() {
|
|
391
|
+
let e = Math.trunc(Number(this.headingLevel));
|
|
392
|
+
return e >= 2 && e <= 6 ? e : this.inferredLevel;
|
|
393
|
+
}
|
|
394
|
+
renderOwnList() {
|
|
395
|
+
let e = this.ownerDocument.baseURI;
|
|
396
|
+
return r`<ol class="items" aria-labelledby=${this.headingId}>
|
|
397
|
+
${this.entries.map(({ item: t }, n) => {
|
|
398
|
+
let i = t.href && p(t.href, e) ? t.href : "";
|
|
399
|
+
return r`<li data-index=${n}>
|
|
400
|
+
${i ? r`<a href=${i}>${t.label}</a>` : r`<span>${t.label}</span>`}
|
|
401
|
+
${t.description ? r`<span class="description">${t.description}</span>` : o}
|
|
402
|
+
</li>`;
|
|
403
|
+
})}
|
|
404
|
+
</ol>`;
|
|
405
|
+
}
|
|
406
|
+
render() {
|
|
407
|
+
let e = this.lightDom, t = this.numbering !== "none", n = this.src ? r`<img
|
|
408
|
+
part="image"
|
|
409
|
+
src=${this.src}
|
|
410
|
+
alt=${this.alt}
|
|
411
|
+
width=${this.width ?? o}
|
|
412
|
+
height=${this.height ?? o}
|
|
413
|
+
@load=${this.onImageLoad}
|
|
414
|
+
/>` : e ? r`<div class="img-host"></div>` : r`<slot name="image" @slotchange=${() => this.requestUpdate()}></slot>`, i = this.items ? this.renderOwnList() : e ? r`<div class="list-host"></div>` : r`<slot @slotchange=${() => this.sync()}></slot>`, a = this.active >= 0 && !!this.entries[this.active]?.box;
|
|
415
|
+
return r`<div class="layout" part="layout">
|
|
416
|
+
<div class="media" part="media">
|
|
417
|
+
${n}
|
|
418
|
+
<div
|
|
419
|
+
class="overlay ${a ? "has-active" : ""}"
|
|
420
|
+
part="overlay"
|
|
421
|
+
aria-hidden="true"
|
|
422
|
+
?hidden=${this.hideOutlines}
|
|
423
|
+
>
|
|
424
|
+
${this.entries.map((e, n) => e.box ? r`<div
|
|
425
|
+
class="region ${n === this.active ? "active" : ""}"
|
|
426
|
+
part="region"
|
|
427
|
+
data-index=${n}
|
|
428
|
+
>
|
|
429
|
+
<span class="badge ${t ? "" : "no-number"}"
|
|
430
|
+
>${t ? r`<span class="number">${e.number}</span>` : o}${e.item.label ? r`<span class="name">${e.item.label}</span>` : o}</span
|
|
431
|
+
>
|
|
432
|
+
</div>` : o)}
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
<div class="list" part="list">
|
|
436
|
+
<div class="heading" role="heading" aria-level=${this.level} id=${this.headingId}>
|
|
437
|
+
${f(this.label) || v}
|
|
438
|
+
</div>
|
|
439
|
+
${i}
|
|
440
|
+
</div>
|
|
441
|
+
</div>`;
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
// src/components/uvalib-image-regions/uvalib-image-regions.ts
|
|
445
|
+
a([e({ attribute: !1 })], T.prototype, "items", void 0), a([e({ type: String })], T.prototype, "src", void 0), a([e({ type: String })], T.prototype, "alt", void 0), a([e({ type: Number })], T.prototype, "width", void 0), a([e({ type: Number })], T.prototype, "height", void 0), a([e({
|
|
446
|
+
type: Number,
|
|
447
|
+
attribute: "image-width"
|
|
448
|
+
})], T.prototype, "imageWidth", void 0), a([e({
|
|
449
|
+
type: Number,
|
|
450
|
+
attribute: "image-height"
|
|
451
|
+
})], T.prototype, "imageHeight", void 0), a([e({ type: String })], T.prototype, "label", void 0), a([e({
|
|
452
|
+
type: Number,
|
|
453
|
+
attribute: "heading-level"
|
|
454
|
+
})], T.prototype, "headingLevel", void 0), a([e({ type: String })], T.prototype, "numbering", void 0), a([e({
|
|
455
|
+
type: Boolean,
|
|
456
|
+
reflect: !0,
|
|
457
|
+
attribute: "hide-outlines"
|
|
458
|
+
})], T.prototype, "hideOutlines", void 0), a([n()], T.prototype, "entries", void 0), a([n()], T.prototype, "natural", void 0), a([n()], T.prototype, "active", void 0), a([n()], T.prototype, "inferredLevel", void 0), i("uvalib-image-regions", T);
|
|
459
|
+
|
|
460
|
+
//# sourceMappingURL=uvalib-image-regions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uvalib-image-regions.js","names":["unsafeCSS","nothing","_decorate","property","state","n","i","r$1","b","define","__decorate","r","installLightDomStyles","UvalibElement","trackEvent","precedingHeadingLevel","normalize","safeHref","accessible","toRegion","parseXywh","toPercent","DEFAULT_LABEL","nextId","NOT_LABEL","structuralRules","host","shadowStructure","entryRules","p","entryStyles","UvalibImageRegions","to","hit","root","node","above","options","changed","kids","el","k","img","next","key","sameEls","out","raw","items","item","list","outside","start","li","box","link","label","id","href","parts","walk","imgHost","listHost","w","h","tall","entry","media","e","at","en","name","base","A","light","numbers","image","hasActive"],"sources":["../src/components/uvalib-image-regions/UvalibImageRegions.ts","../src/components/uvalib-image-regions/uvalib-image-regions.ts"],"sourcesContent":["import { css, html, nothing, unsafeCSS, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { trackEvent } from '../../base/analytics.js';\nimport { precedingHeadingLevel } from '../../base/heading-level.js';\nimport { installLightDomStyles } from '../../base/light-dom-styles.js';\nimport { normalize, safeHref } from '../../base/source-children.js';\nimport { UvalibElement } from '../../base/UvalibElement.js';\nimport { accessible } from '../../styles/accessible.js';\nimport { parseXywh, toPercent, toRegion, type ImageRegion, type RegionBox } from './regions.js';\n\nexport type { ImageRegion } from './regions.js';\n\n/** One region as drawn: what events carry, its box, its number and its list entry. */\ninterface Entry {\n item: ImageRegion;\n box: RegionBox | null;\n number: number;\n /** The author's list item (children mode); own items are found by index. */\n el: HTMLElement | null;\n}\n\nconst DEFAULT_LABEL = 'Regions';\nlet nextId = 0;\n\n/** Controls inside a list item, which are actions and not part of the region's name. */\nconst NOT_LABEL = 'button, input, select, textarea, ol, ul, [hidden], [aria-hidden=\"true\"]';\n\n/**\n * Kept with `no-style`: the layout (the image at its own width, at most the element's, and\n * the list beside it when at least 14rem is left, else under it: the same wrapping flex row\n * base.css gives the children before the element upgrades, so nothing moves), the overlay\n * over the image, and the double outlines and number badges (without them the regions are\n * not visible). `host` is `:host` (shadow) or the tag (light DOM).\n */\nconst structuralRules = (host: string) => `\n ${host} { display: block; }\n ${host} .layout {\n display: flex;\n flex-wrap: wrap;\n gap: 1rem;\n align-items: flex-start;\n }\n ${host} .media {\n position: relative;\n flex: 0 1 auto;\n width: fit-content;\n min-width: 0;\n max-width: 100%;\n margin: 0;\n }\n ${host} .list { flex: 1 1 14rem; min-width: 0; }\n ${host} .media img, ${host} .img-host > picture${\n host === ':host' ? ', ::slotted(img), ::slotted(picture)' : ''\n } { display: block; max-width: 100%; height: auto; }\n ${host} .overlay {\n position: absolute;\n inset: 0;\n overflow: clip;\n overflow-clip-margin: 0.5rem;\n pointer-events: none;\n forced-color-adjust: none;\n }\n ${host} .region {\n position: absolute;\n box-sizing: border-box;\n border: 2px solid #fff;\n outline: 2px solid #000;\n pointer-events: auto;\n cursor: pointer;\n }\n ${host} .region.active { z-index: 1; border-width: 4px; outline-width: 4px; }\n ${host} .overlay.has-active .region:not(.active) { opacity: 0.6; }\n ${host} .badge {\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n display: flex;\n gap: 0.375em;\n max-width: 16rem;\n padding: 0.0625rem 0.375rem;\n background: #000;\n color: #fff;\n font-size: 0.875rem;\n font-weight: 700;\n line-height: 1.25;\n white-space: nowrap;\n outline: 1px solid #fff;\n }\n ${host} .region:not([data-inside]) .badge {\n inset-block-start: auto;\n inset-block-end: calc(100% + 4px);\n inset-inline-start: -4px;\n }\n ${host} .region.active:not([data-inside]) .badge {\n inset-block-end: calc(100% + 8px);\n inset-inline-start: -8px;\n }\n ${host} .badge .name { overflow: hidden; text-overflow: ellipsis; }\n ${host} .region:not(.active) .badge .name, ${host} .badge:empty { display: none; }\n ${host} .region:not(.active) .badge.no-number { display: none; }\n ${host} .heading { margin: 0 0 0.5rem; }\n ${host} .items { margin: 0; }\n @media (forced-colors: active) {\n ${host} .region { border-color: Canvas; outline-color: CanvasText; }\n ${host} .region.active { outline-color: Highlight; }\n ${host} .badge { background: CanvasText; color: Canvas; outline-color: Canvas; }\n ${host} .region.active .badge { background: Highlight; color: HighlightText; }\n }\n ${host}[hidden], ${host} [hidden] { display: none !important; }\n`;\nconst shadowStructure = unsafeCSS(structuralRules(':host'));\n\n/**\n * A region's list entry: room for the highlight bar, and the bar (with a tint) while its\n * region is highlighted, so it is shown by more than colour. Shadow mode also installs\n * these in the page, scoped to the tag, for the author's own list items.\n */\nconst entryRules = (p: string) => `\n ${p}[data-uvalib-region] {\n box-sizing: border-box;\n padding-block: 0.5rem;\n padding-inline: calc(0.5rem + 0.375rem) 0.5rem;\n overflow-wrap: anywhere;\n }\n ${p}[data-uvalib-region][data-uvalib-active] {\n padding-inline-start: 0.5rem;\n border-inline-start: 0.375rem solid currentColor;\n background: var(--uva-color-surface-hover, #f1f1f1);\n }\n ${p}[data-uvalib-region]:focus-visible {\n outline: 3px solid var(--uva-color-focus, var(--uva-brand-orange, #e57200));\n outline-offset: 2px;\n }\n ${p}[data-uvalib-region][tabindex='-1']:focus:not(:focus-visible) { outline: none; }\n @media (forced-colors: active) {\n ${p}[data-uvalib-region][data-uvalib-active] { border-inline-start-color: Highlight; }\n }\n`;\nconst entryStyles = unsafeCSS(entryRules(''));\n\n/**\n * An image with numbered region outlines (people, objects, inscriptions) and a list of the\n * same regions beside it (under it on a narrow screen). The list is the way in: the\n * outlines are a visual aid, hidden from assistive technology and not in the tab order, so\n * no region is a second tab stop. Hovering or focusing a list entry (or anything in it)\n * highlights its region with a thicker double outline and its label, and dims the others;\n * hovering a region highlights its entry. Clicking a region moves focus to its entry.\n *\n * The image: an `<img>` (or `<picture>`) child, which keeps its `alt`, or `src` and `alt`.\n * Give it `width` and `height` so its space is reserved before it loads.\n *\n * The regions: an `<ol>` child whose `<li>` items carry `data-xywh` (IIIF / Media Fragments:\n * `percent:10,20,30,40`, or pixels `160,120,320,240` of the image's natural size). The list\n * is shown as written, so it works before the component loads or without JavaScript, and\n * any links and buttons in it stay the page's own (their events are the page's). Or set\n * the `items` property, and the component draws the list. Region numbers are the list's\n * numbers, from 1 (or the `<ol>`'s `start`).\n *\n * @tagname uvalib-image-regions\n * @slot - The region list (`<ol>` with `<li data-xywh>`), shown as written. Not used with `items`.\n * @slot image - The image. A first `<img>` or `<picture>` child is put here by itself.\n * @csspart layout - The grid holding the image and the list.\n * @csspart media - The image and its overlay.\n * @csspart overlay - The outlines over the image (`aria-hidden`).\n * @csspart region - One outline.\n * @csspart list - The heading and the list.\n * @fires highlight - The highlighted region changed by hover or focus: `detail` is `{ item, index }` (`item` null and `index` -1 when none is). Bubbles and is composed.\n * @fires select - A region's outline was clicked (focus moved to its list entry): `detail` is `{ item, index }`. Bubbles and is composed.\n * @fires uvalib-analytics-event - For `<site-analytics>`: `['uvalib-image-regions', 'select', '<label>', <number>]` when an outline is clicked (the list's `label`, and the region's number from 1). Never a region's label (it may be a person's name). Nothing on hover or focus. Bubbles and is composed.\n * @cssprop --uva-color-text - Dark-mode role token: text (else `--uva-grey-darkest`).\n * @cssprop --uva-color-surface-hover - Dark-mode role token: the highlighted entry's tint (else #f1f1f1).\n * @cssprop --uva-color-link - Dark-mode role token: entry links (else `--uva-brand-blue`).\n * @cssprop --uva-color-focus - Dark-mode role token: focus ring (else `--uva-brand-orange`).\n * @cssprop --uva-color-text-muted - Dark-mode role token: descriptions (else #4b5563).\n */\nexport class UvalibImageRegions extends UvalibElement {\n static styles = [\n accessible,\n shadowStructure,\n entryStyles,\n css`\n .list {\n color: var(--uva-color-text, var(--uva-grey-darkest, #2b2b2b));\n }\n .heading {\n font-size: 1.125rem;\n font-weight: 700;\n line-height: 1.3;\n }\n .items {\n padding-inline-start: 1.75rem;\n }\n .items a {\n color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));\n }\n .description {\n display: block;\n color: var(--uva-color-text-muted, #4b5563);\n font-size: 0.9375rem;\n }\n @media (prefers-reduced-motion: no-preference) {\n .region {\n transition: opacity 0.15s ease;\n }\n }\n `,\n ];\n\n /** The regions, when the component draws the list. Overrides the child list. */\n @property({ attribute: false }) items: ImageRegion[] | null = null;\n\n /** Image URL, when there is no `<img>` child. */\n @property({ type: String }) src = '';\n /** The image's alternative text (with `src`). */\n @property({ type: String }) alt = '';\n /** The image's width (with `src`), reserving its space. */\n @property({ type: Number }) width?: number;\n /** The image's height (with `src`). */\n @property({ type: Number }) height?: number;\n\n /**\n * The size pixel regions are measured in, when it is not the image's natural size (for\n * example a IIIF derivative of a larger original: the original's width and height).\n */\n @property({ type: Number, attribute: 'image-width' }) imageWidth?: number;\n /** The height pixel regions are measured in (with `image-width`). */\n @property({ type: Number, attribute: 'image-height' }) imageHeight?: number;\n\n /** The list's heading, and the analytics name. */\n @property({ type: String }) label = 'Regions';\n\n /** The heading's level (2 to 6). Default: one below the heading before the element. */\n @property({ type: Number, attribute: 'heading-level' }) headingLevel?: number;\n\n /** `numbers` (default) shows each region's number on its outline; `none` hides them. */\n @property({ type: String }) numbering: 'numbers' | 'none' = 'numbers';\n\n /** Hide the outlines (the list stays). */\n @property({ type: Boolean, reflect: true, attribute: 'hide-outlines' }) hideOutlines = false;\n\n @state() private entries: Entry[] = [];\n @state() private natural: { w: number; h: number } | null = null;\n @state() private active = -1;\n @state() private inferredLevel = 2;\n\n private hover = -1;\n private focused = -1;\n private readonly headingId = `uvalib-image-regions-heading-${++nextId}`;\n private observer?: MutationObserver;\n private watchedImg: HTMLImageElement | null = null;\n /** A list slotted through a `<slot>` child (from a host element's light DOM), also observed. */\n private slottedList: Element | null = null;\n private key = '';\n /** The image's rendered size decides where badges fit. */\n private resizer?: ResizeObserver;\n private resized = 0;\n\n constructor() {\n super();\n this.addEventListener('pointerover', this.onPointerOver);\n this.addEventListener('pointerleave', this.onPointerLeave);\n this.addEventListener('focusin', this.onFocusIn);\n this.addEventListener('focusout', this.onFocusOut);\n this.addEventListener('click', this.onClick);\n }\n\n protected override createRenderRoot(): HTMLElement | DocumentFragment {\n const root = super.createRenderRoot();\n if (this.noStyle && root instanceof ShadowRoot && shadowStructure.styleSheet)\n root.adoptedStyleSheets = [shadowStructure.styleSheet];\n return root;\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n const node = this.getRootNode();\n const root = node instanceof Document || node instanceof ShadowRoot ? node : undefined;\n if (this.lightDom && this.noStyle) {\n installLightDomStyles(\n `${this.localName}::structure`,\n unsafeCSS(structuralRules(this.localName)),\n { root, scope: false },\n );\n } else if (!this.lightDom && !this.noStyle) {\n // The author's list items are page content: their highlight is styled in the page.\n installLightDomStyles(\n `${this.localName}::entries`,\n unsafeCSS(entryRules(`${this.localName} `)),\n { root, scope: false },\n );\n }\n const above = precedingHeadingLevel(this);\n this.inferredLevel = above === null ? 2 : Math.min(Math.max(above + 1, 2), 6);\n this.slottedList = null;\n this.sync();\n this.observe();\n }\n\n /** Watch the children, and a list slotted from outside them (it is not in this subtree). */\n private observe(): void {\n this.observer ??= new MutationObserver(() => this.sync());\n this.observer.disconnect();\n const options: MutationObserverInit = {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['data-xywh', 'data-label', 'data-id', 'href', 'start', 'src', 'srcset'],\n characterData: true,\n };\n this.observer.observe(this, options);\n if (this.slottedList) this.observer.observe(this.slottedList, options);\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n this.observer?.disconnect();\n this.resizer?.disconnect();\n this.resizer = undefined;\n this.watchImage(null);\n }\n\n protected override willUpdate(changed: PropertyValues): void {\n if (changed.has('items') || changed.has('src')) this.sync();\n }\n\n protected override updated(changed: PropertyValues): void {\n super.updated(changed);\n this.arrange();\n this.observeSize();\n this.place();\n this.mark();\n // Reading the image's size may set state: not from inside this update.\n queueMicrotask(() => {\n if (this.isConnected) this.watchImage(this.imageEl());\n });\n }\n\n // ---------------------------------------------------------------- sources\n\n /** The author's image element (`<img>` or `<picture>`), wherever it is now. */\n private sourceImage(): HTMLElement | null {\n if (this.src) return null;\n const kids = this.lightDom\n ? [...this.children, ...(this.imgHost?.children ?? [])]\n : [...this.children];\n const named = kids.find((k) => k.getAttribute('slot') === 'image');\n const el = named ?? kids.find((k) => k.localName === 'img' || k.localName === 'picture');\n return el instanceof HTMLElement ? el : null;\n }\n\n /**\n * The author's list (`<ol>` or `<ul>`), wherever it is now. A `<slot>` child (this element\n * inside another component's shadow root) passes on that host's list, which stays in the\n * page's light DOM (so the page's styles and listeners still apply to it).\n */\n private sourceList(): HTMLOListElement | HTMLUListElement | null {\n const kids = (\n this.lightDom ? [...this.children, ...(this.listHost?.children ?? [])] : [...this.children]\n ).flatMap((k) => (k instanceof HTMLSlotElement ? k.assignedElements({ flatten: true }) : [k]));\n const el = kids.find((k) => k.localName === 'ol' || k.localName === 'ul');\n return (el as HTMLOListElement | HTMLUListElement | undefined) ?? null;\n }\n\n private get imgHost(): HTMLElement | null {\n return this.lightDom ? this.querySelector(':scope > .layout .img-host') : null;\n }\n\n private get listHost(): HTMLElement | null {\n return this.lightDom ? this.querySelector(':scope > .layout .list-host') : null;\n }\n\n /** The `<img>` whose natural size measures pixel regions. */\n private imageEl(): HTMLImageElement | null {\n if (this.src) return this.renderRoot.querySelector<HTMLImageElement>('.media > img');\n const el = this.sourceImage();\n if (!el) return null;\n return el instanceof HTMLImageElement ? el : el.querySelector('img');\n }\n\n /** Re-read the regions (and in shadow mode put the image in its slot). */\n private sync(): void {\n const img = this.sourceImage();\n if (img && !this.lightDom && !img.hasAttribute('slot')) img.setAttribute('slot', 'image');\n const next = this.items ? this.fromItems(this.items) : this.fromList();\n const key = JSON.stringify(next.map((e) => [e.item, e.box, e.number]));\n const sameEls =\n next.length === this.entries.length && next.every((e, i) => e.el === this.entries[i]?.el);\n if (key === this.key && sameEls) return;\n this.key = key;\n this.entries = next;\n if (this.active >= next.length) this.active = -1;\n }\n\n private fromItems(items: unknown[]): Entry[] {\n const out: Entry[] = [];\n for (const raw of Array.isArray(items) ? items : []) {\n const item = toRegion(raw);\n if (!item) continue;\n const { x, y, w, h, unit = 'px' } = item;\n out.push({ item, box: { x, y, w, h, unit }, number: out.length + 1, el: null });\n }\n return out;\n }\n\n private fromList(): Entry[] {\n const list = this.sourceList();\n const outside = list && !this.contains(list) ? list : null;\n if (outside !== this.slottedList) {\n this.slottedList = outside;\n if (this.isConnected) this.observe();\n if (outside && !this.noStyle) {\n // Its entries are styled where the list is (the page), not under this tag.\n const root = outside.getRootNode();\n if (root instanceof Document || root instanceof ShadowRoot)\n installLightDomStyles(`${this.localName}::slotted-entries`, entryStyles, {\n root,\n scope: false,\n });\n }\n }\n if (!list) return [];\n const start = list.localName === 'ol' ? Number(list.getAttribute('start') ?? 1) || 1 : 1;\n const out: Entry[] = [];\n [...list.children].forEach((li, i) => {\n if (li.localName !== 'li' || !(li instanceof HTMLElement)) return;\n const box = parseXywh(li.dataset.xywh);\n const link = li.querySelector('a[href]');\n const label = normalize(li.dataset.label) || normalize(link?.textContent) || this.text(li);\n const item: ImageRegion = box ? { label, ...box } : { label, x: 0, y: 0, w: 0, h: 0 };\n const id = normalize(li.dataset.id) || li.id;\n if (id) item.id = id;\n const href = link?.getAttribute('href');\n if (href) item.href = href;\n out.push({ item, box, number: start + i, el: li });\n });\n return out;\n }\n\n /** A list item's own text, without its actions (buttons, fields) or a nested list. */\n private text(li: Element): string {\n const parts: string[] = [];\n const walk = (n: Node) => {\n if (n.nodeType === Node.TEXT_NODE) parts.push(n.textContent ?? '');\n else if (n instanceof Element && !n.matches(NOT_LABEL)) n.childNodes.forEach(walk);\n };\n li.childNodes.forEach(walk);\n return normalize(parts.join(' '));\n }\n\n // ---------------------------------------------------------------- layout\n\n /** Light DOM: move the author's image and list into the layout (the same nodes). */\n private arrange(): void {\n if (!this.lightDom) return;\n const img = this.sourceImage();\n const imgHost = this.imgHost;\n if (img && imgHost && img.parentElement !== imgHost) imgHost.append(img);\n const list = this.items ? null : this.sourceList();\n const listHost = this.listHost;\n if (list && listHost && list.parentElement !== listHost) listHost.append(list);\n }\n\n private watchImage(img: HTMLImageElement | null): void {\n if (img === this.watchedImg) {\n if (img) this.measure();\n return;\n }\n this.watchedImg?.removeEventListener('load', this.onImageLoad);\n this.watchedImg = img;\n img?.addEventListener('load', this.onImageLoad);\n this.measure();\n }\n\n private readonly onImageLoad = (): void => this.measure();\n\n private measure(): void {\n const img = this.watchedImg;\n const w = img?.complete ? img.naturalWidth : 0;\n const h = img?.complete ? img.naturalHeight : 0;\n const next = w > 0 && h > 0 ? { w, h } : null;\n if (next?.w !== this.natural?.w || next?.h !== this.natural?.h) this.natural = next;\n }\n\n /** The size pixel regions are measured in. */\n private get space(): { w: number; h: number } {\n const w = Number(this.imageWidth);\n const h = Number(this.imageHeight);\n if (w > 0 && h > 0) return { w, h };\n return this.natural ?? { w: 0, h: 0 };\n }\n\n /**\n * Position the outlines in percent of the image, so they scale with it (CSSOM, not markup).\n * A number badge sits above its outline, or inside it when there is no room above.\n */\n private place(): void {\n const { w, h } = this.space;\n const overlay = this.renderRoot.querySelector<HTMLElement>('.overlay');\n const tall = overlay?.clientHeight ?? 0;\n for (const el of this.renderRoot.querySelectorAll<HTMLElement>('.overlay > .region')) {\n const entry = this.entries[Number(el.dataset.index)];\n const box = entry?.box ? toPercent(entry.box, w, h) : null;\n el.hidden = !box;\n if (!box) continue;\n el.style.left = `${box.x}%`;\n el.style.top = `${box.y}%`;\n el.style.width = `${box.w}%`;\n el.style.height = `${box.h}%`;\n el.toggleAttribute('data-inside', (box.y / 100) * tall < 28);\n }\n }\n\n private observeSize(): void {\n const media = this.renderRoot.querySelector<HTMLElement>('.media');\n if (!media || typeof ResizeObserver === 'undefined') return;\n if (!this.resizer) {\n this.resizer = new ResizeObserver(() => {\n // The outlines scale by themselves (percent); only the badges' side may change.\n const h = media.clientHeight;\n if (h === this.resized) return;\n this.resized = h;\n this.place();\n });\n this.resizer.observe(media);\n }\n }\n\n /** The list entry of region `i`. */\n private entryEl(i: number): HTMLElement | null {\n const entry = this.entries[i];\n if (!entry) return null;\n if (entry.el) return entry.el;\n return this.renderRoot.querySelector<HTMLElement>(`.items > li[data-index=\"${i}\"]`);\n }\n\n /** Mark the entries (their padding) and the highlighted one. */\n private mark(): void {\n const list = this.items ? null : this.sourceList();\n this.entries.forEach((e, i) => {\n const el = this.entryEl(i);\n // An author's item that has left the list (given back to the page) is not marked again.\n if (!el || (e.el && e.el.parentElement !== list)) return;\n if (el.getAttribute('data-uvalib-region') !== String(e.number))\n el.setAttribute('data-uvalib-region', String(e.number));\n el.toggleAttribute('data-uvalib-active', i === this.active);\n });\n }\n\n // ---------------------------------------------------------------- interaction\n\n /** The region an event is about: its outline or its list entry (or anything inside it). */\n private indexFrom(e: Event): { i: number; outline: boolean } | null {\n for (const n of e.composedPath()) {\n if (n === this) break;\n if (!(n instanceof HTMLElement)) continue;\n if (n.classList.contains('region') && n.parentElement?.classList.contains('overlay'))\n return { i: Number(n.dataset.index), outline: true };\n const at = this.entries.findIndex((en, i) => (en.el ?? this.entryEl(i)) === n);\n if (at >= 0) return { i: at, outline: false };\n }\n return null;\n }\n\n private setActive(): void {\n const next = this.hover >= 0 ? this.hover : this.focused;\n if (next === this.active) return;\n this.active = next;\n const item = this.entries[next]?.item ?? null;\n this.dispatchEvent(\n new CustomEvent('highlight', {\n detail: { item, index: item ? next : -1 },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n private readonly onPointerOver = (e: PointerEvent): void => {\n this.hover = this.indexFrom(e)?.i ?? -1;\n this.setActive();\n };\n\n private readonly onPointerLeave = (): void => {\n this.hover = -1;\n this.setActive();\n };\n\n private readonly onFocusIn = (e: FocusEvent): void => {\n this.focused = this.indexFrom(e)?.i ?? -1;\n this.setActive();\n };\n\n private readonly onFocusOut = (e: FocusEvent): void => {\n const to = e.relatedTarget;\n if (\n to instanceof Node &&\n (this.contains(to) || this.renderRoot.contains(to) || this.slottedList?.contains(to))\n )\n return;\n this.focused = -1;\n this.setActive();\n };\n\n private readonly onClick = (e: MouseEvent): void => {\n const hit = this.indexFrom(e);\n if (!hit?.outline) return;\n this.choose(hit.i);\n };\n\n /** An outline was clicked: focus its entry, and say so. */\n private choose(i: number): void {\n const entry = this.entries[i];\n const el = this.entryEl(i);\n if (!entry || !el) return;\n if (!el.hasAttribute('tabindex')) el.tabIndex = -1;\n el.focus();\n el.scrollIntoView({ block: 'nearest', inline: 'nearest' });\n this.dispatchEvent(\n new CustomEvent('select', {\n detail: { item: entry.item, index: i },\n bubbles: true,\n composed: true,\n }),\n );\n const name = normalize(this.label) || DEFAULT_LABEL;\n trackEvent(this, ['uvalib-image-regions', 'select', name, entry.number]);\n }\n\n // ---------------------------------------------------------------- render\n\n private get level(): number {\n const n = Math.trunc(Number(this.headingLevel));\n return n >= 2 && n <= 6 ? n : this.inferredLevel;\n }\n\n private renderOwnList() {\n const base = this.ownerDocument.baseURI;\n return html`<ol class=\"items\" aria-labelledby=${this.headingId}>\n ${this.entries.map(({ item }, i) => {\n const href = item.href && safeHref(item.href, base) ? item.href : '';\n return html`<li data-index=${i}>\n ${href ? html`<a href=${href}>${item.label}</a>` : html`<span>${item.label}</span>`}\n ${item.description ? html`<span class=\"description\">${item.description}</span>` : nothing}\n </li>`;\n })}\n </ol>`;\n }\n\n protected override render() {\n const light = this.lightDom;\n const numbers = this.numbering !== 'none';\n const image = this.src\n ? html`<img\n part=\"image\"\n src=${this.src}\n alt=${this.alt}\n width=${this.width ?? nothing}\n height=${this.height ?? nothing}\n @load=${this.onImageLoad}\n />`\n : light\n ? html`<div class=\"img-host\"></div>`\n : html`<slot name=\"image\" @slotchange=${() => this.requestUpdate()}></slot>`;\n const list = this.items\n ? this.renderOwnList()\n : light\n ? html`<div class=\"list-host\"></div>`\n : html`<slot @slotchange=${() => this.sync()}></slot>`;\n const hasActive = this.active >= 0 && !!this.entries[this.active]?.box;\n return html`<div class=\"layout\" part=\"layout\">\n <div class=\"media\" part=\"media\">\n ${image}\n <div\n class=\"overlay ${hasActive ? 'has-active' : ''}\"\n part=\"overlay\"\n aria-hidden=\"true\"\n ?hidden=${this.hideOutlines}\n >\n ${this.entries.map((e, i) =>\n e.box\n ? html`<div\n class=\"region ${i === this.active ? 'active' : ''}\"\n part=\"region\"\n data-index=${i}\n >\n <span class=\"badge ${numbers ? '' : 'no-number'}\"\n >${numbers ? html`<span class=\"number\">${e.number}</span>` : nothing}${\n e.item.label ? html`<span class=\"name\">${e.item.label}</span>` : nothing\n }</span\n >\n </div>`\n : nothing,\n )}\n </div>\n </div>\n <div class=\"list\" part=\"list\">\n <div class=\"heading\" role=\"heading\" aria-level=${this.level} id=${this.headingId}>\n ${normalize(this.label) || DEFAULT_LABEL}\n </div>\n ${list}\n </div>\n </div>`;\n }\n}\n","import { define } from '../../base/define.js';\nimport { UvalibImageRegions } from './UvalibImageRegions.js';\n\ndefine('uvalib-image-regions', UvalibImageRegions);\n"],"mapp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