@museumwnf/viewer-layout 3.62.0 → 3.63.1
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/dist/FeaturedRecord-Fe19w6_G.js +213 -0
- package/dist/LegacyItemSheet-Bmg8etGz.js +532 -0
- package/dist/{OnDisplayIn-CPANKcOd.js → OnDisplayIn-BH3Bqope.js} +1 -1
- package/dist/{PageShell-CPtgzcxv.js → PageShell-CIGVv7sK.js} +144 -111
- package/dist/{PartnerMap-U-Hi2FBi.js → PartnerMap-DdyMLtgH.js} +5 -1
- package/dist/RecordView-Bgd5mm_e.js +384 -0
- package/dist/{SiteShell-qvsZO4Iz.js → SiteShell-UsZ_cpe9.js} +3 -2
- package/dist/Theme-Daezwp0p.js +391 -0
- package/dist/{TimelineEventList-1feZA5t7.js → TimelineEventList-CIkKxyQu.js} +122 -238
- package/dist/TimelineResultsView-BF3VoCs_.js +686 -0
- package/dist/components.js +1 -1
- package/dist/{content-BNS5U0Xv.js → content-hV5uyd-b.js} +2 -2
- package/dist/content.js +6 -6
- package/dist/data-CsMfGCkv.js +77 -0
- package/dist/dxa.js +1982 -1042
- package/dist/index.js +7 -7
- package/dist/standalone.js +3 -3
- package/dist/{themeSpecs-CsDpl4rR.js → themeSpecs-DIdmAEc3.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +755 -37
- package/package.json +1 -1
- package/src/dxa/testing.js +147 -114
- package/src/styles/dxa-exhibition.css +2292 -32
- package/dist/FeaturedRecord-DaGLHyhD.js +0 -87
- package/dist/ItemDetailView-BcOSmHfr.js +0 -313
- package/dist/RecordView-BE4mbj6G.js +0 -363
- package/dist/Theme-4RmyRY0x.js +0 -318
- package/dist/TimelineResultsView-CkH3NDqL.js +0 -1401
- package/dist/data-kqAkoQvf.js +0 -37
package/dist/content.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as
|
|
1
|
+
import { n as e, t } from "./FeaturedRecord-Fe19w6_G.js";
|
|
2
|
+
import { a as n, c as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./PartnerMap-DdyMLtgH.js";
|
|
3
|
+
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./TimelineEventList-CIkKxyQu.js";
|
|
4
4
|
import { t as v } from "./GlossaryPopover-DbQKXhx9.js";
|
|
5
|
-
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-
|
|
6
|
-
import { t as E } from "./content-
|
|
7
|
-
export { w as BackLink, b as DynastyList, y as DynastyPopout,
|
|
5
|
+
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-BH3Bqope.js";
|
|
6
|
+
import { t as E } from "./content-hV5uyd-b.js";
|
|
7
|
+
export { w as BackLink, b as DynastyList, y as DynastyPopout, f as FacetSelect, t as FeaturedRecord, p as FilterPanel, v as GlossaryPopover, S as GlossaryTool, o as MediaGallery, T as OnDisplayIn, h as Pagination, u as PartnerMap, m as PartnerPanel, n as RecordCredits, a as RecordGrid, r as RecordLanguages, d as RecordList, l as RecordSheet, x as RelatedMedia, c as RelatedRecords, g as ResultsSummary, e as SectionCards, s as SheetSection, i as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { n as e } from "./chrome-Bv_mLlHM.js";
|
|
2
|
+
import { partnerView as t, renderInline as n, useSiteConfig as r } from "@museumwnf/viewer-core";
|
|
3
|
+
import { useExhibitionCollection as i, useExhibitionData as a, useExhibitionItemDetail as o, useExhibitionPartner as s, useExhibitionThemes as c, useExhibitionTimeline as l } from "@museumwnf/viewer-core/dxa";
|
|
4
|
+
// src/dxa/exhibition/data.js
|
|
5
|
+
var u = a(), d = i(u), f = l(u, d), p = s(u), m = c(u), { itemDetail: h } = o(u, f), { defaultLang: g, tr: _, md: v, mdInline: y, mdStrip: ee, labelOf: b, loadEnglish: x, exhibition: S, relatedContent: C, items: w, itemById: T, countries: E, timelines: te, visiblePartners: D, visiblePartnerById: O, isHiddenPartner: k, itemRoute: A, partnerRoute: j, partnerObjectsRoute: M, countryLabelFromCode: N, exhibitionTitle: P, exhibitionSubtitle: F, exhibitionHeadline: ne, bannerCaption: I, projectName: L } = u;
|
|
6
|
+
function R(t, n = "hi_res") {
|
|
7
|
+
return e(r().chrome, t) ?? u.chromeImage(t, n);
|
|
8
|
+
}
|
|
9
|
+
var { FACETS: z, haystack: B, tile: re, collectionResults: V, countryIdForCode: ie } = d, H = (e, t) => String(e ?? "").localeCompare(String(t ?? ""), "en", { sensitivity: "base" });
|
|
10
|
+
function U(e, t) {
|
|
11
|
+
let n = String(e ?? "").split(":"), r = String(t ?? "").split(":");
|
|
12
|
+
for (let e = 0; e < Math.max(n.length, r.length); e++) {
|
|
13
|
+
let t = n[e] ?? "", i = r[e] ?? "";
|
|
14
|
+
if (t !== i) return /^\d+$/.test(t) && /^\d+$/.test(i) ? Number(t) - Number(i) : t.localeCompare(i, "en");
|
|
15
|
+
}
|
|
16
|
+
return 0;
|
|
17
|
+
}
|
|
18
|
+
function W(e, t) {
|
|
19
|
+
return H(b("countries", e.country_id), b("countries", t.country_id)) || H(b("partners", e.partner_id), b("partners", t.partner_id)) || U(e.backward_compatibility, t.backward_compatibility);
|
|
20
|
+
}
|
|
21
|
+
var G = {
|
|
22
|
+
pageSize: 20,
|
|
23
|
+
sort: {
|
|
24
|
+
undated: "first",
|
|
25
|
+
tiebreak: (e, t) => W(e, t)
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
function K(e) {
|
|
29
|
+
let t = _("items", e.id, g), r = t.dates ?? "";
|
|
30
|
+
return {
|
|
31
|
+
id: e.id,
|
|
32
|
+
image: e.images?.[0]?.url ?? "",
|
|
33
|
+
imageAlt: b("items", e.id),
|
|
34
|
+
name: n(t.name ?? e.internal_name ?? ""),
|
|
35
|
+
date: r.length > 80 ? `${r.slice(0, 80)}...` : r,
|
|
36
|
+
partner: b("partners", e.partner_id),
|
|
37
|
+
place: [t.location, b("countries", e.country_id)].filter(Boolean).join(", "),
|
|
38
|
+
project: L(e, g) ?? "",
|
|
39
|
+
to: A(e)
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
var { hasTimeline: q, timelineSpec: J, timelineGallerySpec: Y } = f, { partnerListSpec: X, partnerSheetSpec: Z } = p, Q = {
|
|
43
|
+
countryLabel: (e) => b("countries", e),
|
|
44
|
+
md: v,
|
|
45
|
+
mdInline: y,
|
|
46
|
+
route: j,
|
|
47
|
+
objectsRoute: M,
|
|
48
|
+
hidden: k
|
|
49
|
+
}, $ = {
|
|
50
|
+
spec: {
|
|
51
|
+
...Z,
|
|
52
|
+
media: () => [],
|
|
53
|
+
sourceCredit: !1
|
|
54
|
+
},
|
|
55
|
+
visible: (e) => !!O(e),
|
|
56
|
+
view: (e, n) => t(e, {
|
|
57
|
+
..._("partners", e.id, g),
|
|
58
|
+
...n
|
|
59
|
+
}, Q),
|
|
60
|
+
labels: {
|
|
61
|
+
partner: {
|
|
62
|
+
objects: "exhibition.action.viewItems",
|
|
63
|
+
homepage: "exhibition.partner.homepage"
|
|
64
|
+
},
|
|
65
|
+
institution: {
|
|
66
|
+
objects: "exhibition.action.viewItems",
|
|
67
|
+
homepage: "exhibition.action.institutionHomepage"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
className: "mwnf-dxa-exhibition-profile",
|
|
71
|
+
media: {
|
|
72
|
+
thumbsFrom: 1,
|
|
73
|
+
creditCaption: !1
|
|
74
|
+
},
|
|
75
|
+
legacyMap: { label: "exhibition.partner.mapLabel" }
|
|
76
|
+
};
|
|
77
|
+
export { J as A, $ as C, C as D, j as E, O as M, D as N, m as O, v as S, M as T, w as _, E as a, K as b, S as c, P as d, q as f, A as g, h, V as i, _ as j, Y as k, ne as l, T as m, I as n, N as o, B as p, R as r, g as s, z as t, F as u, b as v, X as w, x, G as y };
|