@museumwnf/viewer-layout 3.58.0 → 3.60.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 +5 -3
- package/dist/{FeaturedRecord-CTqnQFox.js → FeaturedRecord-DLYyyRey.js} +2 -3
- package/dist/{GlossaryPopover-B7E6BsjS.js → GlossaryPopover-DbQKXhx9.js} +1 -2
- package/dist/ItemDetailView-D5T3QXYJ.js +303 -0
- package/dist/{OnDisplayIn-DZHRKjL0.js → OnDisplayIn-CCM5Ahxy.js} +10 -5
- package/dist/{PageShell-CcaLOuXI.js → PageShell-CPtgzcxv.js} +1 -2
- package/dist/{PartnerMap-BIKd-AGP.js → PartnerMap-BuQo_FLl.js} +1 -2
- package/dist/{RecordView-DEKHp1A3.js → RecordView-n7bbQUg2.js} +14 -17
- package/dist/{SiteShell-CYQxXosD.js → SiteShell-qvsZO4Iz.js} +3 -4
- package/dist/{Theme-Co1bf81Z.js → Theme-0bsA_Abx.js} +29 -30
- package/dist/{TimelineEventList-CTJJOWGh.js → TimelineEventList-e1fNm28F.js} +3 -4
- package/dist/{TimelineResultsView-D15BMWZM.js → TimelineResultsView-Cl_LcM--.js} +264 -255
- package/dist/{chrome-DNsZQXrL.js → chrome-Bv_mLlHM.js} +1 -2
- package/dist/components.js +1 -2
- package/dist/{content-PQeMx8U5.js → content-BzSJircQ.js} +3 -4
- package/dist/content.js +6 -6
- package/dist/{data-CXRsGwLQ.js → data-EKYeMQcC.js} +16 -11
- package/dist/{data-BINc9QjV.js → data-kqAkoQvf.js} +2 -3
- package/dist/dxa.js +898 -673
- package/dist/index.js +8 -8
- package/dist/minisite.js +347 -341
- package/dist/standalone.js +209 -217
- package/dist/{themeSpecs-DP9xWiVJ.js → themeSpecs-CsDpl4rR.js} +2 -3
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +5 -6
- package/package.json +10 -10
- package/src/dxa/testing.js +71 -42
- package/src/styles/dxa-gallery.css +19 -1
- package/src/tokens.reference.css +11 -1
- package/dist/ItemDetailView-Bbn-uNaR.js +0 -304
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/chrome.js
|
|
2
2
|
var e = /^.*?theme\/assets\//, t = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
function n(e) {
|
|
4
4
|
let n = t.get(e);
|
|
@@ -30,5 +30,4 @@ function s(e, t) {
|
|
|
30
30
|
}
|
|
31
31
|
return r ? n.body.innerHTML : e;
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { s as i, a as n, o as r, i as t };
|
package/dist/components.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as SiteShell };
|
|
1
|
+
export { t as SiteShell } from "./SiteShell-qvsZO4Iz.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./FeaturedRecord-
|
|
2
|
-
import { n as e, o as t } from "./PartnerMap-
|
|
1
|
+
import "./FeaturedRecord-DLYyyRey.js";
|
|
2
|
+
import { n as e, o as t } from "./PartnerMap-BuQo_FLl.js";
|
|
3
3
|
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, openBlock as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
4
4
|
import { useI18n as p } from "@museumwnf/viewer-core/i18n";
|
|
5
5
|
import { md as m, mdInline as h } from "@museumwnf/viewer-core";
|
|
6
|
-
|
|
6
|
+
// src/content/SpecialFeatures.vue
|
|
7
7
|
var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
|
|
8
8
|
__name: "SpecialFeatures",
|
|
9
9
|
props: {
|
|
@@ -86,5 +86,4 @@ var g = ["innerHTML"], _ = ["innerHTML"], v = ["innerHTML"], y = {
|
|
|
86
86
|
}, 8, ["heading", "dir"])) : a("", !0);
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
//#endregion
|
|
90
89
|
export { y as t };
|
package/dist/content.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as e } from "./FeaturedRecord-
|
|
2
|
-
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./PartnerMap-
|
|
3
|
-
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-
|
|
4
|
-
import { t as v } from "./GlossaryPopover-
|
|
5
|
-
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-
|
|
6
|
-
import { t as E } from "./content-
|
|
1
|
+
import { t as e } from "./FeaturedRecord-DLYyyRey.js";
|
|
2
|
+
import { a as t, c as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "./PartnerMap-BuQo_FLl.js";
|
|
3
|
+
import { a as d, i as f, n as p, o as m, r as h, s as g, t as _ } from "./TimelineEventList-e1fNm28F.js";
|
|
4
|
+
import { t as v } from "./GlossaryPopover-DbQKXhx9.js";
|
|
5
|
+
import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-CCM5Ahxy.js";
|
|
6
|
+
import { t as E } from "./content-BzSJircQ.js";
|
|
7
7
|
export { w as BackLink, b as DynastyList, y as DynastyPopout, d as FacetSelect, e as FeaturedRecord, f as FilterPanel, v as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, m as Pagination, l as PartnerMap, p as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, h as ResultsSummary, g as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, _ as TimelineEventList, C as TimelineLookup };
|
|
@@ -1,40 +1,45 @@
|
|
|
1
|
-
import { n as e } from "./chrome-
|
|
1
|
+
import { n as e } from "./chrome-Bv_mLlHM.js";
|
|
2
2
|
import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
|
|
3
|
-
import { FACET_CATEGORIES as r, FACET_LABEL_KEYS as i,
|
|
4
|
-
|
|
3
|
+
import { FACET_CATEGORIES as r, FACET_LABEL_KEYS as i, GALLERY_ERA_WORDS as a, useFacetLabels as o, useGalleryCollection as s, useGalleryData as c, useGalleryItemDetail as l, useGalleryPartner as u, useGalleryTimeline as d } from "@museumwnf/viewer-core/dxa";
|
|
4
|
+
// src/dxa/gallery/data.js
|
|
5
5
|
var f = c(), p = s(f), m = d(f, p), h = u(f, p), { itemDetail: g } = l(f, m), { manifest: _, defaultLang: v, tr: y, md: b, mdInline: x, loadEnglish: S, labelOf: C, gallery: w, items: T, itemById: E, partners: D, countries: O, timelines: k, partnerById: A, itemRoute: j, partnerRoute: M, partnerObjectsRoute: N, itemFromUidPath: P, partnerFromKey: F, pickSiblings: I, siblingUrl: L } = f;
|
|
6
6
|
function R(t, r = "hi_res") {
|
|
7
7
|
return e(n().chrome, t) ?? f.chromeImage(t, r);
|
|
8
8
|
}
|
|
9
|
-
var { FACETS: z, haystack: B, tile: V,
|
|
9
|
+
var { FACETS: z, haystack: B, tile: V, legacyOrder: H, collectionResults: U, countryIdForCode: W } = p, G = {
|
|
10
|
+
pageSize: 20,
|
|
11
|
+
sort: {
|
|
12
|
+
undated: "first",
|
|
13
|
+
tiebreak: (e, t) => H(e, t)
|
|
14
|
+
}
|
|
15
|
+
}, { timelineResults: K, timelineGallery: q } = m, { partnerList: J, partnerSheet: Y, partnerObjects: X } = h, Z = {
|
|
10
16
|
countryLabel: (e) => C("countries", e),
|
|
11
17
|
md: b,
|
|
12
18
|
mdInline: x,
|
|
13
19
|
route: M,
|
|
14
20
|
objectsRoute: N
|
|
15
21
|
};
|
|
16
|
-
function
|
|
22
|
+
function Q(e) {
|
|
17
23
|
let n = (D.value ?? []).filter((e) => e.featured);
|
|
18
24
|
for (let e = n.length - 1; e > 0; e--) {
|
|
19
25
|
let t = Math.floor(Math.random() * (e + 1));
|
|
20
26
|
[n[e], n[t]] = [n[t], n[e]];
|
|
21
27
|
}
|
|
22
|
-
return n.slice(0, e).map((e) => t(e, y("partners", e.id, v),
|
|
28
|
+
return n.slice(0, e).map((e) => t(e, y("partners", e.id, v), Z));
|
|
23
29
|
}
|
|
24
|
-
var
|
|
30
|
+
var $ = {
|
|
25
31
|
spec: {
|
|
26
|
-
...
|
|
32
|
+
...Y,
|
|
27
33
|
media: () => []
|
|
28
34
|
},
|
|
29
35
|
visible: () => !0,
|
|
30
36
|
view: (e, n) => t(e, {
|
|
31
37
|
...y("partners", e.id, v),
|
|
32
38
|
...n
|
|
33
|
-
},
|
|
39
|
+
}, Z),
|
|
34
40
|
labels: { partner: {
|
|
35
41
|
objects: "partner.action.viewObjects",
|
|
36
42
|
homepage: "partner.nav.homepage"
|
|
37
43
|
} }
|
|
38
44
|
};
|
|
39
|
-
|
|
40
|
-
export { W as A, J as C, L as D, I as E, y as M, o as N, V as O, K as S, M as T, S as _, R as a, Z as b, v as c, B as d, E as f, C as g, T as h, a as i, k as j, G as k, X as l, P as m, r as n, H as o, g as p, i as r, U as s, z as t, w as u, _ as v, N as w, F as x, A as y };
|
|
45
|
+
export { q as A, J as C, I as D, M as E, k as M, y as N, L as O, o as P, F as S, N as T, G as _, R as a, A as b, v as c, B as d, E as f, C as g, T as h, a as i, K as j, V as k, Q as l, P as m, r as n, U as o, g as p, i as r, W as s, z as t, w as u, S as v, X as w, $ as x, _ as y };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as e } from "./chrome-
|
|
1
|
+
import { n as e } from "./chrome-Bv_mLlHM.js";
|
|
2
2
|
import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
|
|
3
3
|
import { FACET_CATEGORIES as r, FACET_LABEL_KEYS as i, PAGE_SIZE as a, useExhibitionCollection as ee, useExhibitionData as o, useExhibitionItemDetail as s, useExhibitionPartner as c, useExhibitionThemes as l, useExhibitionTimeline as u, useFacetLabels as d } from "@museumwnf/viewer-core/dxa";
|
|
4
|
-
|
|
4
|
+
// src/dxa/exhibition/data.js
|
|
5
5
|
var f = o(), p = ee(f), m = u(f, p), h = c(f), g = l(f), { itemDetail: _ } = s(f, m), { defaultLang: v, tr: y, md: b, mdInline: x, mdStrip: S, labelOf: C, loadEnglish: w, exhibition: T, relatedContent: E, items: D, itemById: O, countries: k, timelines: A, visiblePartners: j, visiblePartnerById: M, isHiddenPartner: N, itemRoute: te, partnerRoute: P, partnerObjectsRoute: F, countryLabelFromCode: I, exhibitionTitle: L, exhibitionSubtitle: R, exhibitionHeadline: z, bannerCaption: B } = f;
|
|
6
6
|
function V(t, r = "hi_res") {
|
|
7
7
|
return e(n().chrome, t) ?? f.chromeImage(t, r);
|
|
@@ -34,5 +34,4 @@ var { FACETS: H, haystack: U, tile: W, collectionResults: G, countryIdForCode: K
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
//#endregion
|
|
38
37
|
export { g as A, b as C, F as D, X as E, y as F, d as I, M as L, Y as M, J as N, P as O, A as P, j as R, w as S, $ as T, U as _, B as a, D as b, k as c, v as d, T as f, q as g, L as h, a as i, W as j, E as k, K as l, R as m, r as n, V as o, z as p, i as r, G as s, H as t, I as u, O as v, S as w, C as x, _ as y };
|