@museumwnf/viewer-layout 3.2.2 → 3.4.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/README.md +167 -12
- package/dist/ItemDetailView-I__hm63H.js +298 -0
- package/dist/SiteShell-4vV2jIzf.js +192 -0
- package/dist/{Theme-Dd8G1RA3.js → Theme-B5J0XRe1.js} +3 -3
- package/dist/{TimelineResultsView-5Cy-OkZY.js → TimelineResultsView-ChkBn27W.js} +489 -485
- package/dist/chrome-DPuPeWzV.js +1141 -0
- package/dist/components.js +1 -1
- package/dist/data-CJlLA-Mf.js +38 -0
- package/dist/data-DTbAYdr2.js +40 -0
- package/dist/dxa.js +619 -502
- package/dist/index.js +6 -6
- package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +1 -1
- package/package.json +8 -2
- package/src/dxa/testing.js +857 -0
- package/src/styles/dxa-exhibition.css +389 -0
- package/src/styles/dxa-gallery.css +589 -0
- package/src/tokens.reference.css +25 -7
- package/dist/ItemDetailView-C-X-LgJU.js +0 -284
- package/dist/PageShell-CbJ9lQoQ.js +0 -961
- package/dist/SiteShell-C3OgZO8p.js +0 -154
- package/dist/data-BfyYB8ff.js +0 -33
- package/dist/data-G8uXeEfE.js +0 -35
package/src/tokens.reference.css
CHANGED
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
/* --mwnf-weight-heading: 700; Weight for titles */
|
|
16
16
|
/* --mwnf-color-text: #1c1c1c; Default text color */
|
|
17
17
|
/* --mwnf-color-background: #ffffff; Page background */
|
|
18
|
-
/* --mwnf-color-accent: #1c1c1c;
|
|
18
|
+
/* --mwnf-color-accent: #1c1c1c; Surfaces and accents (menu, bands, active states); never a text colour */
|
|
19
|
+
/* --mwnf-link-text: #0000ff; Every link; a component with its own link token falls back to this */
|
|
20
|
+
/* --mwnf-link-hover-text: var(--mwnf-link-text); A link's colour on hover, where it changes */
|
|
19
21
|
/* --mwnf-color-muted: #555555; Secondary text */
|
|
20
22
|
/* --mwnf-color-border: #dddddd; Default border color */
|
|
21
23
|
/* --mwnf-content-width: 64rem; Max content width (all sections) */
|
|
@@ -55,6 +57,7 @@
|
|
|
55
57
|
/* --mwnf-header-button-active-background: #1c1c1c; The active language button */
|
|
56
58
|
/* --mwnf-header-button-active-text: #ffffff; Its text color */
|
|
57
59
|
/* --mwnf-header-language-gap: 0.25rem; Gap between language buttons */
|
|
60
|
+
/* --mwnf-header-brand-logo-height: 3rem; The logo image in the brand cell */
|
|
58
61
|
|
|
59
62
|
/* ---------- AppBanner ---------- */
|
|
60
63
|
/* --mwnf-banner-padding: 0; Vertical padding */
|
|
@@ -156,6 +159,10 @@
|
|
|
156
159
|
/* --mwnf-footer-link-color: inherit; Footer link color */
|
|
157
160
|
/* --mwnf-footer-attribution-gap: 0.25rem; Gap before the rights-holder label */
|
|
158
161
|
/* --mwnf-footer-terms-color: inherit; Terms-of-use link color */
|
|
162
|
+
/* --mwnf-footer-social-gap: 1rem; Gap between the social-network icons */
|
|
163
|
+
/* --mwnf-footer-social-offset: 1.5rem; Space before them */
|
|
164
|
+
/* --mwnf-footer-social-color: inherit; Their colour (else the footer link colour) */
|
|
165
|
+
/* --mwnf-footer-social-size: 1rem; Their height */
|
|
159
166
|
|
|
160
167
|
/* ---------- Content: SectionCards ---------- */
|
|
161
168
|
/* --mwnf-card-columns: 3; Cards per row */
|
|
@@ -191,6 +198,7 @@
|
|
|
191
198
|
/* --mwnf-card-accordion-child-gap: 0.5rem; Accordion variant gap between subsections */
|
|
192
199
|
/* --mwnf-card-accordion-child-padding: 0.5rem 0; Accordion variant subsection padding */
|
|
193
200
|
/* --mwnf-card-accordion-child-border: 1px solid #dddddd; Border above accordion subsections */
|
|
201
|
+
/* --mwnf-card-accordion-child-hover-color: var(--mwnf-link-hover-text); Accordion variant subsection link on hover */
|
|
194
202
|
|
|
195
203
|
/* ---------- Content: FeaturedRecord ---------- */
|
|
196
204
|
/* --mwnf-featured-heading-size: 1rem; Heading over the spotlight */
|
|
@@ -443,7 +451,7 @@
|
|
|
443
451
|
/* --mwnf-prose-paragraph-gap: 1rem; Gap between paragraphs */
|
|
444
452
|
/* --mwnf-prose-list-indent: 1.5em; Left indent of lists */
|
|
445
453
|
/* --mwnf-prose-list-item-gap: 0.5rem; Gap between list items */
|
|
446
|
-
/* --mwnf-prose-link-hover-color: #555555;
|
|
454
|
+
/* --mwnf-prose-link-hover-color: var(--mwnf-link-hover-text, #555555); Link hover color */
|
|
447
455
|
/* --mwnf-link-list-gap: 1.5rem; Gap between sections */
|
|
448
456
|
/* --mwnf-link-list-back-size: 0.8125rem; Back link size */
|
|
449
457
|
/* --mwnf-link-list-title-size: 1.5rem; Page title size */
|
|
@@ -454,6 +462,7 @@
|
|
|
454
462
|
/* --mwnf-link-list-heading-color: inherit; Group heading color */
|
|
455
463
|
/* --mwnf-link-list-item-gap: 0.5rem; Gap between links */
|
|
456
464
|
/* --mwnf-link-list-note-gap: 0.25rem; Gap between link and note */
|
|
465
|
+
/* --mwnf-link-list-link-color: var(--mwnf-link-text); Link color */
|
|
457
466
|
/* --mwnf-link-list-link-weight: 500; Link font weight */
|
|
458
467
|
/* --mwnf-link-list-note-size: 0.8125rem; Link note size */
|
|
459
468
|
/* --mwnf-link-list-note-color: #555555; Link note color */
|
|
@@ -498,6 +507,7 @@
|
|
|
498
507
|
/* --mwnf-partner-list-group-title-color: inherit; Its color */
|
|
499
508
|
/* --mwnf-partner-list-group-marker-closed: '▸ '; The accordion's own disclosure triangle, collapsed */
|
|
500
509
|
/* --mwnf-partner-list-group-marker-open: '▾ '; Its expanded form */
|
|
510
|
+
/* --mwnf-partner-list-group-marker-color: inherit; The triangle's color (the heading's own by default) */
|
|
501
511
|
/* --mwnf-partner-list-tier-gap: 0.5rem; Space above a tier, and above the associated column */
|
|
502
512
|
/* --mwnf-partner-list-tier-border: 1px dashed #dddddd; Line above the associated column */
|
|
503
513
|
/* --mwnf-partner-list-tier-label-size: 0.75rem; "Associated Partners" size */
|
|
@@ -505,8 +515,6 @@
|
|
|
505
515
|
/* --mwnf-partner-list-row-inline-gap: 0.5rem; Gap between a row's own logo, name and count */
|
|
506
516
|
/* --mwnf-partner-list-logo-width: 6rem; Row logo max width */
|
|
507
517
|
/* --mwnf-partner-list-logo-height: 3rem; Row logo max height */
|
|
508
|
-
/* --mwnf-partner-list-name-weight: 500; Row name font weight */
|
|
509
|
-
/* --mwnf-partner-list-meta-size: 0.8125rem; The item-count line's size */
|
|
510
518
|
/* --mwnf-partner-list-children-indent: 1.5rem; Indent of a nested (`nested: true`) associated row */
|
|
511
519
|
/* --mwnf-partner-list-empty-padding: 1rem; Empty state padding */
|
|
512
520
|
/* --mwnf-partner-list-empty-size: 0.875rem; Empty state size */
|
|
@@ -523,6 +531,9 @@
|
|
|
523
531
|
/* --mwnf-view-back-size: 0.8125rem; The record page's back link, the essay's panel link and nav row */
|
|
524
532
|
/* --mwnf-view-back-color: inherit; Its color */
|
|
525
533
|
/* --mwnf-view-status-size: 0.75rem; "Loading…" on the record page and the essay */
|
|
534
|
+
/* --mwnf-catalogue-boxed-gap: 1rem; `boxed` results (framed by the panel's tokens): the gap under the filters */
|
|
535
|
+
/* --mwnf-catalogue-boxed-year-width: 6.25rem; `boxed` results: a year field's width */
|
|
536
|
+
/* --mwnf-record-spaced-gap: 1.25rem; `spaced` record: the gap under the pictures and the sheet */
|
|
526
537
|
|
|
527
538
|
/* ---------- Content: EssayView ---------- */
|
|
528
539
|
/* --mwnf-view-essay-breadcrumb-gap: 0.375rem; Gap between breadcrumb parts */
|
|
@@ -589,7 +600,7 @@
|
|
|
589
600
|
/* ---------- Content: PartnerPanel ---------- */
|
|
590
601
|
/* --mwnf-partner-name-color: inherit; Name, section and contact headings */
|
|
591
602
|
/* --mwnf-partner-name-weight: 700; Name weight (page, heading) */
|
|
592
|
-
/* --mwnf-partner-link-color: var(--mwnf-
|
|
603
|
+
/* --mwnf-partner-link-color: var(--mwnf-link-text); Links: name, contact, homepage, actions (not one drawn as a button) */
|
|
593
604
|
/* --mwnf-partner-muted-color: var(--mwnf-color-muted); Location, count, dividers */
|
|
594
605
|
/* --mwnf-partner-divider-gap: 0.375rem; Space around a | divider */
|
|
595
606
|
/* --mwnf-partner-logo-width: 7.5rem; Line/summary logo, max width */
|
|
@@ -681,6 +692,7 @@
|
|
|
681
692
|
/* --mwnf-back-link-button-padding: 0.375rem 0.75rem; Back link button padding */
|
|
682
693
|
/* --mwnf-back-link-size: 0.875rem; Back link text size */
|
|
683
694
|
/* --mwnf-back-link-line-height: 1; Back link line height */
|
|
695
|
+
/* --mwnf-back-link-color: var(--mwnf-link-text); Back link color */
|
|
684
696
|
|
|
685
697
|
/* ---------- Content: SearchFormView ---------- */
|
|
686
698
|
/* --mwnf-search-form-row-gap: 0.5rem; Gap between a row's own parts, and between facet columns */
|
|
@@ -782,13 +794,19 @@
|
|
|
782
794
|
/* --mwnf-loader-text: #1c1c1c; Loader text color */
|
|
783
795
|
/* --mwnf-loader-size: 0.875rem; Loader text size */
|
|
784
796
|
|
|
785
|
-
/* --mwnf-link-text: #0000ff; Link text color */
|
|
786
797
|
|
|
787
798
|
/* ---------- DXA family pages (src/dxa/) ---------- */
|
|
788
799
|
/* --mwnf-dxa-heading-color: #1c1c1c; Partner name / profile heading color */
|
|
789
800
|
/* --mwnf-dxa-band-background: #f0f0f0; Language switcher / tab strip / timeline-link box background */
|
|
790
801
|
/* --mwnf-dxa-item-background: #ffffff; Item page ground (white on a gallery's tinted page) */
|
|
791
|
-
/* --mwnf-dxa-item-link: var(--mwnf-
|
|
802
|
+
/* --mwnf-dxa-item-link: var(--mwnf-link-text); Item sheet value links */
|
|
803
|
+
/* --mwnf-dxa-item-padding: 3.125rem 1.25rem; Item page: the photo and sheet columns' side padding */
|
|
804
|
+
/* --mwnf-dxa-related-width: 25%; Item page: the Related Content sidebar's width */
|
|
805
|
+
/* --mwnf-dxa-related-background: #f0f0f0; Its background */
|
|
806
|
+
/* --mwnf-dxa-related-text: inherit; Its text and links */
|
|
807
|
+
/* --mwnf-dxa-related-heading-color: inherit; Its underlined headings */
|
|
808
|
+
/* --mwnf-dxa-glossary-image: none; The glossary entry header's picture (set by ItemDetailView from the site's world.png) */
|
|
809
|
+
/* --mwnf-dxa-popup-image-width: 13.25rem; An exhibition popup notice's pictures: their widest (legacy sized them 191 to 211px) */
|
|
792
810
|
/* --mwnf-dxa-theme-background: #ffffff; Exhibition theme pages: the ground (legacy's secondary colour) */
|
|
793
811
|
/* --mwnf-dxa-theme-text: #000000; Their text and tour links (secondary text colour) */
|
|
794
812
|
/* --mwnf-dxa-theme-contrast: #64bfd9; The heading band and link hover (contrast colour) */
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t } from "./TimelineEventList-COjkXEzS.js";
|
|
2
|
-
import { i as n, n as r, o as i, r as a, t as o } from "./OnDisplayIn-Dv8i7uvH.js";
|
|
3
|
-
import { s } from "./TimelineResultsView-5Cy-OkZY.js";
|
|
4
|
-
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as ee, createTextVNode as m, createVNode as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, openBlock as y, renderList as b, renderSlot as x, toDisplayString as S, unref as C, useSlots as te, withCtx as w } from "vue";
|
|
5
|
-
import { NotFoundView as ne, byId as T, loadEntities as re, mdInline as E, mdStrip as ie, mwnfLinks as D, partnerView as ae, useDataPackage as oe, useI18n as se, useProjects as ce } from "@museumwnf/viewer-core";
|
|
6
|
-
//#region src/dxa/ItemDetailView.vue
|
|
7
|
-
var le = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "mwnf-sheet-source"
|
|
10
|
-
}, ue = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "mwnf-sheet-source__line"
|
|
13
|
-
}, O = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "mwnf-sheet-source__uid"
|
|
16
|
-
}, k = {
|
|
17
|
-
key: 2,
|
|
18
|
-
class: "mwnf-sheet-source__collection"
|
|
19
|
-
}, A = ["href"], j = {
|
|
20
|
-
key: 1,
|
|
21
|
-
class: "mwnf-sheet-notice"
|
|
22
|
-
}, M = {
|
|
23
|
-
key: "museum",
|
|
24
|
-
class: "mwnf-sheet-museum"
|
|
25
|
-
}, N = ["innerHTML"], P = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "mwnf-sheet-related"
|
|
28
|
-
}, F = {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
|
|
31
|
-
}, I = {
|
|
32
|
-
key: 1,
|
|
33
|
-
class: "mwnf-sheet-related__description"
|
|
34
|
-
}, L = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "mwnf-sheet-related__references"
|
|
37
|
-
}, R = { key: 2 }, z = {
|
|
38
|
-
key: 3,
|
|
39
|
-
class: "mwnf-sheet-related__unresolved"
|
|
40
|
-
}, B = {
|
|
41
|
-
key: 2,
|
|
42
|
-
class: "mwnf-sheet-related__line"
|
|
43
|
-
}, V = ["href"], H = { key: 6 }, U = { class: "mwnf-sheet-related__heading" }, de = { key: 7 }, fe = { class: "mwnf-sheet-related__heading" }, pe = { class: "mwnf-sheet-related__line" }, me = ["href"], W = { key: 8 }, he = { class: "mwnf-sheet-related__heading" }, ge = { class: "mwnf-sheet-related__line" }, _e = ["href"], ve = { key: 9 }, ye = { class: "mwnf-sheet-related__heading" }, G = {
|
|
44
|
-
__name: "ItemDetailView",
|
|
45
|
-
props: {
|
|
46
|
-
spec: {
|
|
47
|
-
type: Object,
|
|
48
|
-
required: !0
|
|
49
|
-
},
|
|
50
|
-
id: {
|
|
51
|
-
type: String,
|
|
52
|
-
required: !0
|
|
53
|
-
},
|
|
54
|
-
entity: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
dataGetter: {
|
|
59
|
-
type: Function,
|
|
60
|
-
default: null
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
setup(G) {
|
|
64
|
-
let K = G, be = te(), xe = /* @__PURE__ */ new Set([
|
|
65
|
-
"before-sheet",
|
|
66
|
-
"museum",
|
|
67
|
-
"related"
|
|
68
|
-
]), Se = l(() => Object.keys(be).filter((e) => !xe.has(e))), Ce = l(() => !K.dataGetter || K.dataGetter(K.id) != null), { t: q } = se(), J = l(() => K.spec), Y = ce(), X = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), we = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(X), Te = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(X), Z = (e) => Y.links(e.project_id)?.artisticIntroductionUrl ?? null, Q = (e) => Y.links(e.project_id)?.relatedDatabaseUrl ?? null;
|
|
69
|
-
function Ee(e, t) {
|
|
70
|
-
if (!e) return null;
|
|
71
|
-
let n = J.value.sourceDatabase === !1 ? null : J.value.sourceDatabase ?? null, r = null;
|
|
72
|
-
if (n) {
|
|
73
|
-
let i = n.chipClass ? n.chipClass(e, t) : null, a = Y.label(e.project_id);
|
|
74
|
-
(i || a) && (r = {
|
|
75
|
-
chipClass: i,
|
|
76
|
-
name: a,
|
|
77
|
-
label: q(n.label ?? "record.sheet.sourceDatabase")
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
let i = n && n.addToCollection !== !1 ? q(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = n ? e.backward_compatibility ?? "" : "", o = J.value.notice === !1 ? null : J.value.notice ?? null, s = o && o.show(e, t) ? q(o.label) : null;
|
|
81
|
-
return {
|
|
82
|
-
source: r,
|
|
83
|
-
addToCollectionLabel: i,
|
|
84
|
-
notice: s,
|
|
85
|
-
backwardCompatibility: a
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
let $ = oe(), De = T("partners"), Oe = T("countries");
|
|
89
|
-
re(["partners", "countries"]), $.loadTranslations("countries", "en");
|
|
90
|
-
function ke(e, t) {
|
|
91
|
-
let n = $.tr("countries", e, t, "en");
|
|
92
|
-
return ie(n.name ?? Oe.value?.get(e)?.internal_name ?? "");
|
|
93
|
-
}
|
|
94
|
-
function Ae(e) {
|
|
95
|
-
let t = e.text?.holder ? E(String(e.text.holder)) : "", n = J.value.museum === !1 ? null : J.value.museum ?? null, r = n ? De.value?.get(e.record?.partner_id) : null;
|
|
96
|
-
return {
|
|
97
|
-
holder: t,
|
|
98
|
-
view: r ? ae(r, $.tr("partners", r.id, e.language, "en"), {
|
|
99
|
-
countryLabel: (t) => ke(t, e.language),
|
|
100
|
-
route: (t) => n.route ? n.route(t.id, e) : null
|
|
101
|
-
}) : null
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
function je(e, t) {
|
|
105
|
-
if (!e) return null;
|
|
106
|
-
let n = J.value.related ?? {}, r = t.records ?? [], i = t.outside ?? [], a = K.dataGetter ? r.filter((e) => K.dataGetter(e.id) != null) : r, o = K.dataGetter ? r.filter((e) => K.dataGetter(e.id) == null).map((t) => (e.related_items ?? []).find((e) => e.id === t.id)).filter(Boolean) : [], s = [...i, ...o].map((e) => ({
|
|
107
|
-
...e,
|
|
108
|
-
name: e.project_id ? Y.label(e.project_id) : null,
|
|
109
|
-
chipClass: n.outsideChip ? n.outsideChip(e, t) : null
|
|
110
|
-
})), c = (e) => ({
|
|
111
|
-
id: e.id,
|
|
112
|
-
label: E(e.name ?? ""),
|
|
113
|
-
href: e.legacy_host || "",
|
|
114
|
-
external: !!e.legacy_host
|
|
115
|
-
}), l = n.onDisplayIn && n.onDisplayIn !== !1 ? {
|
|
116
|
-
pendingLabel: n.onDisplayIn.linkPendingLabel ?? "",
|
|
117
|
-
groups: [{
|
|
118
|
-
heading: "record.related.exhibitions",
|
|
119
|
-
links: Te(e).map(c)
|
|
120
|
-
}, {
|
|
121
|
-
heading: "record.related.galleries",
|
|
122
|
-
links: we(e).map(c)
|
|
123
|
-
}].filter((e) => e.links.length)
|
|
124
|
-
} : null, u = n.databaseLabel && Q(e) ? {
|
|
125
|
-
url: Q(e),
|
|
126
|
-
label: q(n.databaseLabel),
|
|
127
|
-
name: Y.label(e.project_id)
|
|
128
|
-
} : null, d = n.overallDatabase && n.overallDatabase !== !1 ? {
|
|
129
|
-
label: q(n.overallDatabase.label),
|
|
130
|
-
linkLabel: q(n.overallDatabase.linkLabel)
|
|
131
|
-
} : null;
|
|
132
|
-
return {
|
|
133
|
-
title: n.title ? q(n.title) : "",
|
|
134
|
-
description: n.description ? q(n.description) : "",
|
|
135
|
-
heading: q(n.heading ?? "record.related.items"),
|
|
136
|
-
variant: n.variant ?? "grid",
|
|
137
|
-
actionLabel: n.actionLabel ? q(n.actionLabel) : "",
|
|
138
|
-
inPackage: a,
|
|
139
|
-
references: s,
|
|
140
|
-
notInPackageLabel: n.notInPackageLabel ? q(n.notInPackageLabel) : "",
|
|
141
|
-
artisticIntroduction: n.artisticIntroductionLabel && Z(e) ? {
|
|
142
|
-
url: Z(e),
|
|
143
|
-
label: q(n.artisticIntroductionLabel)
|
|
144
|
-
} : null,
|
|
145
|
-
timeline: n.timeline ? n.timeline(e, t) : null,
|
|
146
|
-
glossary: n.glossary !== !1,
|
|
147
|
-
dynasties: n.dynasties ? n.dynasties(e, t.language, t) : null,
|
|
148
|
-
media: n.media === !1 ? [] : e.media ?? [],
|
|
149
|
-
onDisplayIn: l,
|
|
150
|
-
database: u,
|
|
151
|
-
overallDatabase: d,
|
|
152
|
-
download: n.download === !1 ? null : {
|
|
153
|
-
label: q("record.action.download"),
|
|
154
|
-
pdfLabel: q("record.action.downloadPdf")
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
function Me() {
|
|
159
|
-
window.print();
|
|
160
|
-
}
|
|
161
|
-
return (l, te) => Ce.value ? (y(), u(s, {
|
|
162
|
-
key: 0,
|
|
163
|
-
spec: J.value,
|
|
164
|
-
id: G.id,
|
|
165
|
-
entity: G.entity
|
|
166
|
-
}, ee({
|
|
167
|
-
"before-sheet": w((e) => [x(l.$slots, "before-sheet", v(g(e)), () => [(y(!0), f(c, null, b([Ee(e.record, e)], (t) => (y(), f(c, { key: "before-sheet" }, [t?.source || t?.backwardCompatibility || t?.addToCollectionLabel ? (y(), f("div", le, [
|
|
168
|
-
t.source ? (y(), f("p", ue, [t.source.chipClass ? (y(), f("span", {
|
|
169
|
-
key: 0,
|
|
170
|
-
class: _(["mwnf-chip", t.source.chipClass]),
|
|
171
|
-
"aria-hidden": "true"
|
|
172
|
-
}, null, 2)) : d("", !0), t.source.name ? (y(), f(c, { key: 1 }, [m(S(t.source.label) + ": " + S(t.source.name), 1)], 64)) : d("", !0)])) : d("", !0),
|
|
173
|
-
t.backwardCompatibility ? (y(), f("p", O, [p("code", null, S(t.backwardCompatibility), 1)])) : d("", !0),
|
|
174
|
-
t.addToCollectionLabel ? (y(), f("p", k, [p("a", {
|
|
175
|
-
href: C(D).myCollection,
|
|
176
|
-
target: "_blank",
|
|
177
|
-
rel: "noopener"
|
|
178
|
-
}, "↗ " + S(t.addToCollectionLabel), 9, A)])) : d("", !0)
|
|
179
|
-
])) : d("", !0), t?.notice ? (y(), f("div", j, [m(S(t.notice) + " ", 1), p("strong", null, [p("em", null, S(e.languages.map((e) => e.label).join(", ")), 1)])])) : d("", !0)], 64))), 128))])]),
|
|
180
|
-
museum: w((t) => [x(l.$slots, "museum", v(g(t)), () => [(y(!0), f(c, null, b([Ae(t)], (n) => (y(), f("div", M, [n.holder ? (y(), f("p", {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: "mwnf-sheet-museum__holder",
|
|
183
|
-
innerHTML: n.holder
|
|
184
|
-
}, null, 8, N)) : d("", !0), n.view ? (y(), u(e, {
|
|
185
|
-
key: 1,
|
|
186
|
-
variant: "summary",
|
|
187
|
-
partner: n.view,
|
|
188
|
-
label: "partner.info.about",
|
|
189
|
-
dir: t.dir
|
|
190
|
-
}, null, 8, ["partner", "dir"])) : d("", !0)]))), 128))])]),
|
|
191
|
-
related: w((e) => [x(l.$slots, "related", v(g(e)), () => [(y(!0), f(c, null, b([je(e.record, e)], (s) => (y(), f(c, { key: e.record?.id ?? "related" }, [s ? (y(), f("div", P, [
|
|
192
|
-
s.title ? (y(), f("p", F, S(s.title), 1)) : d("", !0),
|
|
193
|
-
s.description ? (y(), f("p", I, S(s.description), 1)) : d("", !0),
|
|
194
|
-
h(t, {
|
|
195
|
-
heading: s.heading,
|
|
196
|
-
records: s.inPackage,
|
|
197
|
-
variant: s.variant,
|
|
198
|
-
"action-label": s.actionLabel
|
|
199
|
-
}, {
|
|
200
|
-
default: w(() => [s.references.length ? (y(), f("ul", L, [(y(!0), f(c, null, b(s.references, (e) => (y(), f("li", { key: e.id }, [
|
|
201
|
-
e.chipClass ? (y(), f("span", {
|
|
202
|
-
key: 0,
|
|
203
|
-
class: _(["mwnf-chip", e.chipClass]),
|
|
204
|
-
"aria-hidden": "true"
|
|
205
|
-
}, null, 2)) : d("", !0),
|
|
206
|
-
e.name ? (y(), f(c, { key: 1 }, [m(S(e.name), 1)], 64)) : (y(), f("code", R, S(e.backward_compatibility), 1)),
|
|
207
|
-
s.notInPackageLabel ? (y(), f("span", z, S(s.notInPackageLabel), 1)) : d("", !0)
|
|
208
|
-
]))), 128))])) : d("", !0)]),
|
|
209
|
-
_: 2
|
|
210
|
-
}, 1032, [
|
|
211
|
-
"heading",
|
|
212
|
-
"records",
|
|
213
|
-
"variant",
|
|
214
|
-
"action-label"
|
|
215
|
-
]),
|
|
216
|
-
s.artisticIntroduction ? (y(), f("p", B, [p("a", {
|
|
217
|
-
href: s.artisticIntroduction.url,
|
|
218
|
-
target: "_blank",
|
|
219
|
-
rel: "noopener"
|
|
220
|
-
}, "↗ " + S(s.artisticIntroduction.label), 9, V)])) : d("", !0),
|
|
221
|
-
s.timeline ? (y(), u(a, {
|
|
222
|
-
key: e.record.id,
|
|
223
|
-
info: s.timeline
|
|
224
|
-
}, null, 8, ["info"])) : d("", !0),
|
|
225
|
-
s.glossary ? (y(), u(i, {
|
|
226
|
-
key: 4,
|
|
227
|
-
language: e.language,
|
|
228
|
-
dir: e.dir
|
|
229
|
-
}, null, 8, ["language", "dir"])) : d("", !0),
|
|
230
|
-
s.dynasties?.records?.length ? (y(), u(n, {
|
|
231
|
-
key: 5,
|
|
232
|
-
heading: C(q)("record.dynasty.list"),
|
|
233
|
-
dynasties: s.dynasties.records,
|
|
234
|
-
tr: s.dynasties.tr,
|
|
235
|
-
dir: e.dir
|
|
236
|
-
}, null, 8, [
|
|
237
|
-
"heading",
|
|
238
|
-
"dynasties",
|
|
239
|
-
"tr",
|
|
240
|
-
"dir"
|
|
241
|
-
])) : d("", !0),
|
|
242
|
-
h(r, {
|
|
243
|
-
media: s.media,
|
|
244
|
-
descriptions: !1,
|
|
245
|
-
dir: e.dir
|
|
246
|
-
}, null, 8, ["media", "dir"]),
|
|
247
|
-
s.onDisplayIn?.groups.length ? (y(), f("div", H, [p("p", U, S(C(q)("record.related.onDisplayIn")), 1), h(o, {
|
|
248
|
-
heading: "",
|
|
249
|
-
groups: s.onDisplayIn.groups,
|
|
250
|
-
"pending-label": s.onDisplayIn.pendingLabel,
|
|
251
|
-
dir: e.dir
|
|
252
|
-
}, null, 8, [
|
|
253
|
-
"groups",
|
|
254
|
-
"pending-label",
|
|
255
|
-
"dir"
|
|
256
|
-
])])) : d("", !0),
|
|
257
|
-
s.database ? (y(), f("div", de, [p("p", fe, S(s.database.label), 1), p("p", pe, [p("a", {
|
|
258
|
-
href: s.database.url,
|
|
259
|
-
target: "_blank",
|
|
260
|
-
rel: "noopener"
|
|
261
|
-
}, "↗ " + S(s.database.name), 9, me)])])) : d("", !0),
|
|
262
|
-
s.overallDatabase ? (y(), f("div", W, [p("p", he, S(s.overallDatabase.label), 1), p("p", ge, [p("a", {
|
|
263
|
-
href: C(D).overallDatabase,
|
|
264
|
-
target: "_blank",
|
|
265
|
-
rel: "noopener"
|
|
266
|
-
}, "↗ " + S(s.overallDatabase.linkLabel), 9, _e)])])) : d("", !0),
|
|
267
|
-
s.download ? (y(), f("div", ve, [p("p", ye, S(s.download.label), 1), p("p", {
|
|
268
|
-
class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
|
|
269
|
-
onClick: Me
|
|
270
|
-
}, "➤ " + S(s.download.pdfLabel), 1)])) : d("", !0)
|
|
271
|
-
])) : d("", !0)], 64))), 128))])]),
|
|
272
|
-
_: 2
|
|
273
|
-
}, [b(Se.value, (e) => ({
|
|
274
|
-
name: e,
|
|
275
|
-
fn: w((t) => [x(l.$slots, e, v(g(t)))])
|
|
276
|
-
}))]), 1032, [
|
|
277
|
-
"spec",
|
|
278
|
-
"id",
|
|
279
|
-
"entity"
|
|
280
|
-
])) : (y(), u(C(ne), { key: 1 }));
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
//#endregion
|
|
284
|
-
export { G as t };
|