@museumwnf/viewer-layout 3.10.0 → 3.11.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/README.md +63 -0
- package/dist/{FeaturedRecord-DJfyvfqt.js → FeaturedRecord-DGZ1dpyc.js} +1 -1
- package/dist/GlossaryPopover-B7E6BsjS.js +55 -0
- package/dist/{ItemDetailView-CzIquvf7.js → ItemDetailView-BAoP3CHx.js} +5 -5
- package/dist/{GlossaryPopover-DcptyNWI.js → MediaGallery-CHhf9xUZ.js} +11 -60
- package/dist/{OnDisplayIn-2ctLMfvw.js → OnDisplayIn-BCjxYjO7.js} +38 -38
- package/dist/{chrome-Co3f_Shw.js → PageShell-BT9SnXav.js} +123 -153
- package/dist/{RecordView-BvKoAB2j.js → RecordView-C23v0iYh.js} +13 -12
- package/dist/{SiteShell-DmKiH3jM.js → SiteShell-DPdTxtJ5.js} +2 -1
- package/dist/{Theme-pxrmYfo-.js → Theme-Dn5MBpQG.js} +26 -26
- package/dist/{TimelineEventList-gsoc-SBx.js → TimelineEventList-C5cbF_an.js} +40 -40
- package/dist/TimelineResultsView-xA0Wu7zv.js +1387 -0
- package/dist/chrome-DNsZQXrL.js +34 -0
- package/dist/components.js +1 -1
- package/dist/{content-Cu_44di8.js → content-DCtsRrwx.js} +13 -13
- package/dist/content.js +7 -6
- package/dist/{data-d30zAska.js → data-BINc9QjV.js} +1 -1
- package/dist/{data-Dz9REf19.js → data-CXRsGwLQ.js} +1 -1
- package/dist/dxa.js +14 -13
- package/dist/index.js +9 -7
- package/dist/minisite.js +931 -0
- package/dist/standalone.js +55 -55
- package/dist/{themeSpecs-CXVCN8UV.js → themeSpecs-DP9xWiVJ.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +2 -1
- package/dist/TimelineResultsView-C2-TnM71.js +0 -1386
package/dist/standalone.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as e } from "./chrome-
|
|
2
|
-
import {
|
|
3
|
-
import { n as i, t as a } from "./RecordView-
|
|
4
|
-
import { t as o } from "./SiteShell-
|
|
1
|
+
import { r as e } from "./chrome-DNsZQXrL.js";
|
|
2
|
+
import { s as t, t as n, u as r } from "./MediaGallery-CHhf9xUZ.js";
|
|
3
|
+
import { n as i, t as a } from "./RecordView-C23v0iYh.js";
|
|
4
|
+
import { t as o } from "./SiteShell-DPdTxtJ5.js";
|
|
5
5
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, unref as T, useSlots as E, watch as D, withCtx as O } from "vue";
|
|
6
6
|
import { byId as k, loadEntities as A, pictureCredits as j, picturesInLanguage as M, removeEndingPoint as N, renderBlock as P, renderInline as F, renderPlain as I, useDataPackage as L, useI18n as R, useSection as ee, useSiteConfig as z } from "@museumwnf/viewer-core";
|
|
7
7
|
//#region src/standalone/Banner.vue
|
|
@@ -75,22 +75,22 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
75
75
|
default: () => []
|
|
76
76
|
} },
|
|
77
77
|
setup(e) {
|
|
78
|
-
let t = e, { t:
|
|
78
|
+
let t = e, { t: n } = R(), i = H(), a = c(() => t.columns.map((e, t) => ({
|
|
79
79
|
key: t,
|
|
80
80
|
width: e.width ?? null,
|
|
81
|
-
lead: e.lead ? F(
|
|
82
|
-
text: e.text ? F(
|
|
81
|
+
lead: e.lead ? F(n(e.lead)) : "",
|
|
82
|
+
text: e.text ? F(n(e.text)) : "",
|
|
83
83
|
break: !!e.break,
|
|
84
|
-
title: e.title ?
|
|
84
|
+
title: e.title ? n(e.title) : "",
|
|
85
85
|
logos: (e.logos ?? []).map((e) => ({
|
|
86
86
|
src: i(e.src) ?? "",
|
|
87
|
-
alt: e.alt ?
|
|
87
|
+
alt: e.alt ? n(e.alt) : "",
|
|
88
88
|
href: e.href ?? "",
|
|
89
|
-
note: e.note ? P(
|
|
89
|
+
note: e.note ? P(n(e.note)) : ""
|
|
90
90
|
})),
|
|
91
91
|
links: (e.links ?? []).map((e) => ({
|
|
92
92
|
...e,
|
|
93
|
-
label:
|
|
93
|
+
label: n(e.label)
|
|
94
94
|
}))
|
|
95
95
|
})));
|
|
96
96
|
return (e, t) => (b(), d("div", te, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("div", {
|
|
@@ -129,7 +129,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
129
129
|
src: e.src,
|
|
130
130
|
alt: e.alt
|
|
131
131
|
}, null, 8, de))]))), 128))])) : u("", !0),
|
|
132
|
-
e.links.length ? (b(), d("ul", fe, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(
|
|
132
|
+
e.links.length ? (b(), d("ul", fe, [(b(!0), d(s, null, S(e.links, (e) => (b(), d("li", { key: e.label }, [h(r, {
|
|
133
133
|
to: e.to,
|
|
134
134
|
href: e.href,
|
|
135
135
|
external: !!e.external
|
|
@@ -320,21 +320,21 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
320
320
|
}
|
|
321
321
|
},
|
|
322
322
|
setup(e) {
|
|
323
|
-
let t = e, { t:
|
|
324
|
-
let e = t.text ?? {},
|
|
325
|
-
a &&
|
|
323
|
+
let t = e, { t: n } = R(), i = (e) => N(Array.isArray(e) ? e.join("; ") : e), a = c(() => {
|
|
324
|
+
let e = t.text ?? {}, r = [], a = i(e.name ?? t.record?.internal_name ?? "");
|
|
325
|
+
a && r.push(F(a));
|
|
326
326
|
let o = i(e.alternate_name);
|
|
327
|
-
o &&
|
|
327
|
+
o && r.push(`${t.alsoKnownAs ? `${n(t.alsoKnownAs)} ` : ""}${F(o)}`);
|
|
328
328
|
let s = [i(e.dates), i(e.dynasty)].filter(Boolean).join(", ");
|
|
329
|
-
s &&
|
|
329
|
+
s && r.push(F(s));
|
|
330
330
|
for (let t of ["materials", "holder"]) {
|
|
331
|
-
let
|
|
332
|
-
|
|
331
|
+
let n = i(e[t]);
|
|
332
|
+
n && r.push(F(n));
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return r;
|
|
335
335
|
}), o = c(() => [i(t.text?.location), t.country].filter(Boolean).join(", ")), p = c(() => t.picture || (t.record?.images?.[0]?.url ?? "")), g = c(() => I(String(t.text?.name ?? t.record?.internal_name ?? "")));
|
|
336
336
|
return (t, i) => e.record ? (b(), d("div", be, [
|
|
337
|
-
p.value ? (b(), l(
|
|
337
|
+
p.value ? (b(), l(r, {
|
|
338
338
|
key: 0,
|
|
339
339
|
class: "mwnf-standalone-highlight__media",
|
|
340
340
|
to: e.to
|
|
@@ -346,11 +346,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
346
346
|
}, null, 8, xe)]),
|
|
347
347
|
_: 1
|
|
348
348
|
}, 8, ["to"])) : u("", !0),
|
|
349
|
-
e.heading ? (b(), d("p", Se, [f("strong", null, w(T(
|
|
349
|
+
e.heading ? (b(), d("p", Se, [f("strong", null, w(T(n)(e.heading)), 1)])) : u("", !0),
|
|
350
350
|
f("p", Ce, [(b(!0), d(s, null, S(a.value, (e, t) => (b(), d(s, { key: t }, [f("span", { innerHTML: e }, null, 8, we), i[0] ||= f("br", null, null, -1)], 64))), 128))]),
|
|
351
351
|
o.value ? (b(), d("p", Te, w(T(I)(o.value)), 1)) : u("", !0),
|
|
352
|
-
e.action ? (b(), d("p", Ee, [h(
|
|
353
|
-
default: O(() => [m(w(T(
|
|
352
|
+
e.action ? (b(), d("p", Ee, [h(r, { to: e.to }, {
|
|
353
|
+
default: O(() => [m(w(T(n)(e.action)), 1)]),
|
|
354
354
|
_: 1
|
|
355
355
|
}, 8, ["to"])])) : u("", !0)
|
|
356
356
|
])) : u("", !0);
|
|
@@ -377,15 +377,15 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
setup(e) {
|
|
380
|
-
let t = e, { t:
|
|
380
|
+
let t = e, { t: n } = R(), i = H(), a = c(() => t.items.map((e) => ({
|
|
381
381
|
...e,
|
|
382
382
|
image: i(e.image) ?? "",
|
|
383
|
-
label: e.text ? I(e.text) : e.label ?
|
|
383
|
+
label: e.text ? I(e.text) : e.label ? n(e.label) : ""
|
|
384
384
|
})));
|
|
385
|
-
return (t, i) => a.value.length ? (b(), d("section", De, [e.caption ? (b(), d("p", Oe, w(T(
|
|
385
|
+
return (t, i) => a.value.length ? (b(), d("section", De, [e.caption ? (b(), d("p", Oe, w(T(n)(e.caption)), 1)) : u("", !0), f("ul", ke, [(b(!0), d(s, null, S(a.value, (e) => (b(), d("li", {
|
|
386
386
|
key: e.image,
|
|
387
387
|
class: "mwnf-standalone-tiles__tile"
|
|
388
|
-
}, [h(
|
|
388
|
+
}, [h(r, {
|
|
389
389
|
to: e.to,
|
|
390
390
|
href: e.href,
|
|
391
391
|
class: "mwnf-standalone-tiles__link"
|
|
@@ -408,11 +408,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
408
408
|
default: null
|
|
409
409
|
} },
|
|
410
410
|
setup(e) {
|
|
411
|
-
let t = e, { t:
|
|
411
|
+
let t = e, { t: n, locale: i } = R(), a = z(), o = c(() => t.home ?? a.standalone?.home ?? {}), f = c(() => (o.value.links ?? []).map((e) => ({
|
|
412
412
|
...e,
|
|
413
|
-
label:
|
|
414
|
-
prefix: e.prefix ?
|
|
415
|
-
title: e.title ?
|
|
413
|
+
label: n(e.label),
|
|
414
|
+
prefix: e.prefix ? n(e.prefix) : "",
|
|
415
|
+
title: e.title ? n(e.title) : void 0
|
|
416
416
|
}))), p = c(() => o.value.highlight ?? null), g = L();
|
|
417
417
|
p.value?.list?.length && (A(["items", "countries"]), D(i, (e) => {
|
|
418
418
|
g.loadTranslations("items", e), g.loadTranslations("countries", e);
|
|
@@ -441,7 +441,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
441
441
|
f.value.length ? (b(), d("ul", Ne, [(b(!0), d(s, null, S(f.value, (e) => (b(), d("li", {
|
|
442
442
|
key: e.label,
|
|
443
443
|
class: _({ "mwnf-standalone-home__link--gap": e.gap })
|
|
444
|
-
}, [h(
|
|
444
|
+
}, [h(r, {
|
|
445
445
|
to: e.to,
|
|
446
446
|
href: e.href,
|
|
447
447
|
external: !!e.external,
|
|
@@ -507,19 +507,19 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
507
507
|
}
|
|
508
508
|
},
|
|
509
509
|
setup(e) {
|
|
510
|
-
let t = e, { t:
|
|
511
|
-
heading:
|
|
510
|
+
let t = e, { t: n } = R(), i = c(() => t.groups.map((e) => ({
|
|
511
|
+
heading: n(e.heading),
|
|
512
512
|
rows: t.records.filter((t) => !e.type || t.badge === e.type)
|
|
513
513
|
})).filter((e) => e.rows.length));
|
|
514
514
|
function a() {
|
|
515
515
|
window.print();
|
|
516
516
|
}
|
|
517
517
|
return (t, o) => (b(), d("aside", Ie, [
|
|
518
|
-
f("p", Le, [f("strong", null, w(T(
|
|
518
|
+
f("p", Le, [f("strong", null, w(T(n)(e.heading)), 1)]),
|
|
519
519
|
(b(!0), d(s, null, S(i.value, (e) => (b(), d("div", {
|
|
520
520
|
key: e.heading,
|
|
521
521
|
class: "mwnf-standalone-related__group"
|
|
522
|
-
}, [f("p", Re, w(e.heading), 1), f("ul", ze, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(
|
|
522
|
+
}, [f("p", Re, w(e.heading), 1), f("ul", ze, [(b(!0), d(s, null, S(e.rows, (e) => (b(), d("li", { key: e.id }, [h(r, {
|
|
523
523
|
to: e.to,
|
|
524
524
|
title: e.imageAlt
|
|
525
525
|
}, {
|
|
@@ -534,11 +534,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
534
534
|
_: 2
|
|
535
535
|
}, 1032, ["to", "title"])]))), 128))])]))), 128)),
|
|
536
536
|
C(t.$slots, "default"),
|
|
537
|
-
e.download ? (b(), d("div", He, [f("p", Ue, w(T(
|
|
537
|
+
e.download ? (b(), d("div", He, [f("p", Ue, w(T(n)(e.download.heading)), 1), f("button", {
|
|
538
538
|
type: "button",
|
|
539
539
|
class: "mwnf-standalone-related__print",
|
|
540
540
|
onClick: a
|
|
541
|
-
}, w(T(
|
|
541
|
+
}, w(T(n)(e.download.print)), 1)])) : u("", !0)
|
|
542
542
|
]));
|
|
543
543
|
}
|
|
544
544
|
}, We = { class: "mwnf-standalone-item__top" }, Ge = { class: "mwnf-standalone-item__left" }, Ke = {
|
|
@@ -618,7 +618,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
618
618
|
type: "button",
|
|
619
619
|
class: "mwnf-standalone-item__back-link",
|
|
620
620
|
onClick: P
|
|
621
|
-
}, w(e.label), 1)) : (b(), l(
|
|
621
|
+
}, w(e.label), 1)) : (b(), l(r, {
|
|
622
622
|
key: 1,
|
|
623
623
|
class: "mwnf-standalone-item__back-link",
|
|
624
624
|
to: e.to,
|
|
@@ -626,7 +626,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
626
626
|
}, {
|
|
627
627
|
default: O(() => [m(w(e.label), 1)]),
|
|
628
628
|
_: 2
|
|
629
|
-
}, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(
|
|
629
|
+
}, 1032, ["to", "href"]))], 64))), 128))])) : u("", !0), h(n, { images: T(e) }, null, 8, ["images"])]), C(i.$slots, "before-sheet", v(g(e)))]),
|
|
630
630
|
related: O((t) => [h(Q, {
|
|
631
631
|
heading: e.related.heading ?? "record.related.title",
|
|
632
632
|
records: t.records,
|
|
@@ -674,7 +674,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
674
674
|
}
|
|
675
675
|
},
|
|
676
676
|
setup(e) {
|
|
677
|
-
let t = e, { t:
|
|
677
|
+
let t = e, { t: n } = R(), i = c(() => P(n(t.body)));
|
|
678
678
|
function a() {
|
|
679
679
|
window.print();
|
|
680
680
|
}
|
|
@@ -683,18 +683,18 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
683
683
|
class: "mwnf-standalone-page__body",
|
|
684
684
|
innerHTML: i.value
|
|
685
685
|
}, null, 8, Je),
|
|
686
|
-
e.link ? (b(), d("p", $, [h(
|
|
686
|
+
e.link ? (b(), d("p", $, [h(r, {
|
|
687
687
|
to: e.link.to,
|
|
688
688
|
href: e.link.href
|
|
689
689
|
}, {
|
|
690
|
-
default: O(() => [f("strong", null, w(e.link.text ?? T(
|
|
690
|
+
default: O(() => [f("strong", null, w(e.link.text ?? T(n)(e.link.label)), 1)]),
|
|
691
691
|
_: 1
|
|
692
692
|
}, 8, ["to", "href"])])) : u("", !0),
|
|
693
693
|
e.print ? (b(), d("p", Ye, [f("button", {
|
|
694
694
|
type: "button",
|
|
695
695
|
class: "mwnf-standalone-page__print-button",
|
|
696
696
|
onClick: a
|
|
697
|
-
}, w(T(
|
|
697
|
+
}, w(T(n)(e.print)), 1)])) : u("", !0)
|
|
698
698
|
], 2));
|
|
699
699
|
}
|
|
700
700
|
}, Ze = {
|
|
@@ -713,11 +713,11 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
715
|
setup(e) {
|
|
716
|
-
let t = e, { t:
|
|
716
|
+
let t = e, { t: n } = R(), i = c(() => t.tabs.map((e) => ({
|
|
717
717
|
...e,
|
|
718
|
-
label:
|
|
718
|
+
label: n(e.label)
|
|
719
719
|
})));
|
|
720
|
-
return (t, a) => i.value.length || e.aside ? (b(), d("nav", Ze, [f("ul", Qe, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(
|
|
720
|
+
return (t, a) => i.value.length || e.aside ? (b(), d("nav", Ze, [f("ul", Qe, [(b(!0), d(s, null, S(i.value, (e) => (b(), d("li", { key: e.label }, [h(r, {
|
|
721
721
|
to: e.to,
|
|
722
722
|
href: e.href,
|
|
723
723
|
class: _(["mwnf-standalone-subnav__tab", { "mwnf-standalone-subnav__tab--active": e.active }]),
|
|
@@ -730,13 +730,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
730
730
|
"href",
|
|
731
731
|
"class",
|
|
732
732
|
"aria-current"
|
|
733
|
-
])]))), 128))]), e.aside ? (b(), l(
|
|
733
|
+
])]))), 128))]), e.aside ? (b(), l(r, {
|
|
734
734
|
key: 0,
|
|
735
735
|
to: e.aside.to,
|
|
736
736
|
href: e.aside.href,
|
|
737
737
|
class: "mwnf-standalone-subnav__aside"
|
|
738
738
|
}, {
|
|
739
|
-
default: O(() => [m(w(T(
|
|
739
|
+
default: O(() => [m(w(T(n)(e.aside.label)), 1)]),
|
|
740
740
|
_: 1
|
|
741
741
|
}, 8, ["to", "href"])) : u("", !0)])) : u("", !0);
|
|
742
742
|
}
|
|
@@ -764,10 +764,10 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
764
764
|
}
|
|
765
765
|
},
|
|
766
766
|
setup(e) {
|
|
767
|
-
let t = e, { t:
|
|
767
|
+
let t = e, { t: n } = R(), i = H(), a = x(0), o = c(() => Math.max(0, t.slides.length - t.visible)), l = c(() => t.slides.slice(a.value, a.value + t.visible).map((e) => ({
|
|
768
768
|
...e,
|
|
769
769
|
image: i(e.image) ?? "",
|
|
770
|
-
label: e.label ?
|
|
770
|
+
label: e.label ? n(e.label) : ""
|
|
771
771
|
})));
|
|
772
772
|
return (t, i) => e.slides.length ? (b(), d("div", {
|
|
773
773
|
key: 0,
|
|
@@ -778,13 +778,13 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
778
778
|
type: "button",
|
|
779
779
|
class: "mwnf-standalone-slider__button",
|
|
780
780
|
disabled: a.value === 0,
|
|
781
|
-
"aria-label": T(
|
|
781
|
+
"aria-label": T(n)(e.previousLabel),
|
|
782
782
|
onClick: i[0] ||= (e) => a.value = Math.max(0, a.value - 1)
|
|
783
783
|
}, "‹", 8, et),
|
|
784
784
|
f("ul", tt, [(b(!0), d(s, null, S(l.value, (e) => (b(), d("li", {
|
|
785
785
|
key: e.image,
|
|
786
786
|
class: "mwnf-standalone-slider__slide"
|
|
787
|
-
}, [h(
|
|
787
|
+
}, [h(r, {
|
|
788
788
|
to: e.to,
|
|
789
789
|
href: e.href
|
|
790
790
|
}, {
|
|
@@ -798,7 +798,7 @@ var te = { class: "mwnf-standalone-sponsors" }, ne = {
|
|
|
798
798
|
type: "button",
|
|
799
799
|
class: "mwnf-standalone-slider__button",
|
|
800
800
|
disabled: a.value >= o.value,
|
|
801
|
-
"aria-label": T(
|
|
801
|
+
"aria-label": T(n)(e.nextLabel),
|
|
802
802
|
onClick: i[1] ||= (e) => a.value = Math.min(o.value, a.value + 1)
|
|
803
803
|
}, "›", 8, it)
|
|
804
804
|
], 4)) : u("", !0);
|