@museumwnf/viewer-layout 3.62.0 → 3.63.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-Fe19w6_G.js +213 -0
- package/dist/LegacyItemSheet-Bmg8etGz.js +532 -0
- package/dist/{OnDisplayIn-CPANKcOd.js → OnDisplayIn-BH3Bqope.js} +1 -1
- package/dist/{PageShell-CPtgzcxv.js → PageShell-CIGVv7sK.js} +144 -111
- package/dist/{PartnerMap-U-Hi2FBi.js → PartnerMap-DdyMLtgH.js} +5 -1
- package/dist/RecordView-Bgd5mm_e.js +384 -0
- package/dist/{SiteShell-qvsZO4Iz.js → SiteShell-UsZ_cpe9.js} +3 -2
- package/dist/Theme-Daezwp0p.js +391 -0
- package/dist/{TimelineEventList-1feZA5t7.js → TimelineEventList-CIkKxyQu.js} +122 -238
- package/dist/TimelineResultsView-BF3VoCs_.js +686 -0
- package/dist/components.js +1 -1
- package/dist/{content-BNS5U0Xv.js → content-hV5uyd-b.js} +2 -2
- package/dist/content.js +6 -6
- package/dist/data-CsMfGCkv.js +77 -0
- package/dist/dxa.js +1982 -1042
- package/dist/index.js +7 -7
- package/dist/standalone.js +3 -3
- package/dist/{themeSpecs-CsDpl4rR.js → themeSpecs-DIdmAEc3.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +755 -37
- package/package.json +1 -1
- package/src/dxa/testing.js +147 -114
- package/src/styles/dxa-exhibition.css +2289 -32
- package/dist/FeaturedRecord-DaGLHyhD.js +0 -87
- package/dist/ItemDetailView-BcOSmHfr.js +0 -313
- package/dist/RecordView-BE4mbj6G.js +0 -363
- package/dist/Theme-4RmyRY0x.js +0 -318
- package/dist/TimelineResultsView-CkH3NDqL.js +0 -1401
- package/dist/data-kqAkoQvf.js +0 -37
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { d as e } from "./PartnerMap-DdyMLtgH.js";
|
|
2
|
+
import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, normalizeClass as l, openBlock as u, renderList as d, renderSlot as f, toDisplayString as p, unref as m, useSlots as h, withCtx as g } from "vue";
|
|
3
|
+
import { mdInline as _ } from "@museumwnf/viewer-core";
|
|
4
|
+
// src/content/SectionCards.vue
|
|
5
|
+
var v = ["innerHTML"], y = ["innerHTML"], b = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "mwnf-cards__action"
|
|
8
|
+
}, x = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "mwnf-cards__image-container"
|
|
11
|
+
}, S = ["src", "alt"], C = { class: "mwnf-cards__content" }, w = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "mwnf-cards__number"
|
|
14
|
+
}, T = ["innerHTML"], E = ["innerHTML"], D = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "mwnf-cards__image-container"
|
|
17
|
+
}, O = ["src", "alt"], k = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "mwnf-cards__number"
|
|
20
|
+
}, A = ["innerHTML"], j = {
|
|
21
|
+
key: 3,
|
|
22
|
+
class: "mwnf-cards__details"
|
|
23
|
+
}, M = { class: "mwnf-cards__summary" }, N = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "mwnf-cards__number"
|
|
26
|
+
}, P = ["innerHTML"], F = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "mwnf-cards__children"
|
|
29
|
+
}, I = {
|
|
30
|
+
__name: "SectionCards",
|
|
31
|
+
props: {
|
|
32
|
+
cards: {
|
|
33
|
+
type: Array,
|
|
34
|
+
default: () => []
|
|
35
|
+
},
|
|
36
|
+
variant: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "cards",
|
|
39
|
+
validate: (e) => [
|
|
40
|
+
"cards",
|
|
41
|
+
"rows",
|
|
42
|
+
"covers",
|
|
43
|
+
"accordion"
|
|
44
|
+
].includes(e)
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(n) {
|
|
48
|
+
return (f, h) => n.cards.length ? (u(), a("ul", {
|
|
49
|
+
key: 0,
|
|
50
|
+
class: l(["mwnf-cards", `mwnf-cards--${n.variant}`])
|
|
51
|
+
}, [(u(!0), a(t, null, d(n.cards, (f) => (u(), a("li", {
|
|
52
|
+
key: f.href ?? f.title,
|
|
53
|
+
class: l(["mwnf-cards__card"])
|
|
54
|
+
}, [n.variant === "cards" ? (u(), r(e, {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "mwnf-cards__link",
|
|
57
|
+
to: f.to,
|
|
58
|
+
href: f.href
|
|
59
|
+
}, {
|
|
60
|
+
default: g(() => [
|
|
61
|
+
o("span", {
|
|
62
|
+
class: "mwnf-cards__title",
|
|
63
|
+
innerHTML: m(_)(f.title)
|
|
64
|
+
}, null, 8, v),
|
|
65
|
+
f.description ? (u(), a("span", {
|
|
66
|
+
key: 0,
|
|
67
|
+
class: "mwnf-cards__text",
|
|
68
|
+
innerHTML: m(_)(f.description)
|
|
69
|
+
}, null, 8, y)) : i("", !0),
|
|
70
|
+
f.action ? (u(), a("span", b, p(f.action) + " →", 1)) : i("", !0)
|
|
71
|
+
]),
|
|
72
|
+
_: 2
|
|
73
|
+
}, 1032, ["to", "href"])) : n.variant === "rows" ? (u(), r(e, {
|
|
74
|
+
key: 1,
|
|
75
|
+
class: "mwnf-cards__link",
|
|
76
|
+
to: f.to,
|
|
77
|
+
href: f.href
|
|
78
|
+
}, {
|
|
79
|
+
default: g(() => [f.image ? (u(), a("div", x, [o("img", {
|
|
80
|
+
class: "mwnf-cards__image",
|
|
81
|
+
src: f.image,
|
|
82
|
+
alt: f.alt || ""
|
|
83
|
+
}, null, 8, S)])) : i("", !0), o("div", C, [
|
|
84
|
+
f.number ? (u(), a("span", w, p(f.number), 1)) : i("", !0),
|
|
85
|
+
o("span", {
|
|
86
|
+
class: "mwnf-cards__title",
|
|
87
|
+
innerHTML: m(_)(f.title)
|
|
88
|
+
}, null, 8, T),
|
|
89
|
+
f.description ? (u(), a("span", {
|
|
90
|
+
key: 1,
|
|
91
|
+
class: "mwnf-cards__text",
|
|
92
|
+
innerHTML: m(_)(f.description)
|
|
93
|
+
}, null, 8, E)) : i("", !0)
|
|
94
|
+
])]),
|
|
95
|
+
_: 2
|
|
96
|
+
}, 1032, ["to", "href"])) : n.variant === "covers" ? (u(), r(e, {
|
|
97
|
+
key: 2,
|
|
98
|
+
class: "mwnf-cards__link",
|
|
99
|
+
to: f.to,
|
|
100
|
+
href: f.href
|
|
101
|
+
}, {
|
|
102
|
+
default: g(() => [
|
|
103
|
+
f.image ? (u(), a("div", D, [o("img", {
|
|
104
|
+
class: "mwnf-cards__image",
|
|
105
|
+
src: f.image,
|
|
106
|
+
alt: f.alt || ""
|
|
107
|
+
}, null, 8, O)])) : i("", !0),
|
|
108
|
+
f.number ? (u(), a("span", k, p(f.number), 1)) : i("", !0),
|
|
109
|
+
o("span", {
|
|
110
|
+
class: "mwnf-cards__title",
|
|
111
|
+
innerHTML: m(_)(f.title)
|
|
112
|
+
}, null, 8, A)
|
|
113
|
+
]),
|
|
114
|
+
_: 2
|
|
115
|
+
}, 1032, ["to", "href"])) : n.variant === "accordion" ? (u(), a("details", j, [o("summary", M, [f.number ? (u(), a("span", N, p(f.number), 1)) : i("", !0), o("span", {
|
|
116
|
+
class: "mwnf-cards__title",
|
|
117
|
+
innerHTML: m(_)(f.title)
|
|
118
|
+
}, null, 8, P)]), f.children?.length ? (u(), a("ul", F, [(u(!0), a(t, null, d(f.children, (t) => (u(), a("li", {
|
|
119
|
+
key: t.href ?? t.title,
|
|
120
|
+
class: "mwnf-cards__child"
|
|
121
|
+
}, [c(e, {
|
|
122
|
+
class: "mwnf-cards__child-link",
|
|
123
|
+
to: t.to,
|
|
124
|
+
href: t.href
|
|
125
|
+
}, {
|
|
126
|
+
default: g(() => [s(p(t.title), 1)]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, 1032, ["to", "href"])]))), 128))])) : i("", !0)])) : i("", !0)]))), 128))], 2)) : i("", !0);
|
|
129
|
+
}
|
|
130
|
+
}, L = {
|
|
131
|
+
key: 0,
|
|
132
|
+
class: "mwnf-featured"
|
|
133
|
+
}, R = {
|
|
134
|
+
key: 0,
|
|
135
|
+
class: "mwnf-featured__heading"
|
|
136
|
+
}, z = {
|
|
137
|
+
key: 0,
|
|
138
|
+
class: "mwnf-featured__media"
|
|
139
|
+
}, B = ["src", "alt"], V = { class: "mwnf-featured__body" }, H = {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: "mwnf-featured__eyebrow"
|
|
142
|
+
}, U = ["innerHTML"], W = {
|
|
143
|
+
key: 1,
|
|
144
|
+
class: "mwnf-featured__action"
|
|
145
|
+
}, G = {
|
|
146
|
+
__name: "FeaturedRecord",
|
|
147
|
+
props: {
|
|
148
|
+
image: {
|
|
149
|
+
type: String,
|
|
150
|
+
default: ""
|
|
151
|
+
},
|
|
152
|
+
imageAlt: {
|
|
153
|
+
type: String,
|
|
154
|
+
default: ""
|
|
155
|
+
},
|
|
156
|
+
eyebrow: {
|
|
157
|
+
type: String,
|
|
158
|
+
default: ""
|
|
159
|
+
},
|
|
160
|
+
name: {
|
|
161
|
+
type: String,
|
|
162
|
+
default: ""
|
|
163
|
+
},
|
|
164
|
+
meta: {
|
|
165
|
+
type: Array,
|
|
166
|
+
default: () => []
|
|
167
|
+
},
|
|
168
|
+
action: {
|
|
169
|
+
type: String,
|
|
170
|
+
default: ""
|
|
171
|
+
},
|
|
172
|
+
to: {
|
|
173
|
+
type: [String, Object],
|
|
174
|
+
default: null
|
|
175
|
+
},
|
|
176
|
+
href: {
|
|
177
|
+
type: String,
|
|
178
|
+
default: ""
|
|
179
|
+
},
|
|
180
|
+
heading: {
|
|
181
|
+
type: String,
|
|
182
|
+
default: ""
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
setup(r) {
|
|
186
|
+
let s = r, l = h(), m = n(() => !!(s.name || s.image || l.default));
|
|
187
|
+
return (n, s) => m.value ? (u(), a("section", L, [r.heading ? (u(), a("h2", R, p(r.heading), 1)) : i("", !0), f(n.$slots, "default", {}, () => [c(e, {
|
|
188
|
+
class: "mwnf-featured__link",
|
|
189
|
+
to: r.to,
|
|
190
|
+
href: r.href
|
|
191
|
+
}, {
|
|
192
|
+
default: g(() => [r.image ? (u(), a("span", z, [o("img", {
|
|
193
|
+
class: "mwnf-featured__image",
|
|
194
|
+
src: r.image,
|
|
195
|
+
alt: r.imageAlt,
|
|
196
|
+
loading: "eager"
|
|
197
|
+
}, null, 8, B)])) : i("", !0), o("span", V, [
|
|
198
|
+
r.eyebrow ? (u(), a("span", H, p(r.eyebrow), 1)) : i("", !0),
|
|
199
|
+
o("span", {
|
|
200
|
+
class: "mwnf-featured__name",
|
|
201
|
+
innerHTML: r.name
|
|
202
|
+
}, null, 8, U),
|
|
203
|
+
(u(!0), a(t, null, d(r.meta, (e, t) => (u(), a("span", {
|
|
204
|
+
key: t,
|
|
205
|
+
class: "mwnf-featured__meta"
|
|
206
|
+
}, p(e), 1))), 128)),
|
|
207
|
+
r.action ? (u(), a("span", W, p(r.action) + " →", 1)) : i("", !0)
|
|
208
|
+
])]),
|
|
209
|
+
_: 1
|
|
210
|
+
}, 8, ["to", "href"])])])) : i("", !0);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
export { I as n, G as t };
|