@museumwnf/viewer-layout 3.59.0 → 3.61.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 (30) hide show
  1. package/dist/{FeaturedRecord-CTqnQFox.js → FeaturedRecord-DaGLHyhD.js} +2 -3
  2. package/dist/{GlossaryPopover-B7E6BsjS.js → GlossaryPopover-DbQKXhx9.js} +1 -2
  3. package/dist/ItemDetailView-D7m2C1Mg.js +310 -0
  4. package/dist/{OnDisplayIn-DZHRKjL0.js → OnDisplayIn-DW4iC5BB.js} +10 -5
  5. package/dist/{PageShell-CcaLOuXI.js → PageShell-CPtgzcxv.js} +1 -2
  6. package/dist/{PartnerMap-BIKd-AGP.js → PartnerMap-U-Hi2FBi.js} +17 -14
  7. package/dist/RecordView-BE4mbj6G.js +363 -0
  8. package/dist/{SiteShell-CYQxXosD.js → SiteShell-qvsZO4Iz.js} +3 -4
  9. package/dist/{Theme-Co1bf81Z.js → Theme-4RmyRY0x.js} +29 -30
  10. package/dist/{TimelineEventList-CTJJOWGh.js → TimelineEventList-1feZA5t7.js} +3 -4
  11. package/dist/{TimelineResultsView-D15BMWZM.js → TimelineResultsView-CkH3NDqL.js} +264 -255
  12. package/dist/{chrome-DNsZQXrL.js → chrome-Bv_mLlHM.js} +1 -2
  13. package/dist/components.js +1 -2
  14. package/dist/{content-PQeMx8U5.js → content-BNS5U0Xv.js} +3 -4
  15. package/dist/content.js +6 -6
  16. package/dist/{data-CXRsGwLQ.js → data-EKYeMQcC.js} +16 -11
  17. package/dist/{data-BINc9QjV.js → data-kqAkoQvf.js} +2 -3
  18. package/dist/dxa.js +1006 -669
  19. package/dist/index.js +8 -8
  20. package/dist/minisite.js +14 -26
  21. package/dist/standalone.js +209 -217
  22. package/dist/{themeSpecs-DP9xWiVJ.js → themeSpecs-CsDpl4rR.js} +2 -3
  23. package/dist/viewer-layout.css +1 -1
  24. package/dist/views.js +5 -6
  25. package/package.json +10 -10
  26. package/src/dxa/testing.js +98 -57
  27. package/src/styles/dxa-gallery.css +32 -4
  28. package/src/tokens.reference.css +12 -1
  29. package/dist/ItemDetailView-Bbn-uNaR.js +0 -304
  30. package/dist/RecordView-DEKHp1A3.js +0 -348
@@ -1,4 +1,4 @@
1
- //#region src/chrome.js
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 };
@@ -1,2 +1 @@
1
- import { t as e } from "./SiteShell-CYQxXosD.js";
2
- export { e as SiteShell };
1
+ export { t as SiteShell } from "./SiteShell-qvsZO4Iz.js";
@@ -1,9 +1,9 @@
1
- import "./FeaturedRecord-CTqnQFox.js";
2
- import { n as e, o as t } from "./PartnerMap-BIKd-AGP.js";
1
+ import "./FeaturedRecord-DaGLHyhD.js";
2
+ import { n as e, o as t } from "./PartnerMap-U-Hi2FBi.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
- //#region src/content/SpecialFeatures.vue
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-CTqnQFox.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-BIKd-AGP.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-CTJJOWGh.js";
4
- import { t as v } from "./GlossaryPopover-B7E6BsjS.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-DZHRKjL0.js";
6
- import { t as E } from "./content-PQeMx8U5.js";
1
+ import { t as e } from "./FeaturedRecord-DaGLHyhD.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-U-Hi2FBi.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-1feZA5t7.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-DW4iC5BB.js";
6
+ import { t as E } from "./content-BNS5U0Xv.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-DNsZQXrL.js";
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, 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
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, collectionResults: H, countryIdForCode: U } = p, { timelineResults: W, timelineGallery: G } = m, { partnerList: K, partnerSheet: q, partnerObjects: J } = h, Y = {
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 X(e) {
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), Y));
28
+ return n.slice(0, e).map((e) => t(e, y("partners", e.id, v), Z));
23
29
  }
24
- var Z = {
30
+ var $ = {
25
31
  spec: {
26
- ...q,
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
- }, Y),
39
+ }, Z),
34
40
  labels: { partner: {
35
41
  objects: "partner.action.viewObjects",
36
42
  homepage: "partner.nav.homepage"
37
43
  } }
38
44
  };
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 };
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-DNsZQXrL.js";
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
- //#region src/dxa/exhibition/data.js
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 };