@museumwnf/viewer-layout 3.59.0 → 3.60.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-CTqnQFox.js → FeaturedRecord-DLYyyRey.js} +2 -3
- package/dist/{GlossaryPopover-B7E6BsjS.js → GlossaryPopover-DbQKXhx9.js} +1 -2
- package/dist/ItemDetailView-D5T3QXYJ.js +303 -0
- package/dist/{OnDisplayIn-DZHRKjL0.js → OnDisplayIn-CCM5Ahxy.js} +10 -5
- package/dist/{PageShell-CcaLOuXI.js → PageShell-CPtgzcxv.js} +1 -2
- package/dist/{PartnerMap-BIKd-AGP.js → PartnerMap-BuQo_FLl.js} +1 -2
- package/dist/{RecordView-DEKHp1A3.js → RecordView-n7bbQUg2.js} +14 -17
- package/dist/{SiteShell-CYQxXosD.js → SiteShell-qvsZO4Iz.js} +3 -4
- package/dist/{Theme-Co1bf81Z.js → Theme-0bsA_Abx.js} +29 -30
- package/dist/{TimelineEventList-CTJJOWGh.js → TimelineEventList-e1fNm28F.js} +3 -4
- package/dist/{TimelineResultsView-D15BMWZM.js → TimelineResultsView-Cl_LcM--.js} +264 -255
- package/dist/{chrome-DNsZQXrL.js → chrome-Bv_mLlHM.js} +1 -2
- package/dist/components.js +1 -2
- package/dist/{content-PQeMx8U5.js → content-BzSJircQ.js} +3 -4
- package/dist/content.js +6 -6
- package/dist/{data-CXRsGwLQ.js → data-EKYeMQcC.js} +16 -11
- package/dist/{data-BINc9QjV.js → data-kqAkoQvf.js} +2 -3
- package/dist/dxa.js +898 -673
- package/dist/index.js +8 -8
- package/dist/minisite.js +14 -26
- package/dist/standalone.js +209 -217
- package/dist/{themeSpecs-DP9xWiVJ.js → themeSpecs-CsDpl4rR.js} +2 -3
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +5 -6
- package/package.json +10 -10
- package/src/dxa/testing.js +71 -42
- package/src/styles/dxa-gallery.css +19 -1
- package/src/tokens.reference.css +11 -1
- package/dist/ItemDetailView-Bbn-uNaR.js +0 -304
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { A as r, F as i, h as a, m as o } from "./data-
|
|
4
|
-
import { n as s, r as c, t as l } from "./themeSpecs-
|
|
1
|
+
import { o as e } from "./TimelineResultsView-Cl_LcM--.js";
|
|
2
|
+
import { d as t, i as n } from "./PartnerMap-BuQo_FLl.js";
|
|
3
|
+
import { A as r, F as i, h as a, m as o } from "./data-kqAkoQvf.js";
|
|
4
|
+
import { n as s, r as c, t as l } from "./themeSpecs-CsDpl4rR.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";
|
|
6
6
|
import { renderBlock as O, useI18n as k } from "@museumwnf/viewer-core";
|
|
7
7
|
import { RouterLink as A, useRoute as te, useRouter as ne } from "vue-router";
|
|
8
|
-
|
|
8
|
+
// \0rolldown/runtime.js
|
|
9
9
|
var j = Object.defineProperty, M = (e, t) => {
|
|
10
10
|
let n = {};
|
|
11
11
|
for (var r in e) j(n, r, {
|
|
@@ -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(e, { emit: n }) {
|
|
71
|
+
let r = e, 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(t, {
|
|
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)(e.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)(e.unresolvedEntry)), 1))
|
|
97
|
+
])])) : (y(), m("div", W, S(C(a)(e.emptyEntry)), 1)), e.pictures.length ? (y(), m("div", G, [h("ul", K, [(y(!0), m(u, null, x(l.value, (t) => (y(), m("li", {
|
|
98
|
+
key: t.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": t.id === e.selectedId,
|
|
101
|
+
"mwnf-picture-gallery__thumb--related": t.backRelated?.length
|
|
102
102
|
}])
|
|
103
103
|
}, [h("button", {
|
|
104
104
|
type: "button",
|
|
105
|
-
onClick: (
|
|
105
|
+
onClick: (e) => _(t)
|
|
106
106
|
}, [h("img", {
|
|
107
|
-
src:
|
|
108
|
-
alt:
|
|
107
|
+
src: t.image,
|
|
108
|
+
alt: t.imageAlt ?? "",
|
|
109
109
|
loading: "lazy"
|
|
110
110
|
}, null, 8, J)], 8, q), h("div", Y, [
|
|
111
|
-
|
|
111
|
+
t.imageCaption ? (y(), m("span", X, S(t.imageCaption) + ", ", 1)) : p("", !0),
|
|
112
112
|
h("span", {
|
|
113
113
|
class: "mwnf-picture-gallery__thumb-name",
|
|
114
|
-
innerHTML:
|
|
114
|
+
innerHTML: t.name
|
|
115
115
|
}, null, 8, Z),
|
|
116
|
-
|
|
116
|
+
t.detail ? (y(), m("span", Q, ", " + S(t.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)(e.hideRelatedEntry) : C(a)(e.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(t) {
|
|
215
|
+
let w = t, { 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);
|
|
@@ -248,11 +248,11 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
248
248
|
title: N(e, F.value).title ?? e.internal_name ?? "",
|
|
249
249
|
to: s(e)
|
|
250
250
|
}))), oe = d(() => R.value ? s(R.value) : null);
|
|
251
|
-
return (r, i) => V.value ? (y(), f(
|
|
251
|
+
return (r, i) => V.value ? (y(), f(e, {
|
|
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": t.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(() => [t.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:
|
|
304
|
-
to: C(s)(
|
|
303
|
+
after: E(({ next: e }) => [t.aboutMode && e ? (y(), m("div", ze, [i[0] ||= h("span", null, null, -1), _(C(A), {
|
|
304
|
+
to: C(s)(e),
|
|
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), _(n)]),
|
|
310
310
|
_: 1
|
|
311
311
|
}, 8, [
|
|
312
312
|
"spec",
|
|
@@ -315,5 +315,4 @@ var j = Object.defineProperty, M = (e, t) => {
|
|
|
315
315
|
])) : (y(), m("div", Be, S(C(P)("exhibition.theme.notInExhibition")), 1));
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
|
-
//#endregion
|
|
319
318
|
export { M as a, ae as i, He as n, ke as r, Ae as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as e, n as t, t as n } from "./PartnerMap-
|
|
1
|
+
import { d as e, n as t, t as n } from "./PartnerMap-BuQo_FLl.js";
|
|
2
2
|
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, mergeProps as d, nextTick as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, renderSlot as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useId as x, useSlots as S, vModelText as C, vShow as ee, watch as w, withCtx as T, withDirectives as E, withKeys as D, withModifiers as O } from "vue";
|
|
3
3
|
import { useI18n as k } from "@museumwnf/viewer-core/i18n";
|
|
4
4
|
import { mdInline as A } from "@museumwnf/viewer-core";
|
|
5
|
-
|
|
5
|
+
// src/content/SectionCards.vue
|
|
6
6
|
var j = ["innerHTML"], M = ["innerHTML"], N = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "mwnf-cards__action"
|
|
@@ -526,7 +526,7 @@ var j = ["innerHTML"], M = ["innerHTML"], N = {
|
|
|
526
526
|
Home: 0,
|
|
527
527
|
End: t.length - 1
|
|
528
528
|
}[e.key];
|
|
529
|
-
r
|
|
529
|
+
r !== void 0 && t.length && (e.preventDefault(), R.value = t[r], f(() => document.getElementById(z(t[r]))?.focus()));
|
|
530
530
|
}
|
|
531
531
|
let H = i(() => j("persons") ? M.value?.persons ?? [] : []), U = i(() => [...M.value?.contact?.website ? [M.value.contact.website] : [], ...M.value?.contact?.links ?? []]);
|
|
532
532
|
return (i, f) => S.partner && S.variant === "line" ? (m(), s("div", {
|
|
@@ -776,5 +776,4 @@ var j = ["innerHTML"], M = ["innerHTML"], N = {
|
|
|
776
776
|
])]))), 128))])) : b(n) ? (m(), s("div", kt, [_(i.$slots, "empty")])) : o("", !0);
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
|
-
//#endregion
|
|
780
779
|
export { me as a, ye as i, yt as n, se as o, Ee as r, J as s, At as t };
|