@museumwnf/viewer-layout 3.3.0 → 3.4.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 +121 -10
- package/dist/ItemDetailView-I__hm63H.js +298 -0
- package/dist/SiteShell-4vV2jIzf.js +192 -0
- package/dist/{Theme-Db88mckV.js → Theme-B5J0XRe1.js} +3 -3
- package/dist/{TimelineResultsView-CmHomvV_.js → TimelineResultsView-ChkBn27W.js} +5 -1
- package/dist/chrome-DPuPeWzV.js +1141 -0
- package/dist/components.js +1 -1
- package/dist/data-CJlLA-Mf.js +38 -0
- package/dist/data-DTbAYdr2.js +40 -0
- package/dist/dxa.js +619 -502
- package/dist/index.js +6 -6
- package/dist/{themeSpecs-C_uGarTs.js → themeSpecs-B885l456.js} +3 -2
- package/dist/viewer-layout.css +1 -1
- package/dist/views.js +1 -1
- package/package.json +1 -1
- package/src/dxa/testing.js +37 -14
- package/src/styles/dxa-exhibition.css +25 -1
- package/src/styles/dxa-gallery.css +249 -2
- package/src/tokens.reference.css +12 -0
- package/dist/ItemDetailView-CfUtRLOV.js +0 -284
- package/dist/PageShell-CbJ9lQoQ.js +0 -961
- package/dist/SiteShell-C3OgZO8p.js +0 -154
- package/dist/data-BfyYB8ff.js +0 -33
- package/dist/data-G8uXeEfE.js +0 -35
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
--mwnf-header-padding: 0;
|
|
49
49
|
--mwnf-header-background: #ffffff;
|
|
50
50
|
--mwnf-header-text: #000000;
|
|
51
|
-
--mwnf-header-title-size: 1.
|
|
51
|
+
--mwnf-header-title-size: 1.875rem;
|
|
52
52
|
--mwnf-header-subtitle-size: 0.875rem;
|
|
53
53
|
--mwnf-header-subtitle-color: #000000;
|
|
54
54
|
|
|
@@ -231,6 +231,10 @@
|
|
|
231
231
|
box. */
|
|
232
232
|
--mwnf-dxa-heading-color: var(--secondary-text-color);
|
|
233
233
|
--mwnf-dxa-band-background: #e0e0e0;
|
|
234
|
+
/* The item sheet's Related Content sidebar, in the contrast colour. */
|
|
235
|
+
--mwnf-dxa-related-background: var(--contrast-color);
|
|
236
|
+
--mwnf-dxa-related-text: var(--contrast-text-color);
|
|
237
|
+
--mwnf-dxa-related-heading-color: var(--contrast-text-color);
|
|
234
238
|
|
|
235
239
|
/* ---------- PartnerListView group heading ---------- */
|
|
236
240
|
--mwnf-partner-list-group-title-size: 1.25rem;
|
|
@@ -352,6 +356,15 @@ a { color: inherit; }
|
|
|
352
356
|
padding-inline: 0;
|
|
353
357
|
}
|
|
354
358
|
|
|
359
|
+
/* The header's "A MWNF Online Exhibition": bold, in the contrast colour,
|
|
360
|
+
outlined by legacy's dark shadow. */
|
|
361
|
+
.mwnf-header__title {
|
|
362
|
+
font-weight: 700;
|
|
363
|
+
line-height: 1;
|
|
364
|
+
color: var(--contrast-color);
|
|
365
|
+
text-shadow: -1px 0 2px #000000;
|
|
366
|
+
}
|
|
367
|
+
|
|
355
368
|
/* The footer: one centred line of links and the copyright. */
|
|
356
369
|
.mwnf-footer {
|
|
357
370
|
justify-content: center;
|
|
@@ -363,3 +376,14 @@ a { color: inherit; }
|
|
|
363
376
|
.mwnf-nav--open .mwnf-nav__links { display: grid; }
|
|
364
377
|
.mwnf-nav__toggle { width: 100%; justify-content: center; font-size: 20px; }
|
|
365
378
|
}
|
|
379
|
+
|
|
380
|
+
/* Legacy's language select in the header: the codes alone, no visible
|
|
381
|
+
label (it stays for a screen reader). */
|
|
382
|
+
.mwnf-header__language-label {
|
|
383
|
+
position: absolute;
|
|
384
|
+
width: 1px;
|
|
385
|
+
height: 1px;
|
|
386
|
+
overflow: hidden;
|
|
387
|
+
clip-path: inset(50%);
|
|
388
|
+
white-space: nowrap;
|
|
389
|
+
}
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
--mwnf-banner-section-title-size: 190%;
|
|
126
126
|
|
|
127
127
|
/* ---------- Content: the record page ---------- */
|
|
128
|
-
/* The sheet as the legacy gallery set it: bold labels in the
|
|
128
|
+
/* The sheet as the legacy gallery set it: bold labels in the text colour over
|
|
129
129
|
plain values, no cell borders, the photo gallery on the page ground. */
|
|
130
130
|
--mwnf-sheet-text-size: 0.9375rem;
|
|
131
131
|
--mwnf-sheet-label-size: 0.9375rem;
|
|
132
132
|
--mwnf-sheet-label-weight: 700;
|
|
133
|
-
--mwnf-sheet-label-color:
|
|
133
|
+
--mwnf-sheet-label-color: inherit;
|
|
134
134
|
--mwnf-sheet-gap: 0.75rem;
|
|
135
135
|
--mwnf-sheet-toggle-color: var(--theme-dark);
|
|
136
136
|
--mwnf-sheet-term-color: var(--theme-medium-dark);
|
|
@@ -223,6 +223,11 @@
|
|
|
223
223
|
on the page ground. */
|
|
224
224
|
--mwnf-dxa-heading-color: var(--theme-dark);
|
|
225
225
|
--mwnf-dxa-band-background: var(--background-color);
|
|
226
|
+
/* The item sheet's Related Content sidebar: white on the light tone, its
|
|
227
|
+
headings underlined in the dark tone (legacy's `$theme-light`). */
|
|
228
|
+
--mwnf-dxa-related-background: var(--theme-light);
|
|
229
|
+
--mwnf-dxa-related-text: #ffffff;
|
|
230
|
+
--mwnf-dxa-related-heading-color: var(--theme-dark);
|
|
226
231
|
}
|
|
227
232
|
|
|
228
233
|
/* ── Page reset ──────────────────────────────────────────────────────────── */
|
|
@@ -340,3 +345,245 @@ a { color: inherit; }
|
|
|
340
345
|
.mwnf-nav--open .mwnf-nav__links { display: grid; grid-template-columns: 1fr; }
|
|
341
346
|
.mwnf-nav__toggle { width: 100%; justify-content: center; font-size: 20px; }
|
|
342
347
|
}
|
|
348
|
+
|
|
349
|
+
/* ── The header mark and tools, the footer's icons (inventory-app#2233) ──── */
|
|
350
|
+
|
|
351
|
+
/* The tools keep to the row's end whether or not a title cell sits between
|
|
352
|
+
them and the mark (the home page has none). Legacy's logo is drawn at its
|
|
353
|
+
own size. */
|
|
354
|
+
.mwnf-header__tools {
|
|
355
|
+
margin-inline-start: auto;
|
|
356
|
+
}
|
|
357
|
+
.mwnf-header__brand-logo {
|
|
358
|
+
height: auto;
|
|
359
|
+
}
|
|
360
|
+
.mwnf-footer__social-link {
|
|
361
|
+
color: #ffffff;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/* ── The home page: legacy's FeaturedPartners, LogosComponent and
|
|
365
|
+
FeaturedGalleries ───────────────────────────────────────────────────── */
|
|
366
|
+
|
|
367
|
+
/* Featured Partners: white on the medium tone, the picture and the text
|
|
368
|
+
side by side in the middle 60% of the column, the bullets under them. */
|
|
369
|
+
.mwnf-dxa-home .mwnf-featured-partners {
|
|
370
|
+
display: flex;
|
|
371
|
+
flex-direction: column;
|
|
372
|
+
align-items: center;
|
|
373
|
+
padding: 0;
|
|
374
|
+
background: var(--theme-medium);
|
|
375
|
+
color: #ffffff;
|
|
376
|
+
}
|
|
377
|
+
.mwnf-dxa-home .mwnf-featured-partners__heading {
|
|
378
|
+
width: calc(60% + 20px);
|
|
379
|
+
margin: 40px 0 20px;
|
|
380
|
+
font-size: 125%;
|
|
381
|
+
font-weight: 400;
|
|
382
|
+
color: inherit;
|
|
383
|
+
}
|
|
384
|
+
.mwnf-dxa-home .mwnf-featured-partners__carousel {
|
|
385
|
+
width: calc(60% + 20px);
|
|
386
|
+
height: 32vh;
|
|
387
|
+
max-height: 275px;
|
|
388
|
+
min-height: 0;
|
|
389
|
+
}
|
|
390
|
+
.mwnf-dxa-home .mwnf-featured-partners__card {
|
|
391
|
+
height: 100%;
|
|
392
|
+
gap: 20px;
|
|
393
|
+
}
|
|
394
|
+
.mwnf-dxa-home .mwnf-featured-partners__image {
|
|
395
|
+
flex: 0 0 calc(50% - 10px);
|
|
396
|
+
height: 100%;
|
|
397
|
+
}
|
|
398
|
+
.mwnf-dxa-home .mwnf-featured-partners__logo {
|
|
399
|
+
height: 100%;
|
|
400
|
+
}
|
|
401
|
+
.mwnf-dxa-home .mwnf-featured-partners__body {
|
|
402
|
+
flex: 1;
|
|
403
|
+
gap: 0;
|
|
404
|
+
height: 100%;
|
|
405
|
+
}
|
|
406
|
+
.mwnf-dxa-home .mwnf-featured-partners__name {
|
|
407
|
+
font-size: inherit;
|
|
408
|
+
color: inherit;
|
|
409
|
+
}
|
|
410
|
+
.mwnf-dxa-home .mwnf-featured-partners__location {
|
|
411
|
+
font-size: inherit;
|
|
412
|
+
font-style: italic;
|
|
413
|
+
color: inherit;
|
|
414
|
+
}
|
|
415
|
+
.mwnf-dxa-home .mwnf-featured-partners__description {
|
|
416
|
+
height: 6em;
|
|
417
|
+
overflow: hidden;
|
|
418
|
+
margin-top: 20px;
|
|
419
|
+
line-height: 1.2em;
|
|
420
|
+
font-size: inherit;
|
|
421
|
+
}
|
|
422
|
+
.mwnf-dxa-home .mwnf-featured-partners__more {
|
|
423
|
+
margin-top: 5px;
|
|
424
|
+
text-align: end;
|
|
425
|
+
color: #ffffff;
|
|
426
|
+
text-decoration: none;
|
|
427
|
+
}
|
|
428
|
+
.mwnf-dxa-home .mwnf-featured-partners__more + .mwnf-featured-partners__more {
|
|
429
|
+
margin-top: 0;
|
|
430
|
+
}
|
|
431
|
+
.mwnf-dxa-home .mwnf-featured-partners__more:hover {
|
|
432
|
+
text-decoration: underline;
|
|
433
|
+
}
|
|
434
|
+
.mwnf-dxa-home .mwnf-featured-partners__controls {
|
|
435
|
+
justify-content: flex-start;
|
|
436
|
+
width: calc(60% + 20px);
|
|
437
|
+
margin: 20px 0 40px;
|
|
438
|
+
padding: 0;
|
|
439
|
+
gap: 18px;
|
|
440
|
+
}
|
|
441
|
+
.mwnf-dxa-home .mwnf-featured-partners__bullet {
|
|
442
|
+
width: 14px;
|
|
443
|
+
height: 14px;
|
|
444
|
+
background: var(--theme-dark);
|
|
445
|
+
}
|
|
446
|
+
.mwnf-dxa-home .mwnf-featured-partners__bullet--active {
|
|
447
|
+
background: var(--theme-light);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/* The logos strip (Glass's "Set up on the occasion of"). */
|
|
451
|
+
.mwnf-dxa-home-logos {
|
|
452
|
+
display: flex;
|
|
453
|
+
flex-direction: column;
|
|
454
|
+
align-items: center;
|
|
455
|
+
padding: 20px 50px;
|
|
456
|
+
background: #ffffff;
|
|
457
|
+
}
|
|
458
|
+
.mwnf-dxa-home-logos__label {
|
|
459
|
+
font-weight: 700;
|
|
460
|
+
color: var(--theme-dark);
|
|
461
|
+
}
|
|
462
|
+
.mwnf-dxa-home-logos__list {
|
|
463
|
+
display: flex;
|
|
464
|
+
flex-wrap: wrap;
|
|
465
|
+
justify-content: center;
|
|
466
|
+
list-style: none;
|
|
467
|
+
}
|
|
468
|
+
.mwnf-dxa-home-logos__logo {
|
|
469
|
+
display: flex;
|
|
470
|
+
align-items: center;
|
|
471
|
+
justify-content: center;
|
|
472
|
+
width: 90px;
|
|
473
|
+
min-height: 90px;
|
|
474
|
+
margin: 10px 20px;
|
|
475
|
+
}
|
|
476
|
+
.mwnf-dxa-home-logos__logo img {
|
|
477
|
+
max-width: 100%;
|
|
478
|
+
object-fit: contain;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* Visit MWNF Galleries and Other Virtual Museums, side by side on white:
|
|
482
|
+
four tiles named in capitals on a dark band over the picture, and the
|
|
483
|
+
three virtual museums' picture banners, each named in its colour. */
|
|
484
|
+
.mwnf-dxa-home .mwnf-sibling-galleries {
|
|
485
|
+
display: grid;
|
|
486
|
+
grid-template-columns: 75% 25%;
|
|
487
|
+
background: #ffffff;
|
|
488
|
+
}
|
|
489
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__galleries,
|
|
490
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museums {
|
|
491
|
+
display: flex;
|
|
492
|
+
flex-direction: column;
|
|
493
|
+
padding: 20px 30px;
|
|
494
|
+
background: transparent;
|
|
495
|
+
}
|
|
496
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__header {
|
|
497
|
+
margin-bottom: 12px;
|
|
498
|
+
}
|
|
499
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__heading,
|
|
500
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__see-more {
|
|
501
|
+
align-self: flex-start;
|
|
502
|
+
margin-bottom: 12px;
|
|
503
|
+
padding: 2px 0;
|
|
504
|
+
border-bottom: 1px solid var(--theme-medium-dark);
|
|
505
|
+
font-size: 115%;
|
|
506
|
+
font-weight: 400;
|
|
507
|
+
color: var(--theme-medium-dark);
|
|
508
|
+
}
|
|
509
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__header .mwnf-sibling-galleries__heading,
|
|
510
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__see-more {
|
|
511
|
+
margin-bottom: 0;
|
|
512
|
+
}
|
|
513
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__grid {
|
|
514
|
+
gap: 24px;
|
|
515
|
+
}
|
|
516
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__gallery {
|
|
517
|
+
position: relative;
|
|
518
|
+
}
|
|
519
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__image {
|
|
520
|
+
height: auto;
|
|
521
|
+
aspect-ratio: 1;
|
|
522
|
+
margin: 0;
|
|
523
|
+
}
|
|
524
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__name {
|
|
525
|
+
position: absolute;
|
|
526
|
+
inset-inline: 0;
|
|
527
|
+
bottom: 0;
|
|
528
|
+
display: flex;
|
|
529
|
+
align-items: center;
|
|
530
|
+
justify-content: center;
|
|
531
|
+
height: 3em;
|
|
532
|
+
padding: 0 4px;
|
|
533
|
+
background: rgba(0, 0, 0, 0.6);
|
|
534
|
+
color: #ffffff;
|
|
535
|
+
font-weight: 400;
|
|
536
|
+
font-size: inherit;
|
|
537
|
+
text-align: center;
|
|
538
|
+
text-transform: uppercase;
|
|
539
|
+
}
|
|
540
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museums-grid {
|
|
541
|
+
display: flex;
|
|
542
|
+
flex-direction: column;
|
|
543
|
+
justify-content: space-between;
|
|
544
|
+
flex: 1;
|
|
545
|
+
gap: 10px;
|
|
546
|
+
}
|
|
547
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museum {
|
|
548
|
+
position: relative;
|
|
549
|
+
flex: 1;
|
|
550
|
+
}
|
|
551
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museum-image--picture {
|
|
552
|
+
height: 100%;
|
|
553
|
+
background: none;
|
|
554
|
+
}
|
|
555
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museum-image--picture img {
|
|
556
|
+
display: block;
|
|
557
|
+
width: 100%;
|
|
558
|
+
height: 100%;
|
|
559
|
+
object-fit: cover;
|
|
560
|
+
}
|
|
561
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museum-image--picture + .mwnf-sibling-galleries__museum-name {
|
|
562
|
+
position: absolute;
|
|
563
|
+
inset: 0;
|
|
564
|
+
display: flex;
|
|
565
|
+
align-items: center;
|
|
566
|
+
justify-content: center;
|
|
567
|
+
margin: 0;
|
|
568
|
+
font-size: 150%;
|
|
569
|
+
font-weight: 700;
|
|
570
|
+
color: var(--mwnf-museum-bg);
|
|
571
|
+
text-shadow: 0 0 10px var(--mwnf-museum-text);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
@media only screen and (max-width: 974px) {
|
|
575
|
+
.mwnf-dxa-home .mwnf-sibling-galleries {
|
|
576
|
+
display: flex;
|
|
577
|
+
flex-direction: column;
|
|
578
|
+
}
|
|
579
|
+
.mwnf-dxa-home .mwnf-sibling-galleries__museums-grid {
|
|
580
|
+
display: grid;
|
|
581
|
+
grid-template-columns: repeat(3, 1fr);
|
|
582
|
+
column-gap: 24px;
|
|
583
|
+
}
|
|
584
|
+
.mwnf-dxa-home .mwnf-featured-partners__heading,
|
|
585
|
+
.mwnf-dxa-home .mwnf-featured-partners__carousel,
|
|
586
|
+
.mwnf-dxa-home .mwnf-featured-partners__controls {
|
|
587
|
+
width: calc(80% + 20px);
|
|
588
|
+
}
|
|
589
|
+
}
|
package/src/tokens.reference.css
CHANGED
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
/* --mwnf-header-button-active-background: #1c1c1c; The active language button */
|
|
58
58
|
/* --mwnf-header-button-active-text: #ffffff; Its text color */
|
|
59
59
|
/* --mwnf-header-language-gap: 0.25rem; Gap between language buttons */
|
|
60
|
+
/* --mwnf-header-brand-logo-height: 3rem; The logo image in the brand cell */
|
|
60
61
|
|
|
61
62
|
/* ---------- AppBanner ---------- */
|
|
62
63
|
/* --mwnf-banner-padding: 0; Vertical padding */
|
|
@@ -158,6 +159,10 @@
|
|
|
158
159
|
/* --mwnf-footer-link-color: inherit; Footer link color */
|
|
159
160
|
/* --mwnf-footer-attribution-gap: 0.25rem; Gap before the rights-holder label */
|
|
160
161
|
/* --mwnf-footer-terms-color: inherit; Terms-of-use link color */
|
|
162
|
+
/* --mwnf-footer-social-gap: 1rem; Gap between the social-network icons */
|
|
163
|
+
/* --mwnf-footer-social-offset: 1.5rem; Space before them */
|
|
164
|
+
/* --mwnf-footer-social-color: inherit; Their colour (else the footer link colour) */
|
|
165
|
+
/* --mwnf-footer-social-size: 1rem; Their height */
|
|
161
166
|
|
|
162
167
|
/* ---------- Content: SectionCards ---------- */
|
|
163
168
|
/* --mwnf-card-columns: 3; Cards per row */
|
|
@@ -795,6 +800,13 @@
|
|
|
795
800
|
/* --mwnf-dxa-band-background: #f0f0f0; Language switcher / tab strip / timeline-link box background */
|
|
796
801
|
/* --mwnf-dxa-item-background: #ffffff; Item page ground (white on a gallery's tinted page) */
|
|
797
802
|
/* --mwnf-dxa-item-link: var(--mwnf-link-text); Item sheet value links */
|
|
803
|
+
/* --mwnf-dxa-item-padding: 3.125rem 1.25rem; Item page: the photo and sheet columns' side padding */
|
|
804
|
+
/* --mwnf-dxa-related-width: 25%; Item page: the Related Content sidebar's width */
|
|
805
|
+
/* --mwnf-dxa-related-background: #f0f0f0; Its background */
|
|
806
|
+
/* --mwnf-dxa-related-text: inherit; Its text and links */
|
|
807
|
+
/* --mwnf-dxa-related-heading-color: inherit; Its underlined headings */
|
|
808
|
+
/* --mwnf-dxa-glossary-image: none; The glossary entry header's picture (set by ItemDetailView from the site's world.png) */
|
|
809
|
+
/* --mwnf-dxa-popup-image-width: 13.25rem; An exhibition popup notice's pictures: their widest (legacy sized them 191 to 211px) */
|
|
798
810
|
/* --mwnf-dxa-theme-background: #ffffff; Exhibition theme pages: the ground (legacy's secondary colour) */
|
|
799
811
|
/* --mwnf-dxa-theme-text: #000000; Their text and tour links (secondary text colour) */
|
|
800
812
|
/* --mwnf-dxa-theme-contrast: #64bfd9; The heading band and link hover (contrast colour) */
|
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import { n as e, o as t } from "./TimelineEventList-COjkXEzS.js";
|
|
2
|
-
import { i as n, n as r, o as i, r as a, t as o } from "./OnDisplayIn-Dv8i7uvH.js";
|
|
3
|
-
import { s } from "./TimelineResultsView-CmHomvV_.js";
|
|
4
|
-
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createSlots as ee, createTextVNode as m, createVNode as h, guardReactiveProps as g, normalizeClass as _, normalizeProps as v, openBlock as y, renderList as b, renderSlot as x, toDisplayString as S, unref as C, useSlots as te, withCtx as w } from "vue";
|
|
5
|
-
import { NotFoundView as ne, byId as T, loadEntities as re, mdInline as E, mdStrip as ie, mwnfLinks as D, partnerView as ae, useDataPackage as oe, useI18n as se, useProjects as ce } from "@museumwnf/viewer-core";
|
|
6
|
-
//#region src/dxa/ItemDetailView.vue
|
|
7
|
-
var le = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "mwnf-sheet-source"
|
|
10
|
-
}, ue = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "mwnf-sheet-source__line"
|
|
13
|
-
}, O = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "mwnf-sheet-source__uid"
|
|
16
|
-
}, k = {
|
|
17
|
-
key: 2,
|
|
18
|
-
class: "mwnf-sheet-source__collection"
|
|
19
|
-
}, A = ["href"], j = {
|
|
20
|
-
key: 1,
|
|
21
|
-
class: "mwnf-sheet-notice"
|
|
22
|
-
}, M = {
|
|
23
|
-
key: "museum",
|
|
24
|
-
class: "mwnf-sheet-museum"
|
|
25
|
-
}, N = ["innerHTML"], P = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "mwnf-sheet-related"
|
|
28
|
-
}, F = {
|
|
29
|
-
key: 0,
|
|
30
|
-
class: "mwnf-sheet-related__heading mwnf-sheet-related__heading--caps"
|
|
31
|
-
}, I = {
|
|
32
|
-
key: 1,
|
|
33
|
-
class: "mwnf-sheet-related__description"
|
|
34
|
-
}, L = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "mwnf-sheet-related__references"
|
|
37
|
-
}, R = { key: 2 }, z = {
|
|
38
|
-
key: 3,
|
|
39
|
-
class: "mwnf-sheet-related__unresolved"
|
|
40
|
-
}, B = {
|
|
41
|
-
key: 2,
|
|
42
|
-
class: "mwnf-sheet-related__line"
|
|
43
|
-
}, V = ["href"], H = { key: 6 }, U = { class: "mwnf-sheet-related__heading" }, de = { key: 7 }, fe = { class: "mwnf-sheet-related__heading" }, pe = { class: "mwnf-sheet-related__line" }, me = ["href"], W = { key: 8 }, he = { class: "mwnf-sheet-related__heading" }, ge = { class: "mwnf-sheet-related__line" }, _e = ["href"], ve = { key: 9 }, ye = { class: "mwnf-sheet-related__heading" }, G = {
|
|
44
|
-
__name: "ItemDetailView",
|
|
45
|
-
props: {
|
|
46
|
-
spec: {
|
|
47
|
-
type: Object,
|
|
48
|
-
required: !0
|
|
49
|
-
},
|
|
50
|
-
id: {
|
|
51
|
-
type: String,
|
|
52
|
-
required: !0
|
|
53
|
-
},
|
|
54
|
-
entity: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: ""
|
|
57
|
-
},
|
|
58
|
-
dataGetter: {
|
|
59
|
-
type: Function,
|
|
60
|
-
default: null
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
setup(G) {
|
|
64
|
-
let K = G, be = te(), xe = /* @__PURE__ */ new Set([
|
|
65
|
-
"before-sheet",
|
|
66
|
-
"museum",
|
|
67
|
-
"related"
|
|
68
|
-
]), Se = l(() => Object.keys(be).filter((e) => !xe.has(e))), Ce = l(() => !K.dataGetter || K.dataGetter(K.id) != null), { t: q } = se(), J = l(() => K.spec), Y = ce(), X = (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), we = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "gallery").sort(X), Te = (e) => (e.gallery_references ?? []).filter((e) => e.kind === "exhibition").sort(X), Z = (e) => Y.links(e.project_id)?.artisticIntroductionUrl ?? null, Q = (e) => Y.links(e.project_id)?.relatedDatabaseUrl ?? null;
|
|
69
|
-
function Ee(e, t) {
|
|
70
|
-
if (!e) return null;
|
|
71
|
-
let n = J.value.sourceDatabase === !1 ? null : J.value.sourceDatabase ?? null, r = null;
|
|
72
|
-
if (n) {
|
|
73
|
-
let i = n.chipClass ? n.chipClass(e, t) : null, a = Y.label(e.project_id);
|
|
74
|
-
(i || a) && (r = {
|
|
75
|
-
chipClass: i,
|
|
76
|
-
name: a,
|
|
77
|
-
label: q(n.label ?? "record.sheet.sourceDatabase")
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
let i = n && n.addToCollection !== !1 ? q(n.addToCollection?.label ?? "record.action.addToCollection") : null, a = n ? e.backward_compatibility ?? "" : "", o = J.value.notice === !1 ? null : J.value.notice ?? null, s = o && o.show(e, t) ? q(o.label) : null;
|
|
81
|
-
return {
|
|
82
|
-
source: r,
|
|
83
|
-
addToCollectionLabel: i,
|
|
84
|
-
notice: s,
|
|
85
|
-
backwardCompatibility: a
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
let $ = oe(), De = T("partners"), Oe = T("countries");
|
|
89
|
-
re(["partners", "countries"]), $.loadTranslations("countries", "en");
|
|
90
|
-
function ke(e, t) {
|
|
91
|
-
let n = $.tr("countries", e, t, "en");
|
|
92
|
-
return ie(n.name ?? Oe.value?.get(e)?.internal_name ?? "");
|
|
93
|
-
}
|
|
94
|
-
function Ae(e) {
|
|
95
|
-
let t = e.text?.holder ? E(String(e.text.holder)) : "", n = J.value.museum === !1 ? null : J.value.museum ?? null, r = n ? De.value?.get(e.record?.partner_id) : null;
|
|
96
|
-
return {
|
|
97
|
-
holder: t,
|
|
98
|
-
view: r ? ae(r, $.tr("partners", r.id, e.language, "en"), {
|
|
99
|
-
countryLabel: (t) => ke(t, e.language),
|
|
100
|
-
route: (t) => n.route ? n.route(t.id, e) : null
|
|
101
|
-
}) : null
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
function je(e, t) {
|
|
105
|
-
if (!e) return null;
|
|
106
|
-
let n = J.value.related ?? {}, r = t.records ?? [], i = t.outside ?? [], a = K.dataGetter ? r.filter((e) => K.dataGetter(e.id) != null) : r, o = K.dataGetter ? r.filter((e) => K.dataGetter(e.id) == null).map((t) => (e.related_items ?? []).find((e) => e.id === t.id)).filter(Boolean) : [], s = [...i, ...o].map((e) => ({
|
|
107
|
-
...e,
|
|
108
|
-
name: e.project_id ? Y.label(e.project_id) : null,
|
|
109
|
-
chipClass: n.outsideChip ? n.outsideChip(e, t) : null
|
|
110
|
-
})), c = (e) => ({
|
|
111
|
-
id: e.id,
|
|
112
|
-
label: E(e.name ?? ""),
|
|
113
|
-
href: e.legacy_host || "",
|
|
114
|
-
external: !!e.legacy_host
|
|
115
|
-
}), l = n.onDisplayIn && n.onDisplayIn !== !1 ? {
|
|
116
|
-
pendingLabel: n.onDisplayIn.linkPendingLabel ?? "",
|
|
117
|
-
groups: [{
|
|
118
|
-
heading: "record.related.exhibitions",
|
|
119
|
-
links: Te(e).map(c)
|
|
120
|
-
}, {
|
|
121
|
-
heading: "record.related.galleries",
|
|
122
|
-
links: we(e).map(c)
|
|
123
|
-
}].filter((e) => e.links.length)
|
|
124
|
-
} : null, u = n.databaseLabel && Q(e) ? {
|
|
125
|
-
url: Q(e),
|
|
126
|
-
label: q(n.databaseLabel),
|
|
127
|
-
name: Y.label(e.project_id)
|
|
128
|
-
} : null, d = n.overallDatabase && n.overallDatabase !== !1 ? {
|
|
129
|
-
label: q(n.overallDatabase.label),
|
|
130
|
-
linkLabel: q(n.overallDatabase.linkLabel)
|
|
131
|
-
} : null;
|
|
132
|
-
return {
|
|
133
|
-
title: n.title ? q(n.title) : "",
|
|
134
|
-
description: n.description ? q(n.description) : "",
|
|
135
|
-
heading: q(n.heading ?? "record.related.items"),
|
|
136
|
-
variant: n.variant ?? "grid",
|
|
137
|
-
actionLabel: n.actionLabel ? q(n.actionLabel) : "",
|
|
138
|
-
inPackage: a,
|
|
139
|
-
references: s,
|
|
140
|
-
notInPackageLabel: n.notInPackageLabel ? q(n.notInPackageLabel) : "",
|
|
141
|
-
artisticIntroduction: n.artisticIntroductionLabel && Z(e) ? {
|
|
142
|
-
url: Z(e),
|
|
143
|
-
label: q(n.artisticIntroductionLabel)
|
|
144
|
-
} : null,
|
|
145
|
-
timeline: n.timeline ? n.timeline(e, t) : null,
|
|
146
|
-
glossary: n.glossary !== !1,
|
|
147
|
-
dynasties: n.dynasties ? n.dynasties(e, t.language, t) : null,
|
|
148
|
-
media: n.media === !1 ? [] : e.media ?? [],
|
|
149
|
-
onDisplayIn: l,
|
|
150
|
-
database: u,
|
|
151
|
-
overallDatabase: d,
|
|
152
|
-
download: n.download === !1 ? null : {
|
|
153
|
-
label: q("record.action.download"),
|
|
154
|
-
pdfLabel: q("record.action.downloadPdf")
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
function Me() {
|
|
159
|
-
window.print();
|
|
160
|
-
}
|
|
161
|
-
return (l, te) => Ce.value ? (y(), u(s, {
|
|
162
|
-
key: 0,
|
|
163
|
-
spec: J.value,
|
|
164
|
-
id: G.id,
|
|
165
|
-
entity: G.entity
|
|
166
|
-
}, ee({
|
|
167
|
-
"before-sheet": w((e) => [x(l.$slots, "before-sheet", v(g(e)), () => [(y(!0), f(c, null, b([Ee(e.record, e)], (t) => (y(), f(c, { key: "before-sheet" }, [t?.source || t?.backwardCompatibility || t?.addToCollectionLabel ? (y(), f("div", le, [
|
|
168
|
-
t.source ? (y(), f("p", ue, [t.source.chipClass ? (y(), f("span", {
|
|
169
|
-
key: 0,
|
|
170
|
-
class: _(["mwnf-chip", t.source.chipClass]),
|
|
171
|
-
"aria-hidden": "true"
|
|
172
|
-
}, null, 2)) : d("", !0), t.source.name ? (y(), f(c, { key: 1 }, [m(S(t.source.label) + ": " + S(t.source.name), 1)], 64)) : d("", !0)])) : d("", !0),
|
|
173
|
-
t.backwardCompatibility ? (y(), f("p", O, [p("code", null, S(t.backwardCompatibility), 1)])) : d("", !0),
|
|
174
|
-
t.addToCollectionLabel ? (y(), f("p", k, [p("a", {
|
|
175
|
-
href: C(D).myCollection,
|
|
176
|
-
target: "_blank",
|
|
177
|
-
rel: "noopener"
|
|
178
|
-
}, "↗ " + S(t.addToCollectionLabel), 9, A)])) : d("", !0)
|
|
179
|
-
])) : d("", !0), t?.notice ? (y(), f("div", j, [m(S(t.notice) + " ", 1), p("strong", null, [p("em", null, S(e.languages.map((e) => e.label).join(", ")), 1)])])) : d("", !0)], 64))), 128))])]),
|
|
180
|
-
museum: w((t) => [x(l.$slots, "museum", v(g(t)), () => [(y(!0), f(c, null, b([Ae(t)], (n) => (y(), f("div", M, [n.holder ? (y(), f("p", {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: "mwnf-sheet-museum__holder",
|
|
183
|
-
innerHTML: n.holder
|
|
184
|
-
}, null, 8, N)) : d("", !0), n.view ? (y(), u(e, {
|
|
185
|
-
key: 1,
|
|
186
|
-
variant: "summary",
|
|
187
|
-
partner: n.view,
|
|
188
|
-
label: "partner.info.about",
|
|
189
|
-
dir: t.dir
|
|
190
|
-
}, null, 8, ["partner", "dir"])) : d("", !0)]))), 128))])]),
|
|
191
|
-
related: w((e) => [x(l.$slots, "related", v(g(e)), () => [(y(!0), f(c, null, b([je(e.record, e)], (s) => (y(), f(c, { key: e.record?.id ?? "related" }, [s ? (y(), f("div", P, [
|
|
192
|
-
s.title ? (y(), f("p", F, S(s.title), 1)) : d("", !0),
|
|
193
|
-
s.description ? (y(), f("p", I, S(s.description), 1)) : d("", !0),
|
|
194
|
-
h(t, {
|
|
195
|
-
heading: s.heading,
|
|
196
|
-
records: s.inPackage,
|
|
197
|
-
variant: s.variant,
|
|
198
|
-
"action-label": s.actionLabel
|
|
199
|
-
}, {
|
|
200
|
-
default: w(() => [s.references.length ? (y(), f("ul", L, [(y(!0), f(c, null, b(s.references, (e) => (y(), f("li", { key: e.id }, [
|
|
201
|
-
e.chipClass ? (y(), f("span", {
|
|
202
|
-
key: 0,
|
|
203
|
-
class: _(["mwnf-chip", e.chipClass]),
|
|
204
|
-
"aria-hidden": "true"
|
|
205
|
-
}, null, 2)) : d("", !0),
|
|
206
|
-
e.name ? (y(), f(c, { key: 1 }, [m(S(e.name), 1)], 64)) : (y(), f("code", R, S(e.backward_compatibility), 1)),
|
|
207
|
-
s.notInPackageLabel ? (y(), f("span", z, S(s.notInPackageLabel), 1)) : d("", !0)
|
|
208
|
-
]))), 128))])) : d("", !0)]),
|
|
209
|
-
_: 2
|
|
210
|
-
}, 1032, [
|
|
211
|
-
"heading",
|
|
212
|
-
"records",
|
|
213
|
-
"variant",
|
|
214
|
-
"action-label"
|
|
215
|
-
]),
|
|
216
|
-
s.artisticIntroduction ? (y(), f("p", B, [p("a", {
|
|
217
|
-
href: s.artisticIntroduction.url,
|
|
218
|
-
target: "_blank",
|
|
219
|
-
rel: "noopener"
|
|
220
|
-
}, "↗ " + S(s.artisticIntroduction.label), 9, V)])) : d("", !0),
|
|
221
|
-
s.timeline ? (y(), u(a, {
|
|
222
|
-
key: e.record.id,
|
|
223
|
-
info: s.timeline
|
|
224
|
-
}, null, 8, ["info"])) : d("", !0),
|
|
225
|
-
s.glossary ? (y(), u(i, {
|
|
226
|
-
key: 4,
|
|
227
|
-
language: e.language,
|
|
228
|
-
dir: e.dir
|
|
229
|
-
}, null, 8, ["language", "dir"])) : d("", !0),
|
|
230
|
-
s.dynasties?.records?.length ? (y(), u(n, {
|
|
231
|
-
key: 5,
|
|
232
|
-
heading: C(q)("record.dynasty.list"),
|
|
233
|
-
dynasties: s.dynasties.records,
|
|
234
|
-
tr: s.dynasties.tr,
|
|
235
|
-
dir: e.dir
|
|
236
|
-
}, null, 8, [
|
|
237
|
-
"heading",
|
|
238
|
-
"dynasties",
|
|
239
|
-
"tr",
|
|
240
|
-
"dir"
|
|
241
|
-
])) : d("", !0),
|
|
242
|
-
h(r, {
|
|
243
|
-
media: s.media,
|
|
244
|
-
descriptions: !1,
|
|
245
|
-
dir: e.dir
|
|
246
|
-
}, null, 8, ["media", "dir"]),
|
|
247
|
-
s.onDisplayIn?.groups.length ? (y(), f("div", H, [p("p", U, S(C(q)("record.related.onDisplayIn")), 1), h(o, {
|
|
248
|
-
heading: "",
|
|
249
|
-
groups: s.onDisplayIn.groups,
|
|
250
|
-
"pending-label": s.onDisplayIn.pendingLabel,
|
|
251
|
-
dir: e.dir
|
|
252
|
-
}, null, 8, [
|
|
253
|
-
"groups",
|
|
254
|
-
"pending-label",
|
|
255
|
-
"dir"
|
|
256
|
-
])])) : d("", !0),
|
|
257
|
-
s.database ? (y(), f("div", de, [p("p", fe, S(s.database.label), 1), p("p", pe, [p("a", {
|
|
258
|
-
href: s.database.url,
|
|
259
|
-
target: "_blank",
|
|
260
|
-
rel: "noopener"
|
|
261
|
-
}, "↗ " + S(s.database.name), 9, me)])])) : d("", !0),
|
|
262
|
-
s.overallDatabase ? (y(), f("div", W, [p("p", he, S(s.overallDatabase.label), 1), p("p", ge, [p("a", {
|
|
263
|
-
href: C(D).overallDatabase,
|
|
264
|
-
target: "_blank",
|
|
265
|
-
rel: "noopener"
|
|
266
|
-
}, "↗ " + S(s.overallDatabase.linkLabel), 9, _e)])])) : d("", !0),
|
|
267
|
-
s.download ? (y(), f("div", ve, [p("p", ye, S(s.download.label), 1), p("p", {
|
|
268
|
-
class: "mwnf-sheet-related__line mwnf-sheet-related__line--action",
|
|
269
|
-
onClick: Me
|
|
270
|
-
}, "➤ " + S(s.download.pdfLabel), 1)])) : d("", !0)
|
|
271
|
-
])) : d("", !0)], 64))), 128))])]),
|
|
272
|
-
_: 2
|
|
273
|
-
}, [b(Se.value, (e) => ({
|
|
274
|
-
name: e,
|
|
275
|
-
fn: w((t) => [x(l.$slots, e, v(g(t)))])
|
|
276
|
-
}))]), 1032, [
|
|
277
|
-
"spec",
|
|
278
|
-
"id",
|
|
279
|
-
"entity"
|
|
280
|
-
])) : (y(), u(C(ne), { key: 1 }));
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
//#endregion
|
|
284
|
-
export { G as t };
|