@museumwnf/viewer-layout 3.44.0 → 3.45.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 (2) hide show
  1. package/dist/standalone.js +47 -18
  2. package/package.json +1 -1
@@ -583,14 +583,18 @@ function lt({ title: e = "", heading: t = "", heads: n = {}, rows: r = [], empty
583
583
  let o = a === "rtl" ? "direction: rtl; text-align: right;" : "text-align: left;", s = (e) => {
584
584
  let t = document.createElement("div");
585
585
  return t.innerHTML = e ?? "", Q(t);
586
- }, c = r.length ? `<tr><td style="padding:10px;">
587
- <table border='1' cellspacing='1' cellpadding='1' width="100%">
588
- <tr>
589
- <td style="padding:5px;" width="28%"><b>${Z(n.date)}</b></td>
586
+ }, c = !!n.theme, l = c ? `<td style="padding:5px;" width="28%"><b>${Z(n.date)}</b></td>
587
+ <td style="padding:5px;" width="35%"><b>${Z(n.country)}</b></td>
588
+ <td style="padding:5px;" width="37%"><b>${Z(n.theme)}</b></td>` : `<td style="padding:5px;" width="28%"><b>${Z(n.date)}</b></td>
590
589
  <td style="padding:5px;" width="36%"><b>${Z(n.countryDescription)}</b></td>
591
- <td width="37%"><b></b></td>
590
+ <td width="37%"><b></b></td>`, u = c ? (e) => `<tr>
591
+ <td style="padding:5px;">${Z(e.date)}</td>
592
+ <td style="padding:5px;">${Z(e.country)}</td>
593
+ <td style="padding:5px;">${Z(e.theme)}</td>
592
594
  </tr>
593
- ${r.map((e) => `<tr>
595
+ <tr>
596
+ <td style="padding:5px; width:558px; vertical-align:top;" colspan="3">${s(e.html)}</td>
597
+ </tr>` : (e) => `<tr>
594
598
  <td style="padding:5px; vertical-align:top;">&nbsp;${Z(e.date)}</td>
595
599
  <td style="padding:5px;">${Z(e.country)}</td>
596
600
  <td>&nbsp;</td>
@@ -598,7 +602,12 @@ ${r.map((e) => `<tr>
598
602
  <tr>
599
603
  <td style="padding:5px;">&nbsp;</td>
600
604
  <td style="padding:5px;" colspan="2"><span>${s(e.html)}</span></td>
601
- </tr>`).join("\n")}
605
+ </tr>`, d = r.length ? `<tr><td style="padding:10px;">
606
+ <table border='1' cellspacing='1' cellpadding='1' width="100%">
607
+ <tr>
608
+ ${l}
609
+ </tr>
610
+ ${r.map(u).join("\n")}
602
611
  </table>
603
612
  </td></tr>
604
613
  <tr><td>&nbsp;</td></tr>` : `<tr><td style="padding-top:100px;padding-left:350px;">${Z(i)}</td></tr>`;
@@ -614,9 +623,9 @@ ${tt}
614
623
  <div class="content">
615
624
  <div class="item_description">
616
625
  <table style="${o}" border="0" width="750px">
617
- <tr><td class="txt" align="left" width="750px"><div style="width: 750px;">&nbsp;&nbsp;${Z(t).replace(/^([^|]*)/, "<b>$1</b>")}</div></td></tr>
626
+ <tr><td class="txt" align="left" width="750px"><div style="width: 750px;">&nbsp;&nbsp;${Z(t).replace(/^([^|/]*)/, "<b>$1</b>")}</div></td></tr>
618
627
  <tr><td>&nbsp;</td></tr>
619
- ${c}
628
+ ${d}
620
629
  </table>
621
630
  </div>
622
631
  </div>
@@ -1815,6 +1824,7 @@ var ut = { class: "mwnf-standalone-related" }, dt = { class: "mwnf-standalone-re
1815
1824
  }, ui = { class: "mwnf-standalone-tlr" }, di = { class: "mwnf-standalone-tlr__band" }, fi = { class: "mwnf-standalone-tlr__band-inner" }, pi = { class: "mwnf-standalone-tlr__summary" }, mi = { class: "mwnf-standalone-tlr__selects" }, hi = ["for"], gi = [
1816
1825
  "id",
1817
1826
  "value",
1827
+ "disabled",
1818
1828
  "onChange"
1819
1829
  ], _i = ["value"], vi = { class: "mwnf-standalone-item__back mwnf-standalone-tlr__back" }, yi = {
1820
1830
  key: 0,
@@ -1905,6 +1915,7 @@ var ut = { class: "mwnf-standalone-related" }, dt = { class: "mwnf-standalone-re
1905
1915
  p("section", di, [p("div", fi, [p("p", pi, [p("b", null, k(e.heading), 1), h(" | " + k(e.summary), 1)]), p("div", mi, [(w(!0), f(c, null, D(e.selects, (e) => (w(), f("p", { key: e.key }, [p("label", { for: `mwnf-tlr-${e.key}` }, k(e.label), 9, hi), p("select", {
1906
1916
  id: `mwnf-tlr-${e.key}`,
1907
1917
  value: e.value,
1918
+ disabled: e.disabled || void 0,
1908
1919
  onChange: (t) => i("change", {
1909
1920
  key: e.key,
1910
1921
  value: t.target.value
@@ -1932,7 +1943,7 @@ var ut = { class: "mwnf-standalone-related" }, dt = { class: "mwnf-standalone-re
1932
1943
  (w(!0), f(c, null, D(e.rows, (e) => (w(), f("div", {
1933
1944
  key: e.id,
1934
1945
  class: "mwnf-standalone-tlr__row"
1935
- }, [p("div", Si, [p("p", null, [p("span", null, k(e.date), 1)])]), p("div", Ci, [p("p", null, [p("span", null, k(e.country), 1)]), p("div", { innerHTML: e.html }, null, 8, wi)])]))), 128)),
1946
+ }, [p("div", Si, [p("p", null, [p("span", null, k(e.date), 1)]), O(t.$slots, "media", { row: e })]), p("div", Ci, [p("p", null, [p("span", null, k(e.country), 1)]), p("div", { innerHTML: e.html }, null, 8, wi)])]))), 128)),
1936
1947
  a.value ? d("", !0) : (w(), f("p", Ti, k(e.empty), 1)),
1937
1948
  e.pageInfo ? (w(), u(li, {
1938
1949
  key: 1,
@@ -1945,14 +1956,32 @@ var ut = { class: "mwnf-standalone-related" }, dt = { class: "mwnf-standalone-re
1945
1956
  "previous-label",
1946
1957
  "next-label"
1947
1958
  ])) : d("", !0)
1948
- ]), p("aside", Ei, [e.related ? (w(), f("div", Di, [p("p", null, [p("strong", null, k(e.related.heading), 1)]), e.related.gallery ? (w(), f("p", Oi, [g(n, {
1949
- class: "mwnf-standalone-tlr__link",
1950
- to: e.related.gallery.to,
1951
- title: e.related.gallery.title
1952
- }, {
1953
- default: R(() => [h(k(e.related.gallery.label), 1)]),
1954
- _: 1
1955
- }, 8, ["to", "title"])])) : d("", !0)])) : d("", !0), e.download ? (w(), f("div", ki, [
1959
+ ]), p("aside", Ei, [e.related ? (w(), f("div", Di, [
1960
+ p("p", null, [p("strong", null, k(e.related.heading), 1)]),
1961
+ (w(!0), f(c, null, D(e.related.links ?? [], (e) => (w(), f("p", { key: e.label }, [g(n, {
1962
+ class: "mwnf-standalone-tlr__link",
1963
+ to: e.to,
1964
+ href: e.href,
1965
+ title: e.title,
1966
+ target: e.target
1967
+ }, {
1968
+ default: R(() => [h(k(e.label), 1)]),
1969
+ _: 2
1970
+ }, 1032, [
1971
+ "to",
1972
+ "href",
1973
+ "title",
1974
+ "target"
1975
+ ])]))), 128)),
1976
+ e.related.gallery ? (w(), f("p", Oi, [g(n, {
1977
+ class: "mwnf-standalone-tlr__link",
1978
+ to: e.related.gallery.to,
1979
+ title: e.related.gallery.title
1980
+ }, {
1981
+ default: R(() => [h(k(e.related.gallery.label), 1)]),
1982
+ _: 1
1983
+ }, 8, ["to", "title"])])) : d("", !0)
1984
+ ])) : d("", !0), e.download ? (w(), f("div", ki, [
1956
1985
  p("p", Ai, k(e.download.heading), 1),
1957
1986
  p("p", null, [p("a", {
1958
1987
  href: "#",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@museumwnf/viewer-layout",
3
- "version": "3.44.0",
3
+ "version": "3.45.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",