@museumwnf/viewer-layout 3.22.1 → 3.24.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-CNRUaZBY.js → FeaturedRecord-B7lsvwkg.js} +1 -1
- package/dist/{ItemDetailView-5t8skbHY.js → ItemDetailView-C6SA1n2H.js} +4 -4
- package/dist/{OnDisplayIn-DdqVmd4F.js → OnDisplayIn-CNcO6eW1.js} +1 -1
- package/dist/{PartnerMap-BozCpzY8.js → PartnerMap-CXbA_EFo.js} +73 -44
- package/dist/RecordView-CF_bGx8F.js +343 -0
- package/dist/{Theme-CUxHnUlI.js → Theme-D0eDKMW2.js} +2 -2
- package/dist/{TimelineEventList-B_lhlQOG.js → TimelineEventList-hN-ewFEl.js} +1 -1
- package/dist/{TimelineResultsView-D63r1Vjq.js → TimelineResultsView-BHJm5lkm.js} +2 -2
- package/dist/{content-DzEj-kdq.js → content-D-dzl72f.js} +2 -2
- package/dist/content.js +5 -5
- package/dist/dxa.js +8 -8
- 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 +1 -1
- package/src/tokens.reference.css +9 -0
- package/dist/RecordView-Bi53L29_.js +0 -313
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e } from "./PartnerMap-
|
|
1
|
+
import { d as e } from "./PartnerMap-CXbA_EFo.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
|
//#region src/content/FeaturedRecord.vue
|
|
4
4
|
var p = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./chrome-DNsZQXrL.js";
|
|
2
|
-
import { r as t } from "./PartnerMap-
|
|
3
|
-
import { n } from "./TimelineEventList-
|
|
4
|
-
import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-
|
|
5
|
-
import { t as c } from "./RecordView-
|
|
2
|
+
import { r as t } from "./PartnerMap-CXbA_EFo.js";
|
|
3
|
+
import { n } from "./TimelineEventList-hN-ewFEl.js";
|
|
4
|
+
import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-CNcO6eW1.js";
|
|
5
|
+
import { t as c } from "./RecordView-CF_bGx8F.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";
|
|
8
8
|
//#region src/dxa/ItemDetailView.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e, o as t } from "./PartnerMap-
|
|
1
|
+
import { d as e, o as t } from "./PartnerMap-CXbA_EFo.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, searchGlossary as ee } from "@museumwnf/viewer-core";
|
|
@@ -361,10 +361,26 @@ var E = [
|
|
|
361
361
|
}, Oe = {
|
|
362
362
|
key: 1,
|
|
363
363
|
class: "mwnf-credits__list"
|
|
364
|
-
}, ke = { class: "mwnf-credits__label" }, Ae = {
|
|
364
|
+
}, ke = { class: "mwnf-credits__label" }, Ae = {
|
|
365
|
+
key: 0,
|
|
366
|
+
class: "mwnf-credits__value"
|
|
367
|
+
}, je = {
|
|
368
|
+
key: 1,
|
|
369
|
+
class: "mwnf-credits__person",
|
|
370
|
+
tabindex: "0"
|
|
371
|
+
}, Me = {
|
|
372
|
+
class: "mwnf-credits__biography",
|
|
373
|
+
role: "tooltip"
|
|
374
|
+
}, Ne = {
|
|
375
|
+
key: 1,
|
|
376
|
+
class: "mwnf-credits__value"
|
|
377
|
+
}, Pe = {
|
|
365
378
|
key: 2,
|
|
366
379
|
class: "mwnf-credits__number"
|
|
367
|
-
},
|
|
380
|
+
}, Fe = { class: "mwnf-credits__label" }, Ie = { class: "mwnf-credits__heading mwnf-credits__heading--citation" }, Le = ["innerHTML"], Re = {
|
|
381
|
+
key: 1,
|
|
382
|
+
class: "mwnf-credits__citation"
|
|
383
|
+
}, ze = {
|
|
368
384
|
__name: "RecordCredits",
|
|
369
385
|
props: {
|
|
370
386
|
credits: {
|
|
@@ -383,6 +399,10 @@ var E = [
|
|
|
383
399
|
type: String,
|
|
384
400
|
default: ""
|
|
385
401
|
},
|
|
402
|
+
citationHtml: {
|
|
403
|
+
type: String,
|
|
404
|
+
default: ""
|
|
405
|
+
},
|
|
386
406
|
heading: {
|
|
387
407
|
type: String,
|
|
388
408
|
default: ""
|
|
@@ -393,18 +413,27 @@ var E = [
|
|
|
393
413
|
}
|
|
394
414
|
},
|
|
395
415
|
setup(n) {
|
|
396
|
-
let s = n, { t: c } = C(), l = t(() => s.credits.length > 0 || s.workingNumber || s.citation);
|
|
416
|
+
let s = n, { t: c } = C(), l = t(() => s.credits.length > 0 || s.workingNumber || s.citation || s.citationHtml);
|
|
397
417
|
return (t, s) => l.value ? (f(), i("section", Ee, [
|
|
398
418
|
n.credits.length || n.workingNumber ? (f(), i("h2", De, _(n.heading || v(c)("record.sheet.credits")), 1)) : r("", !0),
|
|
399
|
-
n.credits.length ? (f(), i("dl", Oe, [(f(!0), i(e, null, m(n.credits, (t) => (f(), i(e, { key: t.label }, [a("dt", ke, _(t.label), 1),
|
|
400
|
-
|
|
401
|
-
|
|
419
|
+
n.credits.length ? (f(), i("dl", Oe, [(f(!0), i(e, null, m(n.credits, (t) => (f(), i(e, { key: t.label }, [a("dt", ke, _(t.label), 1), t.people ? (f(), i("dd", Ae, [(f(!0), i(e, null, m(t.people, (t, n) => (f(), i(e, { key: n }, [n ? (f(), i(e, { key: 0 }, [o(", ")], 64)) : r("", !0), t.biography ? (f(), i("span", je, [o(_(t.name), 1), a("span", Me, [
|
|
420
|
+
a("b", null, _(t.heading), 1),
|
|
421
|
+
s[0] ||= a("br", null, null, -1),
|
|
422
|
+
s[1] ||= a("br", null, null, -1),
|
|
423
|
+
o(_(t.biography), 1)
|
|
424
|
+
])])) : (f(), i(e, { key: 2 }, [o(_(t.name), 1)], 64))], 64))), 128))])) : (f(), i("dd", Ne, _(t.value), 1))], 64))), 128))])) : r("", !0),
|
|
425
|
+
n.workingNumber ? (f(), i("p", Pe, [n.workingNumberLabel ? (f(), i(e, { key: 0 }, [a("span", Fe, _(n.workingNumberLabel), 1), s[2] ||= o(_(" "), -1)], 64)) : r("", !0), a("strong", null, _(n.workingNumber), 1)])) : r("", !0),
|
|
426
|
+
n.citation || n.citationHtml ? (f(), i(e, { key: 3 }, [a("h2", Ie, _(n.citationHeading || v(c)("record.citation.heading")), 1), n.citationHtml ? (f(), i("p", {
|
|
427
|
+
key: 0,
|
|
428
|
+
class: "mwnf-credits__citation",
|
|
429
|
+
innerHTML: n.citationHtml
|
|
430
|
+
}, null, 8, Le)) : (f(), i("p", Re, _(n.citation), 1))], 64)) : r("", !0)
|
|
402
431
|
])) : r("", !0);
|
|
403
432
|
}
|
|
404
|
-
},
|
|
433
|
+
}, Be = {
|
|
405
434
|
key: 0,
|
|
406
435
|
class: "mwnf-source-credit"
|
|
407
|
-
},
|
|
436
|
+
}, Ve = { class: "mwnf-source-credit__label" }, He = ["href"], Ue = {
|
|
408
437
|
__name: "SourceCredit",
|
|
409
438
|
props: {
|
|
410
439
|
route: {
|
|
@@ -418,19 +447,19 @@ var E = [
|
|
|
418
447
|
},
|
|
419
448
|
setup(e) {
|
|
420
449
|
let n = e, { t: s } = C(), c = T(), l = t(() => w(n.route ?? c));
|
|
421
|
-
return (t, n) => l.value ? (f(), i("p",
|
|
422
|
-
a("span",
|
|
450
|
+
return (t, n) => l.value ? (f(), i("p", Be, [
|
|
451
|
+
a("span", Ve, _(v(s)(e.labelEntry)), 1),
|
|
423
452
|
n[0] ||= o(),
|
|
424
|
-
a("a", { href: l.value }, _(l.value), 9,
|
|
453
|
+
a("a", { href: l.value }, _(l.value), 9, He)
|
|
425
454
|
])) : r("", !0);
|
|
426
455
|
}
|
|
427
|
-
},
|
|
456
|
+
}, We = {
|
|
428
457
|
key: 0,
|
|
429
458
|
class: "mwnf-related"
|
|
430
|
-
},
|
|
459
|
+
}, Ge = {
|
|
431
460
|
key: 0,
|
|
432
461
|
class: "mwnf-related__heading"
|
|
433
|
-
},
|
|
462
|
+
}, Ke = {
|
|
434
463
|
__name: "RelatedRecords",
|
|
435
464
|
props: {
|
|
436
465
|
heading: {
|
|
@@ -451,8 +480,8 @@ var E = [
|
|
|
451
480
|
}
|
|
452
481
|
},
|
|
453
482
|
setup(e) {
|
|
454
|
-
return (t, a) => e.records.length || t.$slots.default ? (f(), i("section",
|
|
455
|
-
e.heading ? (f(), i("h2",
|
|
483
|
+
return (t, a) => e.records.length || t.$slots.default ? (f(), i("section", We, [
|
|
484
|
+
e.heading ? (f(), i("h2", Ge, _(e.heading), 1)) : r("", !0),
|
|
456
485
|
e.variant === "grid" ? (f(), n(X, {
|
|
457
486
|
key: 1,
|
|
458
487
|
records: e.records,
|
|
@@ -464,29 +493,29 @@ var E = [
|
|
|
464
493
|
h(t.$slots, "default")
|
|
465
494
|
])) : r("", !0);
|
|
466
495
|
}
|
|
467
|
-
},
|
|
496
|
+
}, qe = ["src", "alt"], Je = {
|
|
468
497
|
key: 0,
|
|
469
498
|
class: "mwnf-media__caption"
|
|
470
|
-
},
|
|
499
|
+
}, Ye = { key: 0 }, Xe = {
|
|
471
500
|
key: 1,
|
|
472
501
|
class: "mwnf-media__credit"
|
|
473
|
-
},
|
|
502
|
+
}, Ze = {
|
|
474
503
|
key: 2,
|
|
475
504
|
class: "mwnf-media__credit"
|
|
476
|
-
},
|
|
505
|
+
}, Qe = ["src", "alt"], $e = {
|
|
477
506
|
key: 0,
|
|
478
507
|
class: "mwnf-media__thumbs"
|
|
479
|
-
},
|
|
508
|
+
}, et = [
|
|
480
509
|
"aria-pressed",
|
|
481
510
|
"title",
|
|
482
511
|
"onClick"
|
|
483
|
-
],
|
|
512
|
+
], tt = ["src", "alt"], $ = {
|
|
484
513
|
key: 1,
|
|
485
514
|
class: "mwnf-media__caption"
|
|
486
|
-
},
|
|
515
|
+
}, nt = { key: 0 }, rt = {
|
|
487
516
|
key: 1,
|
|
488
517
|
class: "mwnf-media__credit"
|
|
489
|
-
},
|
|
518
|
+
}, it = ["aria-label"], at = ["aria-label"], ot = ["src", "alt"], st = ["aria-label"], ct = {
|
|
490
519
|
__name: "MediaGallery",
|
|
491
520
|
props: {
|
|
492
521
|
images: {
|
|
@@ -534,10 +563,10 @@ var E = [
|
|
|
534
563
|
src: e.url,
|
|
535
564
|
alt: e.alt ?? "",
|
|
536
565
|
loading: "lazy"
|
|
537
|
-
}, null, 8,
|
|
538
|
-
e.caption ? (f(), i("span",
|
|
539
|
-
e.photographer ? (f(), i("span",
|
|
540
|
-
e.copyright ? (f(), i("span",
|
|
566
|
+
}, null, 8, qe), e.caption || e.photographer || e.copyright ? (f(), i("figcaption", Je, [
|
|
567
|
+
e.caption ? (f(), i("span", Ye, _(e.caption), 1)) : r("", !0),
|
|
568
|
+
e.photographer ? (f(), i("span", Xe, _(v(s)("record.media.photograph")) + ": " + _(e.photographer), 1)) : r("", !0),
|
|
569
|
+
e.copyright ? (f(), i("span", Ze, "© " + _(e.copyright), 1)) : r("", !0)
|
|
541
570
|
])) : r("", !0)]))), 128)) : (f(), i(e, { key: 1 }, [
|
|
542
571
|
a("button", {
|
|
543
572
|
type: "button",
|
|
@@ -547,8 +576,8 @@ var E = [
|
|
|
547
576
|
class: "mwnf-media__image",
|
|
548
577
|
src: l.value.url,
|
|
549
578
|
alt: l.value.alt ?? ""
|
|
550
|
-
}, null, 8,
|
|
551
|
-
n.images.length > 1 ? (f(), i("ul",
|
|
579
|
+
}, null, 8, Qe)]),
|
|
580
|
+
n.images.length > 1 ? (f(), i("ul", $e, [(f(!0), i(e, null, m(n.images, (e, t) => (f(), i("li", { key: e.url ?? t }, [a("button", {
|
|
552
581
|
type: "button",
|
|
553
582
|
class: u(["mwnf-media__thumb", { "mwnf-media__thumb--active": t === c.value }]),
|
|
554
583
|
"aria-pressed": t === c.value ? "true" : "false",
|
|
@@ -558,8 +587,8 @@ var E = [
|
|
|
558
587
|
src: e.url,
|
|
559
588
|
alt: e.alt ?? "",
|
|
560
589
|
loading: "lazy"
|
|
561
|
-
}, null, 8,
|
|
562
|
-
l.value.caption || h.value ? (f(), i("p",
|
|
590
|
+
}, null, 8, tt)], 10, et)]))), 128))])) : r("", !0),
|
|
591
|
+
l.value.caption || h.value ? (f(), i("p", $, [l.value.caption ? (f(), i("span", nt, _(l.value.caption), 1)) : r("", !0), h.value ? (f(), i("span", rt, _(h.value), 1)) : r("", !0)])) : r("", !0),
|
|
563
592
|
g.value ? (f(), i("div", {
|
|
564
593
|
key: 2,
|
|
565
594
|
class: "mwnf-lightbox",
|
|
@@ -574,36 +603,36 @@ var E = [
|
|
|
574
603
|
class: "mwnf-lightbox__close",
|
|
575
604
|
"aria-label": v(s)("core.action.close"),
|
|
576
605
|
onClick: E
|
|
577
|
-
}, "✕", 8,
|
|
606
|
+
}, "✕", 8, it),
|
|
578
607
|
n.images.length > 1 ? (f(), i("button", {
|
|
579
608
|
key: 0,
|
|
580
609
|
type: "button",
|
|
581
610
|
class: "mwnf-lightbox__control mwnf-lightbox__control--previous",
|
|
582
611
|
"aria-label": v(s)("core.pagination.previous"),
|
|
583
612
|
onClick: o[0] ||= S((e) => w(c.value - 1), ["stop"])
|
|
584
|
-
}, "‹", 8,
|
|
613
|
+
}, "‹", 8, at)) : r("", !0),
|
|
585
614
|
a("img", {
|
|
586
615
|
class: "mwnf-lightbox__image",
|
|
587
616
|
src: l.value.url,
|
|
588
617
|
alt: l.value.alt ?? ""
|
|
589
|
-
}, null, 8,
|
|
618
|
+
}, null, 8, ot),
|
|
590
619
|
n.images.length > 1 ? (f(), i("button", {
|
|
591
620
|
key: 1,
|
|
592
621
|
type: "button",
|
|
593
622
|
class: "mwnf-lightbox__control mwnf-lightbox__control--next",
|
|
594
623
|
"aria-label": v(s)("core.pagination.next"),
|
|
595
624
|
onClick: o[1] ||= S((e) => w(c.value + 1), ["stop"])
|
|
596
|
-
}, "›", 8,
|
|
625
|
+
}, "›", 8, st)) : r("", !0)
|
|
597
626
|
])) : r("", !0)
|
|
598
627
|
], 64))], 2)) : r("", !0);
|
|
599
628
|
}
|
|
600
|
-
},
|
|
629
|
+
}, lt = {
|
|
601
630
|
key: 0,
|
|
602
631
|
class: "mwnf-partner-map__title"
|
|
603
|
-
},
|
|
632
|
+
}, ut = ["src", "title"], dt = {
|
|
604
633
|
key: 1,
|
|
605
634
|
class: "mwnf-partner-map__link"
|
|
606
|
-
},
|
|
635
|
+
}, ft = ["href"], pt = {
|
|
607
636
|
__name: "PartnerMap",
|
|
608
637
|
props: {
|
|
609
638
|
latitude: {
|
|
@@ -657,21 +686,21 @@ var E = [
|
|
|
657
686
|
key: 0,
|
|
658
687
|
class: u(["mwnf-partner-map", { "mwnf-partner-map--google": l.value }])
|
|
659
688
|
}, [
|
|
660
|
-
l.value ? r("", !0) : (f(), i("p",
|
|
689
|
+
l.value ? r("", !0) : (f(), i("p", lt, _(t.$t(e.mapTitleEntry)), 1)),
|
|
661
690
|
a("iframe", {
|
|
662
691
|
src: d.value,
|
|
663
692
|
title: p.value,
|
|
664
693
|
loading: "lazy",
|
|
665
694
|
referrerpolicy: "no-referrer",
|
|
666
695
|
class: "mwnf-partner-map__embed"
|
|
667
|
-
}, null, 8,
|
|
668
|
-
l.value ? r("", !0) : (f(), i("p",
|
|
696
|
+
}, null, 8, ut),
|
|
697
|
+
l.value ? r("", !0) : (f(), i("p", dt, [a("a", {
|
|
669
698
|
href: m.value,
|
|
670
699
|
target: "_blank",
|
|
671
700
|
rel: "noopener"
|
|
672
|
-
}, "↗ " + _(t.$t(e.openMapLinkEntry)), 9,
|
|
701
|
+
}, "↗ " + _(t.$t(e.openMapLinkEntry)), 9, ft)]))
|
|
673
702
|
], 2)) : r("", !0);
|
|
674
703
|
}
|
|
675
704
|
};
|
|
676
705
|
//#endregion
|
|
677
|
-
export {
|
|
706
|
+
export { ze as a, ne as c, D as d, Ue as i, X as l, ct as n, Te as o, Ke as r, xe as s, pt as t, I as u };
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, i as r, n as i, o as ee, r as te, s as ne } from "./PartnerMap-CXbA_EFo.js";
|
|
2
|
+
import { t as re } from "./GlossaryPopover-B7E6BsjS.js";
|
|
3
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createSlots as ie, createTextVNode as ae, createVNode as d, guardReactiveProps as f, normalizeClass as oe, normalizeProps as p, openBlock as m, ref as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, useSlots as se, watch as b, withCtx as x } from "vue";
|
|
4
|
+
import { useI18n as S } from "@museumwnf/viewer-core/i18n";
|
|
5
|
+
import { NotFoundView as ce, byId as le, citation as ue, creditLine as de, entityRef as fe, languageLabels as pe, loadEntities as me, pictureCredits as he, picturesInLanguage as ge, renderBlock as _e, renderInline as C, renderPlain as w, sheetRows as T, 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
|
+
//#region src/content/ShortDescription.vue
|
|
8
|
+
var Ee = ["dir"], E = ["aria-expanded"], D = ["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 = h(!1);
|
|
22
|
+
return b(() => t.html, () => {
|
|
23
|
+
r.value = !1;
|
|
24
|
+
}), (t, i) => (m(), l("div", {
|
|
25
|
+
class: "mwnf-sheet__short",
|
|
26
|
+
dir: e.dir
|
|
27
|
+
}, [u("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
|
+
}, v(r.value ? y(n)("record.action.hideShortDescription") : y(n)("record.action.viewShortDescription")), 9, E), r.value ? (m(), l("div", {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "mwnf-sheet__block",
|
|
35
|
+
innerHTML: e.html
|
|
36
|
+
}, null, 8, D)) : c("", !0)], 8, Ee));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/views/pictureLimit.js
|
|
41
|
+
function O(e, t, n) {
|
|
42
|
+
let r = typeof t == "function" ? t(n) : t;
|
|
43
|
+
return Number.isInteger(r) && r > 0 ? e.slice(0, r) : e;
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
//#region src/views/RecordView.vue
|
|
47
|
+
var Oe = ["dir", "innerHTML"], ke = { class: "mwnf-record__body" }, Ae = { class: "mwnf-record__main" }, je = {
|
|
48
|
+
key: 1,
|
|
49
|
+
class: "mwnf-record__status"
|
|
50
|
+
}, Me = {
|
|
51
|
+
key: 0,
|
|
52
|
+
class: "mwnf-record__aside"
|
|
53
|
+
}, Ne = {
|
|
54
|
+
key: 2,
|
|
55
|
+
class: "mwnf-record__status"
|
|
56
|
+
}, k = {
|
|
57
|
+
__name: "RecordView",
|
|
58
|
+
props: {
|
|
59
|
+
spec: {
|
|
60
|
+
type: Object,
|
|
61
|
+
required: !0
|
|
62
|
+
},
|
|
63
|
+
id: {
|
|
64
|
+
type: String,
|
|
65
|
+
required: !0
|
|
66
|
+
},
|
|
67
|
+
entity: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: ""
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
setup(h) {
|
|
73
|
+
let b = h, { t: S, locale: Ee } = xe(), E = ye(), D = Se(), k = se(), Pe = Te(), A = b.spec.entity ?? b.entity, j = o(() => b.spec), Fe = fe(A), Ie = le(A), M = o(() => Ie.value.get(b.id) ?? null), Le = o(() => Fe.value !== null), N = b.spec.creditPeople ? b.spec.creditPeople.entity ?? "authors" : null;
|
|
74
|
+
N && me([N]).catch(() => {});
|
|
75
|
+
let P = N ? le(N) : null, { language: F, languages: Re, dir: I, select: L, text: R, ready: z, terms: ze, glossary: B, attribution: V } = Ce(M, {
|
|
76
|
+
entity: A,
|
|
77
|
+
translations: [...b.spec.translations ?? [], ...N ? [N] : []],
|
|
78
|
+
attribution: b.spec.attribution ?? []
|
|
79
|
+
}), H = o(() => pe(Re.value)), { active: U, onClick: W, close: Be } = be(ze), Ve = o(() => U.value ? _e(U.value.definition, { breaks: !0 }) : ""), G = (e, t) => E.tr(e, t, F.value, "en"), K = (e) => E.translations(e, F.value), q = o(() => ({
|
|
80
|
+
record: M.value,
|
|
81
|
+
text: R.value,
|
|
82
|
+
language: F.value,
|
|
83
|
+
languages: H.value,
|
|
84
|
+
select: L,
|
|
85
|
+
dir: I.value,
|
|
86
|
+
glossary: B.value,
|
|
87
|
+
ready: z.value,
|
|
88
|
+
attribution: V.value,
|
|
89
|
+
t: S,
|
|
90
|
+
tr: G,
|
|
91
|
+
translations: K
|
|
92
|
+
}));
|
|
93
|
+
function He(e) {
|
|
94
|
+
return ((typeof e == "function" ? e(q.value) : e) ?? []).map((e) => ({
|
|
95
|
+
...e,
|
|
96
|
+
label: e.label ? S(e.label) : ""
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
let Ue = o(() => M.value ? T(He(j.value.fields), q.value) : []), We = o(() => M.value ? T(He(j.value.sections).map((e) => ({
|
|
100
|
+
render: "block",
|
|
101
|
+
...e
|
|
102
|
+
})), q.value) : []), J = o(() => j.value.shortDescriptionAfter ?? "description"), Ge = o(() => !Ue.value.some((e) => e.key === J.value) && We.value.some((e) => e.key === J.value)), Ke = o(() => j.value.shortDescription === !1 ? "" : j.value.shortDescription ?? "short_description"), Y = o(() => {
|
|
103
|
+
let e = Ke.value ? R.value[Ke.value] : "";
|
|
104
|
+
return e ? { html: _e(String(e), {
|
|
105
|
+
breaks: !0,
|
|
106
|
+
glossary: B.value
|
|
107
|
+
}) } : null;
|
|
108
|
+
}), qe = o(() => {
|
|
109
|
+
if (!M.value) return "";
|
|
110
|
+
if (j.value.title) return j.value.title(q.value);
|
|
111
|
+
let e = R.value.name ?? M.value.internal_name ?? M.value.id;
|
|
112
|
+
return C(String(e), { glossary: B.value });
|
|
113
|
+
}), Je = o(() => M.value ? O(Ye(), j.value.pictureLimit, q.value) : []);
|
|
114
|
+
function Ye() {
|
|
115
|
+
if (j.value.media) return j.value.media(M.value, q.value);
|
|
116
|
+
let e = w(String(R.value.name ?? M.value.internal_name ?? ""));
|
|
117
|
+
return ge(M.value.images, F.value).map((t) => ({
|
|
118
|
+
url: t.url,
|
|
119
|
+
alt: t.captions?.[F.value] ?? e,
|
|
120
|
+
caption: t.captions?.[F.value] ?? "",
|
|
121
|
+
...he(t, F.value)
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
let Xe = [
|
|
125
|
+
{
|
|
126
|
+
field: "author",
|
|
127
|
+
label: "sheet.field.preparedBy"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
field: "copy_editor",
|
|
131
|
+
label: "sheet.field.copyeditedBy"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
field: "translator",
|
|
135
|
+
label: "sheet.field.translationBy"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
field: "translation_copy_editor",
|
|
139
|
+
label: "sheet.field.translationCopyeditedBy"
|
|
140
|
+
}
|
|
141
|
+
];
|
|
142
|
+
function Ze(e) {
|
|
143
|
+
let t = j.value.creditNames ? R.value.credit_names?.[e] : null;
|
|
144
|
+
return t?.length ? de(t) : R.value[e] ?? V.value[e] ?? "";
|
|
145
|
+
}
|
|
146
|
+
function Qe(e) {
|
|
147
|
+
let t = P ? R.value.credit_ids?.[e] : null;
|
|
148
|
+
if (!t?.length) return null;
|
|
149
|
+
let n = K(N), r = t.map((e) => {
|
|
150
|
+
let t = P.value.get(e);
|
|
151
|
+
if (!t) return null;
|
|
152
|
+
let r = t.name ?? "";
|
|
153
|
+
return {
|
|
154
|
+
name: F.value === "ar" && t.originalname ? t.originalname : r,
|
|
155
|
+
heading: [t.firstname, t.lastname].filter(Boolean).join(" ") || r,
|
|
156
|
+
biography: n?.[e]?.curriculum ?? ""
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
return r.every(Boolean) ? r : null;
|
|
160
|
+
}
|
|
161
|
+
let $e = o(() => (j.value.credits ?? Xe).map(({ field: e, label: t }) => ({
|
|
162
|
+
label: S(t),
|
|
163
|
+
value: Ze(e),
|
|
164
|
+
people: Qe(e)
|
|
165
|
+
})).filter((e) => e.value)), et = o(() => String(M.value?.[j.value.workingNumber ?? "mwnf_reference"] ?? ""));
|
|
166
|
+
function X(e) {
|
|
167
|
+
if (e?.permalink !== !1) return typeof e?.permalink == "string" ? e.permalink : ve(Pe) ?? void 0;
|
|
168
|
+
}
|
|
169
|
+
let tt = o(() => {
|
|
170
|
+
let e = j.value.citation;
|
|
171
|
+
return !M.value || typeof e?.format != "function" ? "" : e.format(q.value, {
|
|
172
|
+
permalink: X(e),
|
|
173
|
+
year: (/* @__PURE__ */ new Date()).getFullYear()
|
|
174
|
+
});
|
|
175
|
+
}), nt = o(() => {
|
|
176
|
+
let e = j.value.citation;
|
|
177
|
+
if (!M.value || e === !1 || typeof e?.format == "function") return "";
|
|
178
|
+
let t = typeof e?.project == "function" ? null : e?.project ?? M.value.project_id, n = typeof e?.project == "function" ? e.project(M.value, q.value) : D.label(t);
|
|
179
|
+
return ue({
|
|
180
|
+
author: Ze("author") || void 0,
|
|
181
|
+
name: R.value.name ?? M.value.internal_name ?? "",
|
|
182
|
+
project: n,
|
|
183
|
+
permalink: X(e),
|
|
184
|
+
inWord: S("record.citation.in")
|
|
185
|
+
});
|
|
186
|
+
}), Z = we(M, {
|
|
187
|
+
entity: A,
|
|
188
|
+
language: F
|
|
189
|
+
}), Q = o(() => j.value.related === !1 ? null : j.value.related ?? {}), $ = o(() => {
|
|
190
|
+
if (!Q.value) return [];
|
|
191
|
+
let e = Q.value.record ?? rt;
|
|
192
|
+
return Z.value.inPackage.map((t) => e(t, q.value));
|
|
193
|
+
});
|
|
194
|
+
function rt({ record: e, justification: t }) {
|
|
195
|
+
let n = G(A, e.id).name ?? e.internal_name ?? e.id;
|
|
196
|
+
return {
|
|
197
|
+
id: e.id,
|
|
198
|
+
image: e.images?.[0]?.url ?? "",
|
|
199
|
+
imageAlt: w(String(n)),
|
|
200
|
+
name: C(String(n)),
|
|
201
|
+
meta: t ? [t] : [],
|
|
202
|
+
badge: e.type ?? "",
|
|
203
|
+
to: {
|
|
204
|
+
name: j.value.route ?? (b.entity ? `${b.entity}-detail` : "item"),
|
|
205
|
+
params: { id: e.id }
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
let it = /* @__PURE__ */ new Set([
|
|
210
|
+
"header",
|
|
211
|
+
"before-sheet",
|
|
212
|
+
"after-sheet",
|
|
213
|
+
"aside",
|
|
214
|
+
"source",
|
|
215
|
+
"related",
|
|
216
|
+
"after",
|
|
217
|
+
"default"
|
|
218
|
+
]), at = o(() => Object.keys(k).filter((e) => !it.has(e)));
|
|
219
|
+
return (o, h) => Le.value && !M.value ? (m(), s(y(ce), { key: 0 })) : M.value ? (m(), l("article", {
|
|
220
|
+
key: 1,
|
|
221
|
+
class: oe(["mwnf-record", { "mwnf-record--spaced": j.value.spaced }]),
|
|
222
|
+
onClick: h[0] ||= (...e) => y(W) && y(W)(...e)
|
|
223
|
+
}, [
|
|
224
|
+
_(o.$slots, "header", p(f(q.value)), () => [
|
|
225
|
+
j.value.back ? (m(), s(n, {
|
|
226
|
+
key: 0,
|
|
227
|
+
class: "mwnf-record__back",
|
|
228
|
+
to: j.value.back.to,
|
|
229
|
+
href: j.value.back.href
|
|
230
|
+
}, {
|
|
231
|
+
default: x(() => [ae("← " + v(y(S)(j.value.back.label)), 1)]),
|
|
232
|
+
_: 1
|
|
233
|
+
}, 8, ["to", "href"])) : c("", !0),
|
|
234
|
+
d(t, {
|
|
235
|
+
languages: H.value,
|
|
236
|
+
language: y(F),
|
|
237
|
+
onSelect: y(L)
|
|
238
|
+
}, null, 8, [
|
|
239
|
+
"languages",
|
|
240
|
+
"language",
|
|
241
|
+
"onSelect"
|
|
242
|
+
]),
|
|
243
|
+
u("h1", {
|
|
244
|
+
class: "mwnf-record__title",
|
|
245
|
+
dir: y(I) || void 0,
|
|
246
|
+
innerHTML: qe.value
|
|
247
|
+
}, null, 8, Oe)
|
|
248
|
+
]),
|
|
249
|
+
u("div", ke, [u("div", Ae, [
|
|
250
|
+
Je.value.length ? (m(), s(i, {
|
|
251
|
+
key: 0,
|
|
252
|
+
images: Je.value,
|
|
253
|
+
variant: j.value.mediaVariant ?? ""
|
|
254
|
+
}, null, 8, ["images", "variant"])) : c("", !0),
|
|
255
|
+
y(z) ? c("", !0) : (m(), l("p", je, v(y(S)("core.status.loading")), 1)),
|
|
256
|
+
_(o.$slots, "before-sheet", p(f(q.value))),
|
|
257
|
+
d(ne, {
|
|
258
|
+
rows: Ue.value,
|
|
259
|
+
layout: j.value.layout ?? "table",
|
|
260
|
+
dir: y(I),
|
|
261
|
+
"short-description": Y.value,
|
|
262
|
+
"short-description-after": J.value
|
|
263
|
+
}, ie({ _: 2 }, [g(at.value, (e) => ({
|
|
264
|
+
name: e,
|
|
265
|
+
fn: x((t) => [_(o.$slots, e, p(f({
|
|
266
|
+
...t,
|
|
267
|
+
...q.value
|
|
268
|
+
})))])
|
|
269
|
+
}))]), 1032, [
|
|
270
|
+
"rows",
|
|
271
|
+
"layout",
|
|
272
|
+
"dir",
|
|
273
|
+
"short-description",
|
|
274
|
+
"short-description-after"
|
|
275
|
+
]),
|
|
276
|
+
(m(!0), l(a, null, g(We.value, (e) => (m(), l(a, { key: e.key }, [d(ee, {
|
|
277
|
+
heading: e.label,
|
|
278
|
+
html: e.html,
|
|
279
|
+
dir: y(I)
|
|
280
|
+
}, null, 8, [
|
|
281
|
+
"heading",
|
|
282
|
+
"html",
|
|
283
|
+
"dir"
|
|
284
|
+
]), Y.value && Ge.value && e.key === J.value ? (m(), s(De, {
|
|
285
|
+
key: 0,
|
|
286
|
+
html: Y.value.html,
|
|
287
|
+
dir: y(I)
|
|
288
|
+
}, null, 8, ["html", "dir"])) : c("", !0)], 64))), 128)),
|
|
289
|
+
_(o.$slots, "after-sheet", p(f(q.value))),
|
|
290
|
+
d(e, {
|
|
291
|
+
credits: $e.value,
|
|
292
|
+
"working-number": et.value,
|
|
293
|
+
"working-number-label": y(S)(j.value.workingNumberLabel ?? "sheet.field.workingNumber"),
|
|
294
|
+
citation: nt.value,
|
|
295
|
+
"citation-html": tt.value,
|
|
296
|
+
"citation-heading": j.value.citation?.heading ? y(S)(j.value.citation.heading) : ""
|
|
297
|
+
}, null, 8, [
|
|
298
|
+
"credits",
|
|
299
|
+
"working-number",
|
|
300
|
+
"working-number-label",
|
|
301
|
+
"citation",
|
|
302
|
+
"citation-html",
|
|
303
|
+
"citation-heading"
|
|
304
|
+
]),
|
|
305
|
+
_(o.$slots, "source", p(f(q.value)), () => [d(r)]),
|
|
306
|
+
_(o.$slots, "related", p(f({
|
|
307
|
+
...q.value,
|
|
308
|
+
records: $.value,
|
|
309
|
+
outside: y(Z).outside
|
|
310
|
+
})), () => [Q.value ? (m(), s(te, {
|
|
311
|
+
key: 0,
|
|
312
|
+
heading: y(S)(Q.value.heading ?? "record.related.items"),
|
|
313
|
+
records: $.value,
|
|
314
|
+
variant: Q.value.variant ?? "list",
|
|
315
|
+
"action-label": Q.value.actionLabel ? y(S)(Q.value.actionLabel) : ""
|
|
316
|
+
}, null, 8, [
|
|
317
|
+
"heading",
|
|
318
|
+
"records",
|
|
319
|
+
"variant",
|
|
320
|
+
"action-label"
|
|
321
|
+
])) : c("", !0)])
|
|
322
|
+
]), o.$slots.aside ? (m(), l("aside", Me, [_(o.$slots, "aside", p(f({
|
|
323
|
+
...q.value,
|
|
324
|
+
records: $.value,
|
|
325
|
+
outside: y(Z).outside
|
|
326
|
+
})))])) : c("", !0)]),
|
|
327
|
+
_(o.$slots, "after", p(f(q.value))),
|
|
328
|
+
d(re, {
|
|
329
|
+
term: y(U),
|
|
330
|
+
html: Ve.value,
|
|
331
|
+
dir: y(I),
|
|
332
|
+
onClose: y(Be)
|
|
333
|
+
}, null, 8, [
|
|
334
|
+
"term",
|
|
335
|
+
"html",
|
|
336
|
+
"dir",
|
|
337
|
+
"onClose"
|
|
338
|
+
])
|
|
339
|
+
], 2)) : (m(), l("p", Ne, v(y(S)("core.status.loading")), 1));
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
//#endregion
|
|
343
|
+
export { O as n, k as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, i as t } from "./PartnerMap-
|
|
2
|
-
import { o as n } from "./TimelineResultsView-
|
|
1
|
+
import { d as e, i as t } from "./PartnerMap-CXbA_EFo.js";
|
|
2
|
+
import { o as n } from "./TimelineResultsView-BHJm5lkm.js";
|
|
3
3
|
import { A as r, F as i, h as a, m as o } from "./data-BINc9QjV.js";
|
|
4
4
|
import { n as s, r as c, t as l } from "./themeSpecs-DP9xWiVJ.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-CXbA_EFo.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-CXbA_EFo.js";
|
|
2
|
+
import { a, i as o, n as s, o as c, r as l, t as u } from "./TimelineEventList-hN-ewFEl.js";
|
|
3
3
|
import { t as d } from "./GlossaryPopover-B7E6BsjS.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 I, withCtx as L, withDirectives as R } from "vue";
|
|
5
5
|
import { I18nText as z, NotFoundView as B, byId as V, centuryPresets as H, dateRange as re, entityRef as ie, eventDateLabel as U, glossaryEntries as ae, glossaryTermsForText as W, groupByCountry as G, md as K, mdInline as oe, partnerHierarchy as q, partnerView as J, renderBlock as se, renderInline as Y, renderPlain as X, sortChronological as Z, useCollectionTree as ce, useDataPackage as Q, useFacets as le, useGlossaryPopup as ue, 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-B7lsvwkg.js";
|
|
2
|
+
import { n as e, o as t } from "./PartnerMap-CXbA_EFo.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";
|