@museumwnf/viewer-layout 3.61.0 → 3.62.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/dist/{ItemDetailView-D7m2C1Mg.js → ItemDetailView-BcOSmHfr.js} +6 -3
- package/dist/{OnDisplayIn-DW4iC5BB.js → OnDisplayIn-CPANKcOd.js} +15 -8
- package/dist/content.js +1 -1
- package/dist/data-DzrH9ikw.js +45 -0
- package/dist/dxa.js +699 -601
- package/dist/index.js +1 -1
- package/dist/viewer-layout.css +1 -1
- package/package.json +1 -1
- package/src/dxa/testing.js +31 -8
- package/src/styles/dxa-gallery.css +17 -2
- package/dist/data-EKYeMQcC.js +0 -45
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, r, t as i } from "./OnDisplayIn-
|
|
1
|
+
import { i as e, n as t, o as n, r, t as i } from "./OnDisplayIn-CPANKcOd.js";
|
|
2
2
|
import { n as a } from "./TimelineEventList-1feZA5t7.js";
|
|
3
3
|
import { r as o } from "./PartnerMap-U-Hi2FBi.js";
|
|
4
4
|
import { t as s } from "./RecordView-BE4mbj6G.js";
|
|
@@ -125,13 +125,16 @@ var k = {
|
|
|
125
125
|
external: !!c(e)
|
|
126
126
|
}), u = n.onDisplayIn && n.onDisplayIn !== !1 ? {
|
|
127
127
|
pendingLabel: n.onDisplayIn.linkPendingLabel ?? "",
|
|
128
|
-
groups: [{
|
|
128
|
+
groups: [n.onDisplayIn.exhibitions ? {
|
|
129
|
+
heading: n.onDisplayIn.exhibitionsHeading ?? "record.related.exhibitions",
|
|
130
|
+
sections: n.onDisplayIn.exhibitions(e, t)
|
|
131
|
+
} : {
|
|
129
132
|
heading: n.onDisplayIn.exhibitionsHeading ?? "record.related.exhibitions",
|
|
130
133
|
links: Oe(e).map(l)
|
|
131
134
|
}, {
|
|
132
135
|
heading: n.onDisplayIn.galleriesHeading ?? "record.related.galleries",
|
|
133
136
|
links: De(e).map(l)
|
|
134
|
-
}].filter((e) => e.links
|
|
137
|
+
}].filter((e) => (e.sections ?? [e]).some((e) => e.links?.length))
|
|
135
138
|
} : null, d = n.databaseLabel && Q(e) ? {
|
|
136
139
|
url: Q(e),
|
|
137
140
|
label: q(n.databaseLabel),
|
|
@@ -355,7 +355,7 @@ var A = ["href"], te = {
|
|
|
355
355
|
_: 1
|
|
356
356
|
}, 8, ["heading", "dir"])) : a("", !0);
|
|
357
357
|
}
|
|
358
|
-
}, Te = ["innerHTML"], Ee = { class: "mwnf-on-display__list" },
|
|
358
|
+
}, Te = ["innerHTML"], Ee = ["innerHTML"], De = { class: "mwnf-on-display__list" }, Oe = ["innerHTML"], ke = ["innerHTML"], Ae = { class: "mwnf-on-display__pending" }, je = {
|
|
359
359
|
__name: "OnDisplayIn",
|
|
360
360
|
props: {
|
|
361
361
|
groups: {
|
|
@@ -376,19 +376,26 @@ var A = ["href"], te = {
|
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
378
|
setup(l) {
|
|
379
|
-
let d = l, { t: p } = T(), h =
|
|
380
|
-
|
|
379
|
+
let d = l, { t: p } = T(), h = (e) => (e.sections ?? [{ links: e.links ?? [] }]).filter((e) => e.links?.length), y = r(() => d.groups.map((e) => ({
|
|
380
|
+
...e,
|
|
381
|
+
parts: h(e)
|
|
382
|
+
})).filter((e) => e.parts.length));
|
|
383
|
+
return (r, d) => y.value.length ? (f(), i(g(l.heading ? t : "div"), u({ key: 0 }, l.heading ? { heading: v(p)(l.heading) } : {}, {
|
|
381
384
|
dir: l.dir || void 0,
|
|
382
385
|
class: "mwnf-on-display"
|
|
383
386
|
}), {
|
|
384
|
-
default: S(() => [(f(!0), o(n, null, m(
|
|
387
|
+
default: S(() => [(f(!0), o(n, null, m(y.value, (t, r) => (f(), o("div", {
|
|
385
388
|
key: t.heading ?? r,
|
|
386
389
|
class: "mwnf-on-display__group"
|
|
387
390
|
}, [t.heading ? (f(), o("p", {
|
|
388
391
|
key: 0,
|
|
389
392
|
class: "mwnf-on-display__subheading",
|
|
390
393
|
innerHTML: v(O)(v(p)(t.heading))
|
|
391
|
-
}, null, 8, Te)) : a("", !0),
|
|
394
|
+
}, null, 8, Te)) : a("", !0), (f(!0), o(n, null, m(t.parts, (t, r) => (f(), o(n, { key: r }, [t.caption ? (f(), o("p", {
|
|
395
|
+
key: 0,
|
|
396
|
+
class: "mwnf-on-display__caption",
|
|
397
|
+
innerHTML: t.caption
|
|
398
|
+
}, null, 8, Ee)) : a("", !0), s("ul", De, [(f(!0), o(n, null, m(t.links, (t, r) => (f(), o("li", {
|
|
392
399
|
key: t.id ?? r,
|
|
393
400
|
class: "mwnf-on-display__item"
|
|
394
401
|
}, [t.to || t.href ? (f(), i(e, {
|
|
@@ -397,15 +404,15 @@ var A = ["href"], te = {
|
|
|
397
404
|
href: t.href,
|
|
398
405
|
external: !!t.external
|
|
399
406
|
}, {
|
|
400
|
-
default: S(() => [t.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: t.label }, null, 8,
|
|
407
|
+
default: S(() => [t.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: t.label }, null, 8, Oe)]),
|
|
401
408
|
_: 2
|
|
402
409
|
}, 1032, [
|
|
403
410
|
"to",
|
|
404
411
|
"href",
|
|
405
412
|
"external"
|
|
406
|
-
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: t.label }, null, 8,
|
|
413
|
+
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: t.label }, null, 8, ke), l.pendingLabel ? (f(), o(n, { key: 0 }, [d[0] ||= c(_(" "), -1), s("span", Ae, _(v(p)(l.pendingLabel)), 1)], 64)) : a("", !0)], 64))]))), 128))])], 64))), 128))]))), 128))]),
|
|
407
414
|
_: 1
|
|
408
415
|
}, 16, ["dir"])) : a("", !0);
|
|
409
416
|
}
|
|
410
417
|
};
|
|
411
|
-
export { Q as a, ue as i, we as n, W as o, xe as r, j as s,
|
|
418
|
+
export { Q as a, ue as i, we as n, W as o, xe as r, j as s, je as t };
|
package/dist/content.js
CHANGED
|
@@ -2,6 +2,6 @@ import { t as e } from "./FeaturedRecord-DaGLHyhD.js";
|
|
|
2
2
|
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./PartnerMap-U-Hi2FBi.js";
|
|
3
3
|
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-1feZA5t7.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-
|
|
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-CPANKcOd.js";
|
|
6
6
|
import { t as E } from "./content-BNS5U0Xv.js";
|
|
7
7
|
export { w as BackLink, b as DynastyList, y as DynastyPopout, d as FacetSelect, e as FeaturedRecord, f as FilterPanel, v as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, m as Pagination, l as PartnerMap, p as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, h as ResultsSummary, g as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { n as e } from "./chrome-Bv_mLlHM.js";
|
|
2
|
+
import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
|
|
3
|
+
import { FACET_CATEGORIES as r, GALLERY_ERA_WORDS as i, useGalleryCollection as a, useGalleryData as o, useGalleryItemDetail as s, useGalleryPartner as c, useGalleryTimeline as l } from "@museumwnf/viewer-core/dxa";
|
|
4
|
+
// src/dxa/gallery/data.js
|
|
5
|
+
var u = o(), d = a(u), f = l(u, d), p = c(u, d), { itemDetail: m } = s(u, f), { manifest: h, defaultLang: g, tr: _, md: v, mdInline: y, loadEnglish: b, labelOf: x, gallery: S, items: C, itemById: w, partners: T, countries: E, timelines: D, partnerById: O, itemRoute: k, partnerRoute: A, partnerObjectsRoute: j, itemFromUidPath: M, partnerFromKey: N, pickSiblings: P, siblingUrl: F } = u;
|
|
6
|
+
function I(t, r = "hi_res") {
|
|
7
|
+
return e(n().chrome, t) ?? u.chromeImage(t, r);
|
|
8
|
+
}
|
|
9
|
+
var { FACETS: L, haystack: R, tile: z, legacyOrder: B, collectionResults: V, countryIdForCode: H } = d, U = {
|
|
10
|
+
pageSize: 20,
|
|
11
|
+
sort: {
|
|
12
|
+
undated: "first",
|
|
13
|
+
tiebreak: (e, t) => B(e, t)
|
|
14
|
+
}
|
|
15
|
+
}, W = r.filter((e) => e !== "artist"), { timelineResults: G, timelineGallery: K } = f, { partnerList: q, partnerSheet: J, partnerObjects: Y } = p, X = {
|
|
16
|
+
countryLabel: (e) => x("countries", e),
|
|
17
|
+
md: v,
|
|
18
|
+
mdInline: y,
|
|
19
|
+
route: A,
|
|
20
|
+
objectsRoute: j
|
|
21
|
+
};
|
|
22
|
+
function Z(e) {
|
|
23
|
+
let n = (T.value ?? []).filter((e) => e.featured);
|
|
24
|
+
for (let e = n.length - 1; e > 0; e--) {
|
|
25
|
+
let t = Math.floor(Math.random() * (e + 1));
|
|
26
|
+
[n[e], n[t]] = [n[t], n[e]];
|
|
27
|
+
}
|
|
28
|
+
return n.slice(0, e).map((e) => t(e, _("partners", e.id, g), X));
|
|
29
|
+
}
|
|
30
|
+
var Q = {
|
|
31
|
+
spec: {
|
|
32
|
+
...J,
|
|
33
|
+
media: () => []
|
|
34
|
+
},
|
|
35
|
+
visible: () => !0,
|
|
36
|
+
view: (e, n) => t(e, {
|
|
37
|
+
..._("partners", e.id, g),
|
|
38
|
+
...n
|
|
39
|
+
}, X),
|
|
40
|
+
labels: { partner: {
|
|
41
|
+
objects: "partner.action.viewObjects",
|
|
42
|
+
homepage: "partner.nav.homepage"
|
|
43
|
+
} }
|
|
44
|
+
};
|
|
45
|
+
export { G as A, Y as C, F as D, P as E, _ as M, z as O, q as S, A as T, b as _, V as a, Q as b, Z as c, w as d, m as f, U as g, x as h, I as i, D as j, K as k, S as l, C as m, i as n, H as o, M as p, W as r, g as s, L as t, R as u, h as v, j as w, N as x, O as y };
|