@museumwnf/viewer-layout 3.68.0 → 3.68.1
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.
|
@@ -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,
|
package/dist/dxa.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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
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-CtYatYQi.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-
|
|
11
|
+
import { n as nt, t as rt } from "./LegacyItemSheet-B4Ob4upz.js";
|
|
12
12
|
import { n as it, r as D } from "./Theme-BM4TFT0i.js";
|
|
13
13
|
import { n as at, r as ot, t as st } from "./themeSpecs-DePD36Wi.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";
|
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.68.
|
|
3
|
+
"version": "3.68.1",
|
|
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
|
}
|