@museumwnf/viewer-layout 3.58.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.
Files changed (30) hide show
  1. package/README.md +5 -3
  2. package/dist/{FeaturedRecord-CTqnQFox.js → FeaturedRecord-DLYyyRey.js} +2 -3
  3. package/dist/{GlossaryPopover-B7E6BsjS.js → GlossaryPopover-DbQKXhx9.js} +1 -2
  4. package/dist/ItemDetailView-D5T3QXYJ.js +303 -0
  5. package/dist/{OnDisplayIn-DZHRKjL0.js → OnDisplayIn-CCM5Ahxy.js} +10 -5
  6. package/dist/{PageShell-CcaLOuXI.js → PageShell-CPtgzcxv.js} +1 -2
  7. package/dist/{PartnerMap-BIKd-AGP.js → PartnerMap-BuQo_FLl.js} +1 -2
  8. package/dist/{RecordView-DEKHp1A3.js → RecordView-n7bbQUg2.js} +14 -17
  9. package/dist/{SiteShell-CYQxXosD.js → SiteShell-qvsZO4Iz.js} +3 -4
  10. package/dist/{Theme-Co1bf81Z.js → Theme-0bsA_Abx.js} +29 -30
  11. package/dist/{TimelineEventList-CTJJOWGh.js → TimelineEventList-e1fNm28F.js} +3 -4
  12. package/dist/{TimelineResultsView-D15BMWZM.js → TimelineResultsView-Cl_LcM--.js} +264 -255
  13. package/dist/{chrome-DNsZQXrL.js → chrome-Bv_mLlHM.js} +1 -2
  14. package/dist/components.js +1 -2
  15. package/dist/{content-PQeMx8U5.js → content-BzSJircQ.js} +3 -4
  16. package/dist/content.js +6 -6
  17. package/dist/{data-CXRsGwLQ.js → data-EKYeMQcC.js} +16 -11
  18. package/dist/{data-BINc9QjV.js → data-kqAkoQvf.js} +2 -3
  19. package/dist/dxa.js +898 -673
  20. package/dist/index.js +8 -8
  21. package/dist/minisite.js +347 -341
  22. package/dist/standalone.js +209 -217
  23. package/dist/{themeSpecs-DP9xWiVJ.js → themeSpecs-CsDpl4rR.js} +2 -3
  24. package/dist/viewer-layout.css +1 -1
  25. package/dist/views.js +5 -6
  26. package/package.json +10 -10
  27. package/src/dxa/testing.js +71 -42
  28. package/src/styles/dxa-gallery.css +19 -1
  29. package/src/tokens.reference.css +11 -1
  30. package/dist/ItemDetailView-Bbn-uNaR.js +0 -304
@@ -1,11 +1,11 @@
1
- import { d as e, i as t } from "./PartnerMap-BIKd-AGP.js";
2
- import { o as n } from "./TimelineResultsView-D15BMWZM.js";
3
- import { A as r, F as i, h as a, m as o } from "./data-BINc9QjV.js";
4
- import { n as s, r as c, t as l } from "./themeSpecs-DP9xWiVJ.js";
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
- //#region \0rolldown/runtime.js
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(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);
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(e, {
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)(t.seeItemEntry)) + " →", 1)]),
94
+ default: E(() => [g(S(C(a)(e.seeItemEntry)) + " →", 1)]),
95
95
  _: 1
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,
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": e.id === t.selectedId,
101
- "mwnf-picture-gallery__thumb--related": e.backRelated?.length
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: (t) => _(e)
105
+ onClick: (e) => _(t)
106
106
  }, [h("img", {
107
- src: e.image,
108
- alt: e.imageAlt ?? "",
107
+ src: t.image,
108
+ alt: t.imageAlt ?? "",
109
109
  loading: "lazy"
110
110
  }, null, 8, J)], 8, q), h("div", Y, [
111
- e.imageCaption ? (y(), m("span", X, S(e.imageCaption) + ", ", 1)) : p("", !0),
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: e.name
114
+ innerHTML: t.name
115
115
  }, null, 8, Z),
116
- e.detail ? (y(), m("span", Q, ", " + S(e.detail), 1)) : p("", !0)
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)(t.hideRelatedEntry) : C(a)(t.addRelatedEntry)), 1)])) : p("", !0)])) : p("", !0)]));
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(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(() => {
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(n, {
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": e.aboutMode }])
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(() => [e.aboutMode ? p("", !0) : (y(), f(ke, {
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: n }) => [e.aboutMode && n ? (y(), m("div", ze, [i[0] ||= h("span", null, null, -1), _(C(A), {
304
- to: C(s)(n),
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), _(t)]),
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-BIKd-AGP.js";
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
- //#region src/content/SectionCards.vue
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 === void 0 || !t.length || (e.preventDefault(), R.value = t[r], f(() => document.getElementById(z(t[r]))?.focus()));
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 };