@museumwnf/viewer-layout 3.3.0 → 3.5.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.
Files changed (34) hide show
  1. package/README.md +191 -12
  2. package/dist/{FeaturedRecord-BJ8LaWGP.js → FeaturedRecord-DJfyvfqt.js} +1 -1
  3. package/dist/GlossaryPopover-DcptyNWI.js +654 -0
  4. package/dist/ItemDetailView-COWC8GDg.js +299 -0
  5. package/dist/{OnDisplayIn-Dv8i7uvH.js → OnDisplayIn-BfJoPonn.js} +38 -38
  6. package/dist/RecordView-C9rP8TyQ.js +263 -0
  7. package/dist/SiteShell-4vV2jIzf.js +192 -0
  8. package/dist/{Theme-Db88mckV.js → Theme-CZ-OVXao.js} +26 -26
  9. package/dist/TimelineEventList-gsoc-SBx.js +841 -0
  10. package/dist/TimelineResultsView-C2-TnM71.js +1386 -0
  11. package/dist/chrome-DPuPeWzV.js +1141 -0
  12. package/dist/components.js +1 -1
  13. package/dist/{content-p0tqKkcD.js → content-CtwBcSjU.js} +2 -2
  14. package/dist/content.js +6 -5
  15. package/dist/data-CJlLA-Mf.js +38 -0
  16. package/dist/data-DTbAYdr2.js +40 -0
  17. package/dist/dxa.js +638 -519
  18. package/dist/index.js +7 -6
  19. package/dist/standalone.js +762 -0
  20. package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
  21. package/dist/viewer-layout.css +1 -1
  22. package/dist/views.js +5 -4
  23. package/package.json +4 -3
  24. package/src/dxa/testing.js +37 -14
  25. package/src/styles/dxa-exhibition.css +25 -1
  26. package/src/styles/dxa-gallery.css +249 -2
  27. package/src/tokens.reference.css +78 -0
  28. package/dist/ItemDetailView-CfUtRLOV.js +0 -284
  29. package/dist/PageShell-CbJ9lQoQ.js +0 -961
  30. package/dist/SiteShell-C3OgZO8p.js +0 -154
  31. package/dist/TimelineEventList-COjkXEzS.js +0 -1487
  32. package/dist/TimelineResultsView-CmHomvV_.js +0 -1636
  33. package/dist/data-BfyYB8ff.js +0 -33
  34. package/dist/data-G8uXeEfE.js +0 -35
@@ -1,2 +1,2 @@
1
- import { t as e } from "./SiteShell-C3OgZO8p.js";
1
+ import { t as e } from "./SiteShell-4vV2jIzf.js";
2
2
  export { e as SiteShell };
@@ -1,5 +1,5 @@
1
- import "./FeaturedRecord-BJ8LaWGP.js";
2
- import { a as e, l as t } from "./TimelineEventList-COjkXEzS.js";
1
+ import "./FeaturedRecord-DJfyvfqt.js";
2
+ import { n as e, o as t } from "./GlossaryPopover-DcptyNWI.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";
package/dist/content.js CHANGED
@@ -1,5 +1,6 @@
1
- import { t as e } from "./FeaturedRecord-BJ8LaWGP.js";
2
- import { _ as t, a as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v } from "./TimelineEventList-COjkXEzS.js";
3
- import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-Dv8i7uvH.js";
4
- import { t as E } from "./content-p0tqKkcD.js";
5
- export { w as BackLink, b as DynastyList, y as DynastyPopout, u as FacetSelect, e as FeaturedRecord, p as FilterPanel, c as GlossaryPopover, S as GlossaryTool, n as MediaGallery, T as OnDisplayIn, s as Pagination, m as PartnerMap, d as PartnerPanel, r as RecordCredits, o as RecordGrid, i as RecordLanguages, t as RecordList, _ as RecordSheet, x as RelatedMedia, f as RelatedRecords, a as ResultsSummary, v as SectionCards, l as SheetSection, h as SourceCredit, E as SpecialFeatures, g as TimelineEventList, C as TimelineLookup };
1
+ import { t as e } from "./FeaturedRecord-DJfyvfqt.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 "./GlossaryPopover-DcptyNWI.js";
3
+ import { a as d, c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./TimelineEventList-gsoc-SBx.js";
4
+ import { a as y, i as b, n as x, o as S, r as C, s as w, t as T } from "./OnDisplayIn-BfJoPonn.js";
5
+ import { t as E } from "./content-CtwBcSjU.js";
6
+ export { w as BackLink, b as DynastyList, y as DynastyPopout, h as FacetSelect, e as FeaturedRecord, d as FilterPanel, l as GlossaryPopover, S as GlossaryTool, a as MediaGallery, T as OnDisplayIn, _ as Pagination, g as PartnerMap, m as PartnerPanel, t as RecordCredits, i as RecordGrid, n as RecordLanguages, u as RecordList, c as RecordSheet, x as RelatedMedia, s as RelatedRecords, p as ResultsSummary, f as SectionCards, o as SheetSection, r as SourceCredit, E as SpecialFeatures, v as TimelineEventList, C as TimelineLookup };
@@ -0,0 +1,38 @@
1
+ import { n as e } from "./chrome-DPuPeWzV.js";
2
+ import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
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
+ //#region src/dxa/exhibition/data.js
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
+ function V(t, r = "hi_res") {
7
+ return e(n().chrome, t) ?? f.chromeImage(t, r);
8
+ }
9
+ var { FACETS: H, haystack: U, tile: W, collectionResults: G, countryIdForCode: K } = p, { hasTimeline: q, timelineSpec: J, timelineGallerySpec: Y } = m, { partnerListSpec: X, partnerSheetSpec: Z } = h, Q = {
10
+ countryLabel: (e) => C("countries", e),
11
+ md: b,
12
+ mdInline: x,
13
+ route: P,
14
+ objectsRoute: F,
15
+ hidden: N
16
+ }, $ = {
17
+ spec: {
18
+ ...Z,
19
+ media: () => []
20
+ },
21
+ visible: (e) => !!M(e),
22
+ view: (e, n) => t(e, {
23
+ ...y("partners", e.id, v),
24
+ ...n
25
+ }, Q),
26
+ labels: {
27
+ partner: {
28
+ objects: "partner.action.viewObjects",
29
+ homepage: "partner.nav.homepage"
30
+ },
31
+ institution: {
32
+ objects: "exhibition.action.viewItems",
33
+ homepage: "exhibition.action.institutionHomepage"
34
+ }
35
+ }
36
+ };
37
+ //#endregion
38
+ 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 };
@@ -0,0 +1,40 @@
1
+ import { n as e } from "./chrome-DPuPeWzV.js";
2
+ import { partnerView as t, useSiteConfig as n } from "@museumwnf/viewer-core";
3
+ import { FACET_CATEGORIES as r, FACET_LABEL_KEYS as i, PAGE_SIZE 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
+ //#region src/dxa/gallery/data.js
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
+ function R(t, r = "hi_res") {
7
+ return e(n().chrome, t) ?? f.chromeImage(t, r);
8
+ }
9
+ var { FACETS: z, haystack: B, tile: V, collectionResults: H, countryIdForCode: U } = p, { timelineResults: W, timelineGallery: G } = m, { partnerList: K, partnerSheet: q, partnerObjects: J } = h, Y = {
10
+ countryLabel: (e) => C("countries", e),
11
+ md: b,
12
+ mdInline: x,
13
+ route: M,
14
+ objectsRoute: N
15
+ };
16
+ function X(e) {
17
+ let n = (D.value ?? []).filter((e) => e.featured);
18
+ for (let e = n.length - 1; e > 0; e--) {
19
+ let t = Math.floor(Math.random() * (e + 1));
20
+ [n[e], n[t]] = [n[t], n[e]];
21
+ }
22
+ return n.slice(0, e).map((e) => t(e, y("partners", e.id, v), Y));
23
+ }
24
+ var Z = {
25
+ spec: {
26
+ ...q,
27
+ media: () => []
28
+ },
29
+ visible: () => !0,
30
+ view: (e, n) => t(e, {
31
+ ...y("partners", e.id, v),
32
+ ...n
33
+ }, Y),
34
+ labels: { partner: {
35
+ objects: "partner.action.viewObjects",
36
+ homepage: "partner.nav.homepage"
37
+ } }
38
+ };
39
+ //#endregion
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 };