@museumwnf/viewer-layout 3.9.0 → 3.11.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 +63 -0
- package/dist/{FeaturedRecord-DJfyvfqt.js → FeaturedRecord-DGZ1dpyc.js} +1 -1
- package/dist/GlossaryPopover-B7E6BsjS.js +55 -0
- package/dist/{ItemDetailView-Dko_grJr.js → ItemDetailView-BAoP3CHx.js} +5 -5
- package/dist/{GlossaryPopover-DcptyNWI.js → MediaGallery-CHhf9xUZ.js} +11 -60
- package/dist/{OnDisplayIn-2ctLMfvw.js → OnDisplayIn-BCjxYjO7.js} +38 -38
- package/dist/{chrome-i1DOEyLS.js → PageShell-BT9SnXav.js} +125 -154
- package/dist/RecordView-C23v0iYh.js +276 -0
- package/dist/{SiteShell-CXMfLqzq.js → SiteShell-DPdTxtJ5.js} +2 -1
- package/dist/{Theme-tF4wOaNa.js → Theme-Dn5MBpQG.js} +26 -26
- package/dist/{TimelineEventList-gsoc-SBx.js → TimelineEventList-C5cbF_an.js} +40 -40
- package/dist/TimelineResultsView-xA0Wu7zv.js +1387 -0
- package/dist/chrome-DNsZQXrL.js +34 -0
- package/dist/components.js +1 -1
- package/dist/{content-Cu_44di8.js → content-DCtsRrwx.js} +13 -13
- package/dist/content.js +7 -6
- package/dist/{data-CGFEbGab.js → data-BINc9QjV.js} +1 -1
- package/dist/{data-CCcDVsTG.js → data-CXRsGwLQ.js} +1 -1
- package/dist/dxa.js +76 -74
- package/dist/index.js +9 -7
- package/dist/minisite.js +931 -0
- package/dist/standalone.js +140 -140
- package/dist/{themeSpecs-C2Y2abxd.js → themeSpecs-DP9xWiVJ.js} +1 -1
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +4 -4
- package/package.json +4 -3
- package/dist/RecordView-CdKx9tFy.js +0 -270
- package/dist/TimelineResultsView-C2-TnM71.js +0 -1386
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ all the packages:
|
|
|
21
21
|
| `@museumwnf/viewer-layout/dxa/gallery.css`, `/dxa/exhibition.css` | DXA family layer | each family's stylesheet: its fonts, page reset and page column, and its theme as a function of the palette | the palette a site's `theme/tokens.css` sets |
|
|
22
22
|
| `@museumwnf/viewer-layout/dxa/testing` | DXA family layer | each family's smoke test, `describeGallerySmoke` / `describeExhibitionSmoke` | the site's config, texts and package, in the site's own Vitest |
|
|
23
23
|
| `@museumwnf/viewer-layout/standalone` | standalone family layer | the chrome, home page, item sheet, text page and blocks of Discover Islamic Art, Discover Baroque Art and Sharing History | the entries above and `@museumwnf/viewer-core` |
|
|
24
|
+
| `@museumwnf/viewer-layout/minisite` | mini-site family layer | legacy's virtual exhibitions, one website each: the frame, the home page, the introduction, the exhibition pages, legacy's three windows, the caption rules, `minisiteRoutes` / `minisiteNavigation` / `minisiteSettings` | the entries above and `@museumwnf/viewer-core` |
|
|
24
25
|
| `@museumwnf/viewer-layout/style.css` | — | one stylesheet for every entry, the family styles included | — |
|
|
25
26
|
| `@museumwnf/viewer-layout/tokens.reference.css` | — | every token the package reads, with its fallback | — |
|
|
26
27
|
|
|
@@ -770,6 +771,68 @@ every value is a `--mwnf-standalone-*` token with a neutral fallback
|
|
|
770
771
|
(`tokens.reference.css`); a site's `theme/tokens.css` sets legacy's. It ships
|
|
771
772
|
in `style.css`, so a site imports nothing more.
|
|
772
773
|
|
|
774
|
+
## Mini-site family pages
|
|
775
|
+
|
|
776
|
+
`@museumwnf/viewer-layout/minisite` is the family layer of the mini-sites:
|
|
777
|
+
legacy's virtual exhibitions, each a website of its own (inventory-app#2359).
|
|
778
|
+
Every one ran on the same pages (Discover Islamic Art's
|
|
779
|
+
`exhibitions/ISL/generic_*.php`), so every page, rule and window is here once,
|
|
780
|
+
and a change to how a page is drawn reaches every mini-site. What is an
|
|
781
|
+
exhibition's own stays in its repository: its settings (`minisite`), its
|
|
782
|
+
theme (`theme/tokens.css`), its legacy pictures and its texts.
|
|
783
|
+
|
|
784
|
+
```js
|
|
785
|
+
import { languageLabels, offeredLanguages, sectionMeta } from '@museumwnf/viewer-core'
|
|
786
|
+
import {
|
|
787
|
+
ISLAMICART_NO_COUNTRY, MinisiteHome, MinisiteShell, minisiteNavigation, minisiteRoutes, minisiteSettings,
|
|
788
|
+
} from '@museumwnf/viewer-layout/minisite'
|
|
789
|
+
|
|
790
|
+
const languages = offeredLanguages()
|
|
791
|
+
const parent = 'https://museumwithnofrontiers.github.io/islamicart'
|
|
792
|
+
|
|
793
|
+
export default {
|
|
794
|
+
// …datasetPackage, siteName, site, features, languages…
|
|
795
|
+
shell: MinisiteShell,
|
|
796
|
+
chrome: import.meta.glob('../theme/assets/**/*.{jpg,jpeg,png,gif,svg}', { eager: true, query: '?url', import: 'default' }),
|
|
797
|
+
navigation: minisiteNavigation({ languages: languageLabels(languages), parent }),
|
|
798
|
+
minisite: minisiteSettings({
|
|
799
|
+
parent,
|
|
800
|
+
menuSecondColumnFrom: 7,
|
|
801
|
+
curators: [{ partner: '<uuid>', logo: 'legacy/JO-10.gif', space: 35 }],
|
|
802
|
+
map: {
|
|
803
|
+
thumbnail: 'legacy/intro_map_thumb.jpg',
|
|
804
|
+
picture: (lang, n) => (n ? `legacy/map${n}_${lang}.jpg` : `legacy/map_${lang}.jpg`),
|
|
805
|
+
count: 1,
|
|
806
|
+
},
|
|
807
|
+
noCountry: ISLAMICART_NO_COUNTRY,
|
|
808
|
+
documentTitle: 'MWNF DISCOVER ISLAMIC ART: Exhibition',
|
|
809
|
+
}),
|
|
810
|
+
views: { home: MinisiteHome },
|
|
811
|
+
extraViews: minisiteRoutes(sectionMeta()),
|
|
812
|
+
}
|
|
813
|
+
```
|
|
814
|
+
|
|
815
|
+
- **Routes** (`minisiteRoutes`): `home`, `introduction`,
|
|
816
|
+
`exhibition` (`/exhibition/<theme>/<page>`, 1-based as legacy's addresses),
|
|
817
|
+
and legacy's windows `credits`, `map` and `zoom`, marked `meta.bare` and drawn
|
|
818
|
+
without the frame.
|
|
819
|
+
- **The data**: the exhibition is the package's
|
|
820
|
+
`manifest.site.root_collection_id` — its themes under it, their pages under
|
|
821
|
+
them, and the placements of each page, grouped by position into views
|
|
822
|
+
(`slotsOf`). A caption is composed by legacy's rules (`placementCaption`,
|
|
823
|
+
`introCaption`): the page's own text first, the record's own otherwise.
|
|
824
|
+
- **The pictures** are the site's chrome files under the names legacy gave them
|
|
825
|
+
(`legacy/logo_<lang>.gif`, `legacy/home_bg.jpg`, `legacy/home_bg_ar.jpg`,
|
|
826
|
+
`legacy/intro_bg(_ar).jpg`, `legacy/exhibition_bg(_ar).jpg`,
|
|
827
|
+
`legacy/bg_fading_left.gif`, `legacy/bg_fading_right.gif`,
|
|
828
|
+
`legacy/ico_item(_selected).gif`, `legacy/print_dark.gif`,
|
|
829
|
+
`legacy/arrow_inner_black.gif`), plus the logos and maps the settings name.
|
|
830
|
+
- **The theme**: `minisite.css` reads `--minisite-*` tokens for every value an
|
|
831
|
+
exhibition's stylesheet set — colours, fonts and the positions of its titles,
|
|
832
|
+
menus and links on its pictures, the Arabic ones under `[dir='rtl']`.
|
|
833
|
+
inventory-app's `scripts/minisites/legacy-theme.mjs` writes a site's
|
|
834
|
+
`tokens.css` from its legacy stylesheets.
|
|
835
|
+
- **The curators' band** on the home page is drawn here; which curators, their\n logos and their links are the site's own (`minisite.curators`): a partner\n (`{ partner, logo, space }`, its name, country and page from its record) or a\n curator legacy named itself (`{ name, country, href, logo, space }`).\n- **The texts** are viewer-i18n's `minisite` bundle (class `minisite`).
|
|
773
836
|
## Theming
|
|
774
837
|
|
|
775
838
|
Every color, font, spacing, radius comes from a `--mwnf-*` CSS custom property with a neutral fallback. Full list: [`tokens.reference.css`](src/tokens.reference.css) (also exported as `@museumwnf/viewer-layout/tokens.reference.css`) — copy it into your website as `theme/tokens.css` and set values.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as e } from "./MediaGallery-CHhf9xUZ.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 = {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createCommentVNode as e, createElementBlock as t, createElementVNode as n, onBeforeUnmount as r, openBlock as i, ref as a, toDisplayString as o, unref as s, watch as c } from "vue";
|
|
2
|
+
import { useI18n as l } from "@museumwnf/viewer-core/i18n";
|
|
3
|
+
//#region src/content/GlossaryPopover.vue
|
|
4
|
+
var u = ["aria-label", "dir"], d = { class: "mwnf-popover__title" }, f = ["aria-label"], p = { class: "mwnf-popover__body" }, m = { class: "mwnf-popover__term" }, h = ["innerHTML"], g = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "mwnf-popover__definition"
|
|
7
|
+
}, _ = {
|
|
8
|
+
__name: "GlossaryPopover",
|
|
9
|
+
props: {
|
|
10
|
+
term: {
|
|
11
|
+
type: Object,
|
|
12
|
+
default: null
|
|
13
|
+
},
|
|
14
|
+
html: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
dir: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
emits: ["close"],
|
|
24
|
+
setup(_, { emit: v }) {
|
|
25
|
+
let y = _, b = v, { t: x } = l(), S = a(null), C = null;
|
|
26
|
+
function w() {
|
|
27
|
+
b("close");
|
|
28
|
+
}
|
|
29
|
+
function T(e) {
|
|
30
|
+
e.key === "Escape" && w();
|
|
31
|
+
}
|
|
32
|
+
return c(() => y.term, (e, t) => {
|
|
33
|
+
e && !t ? (C = document.activeElement, document.addEventListener("keydown", T), requestAnimationFrame(() => S.value?.focus?.())) : !e && t && (document.removeEventListener("keydown", T), C?.focus?.(), C = null);
|
|
34
|
+
}, { immediate: !0 }), r(() => document.removeEventListener("keydown", T)), (r, a) => _.term ? (i(), t("aside", {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "mwnf-popover",
|
|
37
|
+
role: "dialog",
|
|
38
|
+
"aria-label": s(x)("record.glossary.heading"),
|
|
39
|
+
dir: _.dir || void 0
|
|
40
|
+
}, [n("div", d, [n("span", null, o(s(x)("record.glossary.heading")), 1), n("button", {
|
|
41
|
+
ref_key: "closeButton",
|
|
42
|
+
ref: S,
|
|
43
|
+
type: "button",
|
|
44
|
+
class: "mwnf-popover__close",
|
|
45
|
+
"aria-label": s(x)("record.glossary.close"),
|
|
46
|
+
onClick: w
|
|
47
|
+
}, "✕", 8, f)]), n("div", p, [n("p", m, o(_.term.spelling || _.term.word), 1), _.html ? (i(), t("div", {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: "mwnf-popover__definition mwnf-sheet__block",
|
|
50
|
+
innerHTML: _.html
|
|
51
|
+
}, null, 8, h)) : _.term.definition ? (i(), t("p", g, o(_.term.definition), 1)) : e("", !0)])], 8, u)) : e("", !0);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { _ as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./chrome-
|
|
2
|
-
import {
|
|
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-
|
|
1
|
+
import { t as e } from "./chrome-DNsZQXrL.js";
|
|
2
|
+
import { n as t } from "./MediaGallery-CHhf9xUZ.js";
|
|
3
|
+
import { n } from "./TimelineEventList-C5cbF_an.js";
|
|
4
|
+
import { i as r, n as i, o as a, r as o, t as s } from "./OnDisplayIn-BCjxYjO7.js";
|
|
5
|
+
import { t as c } from "./RecordView-C23v0iYh.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
|
|
@@ -476,20 +476,20 @@ var E = [
|
|
|
476
476
|
}, qe = {
|
|
477
477
|
key: 2,
|
|
478
478
|
class: "mwnf-media__credit"
|
|
479
|
-
}, Je = ["src", "alt"],
|
|
479
|
+
}, Je = ["src", "alt"], $ = {
|
|
480
480
|
key: 0,
|
|
481
481
|
class: "mwnf-media__thumbs"
|
|
482
|
-
},
|
|
482
|
+
}, Ye = [
|
|
483
483
|
"aria-pressed",
|
|
484
484
|
"title",
|
|
485
485
|
"onClick"
|
|
486
|
-
],
|
|
486
|
+
], Xe = ["src", "alt"], Ze = {
|
|
487
487
|
key: 1,
|
|
488
488
|
class: "mwnf-media__caption"
|
|
489
|
-
},
|
|
489
|
+
}, Qe = { key: 0 }, $e = {
|
|
490
490
|
key: 1,
|
|
491
491
|
class: "mwnf-media__credit"
|
|
492
|
-
},
|
|
492
|
+
}, et = ["aria-label"], tt = ["aria-label"], nt = ["src", "alt"], rt = ["aria-label"], it = {
|
|
493
493
|
__name: "MediaGallery",
|
|
494
494
|
props: {
|
|
495
495
|
images: {
|
|
@@ -551,7 +551,7 @@ var E = [
|
|
|
551
551
|
src: l.value.url,
|
|
552
552
|
alt: l.value.alt ?? ""
|
|
553
553
|
}, null, 8, Je)]),
|
|
554
|
-
n.images.length > 1 ? (f(), i("ul",
|
|
554
|
+
n.images.length > 1 ? (f(), i("ul", $, [(f(!0), i(e, null, m(n.images, (e, t) => (f(), i("li", { key: e.url ?? t }, [a("button", {
|
|
555
555
|
type: "button",
|
|
556
556
|
class: u(["mwnf-media__thumb", { "mwnf-media__thumb--active": t === c.value }]),
|
|
557
557
|
"aria-pressed": t === c.value ? "true" : "false",
|
|
@@ -561,8 +561,8 @@ var E = [
|
|
|
561
561
|
src: e.url,
|
|
562
562
|
alt: e.alt ?? "",
|
|
563
563
|
loading: "lazy"
|
|
564
|
-
}, null, 8,
|
|
565
|
-
l.value.caption || h.value ? (f(), i("p",
|
|
564
|
+
}, null, 8, Xe)], 10, Ye)]))), 128))])) : r("", !0),
|
|
565
|
+
l.value.caption || h.value ? (f(), i("p", Ze, [l.value.caption ? (f(), i("span", Qe, _(l.value.caption), 1)) : r("", !0), h.value ? (f(), i("span", $e, _(h.value), 1)) : r("", !0)])) : r("", !0),
|
|
566
566
|
g.value ? (f(), i("div", {
|
|
567
567
|
key: 2,
|
|
568
568
|
class: "mwnf-lightbox",
|
|
@@ -577,14 +577,14 @@ var E = [
|
|
|
577
577
|
class: "mwnf-lightbox__close",
|
|
578
578
|
"aria-label": v(s)("core.action.close"),
|
|
579
579
|
onClick: E
|
|
580
|
-
}, "✕", 8,
|
|
580
|
+
}, "✕", 8, et),
|
|
581
581
|
n.images.length > 1 ? (f(), i("button", {
|
|
582
582
|
key: 0,
|
|
583
583
|
type: "button",
|
|
584
584
|
class: "mwnf-lightbox__control mwnf-lightbox__control--previous",
|
|
585
585
|
"aria-label": v(s)("core.pagination.previous"),
|
|
586
586
|
onClick: o[0] ||= S((e) => w(c.value - 1), ["stop"])
|
|
587
|
-
}, "‹", 8,
|
|
587
|
+
}, "‹", 8, tt)) : r("", !0),
|
|
588
588
|
a("img", {
|
|
589
589
|
class: "mwnf-lightbox__image",
|
|
590
590
|
src: l.value.url,
|
|
@@ -600,55 +600,6 @@ var E = [
|
|
|
600
600
|
])) : r("", !0)
|
|
601
601
|
], 64))], 2)) : r("", !0);
|
|
602
602
|
}
|
|
603
|
-
}, at = ["aria-label", "dir"], ot = { class: "mwnf-popover__title" }, st = ["aria-label"], ct = { class: "mwnf-popover__body" }, lt = { class: "mwnf-popover__term" }, ut = ["innerHTML"], dt = {
|
|
604
|
-
key: 1,
|
|
605
|
-
class: "mwnf-popover__definition"
|
|
606
|
-
}, ft = {
|
|
607
|
-
__name: "GlossaryPopover",
|
|
608
|
-
props: {
|
|
609
|
-
term: {
|
|
610
|
-
type: Object,
|
|
611
|
-
default: null
|
|
612
|
-
},
|
|
613
|
-
html: {
|
|
614
|
-
type: String,
|
|
615
|
-
default: ""
|
|
616
|
-
},
|
|
617
|
-
dir: {
|
|
618
|
-
type: String,
|
|
619
|
-
default: ""
|
|
620
|
-
}
|
|
621
|
-
},
|
|
622
|
-
emits: ["close"],
|
|
623
|
-
setup(e, { emit: t }) {
|
|
624
|
-
let n = e, o = t, { t: s } = C(), c = p(null), l = null;
|
|
625
|
-
function u() {
|
|
626
|
-
o("close");
|
|
627
|
-
}
|
|
628
|
-
function m(e) {
|
|
629
|
-
e.key === "Escape" && u();
|
|
630
|
-
}
|
|
631
|
-
return b(() => n.term, (e, t) => {
|
|
632
|
-
e && !t ? (l = document.activeElement, document.addEventListener("keydown", m), requestAnimationFrame(() => c.value?.focus?.())) : !e && t && (document.removeEventListener("keydown", m), l?.focus?.(), l = null);
|
|
633
|
-
}, { immediate: !0 }), d(() => document.removeEventListener("keydown", m)), (t, n) => e.term ? (f(), i("aside", {
|
|
634
|
-
key: 0,
|
|
635
|
-
class: "mwnf-popover",
|
|
636
|
-
role: "dialog",
|
|
637
|
-
"aria-label": v(s)("record.glossary.heading"),
|
|
638
|
-
dir: e.dir || void 0
|
|
639
|
-
}, [a("div", ot, [a("span", null, _(v(s)("record.glossary.heading")), 1), a("button", {
|
|
640
|
-
ref_key: "closeButton",
|
|
641
|
-
ref: c,
|
|
642
|
-
type: "button",
|
|
643
|
-
class: "mwnf-popover__close",
|
|
644
|
-
"aria-label": v(s)("record.glossary.close"),
|
|
645
|
-
onClick: u
|
|
646
|
-
}, "✕", 8, st)]), a("div", ct, [a("p", lt, _(e.term.spelling || e.term.word), 1), e.html ? (f(), i("div", {
|
|
647
|
-
key: 0,
|
|
648
|
-
class: "mwnf-popover__definition mwnf-sheet__block",
|
|
649
|
-
innerHTML: e.html
|
|
650
|
-
}, null, 8, ut)) : e.term.definition ? (f(), i("p", dt, _(e.term.definition), 1)) : r("", !0)])], 8, at)) : r("", !0);
|
|
651
|
-
}
|
|
652
603
|
};
|
|
653
604
|
//#endregion
|
|
654
|
-
export {
|
|
605
|
+
export { Te as a, X as c, Fe as i, I as l, He as n, xe as o, ze as r, ne as s, it as t, D as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as e, u as t } from "./MediaGallery-CHhf9xUZ.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";
|
|
@@ -35,8 +35,8 @@ var k = ["href"], A = {
|
|
|
35
35
|
default: "←"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
setup(
|
|
39
|
-
let n = O(), a =
|
|
38
|
+
setup(e) {
|
|
39
|
+
let n = O(), a = e, l = r(() => !!(a.to || a.href));
|
|
40
40
|
function u() {
|
|
41
41
|
return window.history.state?.back != null || !l.value && window.history.length > 1;
|
|
42
42
|
}
|
|
@@ -47,28 +47,28 @@ var k = ["href"], A = {
|
|
|
47
47
|
function m(e) {
|
|
48
48
|
e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (u() ? (e.preventDefault(), n.back()) : a.to && n ? (e.preventDefault(), n.push(a.to)) : l.value || e.preventDefault());
|
|
49
49
|
}
|
|
50
|
-
return (n, r) =>
|
|
50
|
+
return (n, r) => e.variant === "bar" ? (f(), o("a", {
|
|
51
51
|
key: 0,
|
|
52
52
|
href: p.value,
|
|
53
53
|
class: "mwnf-back-bar mwnf-back-bar--link",
|
|
54
54
|
onClick: m
|
|
55
55
|
}, [
|
|
56
|
-
s("span", A, _(
|
|
56
|
+
s("span", A, _(e.arrow), 1),
|
|
57
57
|
r[0] ||= c(),
|
|
58
|
-
h(n.$slots, "default", {}, () => [c(_(n.$t(
|
|
59
|
-
], 8, k)) : (f(), o("div", te, [l.value && !u() ? (f(), i(
|
|
58
|
+
h(n.$slots, "default", {}, () => [c(_(n.$t(e.label)), 1)])
|
|
59
|
+
], 8, k)) : (f(), o("div", te, [l.value && !u() ? (f(), i(t, {
|
|
60
60
|
key: 0,
|
|
61
|
-
to:
|
|
62
|
-
href:
|
|
61
|
+
to: e.to,
|
|
62
|
+
href: e.href,
|
|
63
63
|
class: "mwnf-back-link__button"
|
|
64
64
|
}, {
|
|
65
|
-
default: S(() => [c(" ↩ " + _(n.$t(
|
|
65
|
+
default: S(() => [c(" ↩ " + _(n.$t(e.label)), 1)]),
|
|
66
66
|
_: 1
|
|
67
67
|
}, 8, ["to", "href"])) : (f(), o("button", {
|
|
68
68
|
key: 1,
|
|
69
69
|
class: "mwnf-back-link__button",
|
|
70
70
|
onClick: d
|
|
71
|
-
}, " ↩ " + _(n.$t(
|
|
71
|
+
}, " ↩ " + _(n.$t(e.label)), 1))]));
|
|
72
72
|
}
|
|
73
73
|
}, j = ["dir"], M = { class: "mwnf-glossary-tool__toggle" }, N = { class: "mwnf-glossary-tool__panel" }, P = { class: "mwnf-glossary-tool__heading" }, F = { class: "mwnf-glossary-tool__instructions" }, I = ["aria-expanded", "aria-label"], L = {
|
|
74
74
|
key: 0,
|
|
@@ -256,8 +256,8 @@ var k = ["href"], A = {
|
|
|
256
256
|
type: Object,
|
|
257
257
|
required: !0
|
|
258
258
|
} },
|
|
259
|
-
setup(
|
|
260
|
-
let i =
|
|
259
|
+
setup(e) {
|
|
260
|
+
let i = e, { t: u } = T(), d = p(!1), h = p(i.info.defaultCountry ? i.info.defaultCountry() : "all");
|
|
261
261
|
x(() => i.info, (e) => {
|
|
262
262
|
h.value = e.defaultCountry ? e.defaultCountry() : "all";
|
|
263
263
|
});
|
|
@@ -265,23 +265,23 @@ var k = ["href"], A = {
|
|
|
265
265
|
return (r, i) => (f(), o("div", ue, [s("p", {
|
|
266
266
|
class: "mwnf-sheet-timeline__trigger",
|
|
267
267
|
onClick: i[0] ||= (e) => d.value = !d.value
|
|
268
|
-
}, "➤ " + _(v(u)(
|
|
268
|
+
}, "➤ " + _(v(u)(e.info.trigger ?? "record.related.timelineForItem")), 1), d.value ? (f(), o("div", de, [
|
|
269
269
|
s("button", {
|
|
270
270
|
type: "button",
|
|
271
271
|
class: "mwnf-sheet-timeline__close",
|
|
272
272
|
"aria-label": v(u)("core.action.close"),
|
|
273
273
|
onClick: i[1] ||= (e) => d.value = !1
|
|
274
274
|
}, "✕", 8, fe),
|
|
275
|
-
s("p", pe, _(v(u)(
|
|
275
|
+
s("p", pe, _(v(u)(e.info.heading)), 1),
|
|
276
276
|
s("div", me, [C(s("select", {
|
|
277
277
|
"onUpdate:modelValue": i[2] ||= (e) => h.value = e,
|
|
278
278
|
class: "mwnf-sheet-timeline__select"
|
|
279
|
-
}, [(f(!0), o(n, null, m(
|
|
279
|
+
}, [(f(!0), o(n, null, m(e.info.countries, (e) => (f(), o("option", {
|
|
280
280
|
key: e.value,
|
|
281
281
|
value: e.value
|
|
282
|
-
}, _(e.label), 9, he))), 128))], 512), [[y, h.value]]), l(
|
|
282
|
+
}, _(e.label), 9, he))), 128))], 512), [[y, h.value]]), l(t, {
|
|
283
283
|
class: "mwnf-sheet-timeline__link",
|
|
284
|
-
to:
|
|
284
|
+
to: e.info.searchTo(h.value, g.value)
|
|
285
285
|
}, {
|
|
286
286
|
default: S(() => [c("➤ " + _(v(u)("timeline.action.beginFullSearch")), 1)]),
|
|
287
287
|
_: 1
|
|
@@ -326,26 +326,26 @@ var k = ["href"], A = {
|
|
|
326
326
|
default: ""
|
|
327
327
|
}
|
|
328
328
|
},
|
|
329
|
-
setup(
|
|
330
|
-
let c =
|
|
329
|
+
setup(t) {
|
|
330
|
+
let c = t, { t: l } = T(), u = r(() => {
|
|
331
331
|
let e = c.media.filter((e) => e?.url);
|
|
332
332
|
return c.language ? e.filter((e) => !e.language || e.language === c.language) : e;
|
|
333
333
|
});
|
|
334
|
-
return (r, c) => u.value.length ? (f(), i(
|
|
334
|
+
return (r, c) => u.value.length ? (f(), i(e, {
|
|
335
335
|
key: 0,
|
|
336
|
-
heading:
|
|
337
|
-
dir:
|
|
336
|
+
heading: t.heading ? v(l)(t.heading) : "",
|
|
337
|
+
dir: t.dir,
|
|
338
338
|
class: "mwnf-related-media"
|
|
339
339
|
}, {
|
|
340
|
-
default: S(() => [(f(!0), o(n, null, m(u.value, (
|
|
341
|
-
key:
|
|
340
|
+
default: S(() => [(f(!0), o(n, null, m(u.value, (e) => (f(), o("div", {
|
|
341
|
+
key: e.url,
|
|
342
342
|
class: "mwnf-related-media__entry"
|
|
343
343
|
}, [s("a", {
|
|
344
|
-
href:
|
|
344
|
+
href: e.url,
|
|
345
345
|
target: "_blank",
|
|
346
346
|
rel: "noopener",
|
|
347
347
|
class: "mwnf-related-media__link"
|
|
348
|
-
}, "↗ " + _(
|
|
348
|
+
}, "↗ " + _(e.title || e.url), 9, xe), t.descriptions && e.description ? (f(), o("p", Se, _(e.description), 1)) : a("", !0)]))), 128))]),
|
|
349
349
|
_: 1
|
|
350
350
|
}, 8, ["heading", "dir"])) : a("", !0);
|
|
351
351
|
}
|
|
@@ -374,29 +374,29 @@ var k = ["href"], A = {
|
|
|
374
374
|
},
|
|
375
375
|
setup(l) {
|
|
376
376
|
let d = l, { t: p } = T(), h = r(() => d.groups.filter((e) => e.links?.length));
|
|
377
|
-
return (r, d) => h.value.length ? (f(), i(g(l.heading ?
|
|
377
|
+
return (r, d) => h.value.length ? (f(), i(g(l.heading ? e : "div"), u({ key: 0 }, l.heading ? { heading: v(p)(l.heading) } : {}, {
|
|
378
378
|
dir: l.dir || void 0,
|
|
379
379
|
class: "mwnf-on-display"
|
|
380
380
|
}), {
|
|
381
|
-
default: S(() => [(f(!0), o(n, null, m(h.value, (
|
|
382
|
-
key:
|
|
381
|
+
default: S(() => [(f(!0), o(n, null, m(h.value, (e, r) => (f(), o("div", {
|
|
382
|
+
key: e.heading ?? r,
|
|
383
383
|
class: "mwnf-on-display__group"
|
|
384
|
-
}, [
|
|
385
|
-
key:
|
|
384
|
+
}, [e.heading ? (f(), o("p", we, _(v(p)(e.heading)), 1)) : a("", !0), s("ul", Te, [(f(!0), o(n, null, m(e.links, (e, r) => (f(), o("li", {
|
|
385
|
+
key: e.id ?? r,
|
|
386
386
|
class: "mwnf-on-display__item"
|
|
387
|
-
}, [
|
|
387
|
+
}, [e.to || e.href ? (f(), i(t, {
|
|
388
388
|
key: 0,
|
|
389
|
-
to:
|
|
390
|
-
href:
|
|
391
|
-
external: !!
|
|
389
|
+
to: e.to,
|
|
390
|
+
href: e.href,
|
|
391
|
+
external: !!e.external
|
|
392
392
|
}, {
|
|
393
|
-
default: S(() => [
|
|
393
|
+
default: S(() => [e.external ? (f(), o(n, { key: 0 }, [c("↗ ")], 64)) : a("", !0), s("span", { innerHTML: e.label }, null, 8, Ee)]),
|
|
394
394
|
_: 2
|
|
395
395
|
}, 1032, [
|
|
396
396
|
"to",
|
|
397
397
|
"href",
|
|
398
398
|
"external"
|
|
399
|
-
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML:
|
|
399
|
+
])) : (f(), o(n, { key: 1 }, [s("span", { innerHTML: e.label }, null, 8, De), l.pendingLabel ? (f(), o(n, { key: 0 }, [d[0] ||= c(_(" "), -1), s("span", Oe, _(v(p)(l.pendingLabel)), 1)], 64)) : a("", !0)], 64))]))), 128))])]))), 128))]),
|
|
400
400
|
_: 1
|
|
401
401
|
}, 16, ["dir"])) : a("", !0);
|
|
402
402
|
}
|