@museumwnf/viewer-layout 3.60.0 → 3.62.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/{FeaturedRecord-DLYyyRey.js → FeaturedRecord-DaGLHyhD.js} +1 -1
- package/dist/{ItemDetailView-D5T3QXYJ.js → ItemDetailView-BcOSmHfr.js} +31 -21
- package/dist/{OnDisplayIn-CCM5Ahxy.js → OnDisplayIn-CPANKcOd.js} +16 -9
- package/dist/{PartnerMap-BuQo_FLl.js → PartnerMap-U-Hi2FBi.js} +16 -12
- package/dist/RecordView-BE4mbj6G.js +363 -0
- package/dist/{Theme-0bsA_Abx.js → Theme-4RmyRY0x.js} +2 -2
- package/dist/{TimelineEventList-e1fNm28F.js → TimelineEventList-1feZA5t7.js} +1 -1
- package/dist/{TimelineResultsView-Cl_LcM--.js → TimelineResultsView-CkH3NDqL.js} +2 -2
- package/dist/{content-BzSJircQ.js → content-BNS5U0Xv.js} +2 -2
- package/dist/content.js +5 -5
- package/dist/data-DzrH9ikw.js +45 -0
- package/dist/dxa.js +632 -422
- package/dist/index.js +5 -5
- package/dist/standalone.js +2 -2
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +3 -3
- package/src/dxa/testing.js +58 -23
- package/src/styles/dxa-gallery.css +30 -5
- package/src/tokens.reference.css +1 -0
- package/dist/RecordView-n7bbQUg2.js +0 -345
- package/dist/data-EKYeMQcC.js +0 -45
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e } from "./PartnerMap-
|
|
1
|
+
import { d as e } from "./PartnerMap-U-Hi2FBi.js";
|
|
2
2
|
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, openBlock as s, renderList as c, renderSlot as l, toDisplayString as u, useSlots as d, withCtx as f } from "vue";
|
|
3
3
|
// src/content/FeaturedRecord.vue
|
|
4
4
|
var p = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as e, n as t, o as n, r, t as i } from "./OnDisplayIn-
|
|
2
|
-
import { n as a } from "./TimelineEventList-
|
|
3
|
-
import { r as o } from "./PartnerMap-
|
|
4
|
-
import { t as s } from "./RecordView-
|
|
1
|
+
import { i as e, n as t, o as n, r, t as i } from "./OnDisplayIn-CPANKcOd.js";
|
|
2
|
+
import { n as a } from "./TimelineEventList-1feZA5t7.js";
|
|
3
|
+
import { r as o } from "./PartnerMap-U-Hi2FBi.js";
|
|
4
|
+
import { t as s } from "./RecordView-BE4mbj6G.js";
|
|
5
5
|
import { t as c } from "./chrome-Bv_mLlHM.js";
|
|
6
6
|
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as ee, createTextVNode as h, createVNode as g, guardReactiveProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as te, openBlock as b, renderList as x, renderSlot as S, toDisplayString as C, unref as w, useSlots as ne, withCtx as T } from "vue";
|
|
7
7
|
import { NotFoundView as re, byId as E, loadEntities as ie, mdInline as D, mdStrip as ae, mwnfLinks as O, partnerView as oe, useDataPackage as se, useI18n as ce, useProjects as le, useSiteConfig as ue } from "@museumwnf/viewer-core";
|
|
@@ -118,25 +118,28 @@ var k = {
|
|
|
118
118
|
...e,
|
|
119
119
|
name: e.project_id ? Y.label(e.project_id) : null,
|
|
120
120
|
chipClass: n.outsideChip ? n.outsideChip(e, t) : null
|
|
121
|
-
})), c = (e) => ({
|
|
121
|
+
})), c = (t) => (n.onDisplayIn?.href ? n.onDisplayIn.href(t, e) : t.legacy_host) || "", l = (e) => ({
|
|
122
122
|
id: e.id,
|
|
123
123
|
label: D(e.name ?? ""),
|
|
124
|
-
href: e
|
|
125
|
-
external: !!e
|
|
126
|
-
}),
|
|
124
|
+
href: c(e),
|
|
125
|
+
external: !!c(e)
|
|
126
|
+
}), u = n.onDisplayIn && n.onDisplayIn !== !1 ? {
|
|
127
127
|
pendingLabel: n.onDisplayIn.linkPendingLabel ?? "",
|
|
128
|
-
groups: [{
|
|
129
|
-
heading: "record.related.exhibitions",
|
|
130
|
-
|
|
128
|
+
groups: [n.onDisplayIn.exhibitions ? {
|
|
129
|
+
heading: n.onDisplayIn.exhibitionsHeading ?? "record.related.exhibitions",
|
|
130
|
+
sections: n.onDisplayIn.exhibitions(e, t)
|
|
131
|
+
} : {
|
|
132
|
+
heading: n.onDisplayIn.exhibitionsHeading ?? "record.related.exhibitions",
|
|
133
|
+
links: Oe(e).map(l)
|
|
131
134
|
}, {
|
|
132
|
-
heading: "record.related.galleries",
|
|
133
|
-
links: De(e).map(
|
|
134
|
-
}].filter((e) => e.links
|
|
135
|
-
} : null,
|
|
135
|
+
heading: n.onDisplayIn.galleriesHeading ?? "record.related.galleries",
|
|
136
|
+
links: De(e).map(l)
|
|
137
|
+
}].filter((e) => (e.sections ?? [e]).some((e) => e.links?.length))
|
|
138
|
+
} : null, d = n.databaseLabel && Q(e) ? {
|
|
136
139
|
url: Q(e),
|
|
137
140
|
label: q(n.databaseLabel),
|
|
138
141
|
name: Y.label(e.project_id)
|
|
139
|
-
} : null,
|
|
142
|
+
} : null, f = n.overallDatabase && n.overallDatabase !== !1 ? {
|
|
140
143
|
label: q(n.overallDatabase.label),
|
|
141
144
|
linkLabel: q(n.overallDatabase.linkLabel)
|
|
142
145
|
} : null;
|
|
@@ -155,11 +158,13 @@ var k = {
|
|
|
155
158
|
} : null,
|
|
156
159
|
timeline: n.timeline ? n.timeline(e, t) : null,
|
|
157
160
|
glossary: n.glossary !== !1,
|
|
161
|
+
glossaryLabels: n.glossaryLabels ?? {},
|
|
158
162
|
dynasties: n.dynasties ? n.dynasties(e, t.language, t) : null,
|
|
163
|
+
dynastiesHeading: q(n.dynastiesHeading ?? "record.dynasty.list"),
|
|
159
164
|
media: n.media === !1 ? [] : e.media ?? [],
|
|
160
|
-
onDisplayIn:
|
|
161
|
-
database:
|
|
162
|
-
overallDatabase:
|
|
165
|
+
onDisplayIn: u,
|
|
166
|
+
database: d,
|
|
167
|
+
overallDatabase: f,
|
|
163
168
|
download: n.download === !1 ? null : {
|
|
164
169
|
label: q("record.action.download"),
|
|
165
170
|
pdfLabel: q("record.action.downloadPdf")
|
|
@@ -239,11 +244,16 @@ var k = {
|
|
|
239
244
|
s.glossary ? (b(), d(n, {
|
|
240
245
|
key: 5,
|
|
241
246
|
language: a.language,
|
|
247
|
+
labels: s.glossaryLabels,
|
|
242
248
|
dir: a.dir
|
|
243
|
-
}, null, 8, [
|
|
249
|
+
}, null, 8, [
|
|
250
|
+
"language",
|
|
251
|
+
"labels",
|
|
252
|
+
"dir"
|
|
253
|
+
])) : f("", !0),
|
|
244
254
|
s.dynasties?.records?.length ? (b(), d(e, {
|
|
245
255
|
key: 6,
|
|
246
|
-
heading:
|
|
256
|
+
heading: s.dynastiesHeading,
|
|
247
257
|
dynasties: s.dynasties.records,
|
|
248
258
|
tr: s.dynasties.tr,
|
|
249
259
|
dir: a.dir
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e, o as t } from "./PartnerMap-
|
|
1
|
+
import { d as e, o as t } from "./PartnerMap-U-Hi2FBi.js";
|
|
2
2
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, mergeProps as u, normalizeClass as d, openBlock as f, ref as p, renderList as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, vModelSelect as y, vModelText as b, watch as x, withCtx as S, withDirectives as C, withKeys as w } from "vue";
|
|
3
3
|
import { useI18n as T } from "@museumwnf/viewer-core/i18n";
|
|
4
4
|
import { md as E, mdInline as D, renderInline as O, searchGlossary as ee } from "@museumwnf/viewer-core";
|
|
@@ -355,7 +355,7 @@ var A = ["href"], te = {
|
|
|
355
355
|
_: 1
|
|
356
356
|
}, 8, ["heading", "dir"])) : a("", !0);
|
|
357
357
|
}
|
|
358
|
-
}, Te = ["innerHTML"], Ee = { class: "mwnf-on-display__list" },
|
|
358
|
+
}, Te = ["innerHTML"], Ee = ["innerHTML"], De = { class: "mwnf-on-display__list" }, Oe = ["innerHTML"], ke = ["innerHTML"], Ae = { class: "mwnf-on-display__pending" }, je = {
|
|
359
359
|
__name: "OnDisplayIn",
|
|
360
360
|
props: {
|
|
361
361
|
groups: {
|
|
@@ -376,19 +376,26 @@ var A = ["href"], te = {
|
|
|
376
376
|
}
|
|
377
377
|
},
|
|
378
378
|
setup(l) {
|
|
379
|
-
let d = l, { t: p } = T(), h =
|
|
380
|
-
|
|
379
|
+
let d = l, { t: p } = T(), h = (e) => (e.sections ?? [{ links: e.links ?? [] }]).filter((e) => e.links?.length), y = r(() => d.groups.map((e) => ({
|
|
380
|
+
...e,
|
|
381
|
+
parts: h(e)
|
|
382
|
+
})).filter((e) => e.parts.length));
|
|
383
|
+
return (r, d) => y.value.length ? (f(), i(g(l.heading ? t : "div"), u({ key: 0 }, l.heading ? { heading: v(p)(l.heading) } : {}, {
|
|
381
384
|
dir: l.dir || void 0,
|
|
382
385
|
class: "mwnf-on-display"
|
|
383
386
|
}), {
|
|
384
|
-
default: S(() => [(f(!0), o(n, null, m(
|
|
387
|
+
default: S(() => [(f(!0), o(n, null, m(y.value, (t, r) => (f(), o("div", {
|
|
385
388
|
key: t.heading ?? r,
|
|
386
389
|
class: "mwnf-on-display__group"
|
|
387
390
|
}, [t.heading ? (f(), o("p", {
|
|
388
391
|
key: 0,
|
|
389
392
|
class: "mwnf-on-display__subheading",
|
|
390
393
|
innerHTML: v(O)(v(p)(t.heading))
|
|
391
|
-
}, null, 8, Te)) : a("", !0),
|
|
394
|
+
}, null, 8, Te)) : a("", !0), (f(!0), o(n, null, m(t.parts, (t, r) => (f(), o(n, { key: r }, [t.caption ? (f(), o("p", {
|
|
395
|
+
key: 0,
|
|
396
|
+
class: "mwnf-on-display__caption",
|
|
397
|
+
innerHTML: t.caption
|
|
398
|
+
}, null, 8, Ee)) : a("", !0), s("ul", De, [(f(!0), o(n, null, m(t.links, (t, r) => (f(), o("li", {
|
|
392
399
|
key: t.id ?? r,
|
|
393
400
|
class: "mwnf-on-display__item"
|
|
394
401
|
}, [t.to || t.href ? (f(), i(e, {
|
|
@@ -397,15 +404,15 @@ var A = ["href"], te = {
|
|
|
397
404
|
href: t.href,
|
|
398
405
|
external: !!t.external
|
|
399
406
|
}, {
|
|
400
|
-
default: S(() => [t.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: t.label }, null, 8,
|
|
407
|
+
default: S(() => [t.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: t.label }, null, 8, Oe)]),
|
|
401
408
|
_: 2
|
|
402
409
|
}, 1032, [
|
|
403
410
|
"to",
|
|
404
411
|
"href",
|
|
405
412
|
"external"
|
|
406
|
-
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: t.label }, null, 8,
|
|
413
|
+
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: t.label }, null, 8, ke), l.pendingLabel ? (f(), o(n, { key: 0 }, [d[0] ||= c(_(" "), -1), s("span", Ae, _(v(p)(l.pendingLabel)), 1)], 64)) : a("", !0)], 64))]))), 128))])], 64))), 128))]))), 128))]),
|
|
407
414
|
_: 1
|
|
408
415
|
}, 16, ["dir"])) : a("", !0);
|
|
409
416
|
}
|
|
410
417
|
};
|
|
411
|
-
export { Q as a, ue as i, we as n, W as o, xe as r, j as s,
|
|
418
|
+
export { Q as a, ue as i, we as n, W as o, xe as r, j as s, je as t };
|
|
@@ -267,21 +267,25 @@ var D = [
|
|
|
267
267
|
shortDescriptionOpen: {
|
|
268
268
|
type: Boolean,
|
|
269
269
|
default: !1
|
|
270
|
+
},
|
|
271
|
+
toggleLabels: {
|
|
272
|
+
type: Object,
|
|
273
|
+
default: () => ({})
|
|
270
274
|
}
|
|
271
275
|
},
|
|
272
276
|
setup(t) {
|
|
273
|
-
let o = t, { t: s } = C(), c = p(o.shortDescriptionOpen);
|
|
277
|
+
let o = t, { t: s } = C(), c = (e) => s(e ? o.toggleLabels.hide ?? "record.action.hideShortDescription" : o.toggleLabels.view ?? "record.action.viewShortDescription"), l = p(o.shortDescriptionOpen);
|
|
274
278
|
b(() => o.shortDescription, () => {
|
|
275
|
-
|
|
279
|
+
l.value = o.shortDescriptionOpen;
|
|
276
280
|
});
|
|
277
|
-
let
|
|
278
|
-
return (o,
|
|
281
|
+
let d = (e) => e.render === "custom" || e.render === "link";
|
|
282
|
+
return (o, s) => (f(), i("div", {
|
|
279
283
|
class: u(["mwnf-sheet", `mwnf-sheet--${t.layout}`]),
|
|
280
284
|
dir: t.dir || void 0
|
|
281
285
|
}, [(f(), n(g(t.layout === "list" ? "dl" : "table"), { class: "mwnf-sheet__rows" }, {
|
|
282
286
|
default: x(() => [t.layout === "list" ? (f(!0), i(e, { key: 1 }, m(t.rows, (n) => (f(), i(e, { key: n.key }, [
|
|
283
287
|
a("dt", { class: u(["mwnf-sheet__label", `mwnf-sheet__label--${n.key}`]) }, _(n.label), 3),
|
|
284
|
-
a("dd", he, [
|
|
288
|
+
a("dd", he, [d(n) ? h(o.$slots, n.key, { row: n }, () => [n.render === "link" ? (f(), i("a", {
|
|
285
289
|
key: 0,
|
|
286
290
|
href: n.value,
|
|
287
291
|
target: "_blank",
|
|
@@ -294,14 +298,14 @@ var D = [
|
|
|
294
298
|
t.shortDescription && n.key === t.shortDescriptionAfter ? (f(), i(e, { key: 0 }, [a("dt", ve, [a("button", {
|
|
295
299
|
type: "button",
|
|
296
300
|
class: "mwnf-sheet__toggle",
|
|
297
|
-
"aria-expanded":
|
|
298
|
-
onClick:
|
|
299
|
-
}, _(c.value
|
|
301
|
+
"aria-expanded": l.value ? "true" : "false",
|
|
302
|
+
onClick: s[1] ||= (e) => l.value = !l.value
|
|
303
|
+
}, _(c(l.value)), 9, ye)]), a("dd", be, [l.value ? (f(), i("div", {
|
|
300
304
|
key: 0,
|
|
301
305
|
class: "mwnf-sheet__block",
|
|
302
306
|
innerHTML: t.shortDescription.html
|
|
303
307
|
}, null, 8, xe)) : r("", !0)])], 64)) : r("", !0)
|
|
304
|
-
], 64))), 128)) : (f(), i("tbody", ae, [(f(!0), i(e, null, m(t.rows, (n) => (f(), i(e, { key: n.key }, [a("tr", { class: u(["mwnf-sheet__row", `mwnf-sheet__row--${n.key}`]) }, [a("th", oe, _(n.label), 1), a("td", se, [
|
|
308
|
+
], 64))), 128)) : (f(), i("tbody", ae, [(f(!0), i(e, null, m(t.rows, (n) => (f(), i(e, { key: n.key }, [a("tr", { class: u(["mwnf-sheet__row", `mwnf-sheet__row--${n.key}`]) }, [a("th", oe, _(n.label), 1), a("td", se, [d(n) ? h(o.$slots, n.key, { row: n }, () => [n.render === "link" ? (f(), i("a", {
|
|
305
309
|
key: 0,
|
|
306
310
|
href: n.value,
|
|
307
311
|
target: "_blank",
|
|
@@ -313,9 +317,9 @@ var D = [
|
|
|
313
317
|
}, null, 10, le))])], 2), t.shortDescription && n.key === t.shortDescriptionAfter ? (f(), i("tr", ue, [a("th", de, [a("button", {
|
|
314
318
|
type: "button",
|
|
315
319
|
class: "mwnf-sheet__toggle",
|
|
316
|
-
"aria-expanded":
|
|
317
|
-
onClick:
|
|
318
|
-
}, _(c.value
|
|
320
|
+
"aria-expanded": l.value ? "true" : "false",
|
|
321
|
+
onClick: s[0] ||= (e) => l.value = !l.value
|
|
322
|
+
}, _(c(l.value)), 9, fe)]), a("td", pe, [l.value ? (f(), i("div", {
|
|
319
323
|
key: 0,
|
|
320
324
|
class: "mwnf-sheet__block",
|
|
321
325
|
innerHTML: t.shortDescription.html
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { t as e } from "./GlossaryPopover-DbQKXhx9.js";
|
|
2
|
+
import { a as t, c as n, d as r, i, n as a, o as ee, r as te, s as ne } from "./PartnerMap-U-Hi2FBi.js";
|
|
3
|
+
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createSlots as re, createTextVNode as ie, createVNode as f, guardReactiveProps as p, mergeProps as ae, normalizeClass as oe, normalizeProps as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useSlots as se, watch as x, withCtx as ce } from "vue";
|
|
4
|
+
import { useI18n as S } from "@museumwnf/viewer-core/i18n";
|
|
5
|
+
import { NotFoundView as le, byId as ue, citation as de, creditLine as fe, entityRef as pe, languageLabels as me, loadEntities as he, pictureCredits as ge, picturesInLanguage as _e, renderBlock as C, renderInline as w, renderPlain as T, sheetRows as E, sourceUrl as ve, useDataPackage as ye, useGlossaryPopup as be, useI18n as xe, useProjects as Se, useRecordSheet as Ce, useRelatedRecords as we } from "@museumwnf/viewer-core";
|
|
6
|
+
import { useRoute as Te } from "vue-router";
|
|
7
|
+
// src/content/ShortDescription.vue
|
|
8
|
+
var D = ["dir"], Ee = ["aria-expanded"], O = ["innerHTML"], De = {
|
|
9
|
+
__name: "ShortDescription",
|
|
10
|
+
props: {
|
|
11
|
+
html: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: !0
|
|
14
|
+
},
|
|
15
|
+
dir: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: void 0
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
setup(e) {
|
|
21
|
+
let t = e, { t: n } = S(), r = g(!1);
|
|
22
|
+
return x(() => t.html, () => {
|
|
23
|
+
r.value = !1;
|
|
24
|
+
}), (t, i) => (h(), u("div", {
|
|
25
|
+
class: "mwnf-sheet__short",
|
|
26
|
+
dir: e.dir
|
|
27
|
+
}, [d("button", {
|
|
28
|
+
type: "button",
|
|
29
|
+
class: "mwnf-sheet__toggle",
|
|
30
|
+
"aria-expanded": r.value ? "true" : "false",
|
|
31
|
+
onClick: i[0] ||= (e) => r.value = !r.value
|
|
32
|
+
}, y(r.value ? b(n)("record.action.hideShortDescription") : b(n)("record.action.viewShortDescription")), 9, Ee), r.value ? (h(), u("div", {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "mwnf-sheet__block",
|
|
35
|
+
innerHTML: e.html
|
|
36
|
+
}, null, 8, O)) : l("", !0)], 8, D));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
// src/views/pictureLimit.js
|
|
40
|
+
function k(e, t, n) {
|
|
41
|
+
let r = typeof t == "function" ? t(n) : t;
|
|
42
|
+
return Number.isInteger(r) && r > 0 ? e.slice(0, r) : e;
|
|
43
|
+
}
|
|
44
|
+
// src/views/RecordView.vue
|
|
45
|
+
var Oe = ["dir", "innerHTML"], ke = { class: "mwnf-record__body" }, Ae = { class: "mwnf-record__main" }, je = {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "mwnf-record__media"
|
|
48
|
+
}, Me = {
|
|
49
|
+
key: 2,
|
|
50
|
+
class: "mwnf-record__status"
|
|
51
|
+
}, Ne = {
|
|
52
|
+
key: 0,
|
|
53
|
+
class: "mwnf-record__aside"
|
|
54
|
+
}, Pe = {
|
|
55
|
+
key: 2,
|
|
56
|
+
class: "mwnf-record__status"
|
|
57
|
+
}, A = {
|
|
58
|
+
__name: "RecordView",
|
|
59
|
+
props: {
|
|
60
|
+
spec: {
|
|
61
|
+
type: Object,
|
|
62
|
+
required: !0
|
|
63
|
+
},
|
|
64
|
+
id: {
|
|
65
|
+
type: String,
|
|
66
|
+
required: !0
|
|
67
|
+
},
|
|
68
|
+
entity: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: ""
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
setup(g) {
|
|
74
|
+
let x = g, { t: S, tIn: D, locale: Ee } = xe(), O = ye(), A = Se(), Fe = se(), Ie = Te(), j = x.spec.entity ?? x.entity, M = s(() => x.spec), Le = pe(j), Re = ue(j), N = s(() => Re.value.get(x.id) ?? null), ze = s(() => Le.value !== null), P = x.spec.creditPeople ? x.spec.creditPeople.entity ?? "authors" : null;
|
|
75
|
+
P && he([P]).catch(() => {});
|
|
76
|
+
let F = P ? ue(P) : null, { language: I, languages: Be, dir: L, select: R, text: z, ready: B, terms: Ve, glossary: V, attribution: H } = Ce(N, {
|
|
77
|
+
entity: j,
|
|
78
|
+
translations: [...x.spec.translations ?? [], ...P ? [P] : []],
|
|
79
|
+
attribution: x.spec.attribution ?? []
|
|
80
|
+
}), U = s(() => me(Be.value)), { active: W, onClick: He, close: Ue } = be(Ve), We = s(() => W.value ? C(W.value.definition, { breaks: !0 }) : ""), Ge = (e, t) => O.tr(e, t, I.value, "en"), Ke = (e) => O.translations(e, I.value), G = s(() => ({
|
|
81
|
+
record: N.value,
|
|
82
|
+
text: z.value,
|
|
83
|
+
language: I.value,
|
|
84
|
+
languages: U.value,
|
|
85
|
+
select: R,
|
|
86
|
+
dir: L.value,
|
|
87
|
+
glossary: V.value,
|
|
88
|
+
ready: B.value,
|
|
89
|
+
attribution: H.value,
|
|
90
|
+
t: S,
|
|
91
|
+
tIn: (e) => D ? D(I.value, e) : S(e),
|
|
92
|
+
tr: Ge,
|
|
93
|
+
translations: Ke
|
|
94
|
+
})), K = (e) => M.value.labelsInRecordLanguage && D ? D(I.value, e) : S(e);
|
|
95
|
+
function qe(e) {
|
|
96
|
+
return ((typeof e == "function" ? e(G.value) : e) ?? []).map((e) => ({
|
|
97
|
+
...e,
|
|
98
|
+
label: e.label ? K(e.label) : ""
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
let Je = s(() => N.value ? E(qe(M.value.fields), G.value) : []), Ye = s(() => N.value ? E(qe(M.value.sections).map((e) => ({
|
|
102
|
+
render: "block",
|
|
103
|
+
...e
|
|
104
|
+
})), G.value) : []), q = s(() => M.value.shortDescriptionAfter ?? "description"), Xe = s(() => !Je.value.some((e) => e.key === q.value) && Ye.value.some((e) => e.key === q.value)), Ze = s(() => M.value.shortDescription === !1 ? "" : M.value.shortDescription ?? "short_description"), J = s(() => {
|
|
105
|
+
let e = Ze.value ? z.value[Ze.value] : "";
|
|
106
|
+
return e ? { html: C(String(e), {
|
|
107
|
+
breaks: !0,
|
|
108
|
+
glossary: V.value
|
|
109
|
+
}) } : null;
|
|
110
|
+
}), Qe = s(() => {
|
|
111
|
+
if (!N.value) return "";
|
|
112
|
+
if (M.value.title) return M.value.title(G.value);
|
|
113
|
+
let e = z.value.name ?? N.value.internal_name ?? N.value.id;
|
|
114
|
+
return w(String(e), { glossary: V.value });
|
|
115
|
+
}), Y = s(() => N.value ? k($e(), M.value.pictureLimit, G.value) : []);
|
|
116
|
+
function $e() {
|
|
117
|
+
if (M.value.media) return M.value.media(N.value, G.value);
|
|
118
|
+
let e = T(String(z.value.name ?? N.value.internal_name ?? ""));
|
|
119
|
+
return _e(N.value.images, I.value).map((t) => ({
|
|
120
|
+
url: t.url,
|
|
121
|
+
alt: t.captions?.[I.value] ?? e,
|
|
122
|
+
caption: t.captions?.[I.value] ?? "",
|
|
123
|
+
...ge(t, I.value)
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
let et = [
|
|
127
|
+
{
|
|
128
|
+
field: "author",
|
|
129
|
+
label: "sheet.field.preparedBy"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
field: "copy_editor",
|
|
133
|
+
label: "sheet.field.copyeditedBy"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
field: "translator",
|
|
137
|
+
label: "sheet.field.translationBy"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
field: "translation_copy_editor",
|
|
141
|
+
label: "sheet.field.translationCopyeditedBy"
|
|
142
|
+
}
|
|
143
|
+
];
|
|
144
|
+
function tt(e) {
|
|
145
|
+
let t = M.value.creditNames ? z.value.credit_names?.[e] : null;
|
|
146
|
+
return t?.length ? fe(t) : z.value[e] ?? H.value[e] ?? "";
|
|
147
|
+
}
|
|
148
|
+
function nt(e) {
|
|
149
|
+
let t = F ? z.value.credit_ids?.[e] : null;
|
|
150
|
+
if (!t?.length) return null;
|
|
151
|
+
let n = Ke(P), r = t.map((e) => {
|
|
152
|
+
let t = F.value.get(e);
|
|
153
|
+
if (!t) return null;
|
|
154
|
+
let r = t.name ?? "";
|
|
155
|
+
return {
|
|
156
|
+
name: I.value === "ar" && t.originalname ? t.originalname : r,
|
|
157
|
+
heading: [t.firstname, t.lastname].filter(Boolean).join(" ") || r,
|
|
158
|
+
biography: n?.[e]?.curriculum ?? ""
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
return r.every(Boolean) ? r : null;
|
|
162
|
+
}
|
|
163
|
+
let rt = s(() => (M.value.credits ?? et).map(({ field: e, label: t }) => ({
|
|
164
|
+
label: K(t),
|
|
165
|
+
value: tt(e),
|
|
166
|
+
people: nt(e)
|
|
167
|
+
})).filter((e) => e.value)), it = s(() => String(N.value?.[M.value.workingNumber ?? "mwnf_reference"] ?? ""));
|
|
168
|
+
function at(e) {
|
|
169
|
+
if (e?.permalink !== !1) return typeof e?.permalink == "string" ? e.permalink : ve(Ie) ?? void 0;
|
|
170
|
+
}
|
|
171
|
+
let ot = s(() => {
|
|
172
|
+
let e = M.value.citation;
|
|
173
|
+
return !N.value || typeof e?.format != "function" ? "" : e.format(G.value, {
|
|
174
|
+
permalink: at(e),
|
|
175
|
+
year: (/* @__PURE__ */ new Date()).getFullYear()
|
|
176
|
+
});
|
|
177
|
+
}), X = s(() => {
|
|
178
|
+
let e = M.value.citation;
|
|
179
|
+
if (!N.value || e === !1 || typeof e?.format == "function") return "";
|
|
180
|
+
let t = typeof e?.project == "function" ? null : e?.project ?? N.value.project_id, n = typeof e?.project == "function" ? e.project(N.value, G.value) : A.label(t);
|
|
181
|
+
return de({
|
|
182
|
+
author: tt("author") || void 0,
|
|
183
|
+
name: z.value.name ?? N.value.internal_name ?? "",
|
|
184
|
+
project: n,
|
|
185
|
+
permalink: at(e),
|
|
186
|
+
inWord: S("record.citation.in")
|
|
187
|
+
});
|
|
188
|
+
}), Z = we(N, {
|
|
189
|
+
entity: j,
|
|
190
|
+
language: I
|
|
191
|
+
}), Q = s(() => M.value.related === !1 ? null : M.value.related ?? {}), $ = s(() => {
|
|
192
|
+
if (!Q.value) return [];
|
|
193
|
+
let e = Q.value.record ?? st;
|
|
194
|
+
return Z.value.inPackage.map((t) => e(t, G.value));
|
|
195
|
+
});
|
|
196
|
+
function st({ record: e, justification: t }) {
|
|
197
|
+
let n = Ge(j, e.id).name ?? e.internal_name ?? e.id;
|
|
198
|
+
return {
|
|
199
|
+
id: e.id,
|
|
200
|
+
image: e.images?.[0]?.url ?? "",
|
|
201
|
+
imageAlt: T(String(n)),
|
|
202
|
+
name: w(String(n)),
|
|
203
|
+
meta: t ? [t] : [],
|
|
204
|
+
badge: e.type ?? "",
|
|
205
|
+
to: {
|
|
206
|
+
name: M.value.route ?? (x.entity ? `${x.entity}-detail` : "item"),
|
|
207
|
+
params: { id: e.id }
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
let ct = /* @__PURE__ */ new Set([
|
|
212
|
+
"header",
|
|
213
|
+
"before-sheet",
|
|
214
|
+
"after-sheet",
|
|
215
|
+
"after-media",
|
|
216
|
+
"credits",
|
|
217
|
+
"aside",
|
|
218
|
+
"source",
|
|
219
|
+
"related",
|
|
220
|
+
"after",
|
|
221
|
+
"default"
|
|
222
|
+
]), lt = s(() => Object.keys(Fe).filter((e) => !ct.has(e)));
|
|
223
|
+
return (s, g) => ze.value && !N.value ? (h(), c(b(le), { key: 0 })) : N.value ? (h(), u("article", {
|
|
224
|
+
key: 1,
|
|
225
|
+
class: oe(["mwnf-record", { "mwnf-record--spaced": M.value.spaced }]),
|
|
226
|
+
onClick: g[0] ||= (...e) => b(He) && b(He)(...e)
|
|
227
|
+
}, [
|
|
228
|
+
v(s.$slots, "header", m(p(G.value)), () => [
|
|
229
|
+
M.value.back ? (h(), c(r, {
|
|
230
|
+
key: 0,
|
|
231
|
+
class: "mwnf-record__back",
|
|
232
|
+
to: M.value.back.to,
|
|
233
|
+
href: M.value.back.href
|
|
234
|
+
}, {
|
|
235
|
+
default: ce(() => [ie("← " + y(b(S)(M.value.back.label)), 1)]),
|
|
236
|
+
_: 1
|
|
237
|
+
}, 8, ["to", "href"])) : l("", !0),
|
|
238
|
+
f(n, {
|
|
239
|
+
languages: U.value,
|
|
240
|
+
language: b(I),
|
|
241
|
+
onSelect: b(R)
|
|
242
|
+
}, null, 8, [
|
|
243
|
+
"languages",
|
|
244
|
+
"language",
|
|
245
|
+
"onSelect"
|
|
246
|
+
]),
|
|
247
|
+
d("h1", {
|
|
248
|
+
class: "mwnf-record__title",
|
|
249
|
+
dir: b(L) || void 0,
|
|
250
|
+
innerHTML: Qe.value
|
|
251
|
+
}, null, 8, Oe)
|
|
252
|
+
]),
|
|
253
|
+
d("div", ke, [d("div", Ae, [
|
|
254
|
+
s.$slots["after-media"] ? (h(), u("div", je, [Y.value.length ? (h(), c(a, {
|
|
255
|
+
key: 0,
|
|
256
|
+
images: Y.value,
|
|
257
|
+
variant: M.value.mediaVariant ?? ""
|
|
258
|
+
}, null, 8, ["images", "variant"])) : l("", !0), v(s.$slots, "after-media", m(p(G.value)))])) : Y.value.length ? (h(), c(a, {
|
|
259
|
+
key: 1,
|
|
260
|
+
images: Y.value,
|
|
261
|
+
variant: M.value.mediaVariant ?? ""
|
|
262
|
+
}, null, 8, ["images", "variant"])) : l("", !0),
|
|
263
|
+
b(B) ? l("", !0) : (h(), u("p", Me, y(b(S)("core.status.loading")), 1)),
|
|
264
|
+
v(s.$slots, "before-sheet", m(p(G.value))),
|
|
265
|
+
f(ne, {
|
|
266
|
+
rows: Je.value,
|
|
267
|
+
layout: M.value.layout ?? "table",
|
|
268
|
+
dir: b(L),
|
|
269
|
+
"short-description": J.value,
|
|
270
|
+
"short-description-after": q.value,
|
|
271
|
+
"toggle-labels": M.value.shortDescriptionLabels ?? {}
|
|
272
|
+
}, re({ _: 2 }, [_(lt.value, (e) => ({
|
|
273
|
+
name: e,
|
|
274
|
+
fn: ce((t) => [v(s.$slots, e, m(p({
|
|
275
|
+
...t,
|
|
276
|
+
...G.value
|
|
277
|
+
})))])
|
|
278
|
+
}))]), 1032, [
|
|
279
|
+
"rows",
|
|
280
|
+
"layout",
|
|
281
|
+
"dir",
|
|
282
|
+
"short-description",
|
|
283
|
+
"short-description-after",
|
|
284
|
+
"toggle-labels"
|
|
285
|
+
]),
|
|
286
|
+
(h(!0), u(o, null, _(Ye.value, (e) => (h(), u(o, { key: e.key }, [
|
|
287
|
+
f(ee, {
|
|
288
|
+
heading: e.label,
|
|
289
|
+
html: e.html,
|
|
290
|
+
dir: b(L)
|
|
291
|
+
}, null, 8, [
|
|
292
|
+
"heading",
|
|
293
|
+
"html",
|
|
294
|
+
"dir"
|
|
295
|
+
]),
|
|
296
|
+
J.value && Xe.value && e.key === q.value ? (h(), c(De, {
|
|
297
|
+
key: 0,
|
|
298
|
+
html: J.value.html,
|
|
299
|
+
dir: b(L)
|
|
300
|
+
}, null, 8, ["html", "dir"])) : l("", !0),
|
|
301
|
+
v(s.$slots, `after-${e.key}`, ae({ ref_for: !0 }, G.value))
|
|
302
|
+
], 64))), 128)),
|
|
303
|
+
v(s.$slots, "after-sheet", m(p(G.value))),
|
|
304
|
+
v(s.$slots, "credits", m(p({
|
|
305
|
+
...G.value,
|
|
306
|
+
credits: rt.value,
|
|
307
|
+
workingNumber: it.value,
|
|
308
|
+
workingNumberLabel: K(M.value.workingNumberLabel ?? "sheet.field.workingNumber"),
|
|
309
|
+
citation: X.value,
|
|
310
|
+
citationHtml: ot.value
|
|
311
|
+
})), () => [f(t, {
|
|
312
|
+
credits: rt.value,
|
|
313
|
+
"working-number": it.value,
|
|
314
|
+
"working-number-label": K(M.value.workingNumberLabel ?? "sheet.field.workingNumber"),
|
|
315
|
+
citation: X.value,
|
|
316
|
+
"citation-html": ot.value,
|
|
317
|
+
"citation-heading": M.value.citation?.heading ? K(M.value.citation.heading) : ""
|
|
318
|
+
}, null, 8, [
|
|
319
|
+
"credits",
|
|
320
|
+
"working-number",
|
|
321
|
+
"working-number-label",
|
|
322
|
+
"citation",
|
|
323
|
+
"citation-html",
|
|
324
|
+
"citation-heading"
|
|
325
|
+
])]),
|
|
326
|
+
v(s.$slots, "source", m(p(G.value)), () => [M.value.sourceCredit === !1 ? l("", !0) : (h(), c(i, { key: 0 }))]),
|
|
327
|
+
v(s.$slots, "related", m(p({
|
|
328
|
+
...G.value,
|
|
329
|
+
records: $.value,
|
|
330
|
+
outside: b(Z).outside
|
|
331
|
+
})), () => [Q.value ? (h(), c(te, {
|
|
332
|
+
key: 0,
|
|
333
|
+
heading: b(S)(Q.value.heading ?? "record.related.items"),
|
|
334
|
+
records: $.value,
|
|
335
|
+
variant: Q.value.variant ?? "list",
|
|
336
|
+
"action-label": Q.value.actionLabel ? b(S)(Q.value.actionLabel) : ""
|
|
337
|
+
}, null, 8, [
|
|
338
|
+
"heading",
|
|
339
|
+
"records",
|
|
340
|
+
"variant",
|
|
341
|
+
"action-label"
|
|
342
|
+
])) : l("", !0)])
|
|
343
|
+
]), s.$slots.aside ? (h(), u("aside", Ne, [v(s.$slots, "aside", m(p({
|
|
344
|
+
...G.value,
|
|
345
|
+
records: $.value,
|
|
346
|
+
outside: b(Z).outside
|
|
347
|
+
})))])) : l("", !0)]),
|
|
348
|
+
v(s.$slots, "after", m(p(G.value))),
|
|
349
|
+
f(e, {
|
|
350
|
+
term: b(W),
|
|
351
|
+
html: We.value,
|
|
352
|
+
dir: b(L),
|
|
353
|
+
onClose: b(Ue)
|
|
354
|
+
}, null, 8, [
|
|
355
|
+
"term",
|
|
356
|
+
"html",
|
|
357
|
+
"dir",
|
|
358
|
+
"onClose"
|
|
359
|
+
])
|
|
360
|
+
], 2)) : (h(), u("p", Pe, y(b(S)("core.status.loading")), 1));
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
export { k as n, A as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e } from "./TimelineResultsView-
|
|
2
|
-
import { d as t, i as n } from "./PartnerMap-
|
|
1
|
+
import { o as e } from "./TimelineResultsView-CkH3NDqL.js";
|
|
2
|
+
import { d as t, i as n } from "./PartnerMap-U-Hi2FBi.js";
|
|
3
3
|
import { A as r, F as i, h as a, m as o } from "./data-kqAkoQvf.js";
|
|
4
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e, n as t, t as n } from "./PartnerMap-
|
|
1
|
+
import { d as e, n as t, t as n } from "./PartnerMap-U-Hi2FBi.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, i as t, l as n, n as r, u as i } from "./PartnerMap-
|
|
2
|
-
import { a, i as o, n as s, o as c, r as l, t as u } from "./TimelineEventList-
|
|
1
|
+
import { d as e, i as t, l as n, n as r, u as i } from "./PartnerMap-U-Hi2FBi.js";
|
|
2
|
+
import { a, i as o, n as s, o as c, r as l, t as u } from "./TimelineEventList-1feZA5t7.js";
|
|
3
3
|
import { t as d } from "./GlossaryPopover-DbQKXhx9.js";
|
|
4
4
|
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, isRef as S, mergeProps as C, normalizeClass as ee, normalizeProps as w, openBlock as T, reactive as E, ref as D, renderList as O, renderSlot as k, resolveDynamicComponent as te, toDisplayString as A, unref as j, useSlots as M, vModelCheckbox as N, vModelRadio as P, vModelSelect as F, vModelText as ne, watch as re, withCtx as I, withDirectives as L } from "vue";
|
|
5
5
|
import { I18nText as R, NotFoundView as z, byId as B, centuryPresets as V, dateRange as H, entityRef as ie, eventDateLabel as U, glossaryEntries as W, glossaryTermsForText as G, groupByCountry as K, md as q, mdInline as ae, partnerHierarchy as J, partnerView as Y, renderBlock as oe, renderInline as se, renderPlain as X, sortChronological as Z, useCollectionTree as ce, useDataPackage as le, useFacets as ue, useGlossaryPopup as Q, useI18n as de, useListQuery as fe, useLocale as pe, usePagination as me, useRecordLanguage as he, useSearchLanguage as ge, useTimelineEvents as _e, yearBuckets as ve } from "@museumwnf/viewer-core";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./FeaturedRecord-
|
|
2
|
-
import { n as e, o as t } from "./PartnerMap-
|
|
1
|
+
import "./FeaturedRecord-DaGLHyhD.js";
|
|
2
|
+
import { n as e, o as t } from "./PartnerMap-U-Hi2FBi.js";
|
|
3
3
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
4
4
|
import { useI18n as p } from "@museumwnf/viewer-core/i18n";
|
|
5
5
|
import { md as m, mdInline as h } from "@museumwnf/viewer-core";
|
package/dist/content.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./FeaturedRecord-
|
|
2
|
-
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./PartnerMap-
|
|
3
|
-
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-
|
|
1
|
+
import { t as e } from "./FeaturedRecord-DaGLHyhD.js";
|
|
2
|
+
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./PartnerMap-U-Hi2FBi.js";
|
|
3
|
+
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-1feZA5t7.js";
|
|
4
4
|
import { t as v } from "./GlossaryPopover-DbQKXhx9.js";
|
|
5
|
-
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-
|
|
6
|
-
import { t as E } from "./content-
|
|
5
|
+
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-CPANKcOd.js";
|
|
6
|
+
import { t as E } from "./content-BNS5U0Xv.js";
|
|
7
7
|
export { w as BackLink, b as DynastyList, y as DynastyPopout, d as FacetSelect, e as FeaturedRecord, f as FilterPanel, v as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, m as Pagination, l as PartnerMap, p as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, h as ResultsSummary, g as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
|