@museumwnf/viewer-layout 3.18.1 → 3.20.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-MjTQmZFW.js → FeaturedRecord-CNRUaZBY.js} +1 -1
- package/dist/{ItemDetailView-B5hE3Oof.js → ItemDetailView-5t8skbHY.js} +4 -4
- package/dist/{OnDisplayIn-zdKWIPTZ.js → OnDisplayIn-DdqVmd4F.js} +38 -38
- package/dist/{MediaGallery-DeXLadYl.js → PartnerMap-BozCpzY8.js} +76 -1
- package/dist/{RecordView-GckO9PmG.js → RecordView-Bi53L29_.js} +12 -12
- package/dist/{Theme-DL9vKuSD.js → Theme-D17n73E8.js} +24 -24
- package/dist/TimelineEventList-B_lhlQOG.js +780 -0
- package/dist/{TimelineResultsView-COoWXGu4.js → TimelineResultsView-BMg79eiB.js} +185 -180
- package/dist/{content-CzCospyc.js → content-DzEj-kdq.js} +13 -13
- package/dist/content.js +6 -6
- package/dist/dxa.js +314 -314
- package/dist/index.js +6 -6
- package/dist/standalone.js +639 -257
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +1 -1
- package/src/tokens.reference.css +4 -0
- package/dist/TimelineEventList-QLk6KLMq.js +0 -841
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a, i as o, n as s, o as c,
|
|
1
|
+
import { d as e, i as t, l as n, n as r, u as i } from "./PartnerMap-BozCpzY8.js";
|
|
2
|
+
import { a, i as o, n as s, o as c, r as l, t as u } from "./TimelineEventList-B_lhlQOG.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";
|
|
@@ -49,8 +49,8 @@ var be = {
|
|
|
49
49
|
default: ""
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
setup(
|
|
53
|
-
let
|
|
52
|
+
setup(e) {
|
|
53
|
+
let t = e, { t: r, locale: s } = de(), u = Q(), d = t.spec.entity ?? t.entity, S = p(() => t.spec), C = ie(d);
|
|
54
54
|
d && u.loadTranslations(d, "en");
|
|
55
55
|
let E = p(() => S.value.keys ?? [...Object.keys(S.value.facets ?? {}), ...D()]);
|
|
56
56
|
function D() {
|
|
@@ -58,7 +58,7 @@ var be = {
|
|
|
58
58
|
return e ? [e.begin ?? "begin", e.end ?? "end"] : [];
|
|
59
59
|
}
|
|
60
60
|
let { filters: M, page: N, active: P, apply: F, reset: ne, goToPage: I } = fe({ keys: E.value }), R = {
|
|
61
|
-
t:
|
|
61
|
+
t: r,
|
|
62
62
|
locale: s,
|
|
63
63
|
tr: (e, t) => u.tr(e, t, s.value, "en"),
|
|
64
64
|
renderInline: Y,
|
|
@@ -87,7 +87,7 @@ var be = {
|
|
|
87
87
|
}), V = p(() => S.value.facetScope === "matching" ? B.value : C.value ?? []), H = le(V, () => S.value.facets ?? {}), U = me(B, {
|
|
88
88
|
page: N,
|
|
89
89
|
size: () => S.value.pageSize ?? 20
|
|
90
|
-
}), ae = p(() => S.value.recordRoute ?? (
|
|
90
|
+
}), ae = p(() => S.value.recordRoute ?? (t.entity ? `${t.entity}-detail` : "item"));
|
|
91
91
|
function W(e) {
|
|
92
92
|
let t = R.tr(d, e.id).name ?? e.internal_name ?? e.id;
|
|
93
93
|
return {
|
|
@@ -116,60 +116,60 @@ var be = {
|
|
|
116
116
|
let e = S.value;
|
|
117
117
|
return e.summary ? e.summary({
|
|
118
118
|
...K.value,
|
|
119
|
-
t:
|
|
119
|
+
t: r,
|
|
120
120
|
total: (C.value ?? []).length
|
|
121
121
|
}) : [{
|
|
122
|
-
label:
|
|
122
|
+
label: r(e.summaryLabel ?? "catalogue.results.itemsFound"),
|
|
123
123
|
count: U.value.total
|
|
124
124
|
}];
|
|
125
125
|
}), q = p(() => S.value.filterMode ?? "apply"), J = p(() => S.value.controls ?? []), se = p(() => J.value.length > 0 || !!S.value.panel);
|
|
126
126
|
function ce(e, t) {
|
|
127
127
|
q.value === "immediate" ? F({ [e]: t }) : M[e] = t;
|
|
128
128
|
}
|
|
129
|
-
let ue = p(() =>
|
|
129
|
+
let ue = p(() => r(S.value.empty ?? "catalogue.results.noResultsFilter")), pe = p(() => S.value.variant === "grid"), he = p(() => ({
|
|
130
130
|
window: 5,
|
|
131
131
|
jump: !1,
|
|
132
132
|
ends: !0,
|
|
133
133
|
...S.value.pagination ?? {}
|
|
134
134
|
}));
|
|
135
|
-
return (
|
|
136
|
-
k(
|
|
137
|
-
S.value.title ? (T(), g("h1", be, A(j(
|
|
138
|
-
se.value ||
|
|
135
|
+
return (e, t) => (T(), g("section", { class: ee(["mwnf-catalogue", { "mwnf-catalogue--boxed": S.value.boxed }]) }, [
|
|
136
|
+
k(e.$slots, "before", w(x(K.value))),
|
|
137
|
+
S.value.title ? (T(), g("h1", be, A(j(r)(S.value.title)), 1)) : h("", !0),
|
|
138
|
+
se.value || e.$slots.filters ? (T(), m(o, {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "mwnf-catalogue__filters",
|
|
141
141
|
mode: q.value,
|
|
142
|
-
title: S.value.filterTitle ? j(
|
|
143
|
-
"reset-label": S.value.resetLabel ? j(
|
|
144
|
-
onApply:
|
|
145
|
-
onReset:
|
|
142
|
+
title: S.value.filterTitle ? j(r)(S.value.filterTitle) : "",
|
|
143
|
+
"reset-label": S.value.resetLabel ? j(r)(S.value.resetLabel) : "",
|
|
144
|
+
onApply: t[2] ||= (e) => j(F)(),
|
|
145
|
+
onReset: t[3] ||= (e) => j(ne)()
|
|
146
146
|
}, {
|
|
147
|
-
default: L(() => [(T(!0), g(f, null, O(J.value, (e) => (T(), g(f, { key: e.key }, [e.type === "year" ? (T(), g("label", xe, [e.label ? (T(), g("span", Se, A(j(
|
|
147
|
+
default: L(() => [(T(!0), g(f, null, O(J.value, (e) => (T(), g(f, { key: e.key }, [e.type === "year" ? (T(), g("label", xe, [e.label ? (T(), g("span", Se, A(j(r)(e.label)), 1)) : h("", !0), _("input", {
|
|
148
148
|
type: "number",
|
|
149
149
|
class: "mwnf-facet__select",
|
|
150
150
|
value: j(M)[e.key],
|
|
151
|
-
placeholder: e.placeholder ? j(
|
|
151
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : "",
|
|
152
152
|
onInput: (t) => j(M)[e.key] = t.target.value,
|
|
153
|
-
onChange:
|
|
154
|
-
}, null, 40, Ce)])) : e.type === "query" ? (T(), g("label", we, [e.label ? (T(), g("span", Te, A(j(
|
|
153
|
+
onChange: t[0] ||= (e) => q.value === "immediate" ? j(F)() : null
|
|
154
|
+
}, null, 40, Ce)])) : e.type === "query" ? (T(), g("label", we, [e.label ? (T(), g("span", Te, A(j(r)(e.label)), 1)) : h("", !0), _("input", {
|
|
155
155
|
type: "text",
|
|
156
156
|
class: "mwnf-facet__select",
|
|
157
157
|
value: j(M)[e.key],
|
|
158
|
-
placeholder: e.placeholder ? j(
|
|
158
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : "",
|
|
159
159
|
onInput: (t) => j(M)[e.key] = t.target.value,
|
|
160
|
-
onChange:
|
|
160
|
+
onChange: t[1] ||= (e) => q.value === "immediate" ? j(F)() : null
|
|
161
161
|
}, null, 40, Ee)])) : e.type === "checkbox" ? (T(), g("label", De, [_("input", {
|
|
162
162
|
type: "checkbox",
|
|
163
163
|
class: "mwnf-facet__checkbox",
|
|
164
164
|
checked: j(M)[e.key] === "1",
|
|
165
165
|
onChange: (t) => ce(e.key, t.target.checked ? "1" : "")
|
|
166
|
-
}, null, 40, Oe), e.label ? (T(), g("span", ke, A(j(
|
|
166
|
+
}, null, 40, Oe), e.label ? (T(), g("span", ke, A(j(r)(e.label)), 1)) : h("", !0)])) : (T(), m(a, {
|
|
167
167
|
key: 3,
|
|
168
168
|
"model-value": j(M)[e.key],
|
|
169
|
-
label: e.label ? j(
|
|
169
|
+
label: e.label ? j(r)(e.label) : "",
|
|
170
170
|
options: j(H)[e.key] ?? [],
|
|
171
|
-
placeholder: e.placeholder ? j(
|
|
172
|
-
"any-label": e.anyLabel ? j(
|
|
171
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : "",
|
|
172
|
+
"any-label": e.anyLabel ? j(r)(e.anyLabel) : "",
|
|
173
173
|
"hide-empty": !!e.hideEmpty,
|
|
174
174
|
"onUpdate:modelValue": (t) => ce(e.key, t)
|
|
175
175
|
}, null, 8, [
|
|
@@ -180,25 +180,30 @@ var be = {
|
|
|
180
180
|
"any-label",
|
|
181
181
|
"hide-empty",
|
|
182
182
|
"onUpdate:modelValue"
|
|
183
|
-
]))], 64))), 128)), k(
|
|
183
|
+
]))], 64))), 128)), k(e.$slots, "filters", w(x(K.value)))]),
|
|
184
184
|
_: 3
|
|
185
185
|
}, 8, [
|
|
186
186
|
"mode",
|
|
187
187
|
"title",
|
|
188
188
|
"reset-label"
|
|
189
189
|
])) : h("", !0),
|
|
190
|
-
b(
|
|
190
|
+
b(l, { parts: oe.value }, v({ _: 2 }, [e.$slots.actions ? {
|
|
191
191
|
name: "actions",
|
|
192
|
-
fn: L(() => [k(
|
|
192
|
+
fn: L(() => [k(e.$slots, "actions", w(x(K.value)))]),
|
|
193
193
|
key: "0"
|
|
194
194
|
} : void 0]), 1032, ["parts"]),
|
|
195
|
-
_("div", Ae, [_("div", je, [(
|
|
195
|
+
_("div", Ae, [_("div", je, [k(e.$slots, "records", w(x({
|
|
196
|
+
...K.value,
|
|
197
|
+
rows: G.value,
|
|
198
|
+
empty: ue.value
|
|
199
|
+
})), () => [(T(), m(te(pe.value ? n : i), {
|
|
196
200
|
records: G.value,
|
|
197
|
-
"action-label": S.value.actionLabel ? j(
|
|
201
|
+
"action-label": S.value.actionLabel ? j(r)(S.value.actionLabel) : ""
|
|
198
202
|
}, {
|
|
199
|
-
empty: L(() => [k(
|
|
203
|
+
empty: L(() => [k(e.$slots, "empty", w(x(K.value)), () => [y(A(ue.value), 1)])]),
|
|
200
204
|
_: 3
|
|
201
|
-
}, 8, ["records", "action-label"])),
|
|
205
|
+
}, 8, ["records", "action-label"]))]), k(e.$slots, "pagination", w(x(K.value)), () => [e.$slots.pagination ? h("", !0) : (T(), m(c, {
|
|
206
|
+
key: 0,
|
|
202
207
|
"page-info": j(U),
|
|
203
208
|
window: he.value.window,
|
|
204
209
|
jump: he.value.jump,
|
|
@@ -210,8 +215,8 @@ var be = {
|
|
|
210
215
|
"jump",
|
|
211
216
|
"ends",
|
|
212
217
|
"onNavigate"
|
|
213
|
-
])]),
|
|
214
|
-
k(
|
|
218
|
+
]))])]), e.$slots.aside ? (T(), g("aside", Me, [k(e.$slots, "aside", w(x(K.value)))])) : h("", !0)]),
|
|
219
|
+
k(e.$slots, "after", w(x(K.value)))
|
|
215
220
|
], 2));
|
|
216
221
|
}
|
|
217
222
|
}, Pe = ["dir"], Fe = {
|
|
@@ -262,8 +267,8 @@ var be = {
|
|
|
262
267
|
required: !0
|
|
263
268
|
}
|
|
264
269
|
},
|
|
265
|
-
setup(
|
|
266
|
-
let a =
|
|
270
|
+
setup(i) {
|
|
271
|
+
let a = i, { t: o } = de(), s = Q(), c = M();
|
|
267
272
|
function l(e) {
|
|
268
273
|
return !!e && typeof e.walk == "function" && typeof e.children == "function";
|
|
269
274
|
}
|
|
@@ -472,25 +477,25 @@ var be = {
|
|
|
472
477
|
onClick: s[0] ||= (...e) => j(ye) && j(ye)(...e)
|
|
473
478
|
}, [
|
|
474
479
|
k(a.$slots, "header", w(x($.value)), () => [
|
|
475
|
-
Et.value.length ? (T(), g("p", Fe, [_("span", Ie, A(j(o)(At.value)), 1), (T(!0), g(f, null, O(Et.value, (
|
|
480
|
+
Et.value.length ? (T(), g("p", Fe, [_("span", Ie, A(j(o)(At.value)), 1), (T(!0), g(f, null, O(Et.value, (t) => (T(), g(f, { key: t.id }, [pt(t) ? (T(), m(e, {
|
|
476
481
|
key: 0,
|
|
477
|
-
to: pt(
|
|
482
|
+
to: pt(t),
|
|
478
483
|
class: "mwnf-essay__breadcrumb-link"
|
|
479
484
|
}, {
|
|
480
|
-
default: L(() => [y(A(J(
|
|
485
|
+
default: L(() => [y(A(J(t)), 1)]),
|
|
481
486
|
_: 2
|
|
482
|
-
}, 1032, ["to"])) : (T(), g("span", Le, A(J(
|
|
487
|
+
}, 1032, ["to"])) : (T(), g("span", Le, A(J(t)), 1))], 64))), 128))])) : h("", !0),
|
|
483
488
|
Dt.value.length > 1 ? (T(), g("div", {
|
|
484
489
|
key: 1,
|
|
485
490
|
class: "mwnf-essay__tabs",
|
|
486
491
|
role: "tablist",
|
|
487
492
|
"aria-label": j(o)(jt.value)
|
|
488
|
-
}, [(T(!0), g(f, null, O(Dt.value, (
|
|
489
|
-
key:
|
|
490
|
-
to: pt(
|
|
491
|
-
class: ee(["mwnf-essay__tab", { "mwnf-essay__tab--active":
|
|
493
|
+
}, [(T(!0), g(f, null, O(Dt.value, (t) => (T(), m(e, {
|
|
494
|
+
key: t.id,
|
|
495
|
+
to: pt(t),
|
|
496
|
+
class: ee(["mwnf-essay__tab", { "mwnf-essay__tab--active": t.id === i.id }])
|
|
492
497
|
}, {
|
|
493
|
-
default: L(() => [y(A(J(
|
|
498
|
+
default: L(() => [y(A(J(t)), 1)]),
|
|
494
499
|
_: 2
|
|
495
500
|
}, 1032, ["to", "class"]))), 128))], 8, Re)) : h("", !0),
|
|
496
501
|
_("h1", ze, [Ae.value ? (T(), g("span", Be, A(Ae.value), 1)) : h("", !0), _("span", { innerHTML: Se.value }, null, 8, Ve)])
|
|
@@ -510,14 +515,14 @@ var be = {
|
|
|
510
515
|
}, null, 8, Ke)) : h("", !0),
|
|
511
516
|
k(a.$slots, "after-body", w(x($.value))),
|
|
512
517
|
Ee.value ? h("", !0) : k(a.$slots, "justifications", w(x($.value)), void 0, void 0, 3),
|
|
513
|
-
Pt.value ? (T(), g("div", qe, [k(a.$slots, "navigation", w(x($.value)), () => [re.value ? (T(), m(
|
|
518
|
+
Pt.value ? (T(), g("div", qe, [k(a.$slots, "navigation", w(x($.value)), () => [re.value ? (T(), m(e, {
|
|
514
519
|
key: 0,
|
|
515
520
|
to: pt(re.value),
|
|
516
521
|
class: "mwnf-essay__nav-link mwnf-essay__nav-link--previous"
|
|
517
522
|
}, {
|
|
518
523
|
default: L(() => [y("← " + A(j(o)(Ot.value)), 1)]),
|
|
519
524
|
_: 1
|
|
520
|
-
}, 8, ["to"])) : (T(), g("span", Je)), U.value ? (T(), m(
|
|
525
|
+
}, 8, ["to"])) : (T(), g("span", Je)), U.value ? (T(), m(e, {
|
|
521
526
|
key: 2,
|
|
522
527
|
to: pt(U.value),
|
|
523
528
|
class: "mwnf-essay__nav-link mwnf-essay__nav-link--next"
|
|
@@ -552,7 +557,7 @@ var be = {
|
|
|
552
557
|
class: "mwnf-essay__panel-justification mwnf-sheet__block",
|
|
553
558
|
innerHTML: wt.value
|
|
554
559
|
}, null, 8, rt)) : h("", !0),
|
|
555
|
-
ft(ut.value) ? (T(), m(
|
|
560
|
+
ft(ut.value) ? (T(), m(e, {
|
|
556
561
|
key: 2,
|
|
557
562
|
to: ft(ut.value),
|
|
558
563
|
class: "mwnf-essay__panel-link"
|
|
@@ -570,13 +575,13 @@ var be = {
|
|
|
570
575
|
src: e.images[0].url,
|
|
571
576
|
alt: "",
|
|
572
577
|
loading: "lazy"
|
|
573
|
-
}, null, 8, ot)) : h("", !0)], 10, at)]))), 128))])) : !gt.value && Tt.value.length ? (T(), m(
|
|
578
|
+
}, null, 8, ot)) : h("", !0)], 10, at)]))), 128))])) : !gt.value && Tt.value.length ? (T(), m(n, {
|
|
574
579
|
key: 1,
|
|
575
580
|
records: Tt.value
|
|
576
581
|
}, null, 8, ["records"])) : h("", !0)]),
|
|
577
582
|
k(a.$slots, "aside", w(x($.value)))
|
|
578
583
|
])) : h("", !0)]),
|
|
579
|
-
k(a.$slots, "after", w(x($.value)), () => [b(
|
|
584
|
+
k(a.$slots, "after", w(x($.value)), () => [b(t)]),
|
|
580
585
|
b(d, {
|
|
581
586
|
term: j(ve),
|
|
582
587
|
html: xe.value,
|
|
@@ -614,37 +619,37 @@ var be = {
|
|
|
614
619
|
type: Object,
|
|
615
620
|
required: !0
|
|
616
621
|
} },
|
|
617
|
-
setup(
|
|
618
|
-
let
|
|
619
|
-
return (
|
|
620
|
-
|
|
621
|
-
to:
|
|
622
|
-
href:
|
|
622
|
+
setup(t) {
|
|
623
|
+
let n = t, { t: r } = de(), i = p(() => ((typeof n.spec.groups == "function" ? n.spec.groups({}) : n.spec.groups ?? []) ?? []).filter((e) => e.links?.length > 0)), a = p(() => n.spec.title ? r(n.spec.title) : ""), o = p(() => n.spec.back?.label ? r(n.spec.back.label) : ""), s = p(() => r(n.spec.empty ?? "catalogue.results.noResults"));
|
|
624
|
+
return (t, c) => (T(), g("div", lt, [
|
|
625
|
+
n.spec.back && o.value ? (T(), g("div", ut, [b(e, {
|
|
626
|
+
to: n.spec.back.to,
|
|
627
|
+
href: n.spec.back.href
|
|
623
628
|
}, {
|
|
624
629
|
default: L(() => [y(" ← " + A(o.value), 1)]),
|
|
625
630
|
_: 1
|
|
626
631
|
}, 8, ["to", "href"])])) : h("", !0),
|
|
627
632
|
a.value ? (T(), g("h1", dt, A(a.value), 1)) : h("", !0),
|
|
628
|
-
k(
|
|
629
|
-
|
|
630
|
-
key:
|
|
633
|
+
k(t.$slots, "before"),
|
|
634
|
+
i.value.length ? (T(), g("div", ft, [(T(!0), g(f, null, O(i.value, (n, i) => (T(), g("section", {
|
|
635
|
+
key: i,
|
|
631
636
|
class: "mwnf-link-list__group"
|
|
632
|
-
}, [k(
|
|
633
|
-
key:
|
|
637
|
+
}, [k(t.$slots, "group", { group: n }, () => [n.heading ? (T(), g("h2", pt, A(j(r)(n.heading)), 1)) : h("", !0), n.links?.length ? (T(), g("ul", mt, [(T(!0), g(f, null, O(n.links, (t, n) => (T(), g("li", {
|
|
638
|
+
key: n,
|
|
634
639
|
class: "mwnf-link-list__item"
|
|
635
|
-
}, [b(
|
|
640
|
+
}, [b(e, {
|
|
636
641
|
class: "mwnf-link-list__link",
|
|
637
|
-
to:
|
|
638
|
-
href:
|
|
642
|
+
to: t.to,
|
|
643
|
+
href: t.href
|
|
639
644
|
}, {
|
|
640
|
-
default: L(() => [_("span", { innerHTML: j(oe)(
|
|
645
|
+
default: L(() => [_("span", { innerHTML: j(oe)(t.label) }, null, 8, ht)]),
|
|
641
646
|
_: 2
|
|
642
|
-
}, 1032, ["to", "href"]),
|
|
647
|
+
}, 1032, ["to", "href"]), t.note ? (T(), g("div", {
|
|
643
648
|
key: 0,
|
|
644
649
|
class: "mwnf-link-list__note",
|
|
645
|
-
innerHTML: j(oe)(
|
|
650
|
+
innerHTML: j(oe)(t.note)
|
|
646
651
|
}, null, 8, gt)) : h("", !0)]))), 128))])) : h("", !0)])]))), 128))])) : (T(), g("div", _t, A(s.value), 1)),
|
|
647
|
-
k(
|
|
652
|
+
k(t.$slots, "after")
|
|
648
653
|
]));
|
|
649
654
|
}
|
|
650
655
|
}, yt = { class: "mwnf-partner-list" }, bt = {
|
|
@@ -864,16 +869,16 @@ var be = {
|
|
|
864
869
|
type: Object,
|
|
865
870
|
required: !0
|
|
866
871
|
} },
|
|
867
|
-
setup(
|
|
868
|
-
let
|
|
869
|
-
t:
|
|
870
|
-
tr: (e, t) =>
|
|
872
|
+
setup(t) {
|
|
873
|
+
let n = t, { t: r } = de(), i = Q(), a = pe(), o = p(() => n.spec.heading ? r(n.spec.heading) : ""), s = p(() => typeof n.spec.body == "string"), c = p(() => s.value ? n.spec.body : null), l = p(() => ({
|
|
874
|
+
t: r,
|
|
875
|
+
tr: (e, t) => i.tr(e, t, a.value, "en"),
|
|
871
876
|
language: a.value
|
|
872
|
-
})), u = p(() => s.value ? null : typeof
|
|
873
|
-
return (
|
|
874
|
-
d.value && (
|
|
875
|
-
to:
|
|
876
|
-
href:
|
|
877
|
+
})), u = p(() => s.value ? null : typeof n.spec.body == "function" ? K(n.spec.body(l.value)) : null), d = p(() => n.spec.back === !1 ? null : n.spec.back === !0 ? r("core.action.back") : n.spec.back?.label ? r(n.spec.back.label) : null);
|
|
878
|
+
return (t, r) => (T(), g("div", Mt, [
|
|
879
|
+
d.value && (n.spec.back === !0 || n.spec.back?.to || n.spec.back?.href) ? (T(), g("div", $, [b(e, {
|
|
880
|
+
to: n.spec.back === !0 ? {} : n.spec.back?.to,
|
|
881
|
+
href: n.spec.back === !0 ? "#" : n.spec.back?.href
|
|
877
882
|
}, {
|
|
878
883
|
default: L(() => [y(" ← " + A(d.value), 1)]),
|
|
879
884
|
_: 1
|
|
@@ -906,9 +911,9 @@ var be = {
|
|
|
906
911
|
type: Object,
|
|
907
912
|
required: !0
|
|
908
913
|
} },
|
|
909
|
-
setup(
|
|
910
|
-
let
|
|
911
|
-
let e =
|
|
914
|
+
setup(t) {
|
|
915
|
+
let n = t, { t: r } = de(), i = ye(), s = p(() => n.spec), c = p(() => s.value.mode), l = p(() => s.value.entity ? ie(s.value.entity).value ?? [] : []), u = p(() => s.value.dates === "buckets"), d = p(() => {
|
|
916
|
+
let e = s.value.dates;
|
|
912
917
|
if (!e || e === "buckets") return null;
|
|
913
918
|
let t = e.presets;
|
|
914
919
|
return typeof t == "function" ? t() : t ?? H();
|
|
@@ -919,9 +924,9 @@ var be = {
|
|
|
919
924
|
label: String(e)
|
|
920
925
|
}));
|
|
921
926
|
}
|
|
922
|
-
let C = p(() => u.value ? ve(l.value,
|
|
927
|
+
let C = p(() => u.value ? ve(l.value, r) : []), te = p(() => u.value ? C.value : v(d.value?.from)), M = p(() => u.value ? C.value : v(d.value?.to)), I = p(() => !!s.value.dates), z = D(""), B = D(""), V = s.value.language ? ge(s.value.language) : null, re = p(() => V?.languages.value ?? []), U = V?.language ?? D(""), ae = p(() => Object.fromEntries((s.value.facets ?? []).filter((e) => !e.options && e.type !== "year").map((e) => [e.key, { field: e.field ?? e.key }]))), W = le(l, ae), G = p(() => {
|
|
923
928
|
let e = {};
|
|
924
|
-
for (let t of
|
|
929
|
+
for (let t of s.value.facets ?? []) e[t.key] = t.options ?? W.value[t.key] ?? [];
|
|
925
930
|
return e;
|
|
926
931
|
}), K = [{
|
|
927
932
|
key: "AND",
|
|
@@ -933,29 +938,29 @@ var be = {
|
|
|
933
938
|
"catalogue.search.keywordOne",
|
|
934
939
|
"catalogue.search.keywordTwo",
|
|
935
940
|
"catalogue.search.keywordThree"
|
|
936
|
-
], q = p(() =>
|
|
941
|
+
], q = p(() => s.value.operators ?? K), J = D(Array.from({ length: s.value.rows ?? 3 }, () => ({
|
|
937
942
|
keyword: "",
|
|
938
|
-
field:
|
|
939
|
-
cond: (
|
|
943
|
+
field: s.value.fields?.[0]?.key ?? "",
|
|
944
|
+
cond: (s.value.operators ?? K)[0].key
|
|
940
945
|
})));
|
|
941
946
|
function se(e) {
|
|
942
|
-
return oe[e] ?
|
|
947
|
+
return oe[e] ? r(oe[e]) : "";
|
|
943
948
|
}
|
|
944
|
-
let Y = D(
|
|
949
|
+
let Y = D(s.value.facets?.[0]?.key ?? ""), X = E(Object.fromEntries((s.value.facets ?? []).map((e) => [e.key, ""]))), Z = E(Object.fromEntries((s.value.extras ?? []).map((e) => [e.key, !1])));
|
|
945
950
|
function ce() {
|
|
946
951
|
let e = {};
|
|
947
|
-
for (let t of
|
|
952
|
+
for (let t of s.value.extras ?? []) Z[t.key] && (e[t.key] = "1");
|
|
948
953
|
return e;
|
|
949
954
|
}
|
|
950
955
|
function Q(e) {
|
|
951
|
-
return
|
|
952
|
-
name:
|
|
956
|
+
return i.push({
|
|
957
|
+
name: s.value.target,
|
|
953
958
|
query: e
|
|
954
959
|
});
|
|
955
960
|
}
|
|
956
961
|
function ue() {
|
|
957
962
|
let e = {};
|
|
958
|
-
if (
|
|
963
|
+
if (c.value === "rows") J.value.forEach((t, n) => {
|
|
959
964
|
if (t.keyword) {
|
|
960
965
|
if (n === 0) e.q = t.keyword, t.field && (e.field = t.field);
|
|
961
966
|
else {
|
|
@@ -964,7 +969,7 @@ var be = {
|
|
|
964
969
|
}
|
|
965
970
|
}
|
|
966
971
|
}), z.value && (e.from = String(z.value)), B.value && (e.to = String(B.value)), U.value && (e.lang = U.value);
|
|
967
|
-
else if (
|
|
972
|
+
else if (c.value === "radio") {
|
|
968
973
|
let t = Y.value, n = t ? X[t] : "";
|
|
969
974
|
n && (e[t] = String(n));
|
|
970
975
|
}
|
|
@@ -979,15 +984,15 @@ var be = {
|
|
|
979
984
|
function pe() {
|
|
980
985
|
return Q(ce());
|
|
981
986
|
}
|
|
982
|
-
let me = p(() =>
|
|
983
|
-
mode:
|
|
987
|
+
let me = p(() => c.value === "facets" ? "immediate" : "apply"), he = p(() => c.value === "radio" ? "core.action.browse" : "core.action.search"), _e = p(() => r(s.value.submitLabel ?? he.value)), be = p(() => r(s.value.showAllLabel ?? "core.action.reset")), xe = p(() => ({
|
|
988
|
+
mode: c.value,
|
|
984
989
|
submit: ue,
|
|
985
990
|
showAll: pe
|
|
986
991
|
}));
|
|
987
|
-
return (
|
|
988
|
-
k(
|
|
989
|
-
k(
|
|
990
|
-
b(
|
|
992
|
+
return (t, n) => (T(), g("section", { class: ee(["mwnf-search-form", `mwnf-search-form--${c.value}`]) }, [
|
|
993
|
+
k(t.$slots, "intro", w(x(xe.value))),
|
|
994
|
+
k(t.$slots, "before", w(x(xe.value))),
|
|
995
|
+
b(o, {
|
|
991
996
|
class: "mwnf-search-form__panel",
|
|
992
997
|
mode: me.value,
|
|
993
998
|
"apply-label": _e.value,
|
|
@@ -996,7 +1001,7 @@ var be = {
|
|
|
996
1001
|
onReset: pe
|
|
997
1002
|
}, {
|
|
998
1003
|
default: L(() => [
|
|
999
|
-
|
|
1004
|
+
c.value === "rows" ? (T(), g(f, { key: 0 }, [
|
|
1000
1005
|
(T(!0), g(f, null, O(J.value, (e, t) => (T(), g("div", {
|
|
1001
1006
|
key: t,
|
|
1002
1007
|
class: "mwnf-search-form__row"
|
|
@@ -1009,35 +1014,35 @@ var be = {
|
|
|
1009
1014
|
}, [(T(!0), g(f, null, O(q.value, (e) => (T(), g("option", {
|
|
1010
1015
|
key: e.key,
|
|
1011
1016
|
value: e.key
|
|
1012
|
-
}, A(j(
|
|
1017
|
+
}, A(j(r)(e.label)), 9, zt))), 128))], 8, Rt)), [[F, e.cond]]) : h("", !0),
|
|
1013
1018
|
R(_("select", {
|
|
1014
1019
|
"onUpdate:modelValue": (t) => e.field = t,
|
|
1015
1020
|
class: "mwnf-facet__select mwnf-search-form__field"
|
|
1016
|
-
}, [(T(!0), g(f, null, O(
|
|
1021
|
+
}, [(T(!0), g(f, null, O(s.value.fields ?? [], (e) => (T(), g("option", {
|
|
1017
1022
|
key: e.key,
|
|
1018
1023
|
value: e.key
|
|
1019
|
-
}, A(j(
|
|
1024
|
+
}, A(j(r)(e.label)), 9, Vt))), 128))], 8, Bt), [[F, e.field]]),
|
|
1020
1025
|
R(_("input", {
|
|
1021
1026
|
"onUpdate:modelValue": (t) => e.keyword = t,
|
|
1022
1027
|
type: "text",
|
|
1023
1028
|
class: "mwnf-search-form__keyword",
|
|
1024
|
-
placeholder: j(
|
|
1029
|
+
placeholder: j(r)("catalogue.search.keywordPlaceholder")
|
|
1025
1030
|
}, null, 8, Ht), [[ne, e.keyword]])
|
|
1026
1031
|
]))), 128)),
|
|
1027
|
-
I.value ? (T(), g("div", Ut, [b(
|
|
1032
|
+
I.value ? (T(), g("div", Ut, [b(a, {
|
|
1028
1033
|
modelValue: z.value,
|
|
1029
|
-
"onUpdate:modelValue":
|
|
1030
|
-
label: j(
|
|
1034
|
+
"onUpdate:modelValue": n[0] ||= (e) => z.value = e,
|
|
1035
|
+
label: j(r)("catalogue.facet.dateFrom"),
|
|
1031
1036
|
options: te.value,
|
|
1032
1037
|
"any-label": "—"
|
|
1033
1038
|
}, null, 8, [
|
|
1034
1039
|
"modelValue",
|
|
1035
1040
|
"label",
|
|
1036
1041
|
"options"
|
|
1037
|
-
]), b(
|
|
1042
|
+
]), b(a, {
|
|
1038
1043
|
modelValue: B.value,
|
|
1039
|
-
"onUpdate:modelValue":
|
|
1040
|
-
label: j(
|
|
1044
|
+
"onUpdate:modelValue": n[1] ||= (e) => B.value = e,
|
|
1045
|
+
label: j(r)("catalogue.facet.dateTo"),
|
|
1041
1046
|
options: M.value,
|
|
1042
1047
|
"any-label": "—"
|
|
1043
1048
|
}, null, 8, [
|
|
@@ -1045,16 +1050,16 @@ var be = {
|
|
|
1045
1050
|
"label",
|
|
1046
1051
|
"options"
|
|
1047
1052
|
])])) : h("", !0),
|
|
1048
|
-
|
|
1049
|
-
"onUpdate:modelValue":
|
|
1053
|
+
s.value.language ? (T(), g("label", Wt, [_("span", Gt, A(j(r)("catalogue.search.language")), 1), R(_("select", {
|
|
1054
|
+
"onUpdate:modelValue": n[2] ||= (e) => S(U) ? U.value = e : null,
|
|
1050
1055
|
class: "mwnf-facet__select mwnf-search-form__language"
|
|
1051
|
-
}, [_("option", Kt, A(j(
|
|
1056
|
+
}, [_("option", Kt, A(j(r)("catalogue.search.anyLanguage")), 1), (T(!0), g(f, null, O(re.value, (e) => (T(), g("option", {
|
|
1052
1057
|
key: e,
|
|
1053
1058
|
value: e
|
|
1054
1059
|
}, A(e.toUpperCase()), 9, qt))), 128))], 512), [[F, j(U)]])])) : h("", !0)
|
|
1055
|
-
], 64)) :
|
|
1060
|
+
], 64)) : c.value === "facets" ? (T(), g(f, { key: 1 }, [(T(!0), g(f, null, O(s.value.facets ?? [], (e) => (T(), m(a, {
|
|
1056
1061
|
key: e.key,
|
|
1057
|
-
label: e.label ? j(
|
|
1062
|
+
label: e.label ? j(r)(e.label) : "",
|
|
1058
1063
|
options: G.value[e.key] ?? [],
|
|
1059
1064
|
"model-value": X[e.key],
|
|
1060
1065
|
"onUpdate:modelValue": (t) => fe(e.key, t)
|
|
@@ -1063,43 +1068,43 @@ var be = {
|
|
|
1063
1068
|
"options",
|
|
1064
1069
|
"model-value",
|
|
1065
1070
|
"onUpdate:modelValue"
|
|
1066
|
-
]))), 128)), I.value ? (T(), g("div", Jt, [b(
|
|
1071
|
+
]))), 128)), I.value ? (T(), g("div", Jt, [b(a, {
|
|
1067
1072
|
"model-value": z.value,
|
|
1068
|
-
label: j(
|
|
1073
|
+
label: j(r)("catalogue.facet.startDate"),
|
|
1069
1074
|
options: te.value,
|
|
1070
|
-
"onUpdate:modelValue":
|
|
1075
|
+
"onUpdate:modelValue": n[3] ||= (e) => {
|
|
1071
1076
|
z.value = e, fe("from", e);
|
|
1072
1077
|
}
|
|
1073
1078
|
}, null, 8, [
|
|
1074
1079
|
"model-value",
|
|
1075
1080
|
"label",
|
|
1076
1081
|
"options"
|
|
1077
|
-
]), b(
|
|
1082
|
+
]), b(a, {
|
|
1078
1083
|
"model-value": B.value,
|
|
1079
|
-
label: j(
|
|
1084
|
+
label: j(r)("catalogue.facet.endDate"),
|
|
1080
1085
|
options: M.value,
|
|
1081
|
-
"onUpdate:modelValue":
|
|
1086
|
+
"onUpdate:modelValue": n[4] ||= (e) => {
|
|
1082
1087
|
B.value = e, fe("to", e);
|
|
1083
1088
|
}
|
|
1084
1089
|
}, null, 8, [
|
|
1085
1090
|
"model-value",
|
|
1086
1091
|
"label",
|
|
1087
1092
|
"options"
|
|
1088
|
-
])])) : h("", !0)], 64)) :
|
|
1093
|
+
])])) : h("", !0)], 64)) : c.value === "radio" ? (T(!0), g(f, { key: 2 }, O(s.value.facets ?? [], (e) => (T(), g("div", {
|
|
1089
1094
|
key: e.key,
|
|
1090
1095
|
class: "mwnf-search-form__radio-row"
|
|
1091
1096
|
}, [_("label", Yt, [R(_("input", {
|
|
1092
|
-
"onUpdate:modelValue":
|
|
1097
|
+
"onUpdate:modelValue": n[5] ||= (e) => Y.value = e,
|
|
1093
1098
|
type: "radio",
|
|
1094
1099
|
name: "mwnf-search-form-filter",
|
|
1095
1100
|
value: e.key
|
|
1096
|
-
}, null, 8, Xt), [[P, Y.value]]), y(" " + A(e.label ? j(
|
|
1101
|
+
}, null, 8, Xt), [[P, Y.value]]), y(" " + A(e.label ? j(r)(e.label) : ""), 1)]), e.type === "year" ? R((T(), g("input", {
|
|
1097
1102
|
key: 1,
|
|
1098
1103
|
"onUpdate:modelValue": (t) => X[e.key] = t,
|
|
1099
1104
|
type: "number",
|
|
1100
1105
|
class: "mwnf-search-form__year",
|
|
1101
1106
|
disabled: Y.value !== e.key
|
|
1102
|
-
}, null, 8, Zt)), [[ne, X[e.key]]]) : (T(), m(
|
|
1107
|
+
}, null, 8, Zt)), [[ne, X[e.key]]]) : (T(), m(a, {
|
|
1103
1108
|
key: 0,
|
|
1104
1109
|
modelValue: X[e.key],
|
|
1105
1110
|
"onUpdate:modelValue": (t) => X[e.key] = t,
|
|
@@ -1111,15 +1116,15 @@ var be = {
|
|
|
1111
1116
|
"options",
|
|
1112
1117
|
"disabled"
|
|
1113
1118
|
]))]))), 128)) : h("", !0),
|
|
1114
|
-
(T(!0), g(f, null, O(
|
|
1119
|
+
(T(!0), g(f, null, O(s.value.extras ?? [], (e) => (T(), g("label", {
|
|
1115
1120
|
key: e.key,
|
|
1116
1121
|
class: "mwnf-facet mwnf-facet--checkbox"
|
|
1117
1122
|
}, [R(_("input", {
|
|
1118
1123
|
"onUpdate:modelValue": (t) => Z[e.key] = t,
|
|
1119
1124
|
type: "checkbox",
|
|
1120
1125
|
class: "mwnf-facet__checkbox"
|
|
1121
|
-
}, null, 8, Qt), [[N, Z[e.key]]]), _("span", $t, A(j(
|
|
1122
|
-
k(
|
|
1126
|
+
}, null, 8, Qt), [[N, Z[e.key]]]), _("span", $t, A(j(r)(e.label)), 1)]))), 128)),
|
|
1127
|
+
k(t.$slots, "extras", w(x(xe.value)))
|
|
1123
1128
|
]),
|
|
1124
1129
|
_: 3
|
|
1125
1130
|
}, 8, [
|
|
@@ -1127,11 +1132,11 @@ var be = {
|
|
|
1127
1132
|
"apply-label",
|
|
1128
1133
|
"reset-label"
|
|
1129
1134
|
]),
|
|
1130
|
-
|
|
1131
|
-
default: L(() => [y(A(j(
|
|
1135
|
+
s.value.howTo ? (T(), g("p", en, [b(e, { to: { name: s.value.howTo } }, {
|
|
1136
|
+
default: L(() => [y(A(j(r)("catalogue.search.howTo")), 1)]),
|
|
1132
1137
|
_: 1
|
|
1133
1138
|
}, 8, ["to"])])) : h("", !0),
|
|
1134
|
-
k(
|
|
1139
|
+
k(t.$slots, "actions", w(x(xe.value)))
|
|
1135
1140
|
], 2));
|
|
1136
1141
|
}
|
|
1137
1142
|
}, nn = { class: "mwnf-timeline" }, rn = {
|
|
@@ -1153,17 +1158,17 @@ var be = {
|
|
|
1153
1158
|
type: Object,
|
|
1154
1159
|
required: !0
|
|
1155
1160
|
} },
|
|
1156
|
-
setup(
|
|
1157
|
-
let
|
|
1158
|
-
scope:
|
|
1159
|
-
countryLabel:
|
|
1160
|
-
countryIdForCode:
|
|
1161
|
-
tr:
|
|
1162
|
-
timelinesEntity:
|
|
1163
|
-
eventsEntity:
|
|
1161
|
+
setup(t) {
|
|
1162
|
+
let n = t, { t: r } = de(), i = ye(), s = p(() => n.spec), d = p(() => !!s.value.entrance), v = _e({
|
|
1163
|
+
scope: n.spec.scope ?? "country",
|
|
1164
|
+
countryLabel: n.spec.countryLabel,
|
|
1165
|
+
countryIdForCode: n.spec.countryIdForCode,
|
|
1166
|
+
tr: n.spec.tr,
|
|
1167
|
+
timelinesEntity: n.spec.timelinesEntity,
|
|
1168
|
+
eventsEntity: n.spec.eventsEntity
|
|
1164
1169
|
}), S = p(() => s.value.controls ?? []), C = p(() => s.value.keys ?? S.value.map((e) => e.key)), ee = (e) => S.value.some((t) => t.key === e), te = p(() => ({
|
|
1165
|
-
t:
|
|
1166
|
-
tr:
|
|
1170
|
+
t: r,
|
|
1171
|
+
tr: n.spec.tr,
|
|
1167
1172
|
years: {
|
|
1168
1173
|
min: B.value[0],
|
|
1169
1174
|
max: B.value[1]
|
|
@@ -1180,16 +1185,16 @@ var be = {
|
|
|
1180
1185
|
N.value = "";
|
|
1181
1186
|
let e = !!F.begin && !!F.end;
|
|
1182
1187
|
if (e && Number(F.begin) >= Number(F.end)) {
|
|
1183
|
-
N.value =
|
|
1188
|
+
N.value = r(s.value.errorPeriod ?? "timeline.form.errorPeriod");
|
|
1184
1189
|
return;
|
|
1185
1190
|
}
|
|
1186
1191
|
if (!F.country && !e) {
|
|
1187
|
-
N.value =
|
|
1192
|
+
N.value = r(s.value.errorSelect ?? "timeline.form.errorSelect");
|
|
1188
1193
|
return;
|
|
1189
1194
|
}
|
|
1190
1195
|
let t = {};
|
|
1191
1196
|
for (let e of C.value) F[e] && (t[e] = F[e]);
|
|
1192
|
-
|
|
1197
|
+
i.push({
|
|
1193
1198
|
name: s.value.route,
|
|
1194
1199
|
query: t
|
|
1195
1200
|
});
|
|
@@ -1217,14 +1222,14 @@ var be = {
|
|
|
1217
1222
|
let t = s.value.countryLabel && e.country_id ? s.value.countryLabel(e.country_id) : "";
|
|
1218
1223
|
return {
|
|
1219
1224
|
id: e.id,
|
|
1220
|
-
date: U(e, e.text,
|
|
1225
|
+
date: U(e, e.text, r),
|
|
1221
1226
|
caption: t ? Y(String(t)) : "",
|
|
1222
1227
|
description: e.text?.description ? se(String(e.text.description), { breaks: !0 }) : ""
|
|
1223
1228
|
};
|
|
1224
1229
|
}
|
|
1225
1230
|
let re = p(() => V.value.rows.map((e) => (s.value.event ?? H)(e, te.value))), ie = p(() => (v.countries.value ?? []).map((e) => ({
|
|
1226
1231
|
value: e.value,
|
|
1227
|
-
label: e.value === "all" ?
|
|
1232
|
+
label: e.value === "all" ? r("timeline.form.allCountries") : e.label
|
|
1228
1233
|
}))), ae = p(() => s.value.collections?.(te.value) ?? []), W = p(() => {
|
|
1229
1234
|
let e = {};
|
|
1230
1235
|
for (let t of S.value) (t.key === "begin" || t.key === "end") && t.options && (typeof t.options == "function" ? e[t.key] = t.options(te.value) : e[t.key] = t.options);
|
|
@@ -1239,7 +1244,7 @@ var be = {
|
|
|
1239
1244
|
pageInfo: V.value,
|
|
1240
1245
|
countries: ie.value,
|
|
1241
1246
|
collections: ae.value,
|
|
1242
|
-
t:
|
|
1247
|
+
t: r,
|
|
1243
1248
|
tr: s.value.tr
|
|
1244
1249
|
})), K = p(() => {
|
|
1245
1250
|
let e = s.value.gallery;
|
|
@@ -1260,43 +1265,43 @@ var be = {
|
|
|
1260
1265
|
query: e
|
|
1261
1266
|
},
|
|
1262
1267
|
count: q.value,
|
|
1263
|
-
label:
|
|
1268
|
+
label: r(s.value.gallery.label ?? "timeline.nav.seeGallery")
|
|
1264
1269
|
};
|
|
1265
1270
|
}), X = p(() => ({
|
|
1266
1271
|
...G.value,
|
|
1267
1272
|
gallery: J.value
|
|
1268
1273
|
})), Z = p(() => s.value.summary ? s.value.summary(X.value) : [{
|
|
1269
|
-
label:
|
|
1274
|
+
label: r(s.value.summaryLabel ?? "timeline.results.eventsFound"),
|
|
1270
1275
|
count: V.value.total
|
|
1271
|
-
}]), ce = p(() =>
|
|
1276
|
+
}]), ce = p(() => r(s.value.empty ?? "timeline.results.noResults")), Q = p(() => ({
|
|
1272
1277
|
window: 5,
|
|
1273
1278
|
jump: !1,
|
|
1274
1279
|
ends: !0,
|
|
1275
1280
|
...s.value.pagination ?? {}
|
|
1276
1281
|
}));
|
|
1277
1282
|
function le(e, t) {
|
|
1278
|
-
return e.label ?
|
|
1283
|
+
return e.label ? r(e.label) : t ? r(t) : "";
|
|
1279
1284
|
}
|
|
1280
|
-
return (
|
|
1281
|
-
k(
|
|
1282
|
-
s.value.title ? (T(), g("h1", rn, A(j(
|
|
1283
|
-
b(
|
|
1285
|
+
return (t, n) => (T(), g("section", nn, [
|
|
1286
|
+
k(t.$slots, "before", w(x(X.value))),
|
|
1287
|
+
s.value.title ? (T(), g("h1", rn, A(j(r)(s.value.title)), 1)) : h("", !0),
|
|
1288
|
+
b(o, {
|
|
1284
1289
|
class: "mwnf-timeline__filters",
|
|
1285
|
-
title: s.value.filterTitle ? j(
|
|
1286
|
-
"apply-label": d.value ? j(
|
|
1287
|
-
"reset-label": s.value.resetLabel ? j(
|
|
1288
|
-
onApply:
|
|
1289
|
-
onReset:
|
|
1290
|
+
title: s.value.filterTitle ? j(r)(s.value.filterTitle) : "",
|
|
1291
|
+
"apply-label": d.value ? j(r)(s.value.submitLabel ?? "core.action.search") : s.value.applyLabel ? j(r)(s.value.applyLabel) : "",
|
|
1292
|
+
"reset-label": s.value.resetLabel ? j(r)(s.value.resetLabel) : "",
|
|
1293
|
+
onApply: n[2] ||= (e) => d.value ? R() : j(P).apply(),
|
|
1294
|
+
onReset: n[3] ||= (e) => d.value ? I() : j(P).reset()
|
|
1290
1295
|
}, {
|
|
1291
|
-
default: L(() => [(T(!0), g(f, null, O(S.value, (e) => (T(), g(f, { key: e.key }, [e.key === "country" ? (T(), m(
|
|
1296
|
+
default: L(() => [(T(!0), g(f, null, O(S.value, (e) => (T(), g(f, { key: e.key }, [e.key === "country" ? (T(), m(a, {
|
|
1292
1297
|
key: 0,
|
|
1293
1298
|
"model-value": j(F).country,
|
|
1294
1299
|
label: le(e, "catalogue.facet.country"),
|
|
1295
1300
|
options: ie.value,
|
|
1296
|
-
placeholder: e.placeholder ? j(
|
|
1297
|
-
"any-label": e.anyLabel ? j(
|
|
1301
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : j(r)("catalogue.facet.selectCountry"),
|
|
1302
|
+
"any-label": e.anyLabel ? j(r)(e.anyLabel) : "",
|
|
1298
1303
|
"hide-empty": !!e.hideEmpty,
|
|
1299
|
-
"onUpdate:modelValue":
|
|
1304
|
+
"onUpdate:modelValue": n[0] ||= (e) => j(F).country = e
|
|
1300
1305
|
}, null, 8, [
|
|
1301
1306
|
"model-value",
|
|
1302
1307
|
"label",
|
|
@@ -1304,15 +1309,15 @@ var be = {
|
|
|
1304
1309
|
"placeholder",
|
|
1305
1310
|
"any-label",
|
|
1306
1311
|
"hide-empty"
|
|
1307
|
-
])) : e.key === "collection" ? (T(), m(
|
|
1312
|
+
])) : e.key === "collection" ? (T(), m(a, {
|
|
1308
1313
|
key: 1,
|
|
1309
1314
|
"model-value": j(F).collection,
|
|
1310
1315
|
label: le(e),
|
|
1311
1316
|
options: ae.value,
|
|
1312
|
-
placeholder: e.placeholder ? j(
|
|
1313
|
-
"any-label": e.anyLabel ? j(
|
|
1317
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : "",
|
|
1318
|
+
"any-label": e.anyLabel ? j(r)(e.anyLabel) : "",
|
|
1314
1319
|
"hide-empty": !!e.hideEmpty,
|
|
1315
|
-
"onUpdate:modelValue":
|
|
1320
|
+
"onUpdate:modelValue": n[1] ||= (e) => j(F).collection = e
|
|
1316
1321
|
}, null, 8, [
|
|
1317
1322
|
"model-value",
|
|
1318
1323
|
"label",
|
|
@@ -1320,13 +1325,13 @@ var be = {
|
|
|
1320
1325
|
"placeholder",
|
|
1321
1326
|
"any-label",
|
|
1322
1327
|
"hide-empty"
|
|
1323
|
-
])) : (e.key === "begin" || e.key === "end") && W.value[e.key] ? (T(), m(
|
|
1328
|
+
])) : (e.key === "begin" || e.key === "end") && W.value[e.key] ? (T(), m(a, {
|
|
1324
1329
|
key: 2,
|
|
1325
1330
|
"model-value": j(F)[e.key],
|
|
1326
1331
|
label: le(e, e.key === "begin" ? "catalogue.facet.startDate" : "catalogue.facet.endDate"),
|
|
1327
1332
|
options: W.value[e.key],
|
|
1328
|
-
placeholder: e.placeholder ? j(
|
|
1329
|
-
"any-label": e.anyLabel ? j(
|
|
1333
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : j(r)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
|
|
1334
|
+
"any-label": e.anyLabel ? j(r)(e.anyLabel) : "",
|
|
1330
1335
|
"hide-empty": !!e.hideEmpty,
|
|
1331
1336
|
"onUpdate:modelValue": (t) => j(F)[e.key] = t
|
|
1332
1337
|
}, null, 8, [
|
|
@@ -1341,7 +1346,7 @@ var be = {
|
|
|
1341
1346
|
type: "number",
|
|
1342
1347
|
class: "mwnf-facet__select",
|
|
1343
1348
|
value: j(F)[e.key],
|
|
1344
|
-
placeholder: e.placeholder ? j(
|
|
1349
|
+
placeholder: e.placeholder ? j(r)(e.placeholder) : j(r)(e.key === "begin" ? "timeline.form.fromYearHint" : "timeline.form.toYearHint"),
|
|
1345
1350
|
onInput: (t) => j(F)[e.key] = t.target.value
|
|
1346
1351
|
}, null, 40, sn)]))], 64))), 128))]),
|
|
1347
1352
|
_: 1
|
|
@@ -1352,20 +1357,20 @@ var be = {
|
|
|
1352
1357
|
]),
|
|
1353
1358
|
d.value && N.value ? (T(), g("p", cn, A(N.value), 1)) : h("", !0),
|
|
1354
1359
|
d.value ? h("", !0) : (T(), g(f, { key: 2 }, [
|
|
1355
|
-
k(
|
|
1356
|
-
J.value ? (T(), m(
|
|
1360
|
+
k(t.$slots, "summary", w(x(X.value)), () => [b(l, { parts: Z.value }, null, 8, ["parts"])]),
|
|
1361
|
+
J.value ? (T(), m(e, {
|
|
1357
1362
|
key: 0,
|
|
1358
1363
|
class: "mwnf-timeline__gallery",
|
|
1359
1364
|
to: J.value.to
|
|
1360
1365
|
}, {
|
|
1361
|
-
default: L(() => [k(
|
|
1366
|
+
default: L(() => [k(t.$slots, "cross-link", w(x(X.value)), () => [y(A(J.value.label), 1), J.value.count == null ? h("", !0) : (T(), g(f, { key: 0 }, [y(" (" + A(J.value.count) + ")", 1)], 64))])]),
|
|
1362
1367
|
_: 3
|
|
1363
1368
|
}, 8, ["to"])) : h("", !0),
|
|
1364
|
-
k(
|
|
1365
|
-
empty: L(() => [k(
|
|
1369
|
+
k(t.$slots, "event", w(x(X.value)), () => [b(u, { events: re.value }, {
|
|
1370
|
+
empty: L(() => [k(t.$slots, "empty", w(x(X.value)), () => [y(A(ce.value), 1)])]),
|
|
1366
1371
|
_: 3
|
|
1367
1372
|
}, 8, ["events"])]),
|
|
1368
|
-
b(
|
|
1373
|
+
b(c, {
|
|
1369
1374
|
"page-info": j(V),
|
|
1370
1375
|
window: Q.value.window,
|
|
1371
1376
|
jump: Q.value.jump,
|
|
@@ -1379,7 +1384,7 @@ var be = {
|
|
|
1379
1384
|
"onNavigate"
|
|
1380
1385
|
])
|
|
1381
1386
|
], 64)),
|
|
1382
|
-
k(
|
|
1387
|
+
k(t.$slots, "after", w(x(X.value)))
|
|
1383
1388
|
]));
|
|
1384
1389
|
}
|
|
1385
1390
|
};
|