@museumwnf/viewer-layout 3.80.2 → 3.81.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.
|
@@ -461,18 +461,21 @@ function Ve(e, t, n = null) {
|
|
|
461
461
|
}
|
|
462
462
|
return i;
|
|
463
463
|
}
|
|
464
|
-
// src/dxa/relatedKind.js
|
|
465
464
|
function He(e, t) {
|
|
465
|
+
return e?.item_url ? e.item_url : e?.site ? k(e.site, `/item/${t.id}`) : e?.legacy_host;
|
|
466
|
+
}
|
|
467
|
+
// src/dxa/relatedKind.js
|
|
468
|
+
function Ue(e, t) {
|
|
466
469
|
return (e?.type ?? t?.get(e?.id)?.type) === "monument" ? "monument" : "object";
|
|
467
470
|
}
|
|
468
471
|
// src/dxa/LegacyItemSheet.vue
|
|
469
|
-
var
|
|
472
|
+
var We = { class: "mwnf-dxa-item__languages" }, Ge = ["dir"], Ke = ["href"], qe = ["href"], Je = ["innerHTML"], Ye = ["innerHTML"], Xe = ["dir"], Ze = { class: "mwnf-dxa-gallery-item__label" }, Qe = {
|
|
470
473
|
key: "citation",
|
|
471
474
|
class: "mwnf-dxa-gallery-item__citation"
|
|
472
|
-
},
|
|
475
|
+
}, $e = { class: "mwnf-dxa-gallery-item__project" }, et = { class: "mwnf-dxa-gallery-item__address" }, tt = { class: "mwnf-dxa-gallery-item__credit-label" }, nt = {
|
|
473
476
|
key: 1,
|
|
474
477
|
class: "mwnf-dxa-gallery-item__number"
|
|
475
|
-
},
|
|
478
|
+
}, rt = { class: "mwnf-dxa-gallery-item__number-label" }, it = ["href"], at = {
|
|
476
479
|
__name: "LegacyItemSheet",
|
|
477
480
|
props: {
|
|
478
481
|
id: {
|
|
@@ -495,7 +498,7 @@ var Ue = { class: "mwnf-dxa-item__languages" }, We = ["dir"], Ge = ["href"], Ke
|
|
|
495
498
|
setup(o) {
|
|
496
499
|
let l = o, { t: d } = ne(), f = x(), h = re(), v = te(), S = M(), C = j(), w = (e, t) => e?.[t] ?? e?.en ?? Object.values(e ?? {})[0] ?? "";
|
|
497
500
|
function ee({ record: e, inPackage: t, references: n, ctx: r }) {
|
|
498
|
-
let i = r.language, a = new Map((e.related_items ?? []).map((e) => [e.id, e])), o = (e) => E(w(a.get(e)?.justifications, i)), s = (e) =>
|
|
501
|
+
let i = r.language, a = new Map((e.related_items ?? []).map((e) => [e.id, e])), o = (e) => E(w(a.get(e)?.justifications, i)), s = (e) => Ue(a.get(e) ?? { id: e }, C.itemById.value), c = (e) => (e ?? "").replace(/\.$/, ""), l = t.map((e) => ({
|
|
499
502
|
id: e.id,
|
|
500
503
|
kind: s(e.id),
|
|
501
504
|
image: e.image,
|
|
@@ -544,7 +547,7 @@ var Ue = { class: "mwnf-dxa-item__languages" }, We = ["dir"], Ge = ["href"], Ke
|
|
|
544
547
|
...l.itemDetail.related?.onDisplayIn,
|
|
545
548
|
exhibitionsHeading: l.words.exhibitions,
|
|
546
549
|
galleriesHeading: "core.project.galleries",
|
|
547
|
-
href:
|
|
550
|
+
href: He,
|
|
548
551
|
exhibitions: (e, t) => Ve(e, t.language, v.manifest?.site?.key)
|
|
549
552
|
}
|
|
550
553
|
}
|
|
@@ -586,7 +589,7 @@ var Ue = { class: "mwnf-dxa-item__languages" }, We = ["dir"], Ge = ["href"], Ke
|
|
|
586
589
|
"data-getter": o.dataGetter,
|
|
587
590
|
class: "mwnf-dxa-item mwnf-dxa-gallery-item"
|
|
588
591
|
}, {
|
|
589
|
-
header: y(({ languages: e, language: t, select: n }) => [a("div",
|
|
592
|
+
header: y(({ languages: e, language: t, select: n }) => [a("div", We, [c(z, {
|
|
590
593
|
languages: e,
|
|
591
594
|
language: t,
|
|
592
595
|
from: 1,
|
|
@@ -607,14 +610,14 @@ var Ue = { class: "mwnf-dxa-item__languages" }, We = ["dir"], Ge = ["href"], Ke
|
|
|
607
610
|
}, [l[0] ||= a("span", {
|
|
608
611
|
class: "mwnf-dxa-gallery-item__icon",
|
|
609
612
|
"aria-hidden": "true"
|
|
610
|
-
}, "↗", -1), a("bdi", null, [s(g(_(d)("record.source.label")) + " ", 1), a("span", null, "(" + g(P(N(e))) + ")", 1)])], 8,
|
|
613
|
+
}, "↗", -1), a("bdi", null, [s(g(_(d)("record.source.label")) + " ", 1), a("span", null, "(" + g(P(N(e))) + ")", 1)])], 8, Ke)]), a("p", null, [a("a", {
|
|
611
614
|
href: _(D).myCollection,
|
|
612
615
|
target: "_blank",
|
|
613
616
|
rel: "noopener"
|
|
614
617
|
}, [l[1] ||= a("span", {
|
|
615
618
|
class: "mwnf-dxa-gallery-item__icon",
|
|
616
619
|
"aria-hidden": "true"
|
|
617
|
-
}, "↗", -1), s(g(_(d)("record.action.addToCollection")), 1)], 8,
|
|
620
|
+
}, "↗", -1), s(g(_(d)("record.action.addToCollection")), 1)], 8, qe)])], 8, Ge)) : r("", !0)]),
|
|
618
621
|
museum: y((t) => [(p(!0), i(e, null, m([R(t)], (t) => (p(), i(e, { key: "museum" }, [t.to && t.holder ? (p(), n(_(b), {
|
|
619
622
|
key: 0,
|
|
620
623
|
to: t.to,
|
|
@@ -623,34 +626,34 @@ var Ue = { class: "mwnf-dxa-item__languages" }, We = ["dir"], Ge = ["href"], Ke
|
|
|
623
626
|
default: y(() => [l[2] ||= a("span", {
|
|
624
627
|
class: "mwnf-dxa-gallery-item__icon",
|
|
625
628
|
"aria-hidden": "true"
|
|
626
|
-
}, "↗", -1), a("span", { innerHTML: t.holder }, null, 8,
|
|
629
|
+
}, "↗", -1), a("span", { innerHTML: t.holder }, null, 8, Je)]),
|
|
627
630
|
_: 2
|
|
628
631
|
}, 1032, ["to"])) : t.holder ? (p(), i("span", {
|
|
629
632
|
key: 1,
|
|
630
633
|
innerHTML: t.holder
|
|
631
|
-
}, null, 8,
|
|
634
|
+
}, null, 8, Ye)) : r("", !0)], 64))), 128))]),
|
|
632
635
|
credits: y(({ record: t, credits: n, workingNumber: c, citation: l, dir: f }) => [t ? (p(), i("div", {
|
|
633
636
|
key: 0,
|
|
634
637
|
class: "mwnf-dxa-gallery-item__credits",
|
|
635
638
|
dir: f || void 0
|
|
636
639
|
}, [
|
|
637
|
-
l ? (p(), i(e, { key: 0 }, [a("p",
|
|
640
|
+
l ? (p(), i(e, { key: 0 }, [a("p", Ze, g(_(d)("record.citation.ofThisPage")), 1), (p(!0), i(e, null, m([I(l, t)], (e) => (p(), i("p", Qe, [
|
|
638
641
|
s(g(e.before), 1),
|
|
639
|
-
a("span",
|
|
642
|
+
a("span", $e, g(e.project), 1),
|
|
640
643
|
s(g(e.after) + " ", 1),
|
|
641
|
-
a("span",
|
|
644
|
+
a("span", et, g(N(t)), 1)
|
|
642
645
|
]))), 128))], 64)) : r("", !0),
|
|
643
646
|
(p(!0), i(e, null, m(n, (e) => (p(), i("p", {
|
|
644
647
|
key: e.label,
|
|
645
648
|
class: "mwnf-dxa-gallery-item__credit"
|
|
646
|
-
}, [a("span",
|
|
647
|
-
c ? (p(), i("p",
|
|
649
|
+
}, [a("span", tt, g(e.label), 1), a("span", null, g(e.value), 1)]))), 128)),
|
|
650
|
+
c ? (p(), i("p", nt, [a("span", rt, g(_(d)(o.words.workingNumber)), 1), s(g(" ") + g(c), 1)])) : r("", !0),
|
|
648
651
|
a("div", { class: u(["mwnf-dxa-gallery-item__source", F(t)]) }, [a("p", null, g(_(d)("record.source.label")), 1), a("p", null, [a("a", {
|
|
649
652
|
href: N(t),
|
|
650
653
|
target: "_blank",
|
|
651
654
|
rel: "noopener"
|
|
652
|
-
}, g(N(t)), 9,
|
|
653
|
-
], 8,
|
|
655
|
+
}, g(N(t)), 9, it)])], 2)
|
|
656
|
+
], 8, Xe)) : r("", !0)]),
|
|
654
657
|
_: 1
|
|
655
658
|
}, 8, [
|
|
656
659
|
"spec",
|
|
@@ -659,4 +662,4 @@ var Ue = { class: "mwnf-dxa-item__languages" }, We = ["dir"], Ge = ["href"], Ke
|
|
|
659
662
|
]));
|
|
660
663
|
}
|
|
661
664
|
};
|
|
662
|
-
export { J as n,
|
|
665
|
+
export { J as n, at as t };
|
package/dist/dxa.js
CHANGED
|
@@ -12,7 +12,7 @@ import { romanFor as Dt } from "@museumwnf/viewer-core/dxa";
|
|
|
12
12
|
import { t as Ot } from "./SiteShell-D0u1FGMu.js";
|
|
13
13
|
import { i as kt, n as At, r as jt, t as Mt } from "./chrome-Bv_mLlHM.js";
|
|
14
14
|
import { i as Nt } from "./PageShell-BAtk_qcb.js";
|
|
15
|
-
import { n as Pt, t as Ft } from "./LegacyItemSheet-
|
|
15
|
+
import { n as Pt, t as Ft } from "./LegacyItemSheet-BTVBU3dr.js";
|
|
16
16
|
import { n as It, r as X } from "./Theme-BUfsZDdm.js";
|
|
17
17
|
import { n as Lt, r as Rt, t as zt } from "./themeSpecs-C0tSNkSd.js";
|
|
18
18
|
// src/dxa/PartnerDetail.vue
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.81.0",
|
|
4
4
|
"description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|