@museumwnf/viewer-layout 3.68.0 → 3.69.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/{LegacyItemSheet-CZpGoBDb.js → LegacyItemSheet-B4Ob4upz.js} +16 -8
- package/dist/{RecordView-Bgd5mm_e.js → RecordView-CBC7tBCX.js} +1 -1
- package/dist/{Theme-BM4TFT0i.js → Theme-DmcJnG3h.js} +2 -2
- package/dist/{data-CtYatYQi.js → data-BI5v-QYD.js} +1 -1
- package/dist/dxa.js +39 -24
- package/dist/standalone.js +1 -1
- package/dist/{themeSpecs-DePD36Wi.js → themeSpecs-CKgLOhlP.js} +1 -1
- package/dist/views.js +1 -1
- package/package.json +1 -1
- package/src/dxa/testing.js +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as e, n as t, o as n, r, s as i, t as a } from "./OnDisplayIn-BH3Bqope.js";
|
|
2
2
|
import { c as o, d as s, r as c } from "./PartnerMap-DdyMLtgH.js";
|
|
3
3
|
import { n as l } from "./TimelineEventList-CIkKxyQu.js";
|
|
4
|
-
import { t as u } from "./RecordView-
|
|
4
|
+
import { t as u } from "./RecordView-CBC7tBCX.js";
|
|
5
5
|
import { t as d } from "./chrome-Bv_mLlHM.js";
|
|
6
6
|
import { Fragment as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createTextVNode as y, createVNode as b, guardReactiveProps as x, normalizeClass as S, normalizeProps as C, normalizeStyle as ee, openBlock as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useSlots as k, withCtx as A } from "vue";
|
|
7
7
|
import { NotFoundView as te, byId as ne, loadEntities as re, mdInline as j, mdStrip as M, mwnfLinks as N, partnerView as ie, renderInline as P, siblingSiteUrl as F, sourceUrl as I, useCatalogue as L, useDataPackage as R, useI18n as z, useProjects as B, useSiteConfig as V } from "@museumwnf/viewer-core";
|
|
@@ -123,13 +123,22 @@ var W = {
|
|
|
123
123
|
let t = `sheet.dxa.${e.slice(12)}`;
|
|
124
124
|
return L(t) === t ? e : t;
|
|
125
125
|
}
|
|
126
|
-
let U = p(() =>
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
let U = p(() => {
|
|
127
|
+
let e = Array.isArray(o.spec.fields) ? {
|
|
128
|
+
...o.spec,
|
|
129
|
+
fields: o.spec.fields.map((e) => ({
|
|
130
|
+
...e,
|
|
131
|
+
label: H(e.label)
|
|
132
|
+
}))
|
|
133
|
+
} : o.spec;
|
|
134
|
+
return e.related === !1 ? e : {
|
|
129
135
|
...e,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
136
|
+
related: {
|
|
137
|
+
...e.related,
|
|
138
|
+
inline: !1
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}), W = B(), G = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), ae = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(G), oe = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(G), K = (e) => W.links(e.project_id)?.artisticIntroductionUrl ?? null, q = (e) => W.links(e.project_id)?.relatedDatabaseUrl ?? null, se = {
|
|
133
142
|
"islamicart.museumwnf.org": "core.project.islamicArt",
|
|
134
143
|
"baroqueart.museumwnf.org": "core.project.baroqueArt",
|
|
135
144
|
"sharinghistory.museumwnf.org": "core.project.sharingHistory"
|
|
@@ -279,7 +288,6 @@ var W = {
|
|
|
279
288
|
label: "partner.info.about",
|
|
280
289
|
dir: e.dir
|
|
281
290
|
}, null, 8, ["partner", "dir"])) : h("", !0)]))), 128))])]),
|
|
282
|
-
related: A(() => []),
|
|
283
291
|
aside: A((i) => [E(o.$slots, "related", C(x(i)), () => [(w(!0), g(f, null, T([Q(i.record, i)], (o) => (w(), g(f, { key: i.record?.id ?? "related" }, [o ? (w(), g("div", ve, [
|
|
284
292
|
o.title ? (w(), g("p", ye, D(o.title), 1)) : h("", !0),
|
|
285
293
|
o.description ? (w(), g("p", be, D(o.description), 1)) : h("", !0),
|
|
@@ -349,7 +349,7 @@ var Ae = ["dir", "innerHTML"], je = { class: "mwnf-record__body" }, Me = { class
|
|
|
349
349
|
...W.value,
|
|
350
350
|
records: $.value,
|
|
351
351
|
outside: y(Z).outside
|
|
352
|
-
})), () => [Q.value ? (m(), s(te, {
|
|
352
|
+
})), () => [Q.value && Q.value.inline !== !1 ? (m(), s(te, {
|
|
353
353
|
key: 0,
|
|
354
354
|
heading: y(x)(Q.value.heading ?? "record.related.items"),
|
|
355
355
|
records: $.value,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./GlossaryPopover-DbQKXhx9.js";
|
|
2
|
-
import { O as t, c as n, d as r, j as i, u as a, v as o } from "./data-
|
|
3
|
-
import { n as s } from "./themeSpecs-
|
|
2
|
+
import { O as t, c as n, d as r, j as i, u as a, v as o } from "./data-BI5v-QYD.js";
|
|
3
|
+
import { n as s } from "./themeSpecs-CKgLOhlP.js";
|
|
4
4
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, nextTick as ee, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as te, onMounted as ne, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, vModelCheckbox as re, watch as C, withCtx as w, withDirectives as ie } from "vue";
|
|
5
5
|
import { glossaryEntries as ae, glossaryTermsForText as oe, renderBlock as T, renderInline as E, useGlossaryPopup as se, useI18n as ce } from "@museumwnf/viewer-core";
|
|
6
6
|
import { RouterLink as D, useRoute as le, useRouter as ue } from "vue-router";
|
package/dist/dxa.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { s as e } from "./OnDisplayIn-BH3Bqope.js";
|
|
2
2
|
import { c as t, d as n, t as r } from "./PartnerMap-DdyMLtgH.js";
|
|
3
3
|
import { a as i, i as a, n as o } from "./TimelineEventList-CIkKxyQu.js";
|
|
4
|
-
import { t as s } from "./RecordView-
|
|
4
|
+
import { t as s } from "./RecordView-CBC7tBCX.js";
|
|
5
5
|
import { A as c, C as l, D as u, E as d, M as f, N as p, O as m, S as h, T as g, _, a as v, b as y, c as ee, d as te, f as b, g as x, h as ne, i as re, j as ie, k as ae, l as oe, m as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me, v as he, w as ge, x as _e, y as ve } from "./data-DlmKSxgh.js";
|
|
6
|
-
import { A as S, C as ye, D as be, E as xe, M as Se, N as Ce, O as we, S as Te, T as Ee, _ as De, a as Oe, b as ke, c as C, d as Ae, f as je, g as Me, h as Ne, i as Pe, j as w, k as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, r as Ve, s as He, t as Ue, u as We, v as T, w as Ge, x as Ke, y as qe } from "./data-
|
|
6
|
+
import { A as S, C as ye, D as be, E as xe, M as Se, N as Ce, O as we, S as Te, T as Ee, _ as De, a as Oe, b as ke, c as C, d as Ae, f as je, g as Me, h as Ne, i as Pe, j as w, k as Fe, l as Ie, m as Le, n as Re, o as ze, p as Be, r as Ve, s as He, t as Ue, u as We, v as T, w as Ge, x as Ke, y as qe } from "./data-BI5v-QYD.js";
|
|
7
7
|
import { n as Je, r as E, t as Ye } from "./TimelineResultsView-BF3VoCs_.js";
|
|
8
8
|
import { t as Xe } from "./SiteShell-UsZ_cpe9.js";
|
|
9
9
|
import { i as Ze, n as Qe, r as $e, t as et } from "./chrome-Bv_mLlHM.js";
|
|
10
10
|
import { i as tt } from "./PageShell-CIGVv7sK.js";
|
|
11
|
-
import { n as nt, t as rt } from "./LegacyItemSheet-
|
|
12
|
-
import { n as it, r as D } from "./Theme-
|
|
13
|
-
import { n as at, r as ot, t as st } from "./themeSpecs-
|
|
11
|
+
import { n as nt, t as rt } from "./LegacyItemSheet-B4Ob4upz.js";
|
|
12
|
+
import { n as it, r as D } from "./Theme-DmcJnG3h.js";
|
|
13
|
+
import { n as at, r as ot, t as st } from "./themeSpecs-CKgLOhlP.js";
|
|
14
14
|
import { Fragment as O, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as ct, createTextVNode as P, createVNode as F, normalizeClass as I, normalizeStyle as lt, onBeforeUnmount as ut, onMounted as dt, openBlock as L, reactive as ft, ref as R, renderList as z, renderSlot as pt, resolveDynamicComponent as mt, toDisplayString as B, unref as V, vModelCheckbox as ht, vModelSelect as gt, vModelText as _t, vShow as vt, watch as yt, watchEffect as bt, withCtx as H, withDirectives as U, withModifiers as xt } from "vue";
|
|
15
15
|
import { I18nText as W, NotFoundView as St, languageLabels as Ct, loadEntities as wt, mwnfLinks as G, offeredLanguages as Tt, renderBlock as Et, renderInline as K, renderPlain as Dt, sectionMeta as Ot, useDataPackage as kt, useFacets as At, useI18n as q, useKeywordIndex as jt, useSection as Mt, useSiteConfig as Nt, withEraWords as Pt, yearBuckets as J, yearBucketsFromRange as Ft } from "@museumwnf/viewer-core";
|
|
16
16
|
import { RouterLink as Y, useRoute as X, useRouter as It } from "vue-router";
|
|
@@ -186,7 +186,7 @@ var Rt = { class: "mwnf-dxa-profile-languages" }, zt = { class: "mwnf-dxa-profil
|
|
|
186
186
|
partner: "gallery.partners.statusPartner",
|
|
187
187
|
affiliate: "gallery.partners.statusAffiliate"
|
|
188
188
|
};
|
|
189
|
-
function
|
|
189
|
+
function Xt(e, t = Yt) {
|
|
190
190
|
let n = e?.own_project;
|
|
191
191
|
if (!n?.name) return null;
|
|
192
192
|
let r = String(n.backward_compatibility ?? "").split(":").pop().toUpperCase(), i = n.exhibition ? "exh" : Jt[r] ?? "", a = n.level === "partner" || !!n.exhibition;
|
|
@@ -196,16 +196,28 @@ function Z(e, t = Yt) {
|
|
|
196
196
|
tone: i
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
var
|
|
199
|
+
var Zt = {
|
|
200
200
|
partner: "exhibition.partners.statusPartner",
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
201
|
+
associated_partner: "exhibition.partners.statusAssociated",
|
|
202
|
+
minor_contributor: "exhibition.partners.statusFurtherAssociated"
|
|
203
|
+
}, Qt = "mwnf3:institutions:";
|
|
204
|
+
function Z(e) {
|
|
205
|
+
let t = e?.own_project;
|
|
206
|
+
if (String(e?.backward_compatibility ?? "").startsWith(Qt)) {
|
|
207
|
+
let t = Zt[e.level] ?? null;
|
|
208
|
+
return t ? {
|
|
209
|
+
name: "",
|
|
210
|
+
status: t,
|
|
211
|
+
tone: "institution"
|
|
212
|
+
} : null;
|
|
213
|
+
}
|
|
214
|
+
if (!t?.name) return null;
|
|
215
|
+
let n = String(t.backward_compatibility ?? "").split(":").pop().toUpperCase();
|
|
216
|
+
return {
|
|
217
|
+
name: t.name,
|
|
218
|
+
status: t.exhibition ? Zt.partner : Zt[t.level] ?? null,
|
|
219
|
+
tone: t.exhibition ? "exh" : Jt[n] ?? ""
|
|
220
|
+
};
|
|
209
221
|
}
|
|
210
222
|
// src/dxa/gallery/Partners.vue
|
|
211
223
|
var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class: "mwnf-dxa-gallery-partners__options" }, tn = { class: "mwnf-dxa-gallery-partners__order" }, nn = ["onClick"], rn = { class: "mwnf-dxa-gallery-partners__country" }, an = { class: "mwnf-dxa-gallery-partners__partner" }, on = { class: "mwnf-dxa-gallery-partners__text" }, sn = ["innerHTML"], cn = {
|
|
@@ -239,10 +251,10 @@ var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class:
|
|
|
239
251
|
default: H(() => [N("span", { innerHTML: t.name }, null, 8, sn), t.city ? (L(), M("span", cn, ", " + B(t.city), 1)) : j("", !0)]),
|
|
240
252
|
_: 2
|
|
241
253
|
}, 1032, ["to"]),
|
|
242
|
-
V(
|
|
254
|
+
V(Xt)(e) ? (L(), M("div", {
|
|
243
255
|
key: 0,
|
|
244
|
-
class: I(["mwnf-dxa-partner-badge", V(
|
|
245
|
-
}, [P(B(V(
|
|
256
|
+
class: I(["mwnf-dxa-partner-badge", V(Xt)(e).tone && `mwnf-dxa-partner-badge--${V(Xt)(e).tone}`])
|
|
257
|
+
}, [P(B(V(Xt)(e).name) + " ", 1), N("span", ln, B(r(V(Xt)(e).status)), 1)], 2)) : j("", !0),
|
|
246
258
|
N("div", un, [F(n, { to: t.route }, {
|
|
247
259
|
default: H(() => [P(B(r("partner.action.readMore")), 1)]),
|
|
248
260
|
_: 2
|
|
@@ -393,7 +405,7 @@ var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class:
|
|
|
393
405
|
N("p", kn, B(i.date), 1),
|
|
394
406
|
N("p", An, B(i.partner), 1),
|
|
395
407
|
N("p", jn, B(i.place), 1),
|
|
396
|
-
e.family !== "exhibition" || i.project ? (L(), M("p", Mn, [P(B(V(t)("gallery.results.for")) + " ", 1), N("span", null, B(i.project), 1)])) : j("", !0),
|
|
408
|
+
e.family !== "exhibition" || i.project ? (L(), M("p", Mn, [P(B(e.family === "exhibition" ? V(t)("exhibition.results.for") : V(t)("gallery.results.for")) + " ", 1), N("span", null, B(i.project), 1)])) : j("", !0),
|
|
397
409
|
F(n, {
|
|
398
410
|
class: "mwnf-dxa-grid__link",
|
|
399
411
|
to: i.to
|
|
@@ -793,7 +805,10 @@ var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class:
|
|
|
793
805
|
}, Sr = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners mwnf-dxa-exhibition-partners" }, Cr = { class: "mwnf-dxa-gallery-partners__options" }, wr = { class: "mwnf-dxa-gallery-partners__order" }, Tr = ["onClick"], Er = { class: "mwnf-dxa-gallery-partners__country" }, Dr = { class: "mwnf-dxa-gallery-partners__partner" }, Or = { class: "mwnf-dxa-gallery-partners__text" }, kr = ["innerHTML"], Ar = {
|
|
794
806
|
key: 0,
|
|
795
807
|
class: "mwnf-dxa-gallery-partners__city"
|
|
796
|
-
}, jr = {
|
|
808
|
+
}, jr = {
|
|
809
|
+
key: 1,
|
|
810
|
+
class: "mwnf-dxa-partner-badge__status"
|
|
811
|
+
}, Mr = { class: "mwnf-dxa-gallery-partners__links" }, Nr = { class: "mwnf-dxa-gallery-partners__logo" }, Pr = ["src", "alt"], Fr = {
|
|
797
812
|
__name: "Partners",
|
|
798
813
|
setup(t) {
|
|
799
814
|
let r = {
|
|
@@ -821,10 +836,10 @@ var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class:
|
|
|
821
836
|
default: H(() => [N("span", { innerHTML: t.name }, null, 8, kr), t.city ? (L(), M("span", Ar, ", " + B(t.city), 1)) : j("", !0)]),
|
|
822
837
|
_: 2
|
|
823
838
|
}, 1032, ["to"]),
|
|
824
|
-
V(
|
|
839
|
+
V(Z)(e) ? (L(), M("div", {
|
|
825
840
|
key: 0,
|
|
826
|
-
class: I(["mwnf-dxa-partner-badge", V(
|
|
827
|
-
}, [V(
|
|
841
|
+
class: I(["mwnf-dxa-partner-badge", V(Z)(e).tone && `mwnf-dxa-partner-badge--${V(Z)(e).tone}`])
|
|
842
|
+
}, [V(Z)(e).name ? (L(), M(O, { key: 0 }, [P(B(V(Z)(e).name + " "), 1)], 64)) : j("", !0), V(Z)(e).status ? (L(), M("span", jr, B(r(V(Z)(e).status)), 1)) : j("", !0)], 2)) : j("", !0),
|
|
828
843
|
N("div", Mr, [F(n, { to: t.route }, {
|
|
829
844
|
default: H(() => [P(B(r("partner.action.readMore")), 1)]),
|
|
830
845
|
_: 2
|
|
@@ -1620,7 +1635,7 @@ var Yi = { class: "mwnf-dxa-gallery-results mwnf-dxa-exhibition-results" }, Xi =
|
|
|
1620
1635
|
_: 1
|
|
1621
1636
|
}, 8, ["spec"])])) : j("", !0);
|
|
1622
1637
|
}
|
|
1623
|
-
}, Xa = () => Promise.resolve().then(() => as), Za = () => Promise.resolve().then(() => ms), Qa = () => Promise.resolve().then(() => gs), $a = () => Promise.resolve().then(() => Ms), eo = () => Promise.resolve().then(() => Fs), to = () => Promise.resolve().then(() => Rs), no = () => import("./Theme-
|
|
1638
|
+
}, Xa = () => Promise.resolve().then(() => as), Za = () => Promise.resolve().then(() => ms), Qa = () => Promise.resolve().then(() => gs), $a = () => Promise.resolve().then(() => Ms), eo = () => Promise.resolve().then(() => Fs), to = () => Promise.resolve().then(() => Rs), no = () => import("./Theme-DmcJnG3h.js").then((e) => e.t), ro = () => Promise.resolve().then(() => nc), io = () => Promise.resolve().then(() => xc), ao = () => Promise.resolve().then(() => Cc), oo = () => Promise.resolve().then(() => zc), so = {
|
|
1624
1639
|
emptyPartner: "exhibition.partnerObjects.emptyPartner",
|
|
1625
1640
|
emptyInstitution: "exhibition.partnerObjects.emptyInstitution",
|
|
1626
1641
|
institutionSummary: "exhibition.partner.monumentsInExhibition",
|
package/dist/standalone.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./SiteShell-UsZ_cpe9.js";
|
|
2
2
|
import { r as t } from "./chrome-Bv_mLlHM.js";
|
|
3
3
|
import { c as n, d as r, n as i, t as a } from "./PartnerMap-DdyMLtgH.js";
|
|
4
|
-
import { n as o, t as s } from "./RecordView-
|
|
4
|
+
import { n as o, t as s } from "./RecordView-CBC7tBCX.js";
|
|
5
5
|
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as m, createTextVNode as h, createVNode as g, guardReactiveProps as _, mergeModels as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeUnmount as C, onMounted as w, openBlock as T, reactive as E, ref as D, renderList as O, renderSlot as k, toDisplayString as A, unref as j, useId as M, useModel as N, useSlots as P, vModelSelect as F, vModelText as I, vShow as L, watch as R, withCtx as z, withDirectives as B, withModifiers as V } from "vue";
|
|
6
6
|
import { byId as ee, collate as H, entityRef as te, loadEntities as U, md as W, pictureCredits as ne, picturesInLanguage as re, removeEndingPoint as ie, renderBlock as ae, renderInline as G, renderPlain as K, useDataPackage as oe, useI18n as q, useSection as se, useSiteConfig as J } from "@museumwnf/viewer-core";
|
|
7
7
|
import { useRoute as ce } from "vue-router";
|
package/dist/views.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, t } from "./FeaturedRecord-Fe19w6_G.js";
|
|
2
2
|
import { n, r, t as i } from "./TimelineResultsView-BF3VoCs_.js";
|
|
3
|
-
import { t as a } from "./RecordView-
|
|
3
|
+
import { t as a } from "./RecordView-CBC7tBCX.js";
|
|
4
4
|
import { t as o } from "./GlossaryPopover-DbQKXhx9.js";
|
|
5
5
|
import { d as s, i as ee, l as te, n as c } from "./PartnerMap-DdyMLtgH.js";
|
|
6
6
|
import { a as l, i as u } from "./TimelineEventList-CIkKxyQu.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.69.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",
|
package/src/dxa/testing.js
CHANGED
|
@@ -187,6 +187,8 @@ function relatedObjectsTest(mountSite, manifest, sharedTexts) {
|
|
|
187
187
|
expect(hrefs.some((href) => href.endsWith(`/item/${outside.id}`))).toBe(true)
|
|
188
188
|
}
|
|
189
189
|
expect(host.querySelector('.mwnf-sheet-related__references')).toBeNull()
|
|
190
|
+
// Only in the sidebar: the sheet draws no grid of its own under the citation.
|
|
191
|
+
expect(host.querySelector('.mwnf-record__main .mwnf-related')).toBeNull()
|
|
190
192
|
app.unmount()
|
|
191
193
|
}, 60000)
|
|
192
194
|
}
|