@museumwnf/viewer-layout 2.16.0 → 2.18.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 +63 -33
- package/dist/FeaturedRecord-mRyLN7Mt.js +88 -0
- package/dist/OnDisplayIn-D6r_KvpI.js +1819 -0
- package/dist/PictureNarrative-B_GPQvYP.js +444 -0
- package/dist/SiteShell-C3OgZO8p.js +154 -0
- package/dist/Theme-Caz0E8w1.js +140 -0
- package/dist/TimelineResultsView-CMqrkr9z.js +1911 -0
- package/dist/components.js +2 -154
- package/dist/content-CHXh6D_q.js +84 -0
- package/dist/content.js +5 -5
- package/dist/data-BfyYB8ff.js +33 -0
- package/dist/data-G8uXeEfE.js +35 -0
- package/dist/dxa.js +1216 -343
- package/dist/index.js +5 -5
- package/dist/themeSpecs-Bgn-K6R6.js +34 -0
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +44 -756
- package/package.json +3 -3
- package/src/tokens.reference.css +33 -4
- package/dist/BackLink-LfSIuXnL.js +0 -45
- package/dist/TimelineEventList-D5Hot788.js +0 -1362
- package/dist/TimelineLookup-D-p1aQ_Z.js +0 -444
- package/dist/TimelineResultsView-DJo_yYEK.js +0 -1203
- package/dist/content-DncTPD5P.js +0 -378
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@museumwnf/viewer-layout",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.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",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"test": "vitest run"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@museumwnf/viewer-core": "^2.
|
|
38
|
+
"@museumwnf/viewer-core": "^2.3.0",
|
|
39
39
|
"vue": "^3.5.0",
|
|
40
40
|
"vue-router": "^4.5.0 || ^5.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@museumwnf/viewer-core": "^2.
|
|
43
|
+
"@museumwnf/viewer-core": "^2.3.0",
|
|
44
44
|
"@vitejs/plugin-vue": "^6.0.8",
|
|
45
45
|
"@vue/test-utils": "^2.4.11",
|
|
46
46
|
"jsdom": "^30.0.1",
|
package/src/tokens.reference.css
CHANGED
|
@@ -338,7 +338,26 @@
|
|
|
338
338
|
/* --mwnf-sheet-related-reference-gap: 0.5rem; Gap in an outside-reference row */
|
|
339
339
|
/* --mwnf-sheet-related-reference-padding: 0.1875rem 0; Padding of an outside-reference row */
|
|
340
340
|
/* --mwnf-sheet-related-unresolved-color: #8a8a8a; "Not in this gallery/exhibition" note color */
|
|
341
|
-
/* --mwnf-sheet-related-unresolved-size: 0.75rem; Its text size */
|
|
341
|
+
/* --mwnf-sheet-related-unresolved-size: 0.75rem; Its text size (also OnDisplayIn's pending note) */
|
|
342
|
+
|
|
343
|
+
/* ---------- Content: item-page blocks ---------- */
|
|
344
|
+
/* --mwnf-special-features-gap: 1rem; Space under one special feature */
|
|
345
|
+
/* --mwnf-special-features-name-gap: 0.25rem; Space under its name and each meta line */
|
|
346
|
+
/* --mwnf-special-features-name-size: 0.9375rem; Its name's size */
|
|
347
|
+
/* --mwnf-special-features-name-weight: 500; Its name's weight */
|
|
348
|
+
/* --mwnf-special-features-name-color: inherit; Its name's color */
|
|
349
|
+
/* --mwnf-special-features-meta-size: 0.75rem; Location, dates and artists: size */
|
|
350
|
+
/* --mwnf-special-features-meta-color: #555555; Their color */
|
|
351
|
+
/* --mwnf-related-media-gap: 0.375rem; Space above one audio/video entry */
|
|
352
|
+
/* --mwnf-related-media-link-size: inherit; Its title link's size */
|
|
353
|
+
/* --mwnf-related-media-link-weight: inherit; Its title link's weight */
|
|
354
|
+
/* --mwnf-related-media-link-color: var(--mwnf-link-text, #0000ff); Its title link's color */
|
|
355
|
+
/* --mwnf-related-media-description-gap: 0.125rem; Space above its description */
|
|
356
|
+
/* --mwnf-related-media-description-size: 0.75rem; Its description's size */
|
|
357
|
+
/* --mwnf-related-media-description-color: #555555; Its description's color */
|
|
358
|
+
/* --mwnf-on-display-size: inherit; On display in: the list's text size */
|
|
359
|
+
/* --mwnf-on-display-gap: 0.375rem; Space above one place */
|
|
360
|
+
/* --mwnf-on-display-link-color: var(--mwnf-link-text, #0000ff); A place's link color */
|
|
342
361
|
/* --mwnf-sheet-timeline-trigger-color: inherit; The "timeline for this item" trigger line */
|
|
343
362
|
/* --mwnf-sheet-timeline-popout-width: 40rem; Timeline popout max width */
|
|
344
363
|
/* --mwnf-sheet-timeline-popout-margin: 0.5rem 0 0.875rem; Timeline popout margin */
|
|
@@ -731,6 +750,7 @@
|
|
|
731
750
|
/* --mwnf-back-bar-text: inherit; Back bar text color */
|
|
732
751
|
/* --mwnf-back-bar-size: 0.9375rem; Back bar text size */
|
|
733
752
|
/* --mwnf-back-bar-hover-text: inherit; Back bar hover text color */
|
|
753
|
+
/* --mwnf-back-bar-margin: 0; BackLink variant="bar": the link's margin */
|
|
734
754
|
|
|
735
755
|
/* --mwnf-chip-padding: 0.0625rem 0.5rem; Chip padding */
|
|
736
756
|
/* --mwnf-chip-size: 0.75rem; Chip text size */
|
|
@@ -738,19 +758,21 @@
|
|
|
738
758
|
/* --mwnf-chip-background: #1c1c1c; Chip background color (default fallback) */
|
|
739
759
|
/* --mwnf-chip-radius: 0; Chip corner radius */
|
|
740
760
|
/* --mwnf-project-ISLandEPM: #ffcc00; Discover Islamic Art / Exhibitions colours chip */
|
|
741
|
-
/* --mwnf-project-ISLandEPM-text: #
|
|
761
|
+
/* --mwnf-project-ISLandEPM-text: #000000; Discover Islamic Art / Exhibitions chip text */
|
|
742
762
|
/* --mwnf-project-DBA: #001d66; Discover Baroque Art chip colour */
|
|
743
763
|
/* --mwnf-project-DBA-text: #ffffff; Discover Baroque Art chip text */
|
|
744
764
|
/* --mwnf-project-AWE: #900000; Sharing History chip colour */
|
|
745
765
|
/* --mwnf-project-AWE-text: #ffffff; Sharing History chip text */
|
|
746
766
|
/* --mwnf-project-DCA: #6b612b; Discover Carpets chip colour */
|
|
747
767
|
/* --mwnf-project-DCA-text: #ffffff; Discover Carpets chip text */
|
|
748
|
-
/* --mwnf-project-DGA: #
|
|
749
|
-
/* --mwnf-project-DGA-text: #ffffff; Discover
|
|
768
|
+
/* --mwnf-project-DGA: #0059bf; Discover Glass Art chip colour */
|
|
769
|
+
/* --mwnf-project-DGA-text: #ffffff; Discover Glass Art chip text */
|
|
750
770
|
/* --mwnf-project-EXH: #7f01d4; Exhibitions chip colour */
|
|
751
771
|
/* --mwnf-project-EXH-text: #ffffff; Exhibitions chip text */
|
|
752
772
|
/* --mwnf-project-Galleries: #263238; Galleries chip colour */
|
|
753
773
|
/* --mwnf-project-Galleries-text: #ffffff; Galleries chip text */
|
|
774
|
+
/* --mwnf-project-Explore: #006950; Explore chip colour (a record no project claims) */
|
|
775
|
+
/* --mwnf-project-Explore-text: #ffffff; Explore chip text */
|
|
754
776
|
|
|
755
777
|
/* --mwnf-popout-padding: 1rem; Popout box padding */
|
|
756
778
|
/* --mwnf-popout-background: #ffffff; Popout box background color */
|
|
@@ -765,4 +787,11 @@
|
|
|
765
787
|
/* ---------- DXA family pages (src/dxa/) ---------- */
|
|
766
788
|
/* --mwnf-dxa-heading-color: #1c1c1c; Partner name / profile heading color */
|
|
767
789
|
/* --mwnf-dxa-band-background: #f0f0f0; Language switcher / tab strip / timeline-link box background */
|
|
790
|
+
/* --mwnf-dxa-item-background: #ffffff; Item page ground (white on a gallery's tinted page) */
|
|
791
|
+
/* --mwnf-dxa-item-link: var(--mwnf-color-accent); Item sheet value links */
|
|
792
|
+
/* --mwnf-dxa-theme-background: #ffffff; Exhibition theme pages: the ground (legacy's secondary colour) */
|
|
793
|
+
/* --mwnf-dxa-theme-text: #000000; Their text and tour links (secondary text colour) */
|
|
794
|
+
/* --mwnf-dxa-theme-contrast: #64bfd9; The heading band and link hover (contrast colour) */
|
|
795
|
+
/* --mwnf-dxa-theme-contrast-text: #000000; The heading band's text (contrast text colour) */
|
|
796
|
+
/* --mwnf-dxa-theme-main: #000000; The themes page's left half (main colour) */
|
|
768
797
|
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { v as e } from "./TimelineEventList-D5Hot788.js";
|
|
2
|
-
import { createBlock as t, createElementBlock as n, createTextVNode as r, openBlock as i, toDisplayString as a, withCtx as o } from "vue";
|
|
3
|
-
import { useRouter as s } from "vue-router";
|
|
4
|
-
//#region src/content/BackLink.vue
|
|
5
|
-
var c = { class: "mwnf-back-link" }, l = {
|
|
6
|
-
__name: "BackLink",
|
|
7
|
-
props: {
|
|
8
|
-
label: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: "core.action.back"
|
|
11
|
-
},
|
|
12
|
-
to: {
|
|
13
|
-
type: [String, Object],
|
|
14
|
-
default: null
|
|
15
|
-
},
|
|
16
|
-
href: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: ""
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(l) {
|
|
22
|
-
let u = s();
|
|
23
|
-
function d() {
|
|
24
|
-
return window.history.length > 1;
|
|
25
|
-
}
|
|
26
|
-
function f(e) {
|
|
27
|
-
d() && (e.preventDefault(), u.back());
|
|
28
|
-
}
|
|
29
|
-
return (s, u) => (i(), n("div", c, [!d() && (l.to || l.href) ? (i(), t(e, {
|
|
30
|
-
key: 0,
|
|
31
|
-
to: l.to,
|
|
32
|
-
href: l.href,
|
|
33
|
-
class: "mwnf-back-link__button"
|
|
34
|
-
}, {
|
|
35
|
-
default: o(() => [r(" ↩ " + a(s.$t(l.label)), 1)]),
|
|
36
|
-
_: 1
|
|
37
|
-
}, 8, ["to", "href"])) : (i(), n("button", {
|
|
38
|
-
key: 1,
|
|
39
|
-
class: "mwnf-back-link__button",
|
|
40
|
-
onClick: f
|
|
41
|
-
}, " ↩ " + a(s.$t(l.label)), 1))]));
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
//#endregion
|
|
45
|
-
export { l as t };
|