@museumwnf/viewer-layout 3.69.0 → 3.70.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/dxa.js CHANGED
@@ -203,19 +203,11 @@ var Zt = {
203
203
  }, Qt = "mwnf3:institutions:";
204
204
  function Z(e) {
205
205
  let t = e?.own_project;
206
- if (String(e?.backward_compatibility ?? "").startsWith(Qt)) {
207
- let t = Zt[e.level] ?? null;
208
- return t ? {
209
- name: "",
210
- status: t,
211
- tone: "institution"
212
- } : null;
213
- }
214
206
  if (!t?.name) return null;
215
- let n = String(t.backward_compatibility ?? "").split(":").pop().toUpperCase();
207
+ let n = String(t.backward_compatibility ?? "").split(":").pop().toUpperCase(), r = String(e?.backward_compatibility ?? "").startsWith(Qt) ? e.level : t.level;
216
208
  return {
217
209
  name: t.name,
218
- status: t.exhibition ? Zt.partner : Zt[t.level] ?? null,
210
+ status: t.exhibition ? Zt.partner : Zt[r] ?? null,
219
211
  tone: t.exhibition ? "exh" : Jt[n] ?? ""
220
212
  };
221
213
  }
@@ -806,7 +798,7 @@ var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class:
806
798
  key: 0,
807
799
  class: "mwnf-dxa-gallery-partners__city"
808
800
  }, jr = {
809
- key: 1,
801
+ key: 0,
810
802
  class: "mwnf-dxa-partner-badge__status"
811
803
  }, Mr = { class: "mwnf-dxa-gallery-partners__links" }, Nr = { class: "mwnf-dxa-gallery-partners__logo" }, Pr = ["src", "alt"], Fr = {
812
804
  __name: "Partners",
@@ -839,7 +831,7 @@ var $t = { class: "mwnf-dxa-partners mwnf-dxa-gallery-partners" }, en = { class:
839
831
  V(Z)(e) ? (L(), M("div", {
840
832
  key: 0,
841
833
  class: I(["mwnf-dxa-partner-badge", V(Z)(e).tone && `mwnf-dxa-partner-badge--${V(Z)(e).tone}`])
842
- }, [V(Z)(e).name ? (L(), M(O, { key: 0 }, [P(B(V(Z)(e).name + " "), 1)], 64)) : j("", !0), V(Z)(e).status ? (L(), M("span", jr, B(r(V(Z)(e).status)), 1)) : j("", !0)], 2)) : j("", !0),
834
+ }, [P(B(V(Z)(e).name + " "), 1), V(Z)(e).status ? (L(), M("span", jr, B(r(V(Z)(e).status)), 1)) : j("", !0)], 2)) : j("", !0),
843
835
  N("div", Mr, [F(n, { to: t.route }, {
844
836
  default: H(() => [P(B(r("partner.action.readMore")), 1)]),
845
837
  _: 2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@museumwnf/viewer-layout",
3
- "version": "3.69.0",
3
+ "version": "3.70.0",
4
4
  "description": "Page structure for MWNF websites: PageShell composing seven optional, token-styled sections, the content components a page is made of, and the composed views a website names instead of writing a page.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -2201,7 +2201,6 @@ a { color: inherit; }
2201
2201
  }
2202
2202
  .mwnf-dxa-exhibition-partners .mwnf-dxa-gallery-partners__name { font-size: 20px; }
2203
2203
  .mwnf-dxa-exhibition-partners .mwnf-dxa-partner-badge { font-size: 16px; }
2204
- .mwnf-dxa-partner-badge--institution { background: var(--mwnf-dxa-badge-institution, #006950); color: #ffffff; }
2205
2204
  @media only screen and (max-width: 74.9375rem) {
2206
2205
  .mwnf-dxa-exhibition-partners .mwnf-dxa-gallery-partners__country { font-size: 38px; }
2207
2206
  .mwnf-dxa-exhibition-partners .mwnf-dxa-gallery-partners__name { font-size: 20px; }