@museumwnf/viewer-layout 3.18.1 → 3.20.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/{FeaturedRecord-MjTQmZFW.js → FeaturedRecord-CNRUaZBY.js} +1 -1
- package/dist/{ItemDetailView-B5hE3Oof.js → ItemDetailView-5t8skbHY.js} +4 -4
- package/dist/{OnDisplayIn-zdKWIPTZ.js → OnDisplayIn-DdqVmd4F.js} +38 -38
- package/dist/{MediaGallery-DeXLadYl.js → PartnerMap-BozCpzY8.js} +76 -1
- package/dist/{RecordView-GckO9PmG.js → RecordView-Bi53L29_.js} +12 -12
- package/dist/{Theme-DL9vKuSD.js → Theme-D17n73E8.js} +24 -24
- package/dist/TimelineEventList-B_lhlQOG.js +780 -0
- package/dist/{TimelineResultsView-COoWXGu4.js → TimelineResultsView-BMg79eiB.js} +185 -180
- package/dist/{content-CzCospyc.js → content-DzEj-kdq.js} +13 -13
- package/dist/content.js +6 -6
- package/dist/dxa.js +314 -314
- package/dist/index.js +6 -6
- package/dist/standalone.js +639 -257
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +1 -1
- package/src/tokens.reference.css +4 -0
- package/dist/TimelineEventList-QLk6KLMq.js +0 -841
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as e } from "./PartnerMap-BozCpzY8.js";
|
|
2
2
|
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, openBlock as s, renderList as c, renderSlot as l, toDisplayString as u, useSlots as d, withCtx as f } from "vue";
|
|
3
3
|
//#region src/content/FeaturedRecord.vue
|
|
4
4
|
var p = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./chrome-DNsZQXrL.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n } from "./TimelineEventList-
|
|
4
|
-
import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-
|
|
5
|
-
import { t as c } from "./RecordView-
|
|
2
|
+
import { r as t } from "./PartnerMap-BozCpzY8.js";
|
|
3
|
+
import { n } from "./TimelineEventList-B_lhlQOG.js";
|
|
4
|
+
import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-DdqVmd4F.js";
|
|
5
|
+
import { t as c } from "./RecordView-Bi53L29_.js";
|
|
6
6
|
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as h, createVNode as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as te, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useSlots as ne, withCtx as T } from "vue";
|
|
7
7
|
import { NotFoundView as re, byId as E, loadEntities as ie, mdInline as D, mdStrip as ae, mwnfLinks as O, partnerView as oe, useDataPackage as se, useI18n as ce, useProjects as le, useSiteConfig as ue } from "@museumwnf/viewer-core";
|
|
8
8
|
//#region src/dxa/ItemDetailView.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as e, o as t } from "./PartnerMap-BozCpzY8.js";
|
|
2
2
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, mergeProps as u, normalizeClass as d, openBlock as f, ref as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, vModelSelect as y, vModelText as b, watch as x, withCtx as S, withDirectives as C, withKeys as w } from "vue";
|
|
3
3
|
import { useI18n as T } from "@museumwnf/viewer-core/i18n";
|
|
4
4
|
import { md as E, mdInline as D, searchGlossary as ee } from "@museumwnf/viewer-core";
|
|
@@ -35,8 +35,8 @@ var k = ["href"], A = {
|
|
|
35
35
|
default: "←"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
setup(
|
|
39
|
-
let n = O(), a =
|
|
38
|
+
setup(t) {
|
|
39
|
+
let n = O(), a = t, l = r(() => !!(a.to || a.href));
|
|
40
40
|
function u() {
|
|
41
41
|
return window.history.state?.back != null || !l.value && window.history.length > 1;
|
|
42
42
|
}
|
|
@@ -47,28 +47,28 @@ var k = ["href"], A = {
|
|
|
47
47
|
function m(e) {
|
|
48
48
|
e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (u() ? (e.preventDefault(), n.back()) : a.to && n ? (e.preventDefault(), n.push(a.to)) : l.value || e.preventDefault());
|
|
49
49
|
}
|
|
50
|
-
return (n, r) =>
|
|
50
|
+
return (n, r) => t.variant === "bar" ? (f(), o("a", {
|
|
51
51
|
key: 0,
|
|
52
52
|
href: p.value,
|
|
53
53
|
class: "mwnf-back-bar mwnf-back-bar--link",
|
|
54
54
|
onClick: m
|
|
55
55
|
}, [
|
|
56
|
-
s("span", A, _(
|
|
56
|
+
s("span", A, _(t.arrow), 1),
|
|
57
57
|
r[0] ||= c(),
|
|
58
|
-
h(n.$slots, "default", {}, () => [c(_(n.$t(
|
|
59
|
-
], 8, k)) : (f(), o("div", te, [l.value && !u() ? (f(), i(
|
|
58
|
+
h(n.$slots, "default", {}, () => [c(_(n.$t(t.label)), 1)])
|
|
59
|
+
], 8, k)) : (f(), o("div", te, [l.value && !u() ? (f(), i(e, {
|
|
60
60
|
key: 0,
|
|
61
|
-
to:
|
|
62
|
-
href:
|
|
61
|
+
to: t.to,
|
|
62
|
+
href: t.href,
|
|
63
63
|
class: "mwnf-back-link__button"
|
|
64
64
|
}, {
|
|
65
|
-
default: S(() => [c(" ↩ " + _(n.$t(
|
|
65
|
+
default: S(() => [c(" ↩ " + _(n.$t(t.label)), 1)]),
|
|
66
66
|
_: 1
|
|
67
67
|
}, 8, ["to", "href"])) : (f(), o("button", {
|
|
68
68
|
key: 1,
|
|
69
69
|
class: "mwnf-back-link__button",
|
|
70
70
|
onClick: d
|
|
71
|
-
}, " ↩ " + _(n.$t(
|
|
71
|
+
}, " ↩ " + _(n.$t(t.label)), 1))]));
|
|
72
72
|
}
|
|
73
73
|
}, j = ["dir"], M = { class: "mwnf-glossary-tool__toggle" }, N = { class: "mwnf-glossary-tool__panel" }, P = { class: "mwnf-glossary-tool__heading" }, F = { class: "mwnf-glossary-tool__instructions" }, I = ["aria-expanded", "aria-label"], L = {
|
|
74
74
|
key: 0,
|
|
@@ -256,8 +256,8 @@ var k = ["href"], A = {
|
|
|
256
256
|
type: Object,
|
|
257
257
|
required: !0
|
|
258
258
|
} },
|
|
259
|
-
setup(
|
|
260
|
-
let i =
|
|
259
|
+
setup(t) {
|
|
260
|
+
let i = t, { t: u } = T(), d = p(!1), h = p(i.info.defaultCountry ? i.info.defaultCountry() : "all");
|
|
261
261
|
x(() => i.info, (e) => {
|
|
262
262
|
h.value = e.defaultCountry ? e.defaultCountry() : "all";
|
|
263
263
|
});
|
|
@@ -265,23 +265,23 @@ var k = ["href"], A = {
|
|
|
265
265
|
return (r, i) => (f(), o("div", ue, [s("p", {
|
|
266
266
|
class: "mwnf-sheet-timeline__trigger",
|
|
267
267
|
onClick: i[0] ||= (e) => d.value = !d.value
|
|
268
|
-
}, "➤ " + _(v(u)(
|
|
268
|
+
}, "➤ " + _(v(u)(t.info.trigger ?? "record.related.timelineForItem")), 1), d.value ? (f(), o("div", de, [
|
|
269
269
|
s("button", {
|
|
270
270
|
type: "button",
|
|
271
271
|
class: "mwnf-sheet-timeline__close",
|
|
272
272
|
"aria-label": v(u)("core.action.close"),
|
|
273
273
|
onClick: i[1] ||= (e) => d.value = !1
|
|
274
274
|
}, "✕", 8, fe),
|
|
275
|
-
s("p", pe, _(v(u)(
|
|
275
|
+
s("p", pe, _(v(u)(t.info.heading)), 1),
|
|
276
276
|
s("div", me, [C(s("select", {
|
|
277
277
|
"onUpdate:modelValue": i[2] ||= (e) => h.value = e,
|
|
278
278
|
class: "mwnf-sheet-timeline__select"
|
|
279
|
-
}, [(f(!0), o(n, null, m(
|
|
279
|
+
}, [(f(!0), o(n, null, m(t.info.countries, (e) => (f(), o("option", {
|
|
280
280
|
key: e.value,
|
|
281
281
|
value: e.value
|
|
282
|
-
}, _(e.label), 9, he))), 128))], 512), [[y, h.value]]), l(
|
|
282
|
+
}, _(e.label), 9, he))), 128))], 512), [[y, h.value]]), l(e, {
|
|
283
283
|
class: "mwnf-sheet-timeline__link",
|
|
284
|
-
to:
|
|
284
|
+
to: t.info.searchTo(h.value, g.value)
|
|
285
285
|
}, {
|
|
286
286
|
default: S(() => [c("➤ " + _(v(u)("timeline.action.beginFullSearch")), 1)]),
|
|
287
287
|
_: 1
|
|
@@ -326,26 +326,26 @@ var k = ["href"], A = {
|
|
|
326
326
|
default: ""
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
-
setup(
|
|
330
|
-
let c =
|
|
329
|
+
setup(e) {
|
|
330
|
+
let c = e, { t: l } = T(), u = r(() => {
|
|
331
331
|
let e = c.media.filter((e) => e?.url);
|
|
332
332
|
return c.language ? e.filter((e) => !e.language || e.language === c.language) : e;
|
|
333
333
|
});
|
|
334
|
-
return (r, c) => u.value.length ? (f(), i(
|
|
334
|
+
return (r, c) => u.value.length ? (f(), i(t, {
|
|
335
335
|
key: 0,
|
|
336
|
-
heading:
|
|
337
|
-
dir:
|
|
336
|
+
heading: e.heading ? v(l)(e.heading) : "",
|
|
337
|
+
dir: e.dir,
|
|
338
338
|
class: "mwnf-related-media"
|
|
339
339
|
}, {
|
|
340
|
-
default: S(() => [(f(!0), o(n, null, m(u.value, (
|
|
341
|
-
key:
|
|
340
|
+
default: S(() => [(f(!0), o(n, null, m(u.value, (t) => (f(), o("div", {
|
|
341
|
+
key: t.url,
|
|
342
342
|
class: "mwnf-related-media__entry"
|
|
343
343
|
}, [s("a", {
|
|
344
|
-
href:
|
|
344
|
+
href: t.url,
|
|
345
345
|
target: "_blank",
|
|
346
346
|
rel: "noopener",
|
|
347
347
|
class: "mwnf-related-media__link"
|
|
348
|
-
}, "↗ " + _(
|
|
348
|
+
}, "↗ " + _(t.title || t.url), 9, xe), e.descriptions && t.description ? (f(), o("p", Se, _(t.description), 1)) : a("", !0)]))), 128))]),
|
|
349
349
|
_: 1
|
|
350
350
|
}, 8, ["heading", "dir"])) : a("", !0);
|
|
351
351
|
}
|
|
@@ -374,29 +374,29 @@ var k = ["href"], A = {
|
|
|
374
374
|
},
|
|
375
375
|
setup(l) {
|
|
376
376
|
let d = l, { t: p } = T(), h = r(() => d.groups.filter((e) => e.links?.length));
|
|
377
|
-
return (r, d) => h.value.length ? (f(), i(g(l.heading ?
|
|
377
|
+
return (r, d) => h.value.length ? (f(), i(g(l.heading ? t : "div"), u({ key: 0 }, l.heading ? { heading: v(p)(l.heading) } : {}, {
|
|
378
378
|
dir: l.dir || void 0,
|
|
379
379
|
class: "mwnf-on-display"
|
|
380
380
|
}), {
|
|
381
|
-
default: S(() => [(f(!0), o(n, null, m(h.value, (
|
|
382
|
-
key:
|
|
381
|
+
default: S(() => [(f(!0), o(n, null, m(h.value, (t, r) => (f(), o("div", {
|
|
382
|
+
key: t.heading ?? r,
|
|
383
383
|
class: "mwnf-on-display__group"
|
|
384
|
-
}, [
|
|
385
|
-
key:
|
|
384
|
+
}, [t.heading ? (f(), o("p", we, _(v(p)(t.heading)), 1)) : a("", !0), s("ul", Te, [(f(!0), o(n, null, m(t.links, (t, r) => (f(), o("li", {
|
|
385
|
+
key: t.id ?? r,
|
|
386
386
|
class: "mwnf-on-display__item"
|
|
387
|
-
}, [
|
|
387
|
+
}, [t.to || t.href ? (f(), i(e, {
|
|
388
388
|
key: 0,
|
|
389
|
-
to:
|
|
390
|
-
href:
|
|
391
|
-
external: !!
|
|
389
|
+
to: t.to,
|
|
390
|
+
href: t.href,
|
|
391
|
+
external: !!t.external
|
|
392
392
|
}, {
|
|
393
|
-
default: S(() => [
|
|
393
|
+
default: S(() => [t.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: t.label }, null, 8, Ee)]),
|
|
394
394
|
_: 2
|
|
395
395
|
}, 1032, [
|
|
396
396
|
"to",
|
|
397
397
|
"href",
|
|
398
398
|
"external"
|
|
399
|
-
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML:
|
|
399
|
+
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: t.label }, null, 8, De), l.pendingLabel ? (f(), o(n, { key: 0 }, [d[0] ||= c(_(" "), -1), s("span", Oe, _(v(p)(l.pendingLabel)), 1)], 64)) : a("", !0)], 64))]))), 128))])]))), 128))]),
|
|
400
400
|
_: 1
|
|
401
401
|
}, 16, ["dir"])) : a("", !0);
|
|
402
402
|
}
|
|
@@ -597,6 +597,81 @@ var E = [
|
|
|
597
597
|
])) : r("", !0)
|
|
598
598
|
], 64))], 2)) : r("", !0);
|
|
599
599
|
}
|
|
600
|
+
}, at = {
|
|
601
|
+
key: 0,
|
|
602
|
+
class: "mwnf-partner-map__title"
|
|
603
|
+
}, ot = ["src", "title"], st = {
|
|
604
|
+
key: 1,
|
|
605
|
+
class: "mwnf-partner-map__link"
|
|
606
|
+
}, ct = ["href"], lt = {
|
|
607
|
+
__name: "PartnerMap",
|
|
608
|
+
props: {
|
|
609
|
+
latitude: {
|
|
610
|
+
type: Number,
|
|
611
|
+
default: null
|
|
612
|
+
},
|
|
613
|
+
longitude: {
|
|
614
|
+
type: Number,
|
|
615
|
+
default: null
|
|
616
|
+
},
|
|
617
|
+
zoom: {
|
|
618
|
+
type: Number,
|
|
619
|
+
default: 15
|
|
620
|
+
},
|
|
621
|
+
provider: {
|
|
622
|
+
type: String,
|
|
623
|
+
default: "osm"
|
|
624
|
+
},
|
|
625
|
+
language: {
|
|
626
|
+
type: String,
|
|
627
|
+
default: "en"
|
|
628
|
+
},
|
|
629
|
+
mapTitleEntry: {
|
|
630
|
+
type: String,
|
|
631
|
+
default: "partner.map.map"
|
|
632
|
+
},
|
|
633
|
+
mapOfEntry: {
|
|
634
|
+
type: String,
|
|
635
|
+
default: "partner.map.mapOf"
|
|
636
|
+
},
|
|
637
|
+
openMapLinkEntry: {
|
|
638
|
+
type: String,
|
|
639
|
+
default: "partner.map.openInOpenStreetMap"
|
|
640
|
+
},
|
|
641
|
+
label: {
|
|
642
|
+
type: String,
|
|
643
|
+
default: ""
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
setup(e) {
|
|
647
|
+
let n = e, { t: o } = C(), s = t(() => Number.isFinite(n.latitude) && Number.isFinite(n.longitude)), c = t(() => {
|
|
648
|
+
let e = 360 / 2 ** Math.max(1, Math.min(19, n.zoom || 15)), [t, r] = [n.latitude, n.longitude];
|
|
649
|
+
return [
|
|
650
|
+
r - e,
|
|
651
|
+
t - e / 2,
|
|
652
|
+
r + e,
|
|
653
|
+
t + e / 2
|
|
654
|
+
].join("%2C");
|
|
655
|
+
}), l = t(() => n.provider === "google"), d = t(() => l.value ? `https://maps.google.com/maps?q=${n.latitude},${n.longitude}&z=${n.zoom || 15}&t=h&hl=${encodeURIComponent(n.language)}&output=embed` : `https://www.openstreetmap.org/export/embed.html?bbox=${c.value}&layer=mapnik&marker=${n.latitude}%2C${n.longitude}`), p = t(() => n.label ? `${o(n.mapOfEntry)} ${n.label}` : o(n.mapTitleEntry)), m = t(() => `https://www.openstreetmap.org/?mlat=${n.latitude}&mlon=${n.longitude}#map=${n.zoom || 15}/${n.latitude}/${n.longitude}`);
|
|
656
|
+
return (t, n) => s.value ? (f(), i("div", {
|
|
657
|
+
key: 0,
|
|
658
|
+
class: u(["mwnf-partner-map", { "mwnf-partner-map--google": l.value }])
|
|
659
|
+
}, [
|
|
660
|
+
l.value ? r("", !0) : (f(), i("p", at, _(t.$t(e.mapTitleEntry)), 1)),
|
|
661
|
+
a("iframe", {
|
|
662
|
+
src: d.value,
|
|
663
|
+
title: p.value,
|
|
664
|
+
loading: "lazy",
|
|
665
|
+
referrerpolicy: "no-referrer",
|
|
666
|
+
class: "mwnf-partner-map__embed"
|
|
667
|
+
}, null, 8, ot),
|
|
668
|
+
l.value ? r("", !0) : (f(), i("p", st, [a("a", {
|
|
669
|
+
href: m.value,
|
|
670
|
+
target: "_blank",
|
|
671
|
+
rel: "noopener"
|
|
672
|
+
}, "↗ " + _(t.$t(e.openMapLinkEntry)), 9, ct)]))
|
|
673
|
+
], 2)) : r("", !0);
|
|
674
|
+
}
|
|
600
675
|
};
|
|
601
676
|
//#endregion
|
|
602
|
-
export {
|
|
677
|
+
export { Fe as a, ne as c, D as d, ze as i, X as l, it as n, Te as o, He as r, xe as s, lt as t, I as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e,
|
|
1
|
+
import { a as e, c as t, d as n, i as r, n as i, o as ee, r as te, s as ne } from "./PartnerMap-BozCpzY8.js";
|
|
2
2
|
import { t as re } from "./GlossaryPopover-B7E6BsjS.js";
|
|
3
3
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as ie, createTextVNode as ae, createVNode as d, guardReactiveProps as f, normalizeClass as oe, normalizeProps as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as se, watch as b, withCtx as x } from "vue";
|
|
4
4
|
import { useI18n as S } from "@museumwnf/viewer-core/i18n";
|
|
@@ -194,7 +194,7 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
|
|
|
194
194
|
onClick: h[0] ||= (...e) => y(H) && y(H)(...e)
|
|
195
195
|
}, [
|
|
196
196
|
_(o.$slots, "header", p(f(W.value)), () => [
|
|
197
|
-
j.value.back ? (m(), s(
|
|
197
|
+
j.value.back ? (m(), s(n, {
|
|
198
198
|
key: 0,
|
|
199
199
|
class: "mwnf-record__back",
|
|
200
200
|
to: j.value.back.to,
|
|
@@ -203,7 +203,7 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
|
|
|
203
203
|
default: x(() => [ae("← " + v(y(S)(j.value.back.label)), 1)]),
|
|
204
204
|
_: 1
|
|
205
205
|
}, 8, ["to", "href"])) : c("", !0),
|
|
206
|
-
d(
|
|
206
|
+
d(t, {
|
|
207
207
|
languages: B.value,
|
|
208
208
|
language: y(N),
|
|
209
209
|
onSelect: y(F)
|
|
@@ -219,14 +219,14 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
|
|
|
219
219
|
}, null, 8, De)
|
|
220
220
|
]),
|
|
221
221
|
u("div", Oe, [u("div", ke, [
|
|
222
|
-
Ge.value.length ? (m(), s(
|
|
222
|
+
Ge.value.length ? (m(), s(i, {
|
|
223
223
|
key: 0,
|
|
224
224
|
images: Ge.value,
|
|
225
225
|
variant: j.value.mediaVariant ?? ""
|
|
226
226
|
}, null, 8, ["images", "variant"])) : c("", !0),
|
|
227
227
|
y(L) ? c("", !0) : (m(), l("p", Ae, v(y(S)("core.status.loading")), 1)),
|
|
228
228
|
_(o.$slots, "before-sheet", p(f(W.value))),
|
|
229
|
-
d(
|
|
229
|
+
d(ne, {
|
|
230
230
|
rows: K.value,
|
|
231
231
|
layout: j.value.layout ?? "table",
|
|
232
232
|
dir: y(P),
|
|
@@ -245,21 +245,21 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
|
|
|
245
245
|
"short-description",
|
|
246
246
|
"short-description-after"
|
|
247
247
|
]),
|
|
248
|
-
(m(!0), l(a, null, g(q.value, (
|
|
249
|
-
heading:
|
|
250
|
-
html:
|
|
248
|
+
(m(!0), l(a, null, g(q.value, (e) => (m(), l(a, { key: e.key }, [d(ee, {
|
|
249
|
+
heading: e.label,
|
|
250
|
+
html: e.html,
|
|
251
251
|
dir: y(P)
|
|
252
252
|
}, null, 8, [
|
|
253
253
|
"heading",
|
|
254
254
|
"html",
|
|
255
255
|
"dir"
|
|
256
|
-
]), Y.value && He.value &&
|
|
256
|
+
]), Y.value && He.value && e.key === J.value ? (m(), s(Ee, {
|
|
257
257
|
key: 0,
|
|
258
258
|
html: Y.value.html,
|
|
259
259
|
dir: y(P)
|
|
260
260
|
}, null, 8, ["html", "dir"])) : c("", !0)], 64))), 128)),
|
|
261
261
|
_(o.$slots, "after-sheet", p(f(W.value))),
|
|
262
|
-
d(
|
|
262
|
+
d(e, {
|
|
263
263
|
credits: Je.value,
|
|
264
264
|
"working-number": Ye.value,
|
|
265
265
|
"working-number-label": y(S)(j.value.workingNumberLabel ?? "sheet.field.workingNumber"),
|
|
@@ -272,12 +272,12 @@ var De = ["dir", "innerHTML"], Oe = { class: "mwnf-record__body" }, ke = { class
|
|
|
272
272
|
"citation",
|
|
273
273
|
"citation-heading"
|
|
274
274
|
]),
|
|
275
|
-
_(o.$slots, "source", p(f(W.value)), () => [d(
|
|
275
|
+
_(o.$slots, "source", p(f(W.value)), () => [d(r)]),
|
|
276
276
|
_(o.$slots, "related", p(f({
|
|
277
277
|
...W.value,
|
|
278
278
|
records: $.value,
|
|
279
279
|
outside: y(Z).outside
|
|
280
|
-
})), () => [Q.value ? (m(), s(
|
|
280
|
+
})), () => [Q.value ? (m(), s(te, {
|
|
281
281
|
key: 0,
|
|
282
282
|
heading: y(S)(Q.value.heading ?? "record.related.items"),
|
|
283
283
|
records: $.value,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as n } from "./TimelineResultsView-
|
|
1
|
+
import { d as e, i as t } from "./PartnerMap-BozCpzY8.js";
|
|
2
|
+
import { o as n } from "./TimelineResultsView-BMg79eiB.js";
|
|
3
3
|
import { A as r, F as i, h as a, m as o } from "./data-BINc9QjV.js";
|
|
4
4
|
import { n as s, r as c, t as l } from "./themeSpecs-DP9xWiVJ.js";
|
|
5
5
|
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, normalizeClass as v, onMounted as ee, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, vModelCheckbox as w, watch as T, withCtx as E, withDirectives as D } from "vue";
|
|
@@ -67,8 +67,8 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
emits: ["update:selectedId"],
|
|
70
|
-
setup(
|
|
71
|
-
let r =
|
|
70
|
+
setup(t, { emit: n }) {
|
|
71
|
+
let r = t, i = n, { t: a } = k(), o = d(() => r.pictures.find((e) => e.id === r.selectedId) ?? null), s = d(() => r.pictures.some((e) => e.backRelated?.length)), c = b(!1);
|
|
72
72
|
T(() => r.pictures, () => {
|
|
73
73
|
c.value = !1;
|
|
74
74
|
});
|
|
@@ -86,38 +86,38 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
86
86
|
class: "mwnf-picture-gallery__detail"
|
|
87
87
|
}, [e.label ? (y(), m("span", B, S(e.label), 1)) : p("", !0), h("span", { innerHTML: e.value }, null, 8, V)]))), 128)),
|
|
88
88
|
o.value.detail ? (y(), m("div", H, S(o.value.detail), 1)) : p("", !0),
|
|
89
|
-
o.value.to ? (y(), f(
|
|
89
|
+
o.value.to ? (y(), f(e, {
|
|
90
90
|
key: 1,
|
|
91
91
|
class: "mwnf-picture-gallery__link",
|
|
92
92
|
to: o.value.to
|
|
93
93
|
}, {
|
|
94
|
-
default: E(() => [g(S(C(a)(
|
|
94
|
+
default: E(() => [g(S(C(a)(t.seeItemEntry)) + " →", 1)]),
|
|
95
95
|
_: 1
|
|
96
|
-
}, 8, ["to"])) : (y(), m("div", U, S(C(a)(
|
|
97
|
-
])])) : (y(), m("div", W, S(C(a)(
|
|
98
|
-
key:
|
|
96
|
+
}, 8, ["to"])) : (y(), m("div", U, S(C(a)(t.unresolvedEntry)), 1))
|
|
97
|
+
])])) : (y(), m("div", W, S(C(a)(t.emptyEntry)), 1)), t.pictures.length ? (y(), m("div", G, [h("ul", K, [(y(!0), m(u, null, x(l.value, (e) => (y(), m("li", {
|
|
98
|
+
key: e.id,
|
|
99
99
|
class: v(["mwnf-picture-gallery__thumb", {
|
|
100
|
-
"mwnf-picture-gallery__thumb--active":
|
|
101
|
-
"mwnf-picture-gallery__thumb--related":
|
|
100
|
+
"mwnf-picture-gallery__thumb--active": e.id === t.selectedId,
|
|
101
|
+
"mwnf-picture-gallery__thumb--related": e.backRelated?.length
|
|
102
102
|
}])
|
|
103
103
|
}, [h("button", {
|
|
104
104
|
type: "button",
|
|
105
|
-
onClick: (
|
|
105
|
+
onClick: (t) => _(e)
|
|
106
106
|
}, [h("img", {
|
|
107
|
-
src:
|
|
108
|
-
alt:
|
|
107
|
+
src: e.image,
|
|
108
|
+
alt: e.imageAlt ?? "",
|
|
109
109
|
loading: "lazy"
|
|
110
110
|
}, null, 8, J)], 8, q), h("div", Y, [
|
|
111
|
-
|
|
111
|
+
e.imageCaption ? (y(), m("span", X, S(e.imageCaption) + ", ", 1)) : p("", !0),
|
|
112
112
|
h("span", {
|
|
113
113
|
class: "mwnf-picture-gallery__thumb-name",
|
|
114
|
-
innerHTML:
|
|
114
|
+
innerHTML: e.name
|
|
115
115
|
}, null, 8, Z),
|
|
116
|
-
|
|
116
|
+
e.detail ? (y(), m("span", Q, ", " + S(e.detail), 1)) : p("", !0)
|
|
117
117
|
])], 2))), 128))]), s.value ? (y(), m("label", ie, [D(h("input", {
|
|
118
118
|
"onUpdate:modelValue": r[0] ||= (e) => c.value = e,
|
|
119
119
|
type: "checkbox"
|
|
120
|
-
}, null, 512), [[w, c.value]]), h("span", null, S(c.value ? C(a)(
|
|
120
|
+
}, null, 512), [[w, c.value]]), h("span", null, S(c.value ? C(a)(t.hideRelatedEntry) : C(a)(t.addRelatedEntry)), 1)])) : p("", !0)])) : p("", !0)]));
|
|
121
121
|
}
|
|
122
122
|
}, $ = {
|
|
123
123
|
key: 0,
|
|
@@ -211,8 +211,8 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
211
211
|
type: Boolean,
|
|
212
212
|
default: !1
|
|
213
213
|
} },
|
|
214
|
-
setup(
|
|
215
|
-
let w =
|
|
214
|
+
setup(e) {
|
|
215
|
+
let w = e, { aboutTheme: D, owningTheme: O, romanFor: j, themeByRouteId: M, themeText: N, useThemePictures: re } = r, { t: P, locale: F } = k(), I = te(), L = ne(), R = d(() => w.aboutMode ? D.value : M(I.params.id)), z = d(() => {
|
|
216
216
|
let e = I.params.subtheme;
|
|
217
217
|
if (w.aboutMode || !e || e === "overview") return null;
|
|
218
218
|
let t = Number(e);
|
|
@@ -252,7 +252,7 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
252
252
|
key: 0,
|
|
253
253
|
spec: H.value,
|
|
254
254
|
id: V.value.id,
|
|
255
|
-
class: v(["mwnf-dxa-theme", { "mwnf-dxa-theme--about":
|
|
255
|
+
class: v(["mwnf-dxa-theme", { "mwnf-dxa-theme--about": e.aboutMode }])
|
|
256
256
|
}, {
|
|
257
257
|
header: E(() => [h("div", je, [Q.value ? (y(), m("span", Me, S(C(P)("exhibition.theme.romanLabel")) + " " + S(Q.value) + " ▪ ", 1)) : p("", !0), g(S(X.value), 1)]), h("div", Ne, S(Z.value), 1)]),
|
|
258
258
|
panel: E(() => [_(ae, {
|
|
@@ -260,7 +260,7 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
260
260
|
"selected-id": W.value,
|
|
261
261
|
"onUpdate:selectedId": J
|
|
262
262
|
}, null, 8, ["pictures", "selected-id"])]),
|
|
263
|
-
"after-body": E(() => [
|
|
263
|
+
"after-body": E(() => [e.aboutMode ? p("", !0) : (y(), f(ke, {
|
|
264
264
|
key: 0,
|
|
265
265
|
picture: q.value,
|
|
266
266
|
"contextual-description": ie.value,
|
|
@@ -300,13 +300,13 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
300
300
|
_: 2
|
|
301
301
|
}, 1032, ["to", "class"])]))), 128))
|
|
302
302
|
])) : p("", !0)]),
|
|
303
|
-
after: E(({ next: n }) => [
|
|
303
|
+
after: E(({ next: n }) => [e.aboutMode && n ? (y(), m("div", ze, [i[0] ||= h("span", null, null, -1), _(C(A), {
|
|
304
304
|
to: C(s)(n),
|
|
305
305
|
class: "mwnf-dxa-theme__tour-link"
|
|
306
306
|
}, {
|
|
307
307
|
default: E(() => [g(S(C(P)("core.pagination.next")) + " " + S(Ve), 1)]),
|
|
308
308
|
_: 1
|
|
309
|
-
}, 8, ["to"])])) : p("", !0), _(
|
|
309
|
+
}, 8, ["to"])])) : p("", !0), _(t)]),
|
|
310
310
|
_: 1
|
|
311
311
|
}, 8, [
|
|
312
312
|
"spec",
|