@uvalib/web-components 1.0.0 → 1.1.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 +82 -0
- package/README.md +724 -33
- package/dist/base/analytics-state.d.ts +36 -0
- package/dist/base/analytics-state.js +44 -0
- package/dist/base/analytics-state.js.map +1 -0
- package/dist/base/analytics.d.ts +31 -27
- package/dist/base/analytics.js +48 -37
- package/dist/base/analytics.js.map +1 -1
- package/dist/base/inline-copy.d.ts +16 -0
- package/dist/base/inline-copy.js +92 -0
- package/dist/base/inline-copy.js.map +1 -0
- package/dist/base/source-children.d.ts +46 -0
- package/dist/base/source-children.js +116 -0
- package/dist/base/source-children.js.map +1 -0
- package/dist/base.css +199 -0
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/base.js.map +1 -1
- package/dist/components/bento-box/BentoSection.d.ts +1 -1
- package/dist/components/bento-box/BentoSection.js +29 -6
- package/dist/components/bento-box/BentoSection.js.map +1 -1
- package/dist/components/events-section/EventsSection.d.ts +3 -0
- package/dist/components/events-section/EventsSection.js +12 -1
- package/dist/components/events-section/EventsSection.js.map +1 -1
- package/dist/components/library-weekly-hours/LibraryWeeklyHours.d.ts +1 -0
- package/dist/components/library-weekly-hours/LibraryWeeklyHours.js +5 -0
- package/dist/components/library-weekly-hours/LibraryWeeklyHours.js.map +1 -1
- package/dist/components/site-alerts/SiteAlerts.d.ts +109 -0
- package/dist/components/site-alerts/SiteAlerts.js +542 -0
- package/dist/components/site-alerts/SiteAlerts.js.map +1 -0
- package/dist/components/site-alerts/alerts-source.d.ts +36 -0
- package/dist/components/site-alerts/alerts-source.js +115 -0
- package/dist/components/site-alerts/alerts-source.js.map +1 -0
- package/dist/components/{site-page → site-alerts}/alerts.js +8 -3
- package/dist/components/site-alerts/alerts.js.map +1 -0
- package/dist/components/site-alerts/body.d.ts +10 -0
- package/dist/components/site-alerts/body.js +48 -0
- package/dist/components/site-alerts/body.js.map +1 -0
- package/dist/components/site-alerts/dismissed.d.ts +12 -0
- package/dist/components/site-alerts/dismissed.js +72 -0
- package/dist/components/site-alerts/dismissed.js.map +1 -0
- package/dist/components/site-alerts/icons.d.ts +8 -0
- package/dist/components/site-alerts/icons.js +15 -0
- package/dist/components/site-alerts/icons.js.map +1 -0
- package/dist/components/site-alerts/site-alerts.d.ts +1 -0
- package/dist/components/site-alerts/site-alerts.js +4 -0
- package/dist/components/site-alerts/site-alerts.js.map +1 -0
- package/dist/components/site-analytics/SiteAnalytics.d.ts +26 -2
- package/dist/components/site-analytics/SiteAnalytics.js +140 -4
- package/dist/components/site-analytics/SiteAnalytics.js.map +1 -1
- package/dist/components/site-footer/SiteFooter.d.ts +4 -0
- package/dist/components/site-footer/SiteFooter.js +28 -4
- package/dist/components/site-footer/SiteFooter.js.map +1 -1
- package/dist/components/site-header/SiteHeader.d.ts +47 -3
- package/dist/components/site-header/SiteHeader.js +198 -21
- package/dist/components/site-header/SiteHeader.js.map +1 -1
- package/dist/components/site-hours-section/SiteHoursSection.d.ts +4 -1
- package/dist/components/site-hours-section/SiteHoursSection.js +18 -3
- package/dist/components/site-hours-section/SiteHoursSection.js.map +1 -1
- package/dist/components/site-main-nav/SiteMainNav.d.ts +1 -1
- package/dist/components/site-main-nav/SiteMainNav.js +11 -1
- package/dist/components/site-main-nav/SiteMainNav.js.map +1 -1
- package/dist/components/site-page/SitePage.d.ts +43 -15
- package/dist/components/site-page/SitePage.js +161 -34
- package/dist/components/site-page/SitePage.js.map +1 -1
- package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.d.ts +91 -0
- package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.js +310 -0
- package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.js.map +1 -0
- package/dist/components/uvalib-breadcrumbs/uvalib-breadcrumbs.d.ts +1 -0
- package/dist/components/uvalib-breadcrumbs/uvalib-breadcrumbs.js +4 -0
- package/dist/components/uvalib-breadcrumbs/uvalib-breadcrumbs.js.map +1 -0
- package/dist/components/uvalib-card/UvalibCard.d.ts +113 -0
- package/dist/components/uvalib-card/UvalibCard.js +643 -0
- package/dist/components/uvalib-card/UvalibCard.js.map +1 -0
- package/dist/components/uvalib-card/uvalib-card.d.ts +1 -0
- package/dist/components/uvalib-card/uvalib-card.js +4 -0
- package/dist/components/uvalib-card/uvalib-card.js.map +1 -0
- package/dist/components/uvalib-card-grid/UvalibCardGrid.d.ts +60 -0
- package/dist/components/uvalib-card-grid/UvalibCardGrid.js +305 -0
- package/dist/components/uvalib-card-grid/UvalibCardGrid.js.map +1 -0
- package/dist/components/uvalib-card-grid/uvalib-card-grid.d.ts +1 -0
- package/dist/components/uvalib-card-grid/uvalib-card-grid.js +4 -0
- package/dist/components/uvalib-card-grid/uvalib-card-grid.js.map +1 -0
- package/dist/components/uvalib-contents/UvalibContents.d.ts +134 -0
- package/dist/components/uvalib-contents/UvalibContents.js +613 -0
- package/dist/components/uvalib-contents/UvalibContents.js.map +1 -0
- package/dist/components/uvalib-contents/uvalib-contents.d.ts +1 -0
- package/dist/components/uvalib-contents/uvalib-contents.js +4 -0
- package/dist/components/uvalib-contents/uvalib-contents.js.map +1 -0
- package/dist/components/uvalib-date-range/UvalibDateRange.d.ts +10 -0
- package/dist/components/uvalib-date-range/UvalibDateRange.js +21 -0
- package/dist/components/uvalib-date-range/UvalibDateRange.js.map +1 -1
- package/dist/components/uvalib-filter/UvalibFilter.d.ts +1 -0
- package/dist/components/uvalib-filter/UvalibFilter.js +11 -1
- package/dist/components/uvalib-filter/UvalibFilter.js.map +1 -1
- package/dist/components/uvalib-lightbox/UvalibLightbox.d.ts +204 -0
- package/dist/components/uvalib-lightbox/UvalibLightbox.js +1115 -0
- package/dist/components/uvalib-lightbox/UvalibLightbox.js.map +1 -0
- package/dist/components/uvalib-lightbox/media.d.ts +51 -0
- package/dist/components/uvalib-lightbox/media.js +127 -0
- package/dist/components/uvalib-lightbox/media.js.map +1 -0
- package/dist/components/uvalib-lightbox/uvalib-lightbox.d.ts +1 -0
- package/dist/components/uvalib-lightbox/uvalib-lightbox.js +4 -0
- package/dist/components/uvalib-lightbox/uvalib-lightbox.js.map +1 -0
- package/dist/components/uvalib-metadata/UvalibMetadata.d.ts +124 -0
- package/dist/components/uvalib-metadata/UvalibMetadata.js +443 -0
- package/dist/components/uvalib-metadata/UvalibMetadata.js.map +1 -0
- package/dist/components/uvalib-metadata/rights.d.ts +8 -0
- package/dist/components/uvalib-metadata/rights.js +47 -0
- package/dist/components/uvalib-metadata/rights.js.map +1 -0
- package/dist/components/uvalib-metadata/uvalib-metadata.d.ts +1 -0
- package/dist/components/uvalib-metadata/uvalib-metadata.js +4 -0
- package/dist/components/uvalib-metadata/uvalib-metadata.js.map +1 -0
- package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.d.ts +103 -0
- package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +410 -0
- package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -0
- package/dist/components/uvalib-pagefind-search/uvalib-pagefind-search.d.ts +1 -0
- package/dist/components/uvalib-pagefind-search/uvalib-pagefind-search.js +7 -0
- package/dist/components/uvalib-pagefind-search/uvalib-pagefind-search.js.map +1 -0
- package/dist/components/uvalib-pager/UvalibPager.d.ts +94 -0
- package/dist/components/uvalib-pager/UvalibPager.js +390 -0
- package/dist/components/uvalib-pager/UvalibPager.js.map +1 -0
- package/dist/components/uvalib-pager/uvalib-pager.d.ts +1 -0
- package/dist/components/uvalib-pager/uvalib-pager.js +4 -0
- package/dist/components/uvalib-pager/uvalib-pager.js.map +1 -0
- package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.d.ts +59 -0
- package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js +350 -0
- package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js.map +1 -0
- package/dist/components/uvalib-photo-grid/uvalib-photo-grid.d.ts +1 -0
- package/dist/components/uvalib-photo-grid/uvalib-photo-grid.js +4 -0
- package/dist/components/uvalib-photo-grid/uvalib-photo-grid.js.map +1 -0
- package/dist/custom-elements.json +12291 -4424
- package/dist/index.d.ts +16 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/pagefind.css +388 -0
- package/dist/styles/base.js +11 -0
- package/dist/styles/base.js.map +1 -1
- package/dist/styles/color-scheme.js +24 -11
- package/dist/styles/color-scheme.js.map +1 -1
- package/dist/styles/controls.d.ts +2 -0
- package/dist/styles/controls.js +200 -0
- package/dist/styles/controls.js.map +1 -0
- package/dist/styles/pagefind.d.ts +1 -0
- package/dist/styles/pagefind.js +395 -0
- package/dist/styles/pagefind.js.map +1 -0
- package/dist/tokens.css +23 -20
- package/dist-cdn/base.css +199 -0
- package/dist-cdn/bento-box.js +117 -97
- package/dist-cdn/bento-box.js.map +1 -1
- package/dist-cdn/chunks/SiteAnalytics-Cm-FyhYS.js +243 -0
- package/dist-cdn/chunks/SiteAnalytics-Cm-FyhYS.js.map +1 -0
- package/dist-cdn/chunks/alerts-C5vkeb-f.js +39 -0
- package/dist-cdn/chunks/alerts-C5vkeb-f.js.map +1 -0
- package/dist-cdn/chunks/analytics-DTTihuBD.js +43 -0
- package/dist-cdn/chunks/analytics-DTTihuBD.js.map +1 -0
- package/dist-cdn/chunks/analytics-state-Ce8DKe4F.js +39 -0
- package/dist-cdn/chunks/analytics-state-Ce8DKe4F.js.map +1 -0
- package/dist-cdn/chunks/{base-DCGd2Oii.js → base-CAFQWnZG.js} +12 -1
- package/dist-cdn/chunks/{base-DCGd2Oii.js.map → base-CAFQWnZG.js.map} +1 -1
- package/dist-cdn/chunks/{library-weekly-hours-ByQ8ugxh.js → library-weekly-hours-COE7Vv6V.js} +47 -38
- package/dist-cdn/chunks/library-weekly-hours-COE7Vv6V.js.map +1 -0
- package/dist-cdn/chunks/{site-header-BwDkZ2LL.js → site-header-C9V7Wuw2.js} +169 -49
- package/dist-cdn/chunks/site-header-C9V7Wuw2.js.map +1 -0
- package/dist-cdn/chunks/{site-main-nav-BLAAunnr.js → site-main-nav-AaxZ9rQf.js} +11 -2
- package/dist-cdn/chunks/site-main-nav-AaxZ9rQf.js.map +1 -0
- package/dist-cdn/chunks/source-children-RuAec527.js +119 -0
- package/dist-cdn/chunks/source-children-RuAec527.js.map +1 -0
- package/dist-cdn/custom-elements.json +12291 -4424
- package/dist-cdn/events-section.js +78 -66
- package/dist-cdn/events-section.js.map +1 -1
- package/dist-cdn/library-hours-setup.js +1 -1
- package/dist-cdn/library-weekly-hours.js +1 -1
- package/dist-cdn/manifest.json +13 -2
- package/dist-cdn/pagefind.css +388 -0
- package/dist-cdn/site-alerts.js +516 -0
- package/dist-cdn/site-alerts.js.map +1 -0
- package/dist-cdn/site-analytics.js +1 -1
- package/dist-cdn/site-footer.js +33 -18
- package/dist-cdn/site-footer.js.map +1 -1
- package/dist-cdn/site-header.js +1 -1
- package/dist-cdn/site-hours-section.js +33 -21
- package/dist-cdn/site-hours-section.js.map +1 -1
- package/dist-cdn/site-main-nav.js +1 -1
- package/dist-cdn/site-page.js +116 -81
- package/dist-cdn/site-page.js.map +1 -1
- package/dist-cdn/site-style.js +1 -1
- package/dist-cdn/skills/uvalib-web-components/SKILL.md +367 -11
- package/dist-cdn/skills/uvalib-web-components/reference/accessibility-testing.md +170 -0
- package/dist-cdn/skills/uvalib-web-components/reference/components.md +414 -12
- package/dist-cdn/skills/uvalib-web-components/reference/migration.md +37 -0
- package/dist-cdn/tokens.css +23 -20
- package/dist-cdn/uvalib-analytics.js +1 -1
- package/dist-cdn/uvalib-breadcrumbs.js +176 -0
- package/dist-cdn/uvalib-breadcrumbs.js.map +1 -0
- package/dist-cdn/uvalib-card-grid.js +163 -0
- package/dist-cdn/uvalib-card-grid.js.map +1 -0
- package/dist-cdn/uvalib-card.js +424 -0
- package/dist-cdn/uvalib-card.js.map +1 -0
- package/dist-cdn/uvalib-contents.js +381 -0
- package/dist-cdn/uvalib-contents.js.map +1 -0
- package/dist-cdn/uvalib-date-range.js +33 -18
- package/dist-cdn/uvalib-date-range.js.map +1 -1
- package/dist-cdn/uvalib-filter.js +32 -11
- package/dist-cdn/uvalib-filter.js.map +1 -1
- package/dist-cdn/uvalib-lightbox.js +662 -0
- package/dist-cdn/uvalib-lightbox.js.map +1 -0
- package/dist-cdn/uvalib-metadata.js +313 -0
- package/dist-cdn/uvalib-metadata.js.map +1 -0
- package/dist-cdn/uvalib-pagefind-search.js +207 -0
- package/dist-cdn/uvalib-pagefind-search.js.map +1 -0
- package/dist-cdn/uvalib-pager.js +278 -0
- package/dist-cdn/uvalib-pager.js.map +1 -0
- package/dist-cdn/uvalib-photo-grid.js +202 -0
- package/dist-cdn/uvalib-photo-grid.js.map +1 -0
- package/package.json +43 -1
- package/skills/uvalib-web-components/SKILL.md +367 -11
- package/skills/uvalib-web-components/reference/accessibility-testing.md +170 -0
- package/skills/uvalib-web-components/reference/components.md +414 -12
- package/skills/uvalib-web-components/reference/migration.md +37 -0
- package/dist/components/site-page/alerts.js.map +0 -1
- package/dist-cdn/chunks/SiteAnalytics-T1Wx3lsb.js +0 -174
- package/dist-cdn/chunks/SiteAnalytics-T1Wx3lsb.js.map +0 -1
- package/dist-cdn/chunks/analytics-C8D8n_wt.js +0 -55
- package/dist-cdn/chunks/analytics-C8D8n_wt.js.map +0 -1
- package/dist-cdn/chunks/library-weekly-hours-ByQ8ugxh.js.map +0 -1
- package/dist-cdn/chunks/site-header-BwDkZ2LL.js.map +0 -1
- package/dist-cdn/chunks/site-main-nav-BLAAunnr.js.map +0 -1
- /package/dist/components/{site-page → site-alerts}/alerts.d.ts +0 -0
package/dist-cdn/bento-box.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
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-BnI-eRRR.js";
|
|
2
2
|
import { n as u, t as d } from "./chunks/static-html-1mTAG6nS.js";
|
|
3
|
-
import { a as f, i as p } from "./chunks/analytics-
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as ee, t as
|
|
3
|
+
import { a as f, i as p, o as m } from "./chunks/analytics-DTTihuBD.js";
|
|
4
|
+
import { t as h } from "./chunks/heading-level-DIuNS44-.js";
|
|
5
|
+
import { t as g } from "./chunks/accessible-GqhVn5_H.js";
|
|
6
|
+
import { n as ee, t as _ } from "./chunks/fetch-json-Cyqv-gLU.js";
|
|
7
7
|
// src/components/bento-box/BentoSection.ts
|
|
8
|
-
var te = 5,
|
|
8
|
+
var te = 5, v = 3, ne = 50, y = (e) => `
|
|
9
9
|
${e} { display: block; }
|
|
10
10
|
${e} .bs-results--placeholder { visibility: hidden; }
|
|
11
11
|
${e} .bs-results--stack { display: grid; }
|
|
@@ -21,8 +21,6 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
21
21
|
-webkit-line-clamp: 2;
|
|
22
22
|
line-clamp: 2;
|
|
23
23
|
overflow: hidden;
|
|
24
|
-
min-height: 3em;
|
|
25
|
-
min-height: 2lh;
|
|
26
24
|
}
|
|
27
25
|
${e} .bento-section-desc {
|
|
28
26
|
display: -webkit-box;
|
|
@@ -30,9 +28,20 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
30
28
|
-webkit-line-clamp: 3;
|
|
31
29
|
line-clamp: 3;
|
|
32
30
|
overflow: hidden;
|
|
31
|
+
}
|
|
32
|
+
/* Placeholders take every clamped block's full height. Results don't (a one-line title sits
|
|
33
|
+
right above its author); the reserve list behind them holds the placeholders' height. */
|
|
34
|
+
${e} .bs-results--placeholder .bs-results--title,
|
|
35
|
+
${e} .bs-results--placeholder .bento-section-title,
|
|
36
|
+
${e} .bs-results--placeholder .bs-results--highlights {
|
|
37
|
+
min-height: 3em;
|
|
38
|
+
min-height: 2lh;
|
|
39
|
+
}
|
|
40
|
+
${e} .bs-results--placeholder .bento-section-desc {
|
|
33
41
|
min-height: 4.5em;
|
|
34
42
|
min-height: 3lh;
|
|
35
43
|
}
|
|
44
|
+
${e} .bs-results--reserve { visibility: hidden; pointer-events: none; }
|
|
36
45
|
${e} .bs-results--author,
|
|
37
46
|
${e} .bs-results--date,
|
|
38
47
|
${e} .bs-results--format,
|
|
@@ -58,7 +67,7 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
58
67
|
`, b = s(y(":host")), x = (e) => e.map((e) => e.mark ? u`<mark>${e.text}</mark>` : e.text), S = class extends l {
|
|
59
68
|
static {
|
|
60
69
|
this.styles = [
|
|
61
|
-
|
|
70
|
+
g,
|
|
62
71
|
b,
|
|
63
72
|
t`
|
|
64
73
|
:host {
|
|
@@ -172,13 +181,21 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
172
181
|
return e;
|
|
173
182
|
}
|
|
174
183
|
constructor() {
|
|
175
|
-
super(), this.query = "", this.limit = 5, this.noResultDescribe = "No results found.", this.entryClass = "bs-results--list--entry", this._state = "loading", this.retrying = !1, this.inferredLevel =
|
|
184
|
+
super(), this.query = "", this.limit = 5, this.noResultDescribe = "No results found.", this.entryClass = "bs-results--list--entry", this._state = "loading", this.retrying = !1, this.inferredLevel = v, this.loadId = 0, this.onClick = (e) => {
|
|
176
185
|
let t = e.composedPath(), n = this.renderRoot.querySelector(".bs-results--list");
|
|
177
186
|
for (let e of t) {
|
|
178
187
|
if (e === this) return;
|
|
179
188
|
if (e instanceof Element) {
|
|
189
|
+
if (e.matches(".bs-results--message button:not([aria-disabled])")) {
|
|
190
|
+
f(this, [
|
|
191
|
+
"bento-box",
|
|
192
|
+
"retry",
|
|
193
|
+
this.analyticsName
|
|
194
|
+
]);
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
180
197
|
if (e.matches(".bs-results--see-all button")) {
|
|
181
|
-
|
|
198
|
+
f(this, [
|
|
182
199
|
"bento-box",
|
|
183
200
|
"see-all-click",
|
|
184
201
|
this.analyticsName
|
|
@@ -189,7 +206,7 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
189
206
|
let e = t.find((e) => e instanceof HTMLLIElement && e.parentNode === n);
|
|
190
207
|
if (!e || e.classList.contains("bs-results--placeholder")) return;
|
|
191
208
|
let r = [...n.children].indexOf(e) + 1;
|
|
192
|
-
|
|
209
|
+
f(this, [
|
|
193
210
|
"bento-box",
|
|
194
211
|
"result-click",
|
|
195
212
|
this.analyticsName,
|
|
@@ -203,8 +220,8 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
203
220
|
}
|
|
204
221
|
connectedCallback() {
|
|
205
222
|
super.connectedCallback();
|
|
206
|
-
let e =
|
|
207
|
-
if (this.inferredLevel = e === null ?
|
|
223
|
+
let e = h(this);
|
|
224
|
+
if (this.inferredLevel = e === null ? v : Math.min(e + 1, 6), this.lightDom && this.noStyle) {
|
|
208
225
|
let e = this.getRootNode(), t = e instanceof ShadowRoot || e instanceof Document ? e : void 0;
|
|
209
226
|
c(`${this.localName}::structure`, s(y(this.localName)), {
|
|
210
227
|
root: t,
|
|
@@ -218,7 +235,7 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
218
235
|
}
|
|
219
236
|
get count() {
|
|
220
237
|
let e = Math.trunc(this.limit);
|
|
221
|
-
return Number.isFinite(e) && e > 0 ? Math.min(e,
|
|
238
|
+
return Number.isFinite(e) && e > 0 ? Math.min(e, ne) : te;
|
|
222
239
|
}
|
|
223
240
|
get level() {
|
|
224
241
|
let e = Math.trunc(this.headingLevel ?? NaN);
|
|
@@ -252,10 +269,10 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
252
269
|
this.results = {
|
|
253
270
|
...r,
|
|
254
271
|
items: r.items.slice(0, this.count)
|
|
255
|
-
}, this._state = this.results.items.length ? "ready" : "empty", t !== this.reportedQuery && (this.reportedQuery = t,
|
|
272
|
+
}, this._state = this.results.items.length ? "ready" : "empty", t !== this.reportedQuery && (this.reportedQuery = t, m(this, t, this.analyticsName, r.total ?? (this._state === "empty" ? 0 : void 0)));
|
|
256
273
|
} catch {
|
|
257
274
|
if (e !== this.loadId) return;
|
|
258
|
-
this.results = void 0, this._state = "error", this.reportedQuery = void 0;
|
|
275
|
+
this.results = void 0, this._state = "error", this.reportedQuery = void 0, p(this, "bento-box", `section-load: ${this.analyticsName}`);
|
|
259
276
|
} finally {
|
|
260
277
|
this.controller === n && (this.controller = void 0);
|
|
261
278
|
}
|
|
@@ -325,6 +342,9 @@ var te = 5, _ = 3, v = 50, y = (e) => `
|
|
|
325
342
|
${n.map((e) => this.renderItem(e))}
|
|
326
343
|
${Array.from({ length: r }, () => this.renderPlaceholder())}
|
|
327
344
|
</ol>
|
|
345
|
+
${n.length ? u`<ol class="bs-results--list bs-results--reserve" aria-hidden="true">
|
|
346
|
+
${n.map(() => this.renderPlaceholder())}
|
|
347
|
+
</ol>` : o}
|
|
328
348
|
${i === o ? o : u`<p class="bs-results--message" tabindex="-1">${i}</p>`}
|
|
329
349
|
</div>
|
|
330
350
|
</div>`;
|
|
@@ -348,7 +368,7 @@ var C = {
|
|
|
348
368
|
retries: 2,
|
|
349
369
|
retryDelay: 1e3,
|
|
350
370
|
timeout: 1e4
|
|
351
|
-
},
|
|
371
|
+
}, re = [
|
|
352
372
|
"authorize",
|
|
353
373
|
"catalog",
|
|
354
374
|
"articles",
|
|
@@ -356,7 +376,7 @@ var C = {
|
|
|
356
376
|
"website"
|
|
357
377
|
];
|
|
358
378
|
function T(e) {
|
|
359
|
-
for (let t of
|
|
379
|
+
for (let t of re) {
|
|
360
380
|
let n = e?.[t];
|
|
361
381
|
typeof n == "string" && n && (C[t] = n);
|
|
362
382
|
}
|
|
@@ -395,7 +415,7 @@ function A(e, t, n) {
|
|
|
395
415
|
})) : i.promise;
|
|
396
416
|
}
|
|
397
417
|
var j, M;
|
|
398
|
-
function
|
|
418
|
+
function ie() {
|
|
399
419
|
if (!j) {
|
|
400
420
|
M = void 0;
|
|
401
421
|
let e = ee(D().authorize, w, {
|
|
@@ -412,24 +432,24 @@ function N() {
|
|
|
412
432
|
}
|
|
413
433
|
return j;
|
|
414
434
|
}
|
|
415
|
-
function
|
|
435
|
+
function ae(e) {
|
|
416
436
|
M === e && (j = M = void 0);
|
|
417
437
|
}
|
|
418
|
-
var
|
|
438
|
+
var oe = {
|
|
419
439
|
catalog: "https://search.lib.virginia.edu/sources/uva_library/items/",
|
|
420
440
|
articles: "https://search.lib.virginia.edu/sources/articles/items/"
|
|
421
|
-
},
|
|
422
|
-
function
|
|
441
|
+
}, se = /^please sign in to see more/i, ce = "Article details available after signing in to Virgo", N = 5, P = (e) => typeof e == "string" ? e.replace(/\s+/g, " ").trim() : "";
|
|
442
|
+
function le(e, t) {
|
|
423
443
|
let n = e, r = Array.isArray(n?.group_list) ? n.group_list : [], i = [];
|
|
424
444
|
for (let e of r) {
|
|
425
|
-
let n = Array.isArray(e?.record_list) ? e.record_list[0] : void 0, r = Array.isArray(n?.fields) ? n.fields : [], a = (e) => r.filter(e).map((e) =>
|
|
445
|
+
let n = Array.isArray(e?.record_list) ? e.record_list[0] : void 0, r = Array.isArray(n?.fields) ? n.fields : [], a = (e) => r.filter(e).map((e) => P(e.value)), o = (e) => a(e).find(Boolean) ?? "", s = o((e) => e.type === "title"), c = o((e) => e.type === "identifier");
|
|
426
446
|
if (!s || !c) continue;
|
|
427
|
-
let l = t === "articles" &&
|
|
428
|
-
u.length >
|
|
447
|
+
let l = t === "articles" && se.test(s), u = a((e) => e.type === "author").filter(Boolean);
|
|
448
|
+
u.length > N && (u = [...u.slice(0, N), `and ${u.length - N} more`]);
|
|
429
449
|
let d = Math.trunc(Number(e.count));
|
|
430
450
|
i.push({
|
|
431
|
-
title: l ?
|
|
432
|
-
url:
|
|
451
|
+
title: l ? ce : s,
|
|
452
|
+
url: oe[t] + encodeURIComponent(c),
|
|
433
453
|
authors: u,
|
|
434
454
|
published: o((e) => e.name === "published_date") || void 0,
|
|
435
455
|
formats: a((e) => e.name === (t === "articles" ? "pub_type" : "format")).filter(Boolean),
|
|
@@ -443,12 +463,12 @@ function se(e, t) {
|
|
|
443
463
|
total: Number.isFinite(a) && a >= 0 ? a : void 0
|
|
444
464
|
};
|
|
445
465
|
}
|
|
446
|
-
function
|
|
466
|
+
function F(e) {
|
|
447
467
|
return `keyword: {${e.replace(/[{}]/g, " ")}}`;
|
|
448
468
|
}
|
|
449
|
-
function
|
|
469
|
+
function ue(e, t) {
|
|
450
470
|
return JSON.stringify({
|
|
451
|
-
query:
|
|
471
|
+
query: F(e),
|
|
452
472
|
pagination: {
|
|
453
473
|
start: 0,
|
|
454
474
|
rows: t
|
|
@@ -463,11 +483,11 @@ function ce(e, t) {
|
|
|
463
483
|
}]
|
|
464
484
|
});
|
|
465
485
|
}
|
|
466
|
-
function
|
|
467
|
-
let i = D()[e], a =
|
|
486
|
+
function de(e, t, n, r) {
|
|
487
|
+
let i = D()[e], a = ue(t, n);
|
|
468
488
|
return A(`POST ${i}\n${a}`, async (t) => {
|
|
469
489
|
for (let n = 0;; n++) {
|
|
470
|
-
let r = await
|
|
490
|
+
let r = await ie();
|
|
471
491
|
if (t.aborted) throw t.reason;
|
|
472
492
|
let o = {
|
|
473
493
|
method: "POST",
|
|
@@ -481,10 +501,10 @@ function le(e, t, n, r) {
|
|
|
481
501
|
retryStatus: O
|
|
482
502
|
};
|
|
483
503
|
try {
|
|
484
|
-
return
|
|
504
|
+
return le(await _(i, w, o), e);
|
|
485
505
|
} catch (e) {
|
|
486
506
|
if (n === 0 && e.status === 401) {
|
|
487
|
-
|
|
507
|
+
ae(r);
|
|
488
508
|
continue;
|
|
489
509
|
}
|
|
490
510
|
throw e;
|
|
@@ -492,16 +512,16 @@ function le(e, t, n, r) {
|
|
|
492
512
|
}
|
|
493
513
|
}, r);
|
|
494
514
|
}
|
|
495
|
-
function
|
|
515
|
+
function fe(e, t) {
|
|
496
516
|
return `https://search.lib.virginia.edu/?${new URLSearchParams(e === "catalog" ? {
|
|
497
517
|
q: t,
|
|
498
518
|
pool: "uva_library"
|
|
499
519
|
} : {
|
|
500
|
-
q:
|
|
520
|
+
q: F(t),
|
|
501
521
|
pool: "articles"
|
|
502
522
|
})}`;
|
|
503
523
|
}
|
|
504
|
-
var
|
|
524
|
+
var I = [
|
|
505
525
|
"Jan",
|
|
506
526
|
"Feb",
|
|
507
527
|
"Mar",
|
|
@@ -515,10 +535,10 @@ var de = [
|
|
|
515
535
|
"Nov",
|
|
516
536
|
"Dec"
|
|
517
537
|
];
|
|
518
|
-
function
|
|
538
|
+
function L(e) {
|
|
519
539
|
let t = /^(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?$/.exec(e);
|
|
520
540
|
if (!t) return e;
|
|
521
|
-
let [, n, r, i] = t, a = r ?
|
|
541
|
+
let [, n, r, i] = t, a = r ? I[Number(r) - 1] : void 0;
|
|
522
542
|
if (!r) return n;
|
|
523
543
|
if (!a) return e;
|
|
524
544
|
if (!i) return `${a} ${n}`;
|
|
@@ -530,23 +550,23 @@ function fe(e) {
|
|
|
530
550
|
day: "numeric"
|
|
531
551
|
}).format(s) : e;
|
|
532
552
|
}
|
|
533
|
-
var
|
|
534
|
-
function
|
|
553
|
+
var R = /* @__PURE__ */ new Set(["http:", "https:"]);
|
|
554
|
+
function z(e, t) {
|
|
535
555
|
if (typeof e == "string" && e.trim()) try {
|
|
536
556
|
let n = new URL(e.trim(), t);
|
|
537
|
-
return
|
|
557
|
+
return R.has(n.protocol) ? n.href : void 0;
|
|
538
558
|
} catch {
|
|
539
559
|
return;
|
|
540
560
|
}
|
|
541
561
|
}
|
|
542
|
-
var
|
|
543
|
-
let t =
|
|
562
|
+
var B = "https://guides.lib.virginia.edu/", V = (e) => {
|
|
563
|
+
let t = z(e?.getAttribute("href"), B), n = P(e?.textContent);
|
|
544
564
|
return t && n ? {
|
|
545
565
|
text: n,
|
|
546
566
|
url: t
|
|
547
567
|
} : void 0;
|
|
548
568
|
};
|
|
549
|
-
function
|
|
569
|
+
function H(e, t) {
|
|
550
570
|
let n = [], r = (e, t) => {
|
|
551
571
|
if (!e) return;
|
|
552
572
|
let r = n[n.length - 1];
|
|
@@ -567,39 +587,39 @@ function V(e, t) {
|
|
|
567
587
|
for (let e of n) e.text = e.text.replace(/\s+/g, " ");
|
|
568
588
|
return n.length && (n[0].text = n[0].text.trimStart(), n[n.length - 1].text = n[n.length - 1].text.trimEnd()), n.filter((e) => e.text);
|
|
569
589
|
}
|
|
570
|
-
var
|
|
590
|
+
var U = (e) => new DOMParser().parseFromString(e, "text/html");
|
|
571
591
|
function pe(e) {
|
|
572
592
|
let t = e?.data, n = typeof t?.results == "string" ? t.results : "", r = [];
|
|
573
|
-
for (let e of
|
|
574
|
-
let t = e.querySelector(".s-srch-result-title"), n =
|
|
593
|
+
for (let e of U(n).querySelectorAll(".s-srch-result")) {
|
|
594
|
+
let t = e.querySelector(".s-srch-result-title"), n = V(t?.querySelector(":scope > a"));
|
|
575
595
|
if (!n) continue;
|
|
576
596
|
let i = e.querySelectorAll(".s-srch-result-meta")[1], a = i?.querySelector(".s-srch-result-highlights");
|
|
577
597
|
r.push({
|
|
578
598
|
title: n.text,
|
|
579
599
|
url: n.url,
|
|
580
|
-
guide:
|
|
581
|
-
author:
|
|
582
|
-
subjects: [...i?.querySelectorAll(".s-srch-result-subjects a") ?? []].map(
|
|
583
|
-
highlights: a ?
|
|
600
|
+
guide: V(t?.querySelector(".s-srch-result-guide a")),
|
|
601
|
+
author: V(i?.querySelector(".s-srch-result-author a")),
|
|
602
|
+
subjects: [...i?.querySelectorAll(".s-srch-result-subjects a") ?? []].map(V).filter((e) => !!e),
|
|
603
|
+
highlights: a ? H(a, "mark") : []
|
|
584
604
|
});
|
|
585
605
|
}
|
|
586
606
|
return {
|
|
587
607
|
items: r,
|
|
588
|
-
seeAll:
|
|
608
|
+
seeAll: z(t?.fulllink)
|
|
589
609
|
};
|
|
590
610
|
}
|
|
591
611
|
function me(e) {
|
|
592
|
-
return `${
|
|
612
|
+
return `${B}srch.php?${new URLSearchParams({
|
|
593
613
|
default_lg: "1",
|
|
594
614
|
q: e
|
|
595
615
|
})}`;
|
|
596
616
|
}
|
|
597
|
-
function
|
|
617
|
+
function W(e, t) {
|
|
598
618
|
return `${e}${e.includes("?") ? "&" : "?"}${t}`;
|
|
599
619
|
}
|
|
600
620
|
function he(e, t, n) {
|
|
601
|
-
let r =
|
|
602
|
-
return A(`GET ${r}`, async (e) => pe(await
|
|
621
|
+
let r = W(D().guides, new URLSearchParams({ q: e }));
|
|
622
|
+
return A(`GET ${r}`, async (e) => pe(await _(r, w, {
|
|
603
623
|
signal: e,
|
|
604
624
|
retryStatus: O
|
|
605
625
|
})), n).then((e) => ({
|
|
@@ -612,7 +632,7 @@ var ge = [
|
|
|
612
632
|
"person",
|
|
613
633
|
"library",
|
|
614
634
|
"article"
|
|
615
|
-
],
|
|
635
|
+
], G = "https://library.virginia.edu";
|
|
616
636
|
function _e(e, t) {
|
|
617
637
|
let n = new URLSearchParams();
|
|
618
638
|
n.set("filter[fulltext]", e), n.set("page[limit]", String(t)), n.set("filter[types-group][group][conjunction]", "OR");
|
|
@@ -622,11 +642,11 @@ function _e(e, t) {
|
|
|
622
642
|
function ve(e) {
|
|
623
643
|
let t = e, n = Array.isArray(t?.data) ? t.data : [], r = [];
|
|
624
644
|
for (let e of n) {
|
|
625
|
-
let n = e?.attributes ?? {}, i =
|
|
645
|
+
let n = e?.attributes ?? {}, i = P(n.title), a = P(n.path?.alias), o = n.drupal_internal__nid, s = a.startsWith("/") ? a : o == null ? "" : `/node/${encodeURI(String(o))}`, c = s ? z(s, G) : void 0;
|
|
626
646
|
if (!i || !c || !c.startsWith("https://library.virginia.edu/")) continue;
|
|
627
|
-
let l = t?.meta?.extra_data?.[String(o)]?.excerpt, u = typeof l == "string" && l ?
|
|
647
|
+
let l = t?.meta?.extra_data?.[String(o)]?.excerpt, u = typeof l == "string" && l ? H(U(l).body, "strong") : [];
|
|
628
648
|
if (!u.length && e.type === "node--person") {
|
|
629
|
-
let e = n.field_uva_ldap_title, t = (Array.isArray(e) ? e : [e]).map(
|
|
649
|
+
let e = n.field_uva_ldap_title, t = (Array.isArray(e) ? e : [e]).map(P).filter(Boolean).join("; ");
|
|
630
650
|
t && (u = [{ text: t }]);
|
|
631
651
|
}
|
|
632
652
|
r.push({
|
|
@@ -642,22 +662,22 @@ function ve(e) {
|
|
|
642
662
|
};
|
|
643
663
|
}
|
|
644
664
|
function ye(e, t, n) {
|
|
645
|
-
let r =
|
|
646
|
-
return A(`GET ${r}`, async (e) => ve(await
|
|
665
|
+
let r = W(D().website, _e(e, t));
|
|
666
|
+
return A(`GET ${r}`, async (e) => ve(await _(r, w, {
|
|
647
667
|
signal: e,
|
|
648
668
|
retryStatus: O
|
|
649
669
|
})), n);
|
|
650
670
|
}
|
|
651
671
|
function be(e) {
|
|
652
|
-
return `${
|
|
672
|
+
return `${G}/search/content?${new URLSearchParams({ search_api_fulltext: e })}`;
|
|
653
673
|
}
|
|
654
674
|
// src/components/bento-box/VirgoSection.ts
|
|
655
|
-
var
|
|
675
|
+
var K = class extends S {
|
|
656
676
|
fetchResults(e, t, n) {
|
|
657
|
-
return
|
|
677
|
+
return de(this.pool, e, t, n);
|
|
658
678
|
}
|
|
659
679
|
seeAllUrl(e) {
|
|
660
|
-
return
|
|
680
|
+
return fe(this.pool, e);
|
|
661
681
|
}
|
|
662
682
|
line(e, t) {
|
|
663
683
|
return t ? r`<li class="${e} li-1">${t}</li>` : r`<li class="${e} li-1" aria-hidden="true"> </li>`;
|
|
@@ -671,7 +691,7 @@ var G = class extends S {
|
|
|
671
691
|
${this.line("bs-results--author", e.authors.join("; "))}
|
|
672
692
|
<li>
|
|
673
693
|
<ul class="ul-1">
|
|
674
|
-
${this.line("bs-results--date", e.published ? r`<time datetime=${e.published}>${
|
|
694
|
+
${this.line("bs-results--date", e.published ? r`<time datetime=${e.published}>${L(e.published)}</time>` : "")}
|
|
675
695
|
${this.line("bs-results--format", n)}
|
|
676
696
|
</ul>
|
|
677
697
|
</li>
|
|
@@ -689,7 +709,7 @@ var G = class extends S {
|
|
|
689
709
|
</li>
|
|
690
710
|
</ul>`;
|
|
691
711
|
}
|
|
692
|
-
}, xe = class extends
|
|
712
|
+
}, xe = class extends K {
|
|
693
713
|
constructor(...e) {
|
|
694
714
|
super(...e), this.pool = "articles", this.analyticsName = "Virgo articles", this.heading = "Article", this.sourceName = "Virgo article", this.describe = "An aggregation of tens of millions of articles made available through Library subscriptions.", this.home = {
|
|
695
715
|
text: "Search articles",
|
|
@@ -699,13 +719,13 @@ var G = class extends S {
|
|
|
699
719
|
get seeAllIn() {
|
|
700
720
|
return "Virgo articles";
|
|
701
721
|
}
|
|
702
|
-
},
|
|
722
|
+
}, q = [
|
|
703
723
|
"catalog",
|
|
704
724
|
"articles",
|
|
705
725
|
"libguides",
|
|
706
726
|
"website"
|
|
707
|
-
],
|
|
708
|
-
function
|
|
727
|
+
], J = 2;
|
|
728
|
+
function Y(e) {
|
|
709
729
|
let t = e;
|
|
710
730
|
if (typeof e == "string") {
|
|
711
731
|
let n = e.trim();
|
|
@@ -715,14 +735,14 @@ function J(e) {
|
|
|
715
735
|
t = [];
|
|
716
736
|
}
|
|
717
737
|
}
|
|
718
|
-
let n = new Set(
|
|
719
|
-
return r.length ? r : [...
|
|
738
|
+
let n = new Set(q), r = [...new Set((Array.isArray(t) ? t : []).map((e) => typeof e == "string" ? e.trim().toLowerCase() : "").filter((e) => n.has(e)))];
|
|
739
|
+
return r.length ? r : [...q];
|
|
720
740
|
}
|
|
721
|
-
function
|
|
741
|
+
function X(e = location.search) {
|
|
722
742
|
let t = new URLSearchParams(e);
|
|
723
743
|
return t.get("q") ?? t.get("query");
|
|
724
744
|
}
|
|
725
|
-
var
|
|
745
|
+
var Z = (e) => `
|
|
726
746
|
${e} { display: block; }
|
|
727
747
|
${e} .bs-results-container > * { min-width: 0; }
|
|
728
748
|
${e}[hidden], ${e} [hidden] { display: none !important; }
|
|
@@ -737,15 +757,15 @@ var X = (e) => `
|
|
|
737
757
|
white-space: nowrap;
|
|
738
758
|
border: 0;
|
|
739
759
|
}
|
|
740
|
-
`,
|
|
760
|
+
`, Q = s(Z(":host")), Se = "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 2a8 8 0 0 1 6.32 12.9l5.39 5.4-1.41 1.41-5.4-5.39A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E\")", Ce = 0, $ = class extends l {
|
|
741
761
|
constructor(...e) {
|
|
742
762
|
super(...e), this.query = "", this.limit = 5, this.searchDescribe = "This page searches Virgo, Virgo articles, subject guides, and the Library website.", this.noResultDescribe = "No results found.", this.placeholder = "Search anything...", this.boxes = [
|
|
743
763
|
"catalog",
|
|
744
764
|
"articles",
|
|
745
765
|
"libguides",
|
|
746
766
|
"website"
|
|
747
|
-
], this.inferredLevel =
|
|
748
|
-
this.query =
|
|
767
|
+
], this.inferredLevel = J, this.status = "", this.uid = `bento-box-${++Ce}`, this.announcePending = !1, this.onPopState = () => {
|
|
768
|
+
this.query = X() ?? this.fallbackQuery ?? "";
|
|
749
769
|
}, this.onSectionState = () => {
|
|
750
770
|
let e = this.sections();
|
|
751
771
|
e.some((e) => e.state === "loading") ? (this.announcePending = !0, this.status = "") : this.announcePending && (this.announcePending = !1, this.status = e.some((e) => e.state === "error") ? "Results updated. Some results are unavailable." : "Results updated.");
|
|
@@ -753,8 +773,8 @@ var X = (e) => `
|
|
|
753
773
|
}
|
|
754
774
|
static {
|
|
755
775
|
this.styles = [
|
|
756
|
-
|
|
757
|
-
|
|
776
|
+
g,
|
|
777
|
+
Q,
|
|
758
778
|
t`
|
|
759
779
|
:host {
|
|
760
780
|
container-type: inline-size;
|
|
@@ -839,23 +859,23 @@ var X = (e) => `
|
|
|
839
859
|
createRenderRoot() {
|
|
840
860
|
let e = super.createRenderRoot();
|
|
841
861
|
if (e instanceof ShadowRoot && this.noStyle) {
|
|
842
|
-
let t =
|
|
862
|
+
let t = Q.styleSheet;
|
|
843
863
|
t && (e.adoptedStyleSheets = [t]);
|
|
844
864
|
}
|
|
845
865
|
return e;
|
|
846
866
|
}
|
|
847
867
|
connectedCallback() {
|
|
848
868
|
super.connectedCallback();
|
|
849
|
-
let e =
|
|
850
|
-
if (this.inferredLevel = e === null ?
|
|
869
|
+
let e = h(this);
|
|
870
|
+
if (this.inferredLevel = e === null ? J : Math.min(e + 1, 6), this.lightDom && this.noStyle) {
|
|
851
871
|
let e = this.getRootNode(), t = e instanceof ShadowRoot || e instanceof Document ? e : void 0;
|
|
852
|
-
c(`${this.localName}::structure`, s(
|
|
872
|
+
c(`${this.localName}::structure`, s(Z(this.localName)), {
|
|
853
873
|
root: t,
|
|
854
874
|
scope: !1
|
|
855
875
|
});
|
|
856
876
|
}
|
|
857
877
|
this.fallbackQuery ??= this.query;
|
|
858
|
-
let t =
|
|
878
|
+
let t = X();
|
|
859
879
|
t !== null && (this.query = t), window.addEventListener("popstate", this.onPopState), this.addEventListener("bento-state", this.onSectionState);
|
|
860
880
|
}
|
|
861
881
|
disconnectedCallback() {
|
|
@@ -894,7 +914,7 @@ var X = (e) => `
|
|
|
894
914
|
></${n}>`;
|
|
895
915
|
}
|
|
896
916
|
render() {
|
|
897
|
-
let e = this.level, t = d(`h${e}`), n = this.q, r =
|
|
917
|
+
let e = this.level, t = d(`h${e}`), n = this.q, r = Y(this.boxes), i = `${this.uid}-q`, a = `${this.uid}-describe`;
|
|
898
918
|
return u`<bento-search class="bento-search-bar">
|
|
899
919
|
<search>
|
|
900
920
|
<form action="https://search.lib.virginia.edu/search" method="get" @submit=${this.search}>
|
|
@@ -929,25 +949,25 @@ var X = (e) => `
|
|
|
929
949
|
<div class="visually-hidden" role="status">${this.status}</div>`;
|
|
930
950
|
}
|
|
931
951
|
};
|
|
932
|
-
a([e({ type: String })],
|
|
952
|
+
a([e({ type: String })], $.prototype, "query", void 0), a([e({ type: Number })], $.prototype, "limit", void 0), a([e({
|
|
933
953
|
type: String,
|
|
934
954
|
attribute: "search-describe"
|
|
935
|
-
})],
|
|
955
|
+
})], $.prototype, "searchDescribe", void 0), a([e({
|
|
936
956
|
type: String,
|
|
937
957
|
attribute: "no-result-describe"
|
|
938
|
-
})],
|
|
958
|
+
})], $.prototype, "noResultDescribe", void 0), a([e({ type: String })], $.prototype, "placeholder", void 0), a([e({ converter: { fromAttribute: Y } })], $.prototype, "boxes", void 0), a([e({
|
|
939
959
|
type: Number,
|
|
940
960
|
attribute: "heading-level"
|
|
941
|
-
})],
|
|
961
|
+
})], $.prototype, "headingLevel", void 0), a([n()], $.prototype, "inferredLevel", void 0), a([n()], $.prototype, "status", void 0);
|
|
942
962
|
// src/components/bento-box/CatalogSection.ts
|
|
943
|
-
var
|
|
963
|
+
var we = class extends K {
|
|
944
964
|
constructor(...e) {
|
|
945
965
|
super(...e), this.pool = "catalog", this.analyticsName = "Virgo catalog", this.heading = "Virgo Catalog", this.sourceName = "Virgo catalog", this.describe = "Books, journals, manuscripts & archival material, maps, music and sound recordings, theses and dissertations, and videos.", this.home = {
|
|
946
966
|
text: "Search Virgo",
|
|
947
967
|
url: "https://search.lib.virginia.edu/"
|
|
948
968
|
};
|
|
949
969
|
}
|
|
950
|
-
},
|
|
970
|
+
}, Te = class extends S {
|
|
951
971
|
constructor(...e) {
|
|
952
972
|
super(...e), this.analyticsName = "Subject guides", this.heading = "Subject Guides", this.sourceName = "subject guide", this.describe = "Subject guides contain topic-specific information to help with research and coursework.", this.home = {
|
|
953
973
|
text: "Search Guides",
|
|
@@ -996,7 +1016,7 @@ var $ = class extends G {
|
|
|
996
1016
|
</li>
|
|
997
1017
|
</ul>`;
|
|
998
1018
|
}
|
|
999
|
-
},
|
|
1019
|
+
}, Ee = class extends S {
|
|
1000
1020
|
constructor(...e) {
|
|
1001
1021
|
super(...e), this.analyticsName = "Library website", this.heading = "Website", this.sourceName = "Library website", this.describe = "Results from the main Library website.", this.home = {
|
|
1002
1022
|
text: "Search Library website",
|
|
@@ -1018,6 +1038,6 @@ var $ = class extends G {
|
|
|
1018
1038
|
<div class="bento-section-desc">Library website page</div>`;
|
|
1019
1039
|
}
|
|
1020
1040
|
};
|
|
1021
|
-
i("catalog-section",
|
|
1041
|
+
i("catalog-section", we), i("articles-section", xe), i("libguides-section", Te), i("website-section", Ee), i("bento-box", $);
|
|
1022
1042
|
|
|
1023
1043
|
//# sourceMappingURL=bento-box.js.map
|