barbican-reset 2.36.0 → 2.37.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/components/event_summary.vue +68 -49
- package/components/see_inside.vue +116 -0
- package/index.js +2 -0
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="
|
|
3
|
-
<img :class="
|
|
4
|
-
<div>
|
|
2
|
+
<div :class="wrapperClasses">
|
|
3
|
+
<img :class="$style.image" v-bind:src="data.image" alt="" />
|
|
4
|
+
<div :class="$style.event_info">
|
|
5
5
|
<div :class="$style.title">{{ data.title }}</div>
|
|
6
6
|
<div :class="$style.date_time">{{ data.date_formatted }}</div>
|
|
7
7
|
<div :class="$style.venue">{{ data.venue }}</div>
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
params: { instanceIdShort: data.id_short },
|
|
13
|
-
}"
|
|
14
|
-
class="btn btn-outline-primary margin-top-1">
|
|
15
|
-
Update seat selection
|
|
16
|
-
</router-link>
|
|
8
|
+
<br-button v-if="!basket && hasSeeInside" variant="link" :class="$style.show_see_inside" @click="showSeeInside = !showSeeInside">See inside</br-button>
|
|
9
|
+
</div>
|
|
10
|
+
<div :class="$style.see_inside" v-if="!basket && hasSeeInside && showSeeInside">
|
|
11
|
+
<see-inside v-if="!basket && hasSeeInside" :data="data.see_inside" @closeSeeInside="showSeeInside = !showSeeInside"></see-inside>
|
|
17
12
|
</div>
|
|
18
13
|
</div>
|
|
14
|
+
|
|
19
15
|
</template>
|
|
20
16
|
|
|
21
17
|
<script>
|
|
18
|
+
|
|
19
|
+
import SeeInside from './see_inside';
|
|
20
|
+
|
|
22
21
|
export default {
|
|
23
22
|
name: 'EventSummary',
|
|
23
|
+
components: { SeeInside },
|
|
24
24
|
props: {
|
|
25
25
|
data: {
|
|
26
26
|
type: Object,
|
|
@@ -31,10 +31,21 @@ export default {
|
|
|
31
31
|
default: false,
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
|
+
data() {
|
|
35
|
+
return {
|
|
36
|
+
showSeeInside: false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
34
39
|
computed: {
|
|
35
|
-
|
|
36
|
-
return
|
|
40
|
+
wrapperClasses() {
|
|
41
|
+
return [
|
|
42
|
+
this.$style.event_summary,
|
|
43
|
+
this.basket ? this.$style.in_basket : ''
|
|
44
|
+
]
|
|
37
45
|
},
|
|
46
|
+
hasSeeInside() {
|
|
47
|
+
return this.data.see_inside.length > 0;
|
|
48
|
+
}
|
|
38
49
|
},
|
|
39
50
|
};
|
|
40
51
|
</script>
|
|
@@ -57,57 +68,65 @@ export default {
|
|
|
57
68
|
}
|
|
58
69
|
}
|
|
59
70
|
|
|
60
|
-
.
|
|
61
|
-
@include
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
71
|
+
.title {
|
|
72
|
+
@include title;
|
|
73
|
+
font-size: $h2-font-size;
|
|
74
|
+
margin-bottom: 0.75rem;
|
|
65
75
|
}
|
|
66
76
|
|
|
67
|
-
.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
width: 100%;
|
|
72
|
-
|
|
73
|
-
@include media-breakpoint-down(md) {
|
|
74
|
-
margin-bottom: $gap-instance;
|
|
75
|
-
}
|
|
77
|
+
.date_time {
|
|
78
|
+
@include subtitle;
|
|
79
|
+
margin-bottom: 0.25rem;
|
|
80
|
+
}
|
|
76
81
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
width: 50%;
|
|
80
|
-
}
|
|
82
|
+
.venue {
|
|
83
|
+
@include subtitle;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
|
-
.
|
|
84
|
-
|
|
86
|
+
.show_see_inside {
|
|
87
|
+
margin-top: 0.5rem;
|
|
88
|
+
margin-bottom: 0.5rem;
|
|
89
|
+
}
|
|
85
90
|
|
|
91
|
+
.event_summary {
|
|
86
92
|
@include media-breakpoint-up(md) {
|
|
87
|
-
|
|
93
|
+
display: grid;
|
|
94
|
+
grid-template-columns: 20rem auto;
|
|
95
|
+
grid-template-rows: auto auto auto;
|
|
96
|
+
|
|
97
|
+
column-gap: 1.5rem;
|
|
98
|
+
}
|
|
99
|
+
&.in_basket {
|
|
100
|
+
grid-template-columns: 16rem auto;
|
|
88
101
|
}
|
|
89
102
|
}
|
|
90
103
|
|
|
91
|
-
.
|
|
92
|
-
|
|
93
|
-
|
|
104
|
+
.image {
|
|
105
|
+
grid-row-start: 1;
|
|
106
|
+
grid-row-end: 4;
|
|
107
|
+
border: 1px solid $c-grey-l87;
|
|
108
|
+
border-radius: $border-radius-lg;
|
|
109
|
+
max-width: 100%;
|
|
110
|
+
width: 100%;
|
|
111
|
+
margin-bottom: $gap-instance;
|
|
94
112
|
@include media-breakpoint-up(md) {
|
|
95
|
-
|
|
113
|
+
margin-bottom: 0;
|
|
96
114
|
}
|
|
97
115
|
}
|
|
98
116
|
|
|
99
|
-
.
|
|
100
|
-
|
|
101
|
-
font-size: $h2-font-size;
|
|
102
|
-
margin-bottom: 0.75rem;
|
|
117
|
+
.event_info {
|
|
118
|
+
grid-row-end:2;
|
|
103
119
|
}
|
|
104
120
|
|
|
105
|
-
.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
121
|
+
.see_inside {
|
|
122
|
+
grid-column-start: 1;
|
|
123
|
+
grid-column-end: 3;
|
|
124
|
+
margin-top: 1rem;
|
|
125
|
+
@include media-breakpoint-up(lg) {
|
|
126
|
+
margin-top: 0;
|
|
127
|
+
grid-column-start: 2;
|
|
109
128
|
|
|
110
|
-
|
|
111
|
-
@include subtitle;
|
|
129
|
+
}
|
|
112
130
|
}
|
|
131
|
+
|
|
113
132
|
</style>
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div :class="$style.see_inside">
|
|
3
|
+
<div :class="$style.see_inside_content">
|
|
4
|
+
<div :class="$style.venue_sections" v-if="multipleSeeInside">
|
|
5
|
+
<div :class="$style.sections_title">
|
|
6
|
+
<span>Section:</span>
|
|
7
|
+
<b-button
|
|
8
|
+
variant="exit"
|
|
9
|
+
@click="$emit('closeSeeInside')"
|
|
10
|
+
:class="$style.close_mobile"
|
|
11
|
+
>
|
|
12
|
+
<close-icon />
|
|
13
|
+
</b-button>
|
|
14
|
+
</div>
|
|
15
|
+
<br-button variant="link" :class="{[$style.venue_section]: true, [$style.venue_section_active]: visibleMapIndex == index}" v-for="(item, index) in data" :key="'section-' + index" @click="visibleMapIndex = index">{{item.title}}</br-button>
|
|
16
|
+
<b-button
|
|
17
|
+
@click="$emit('closeSeeInside')"
|
|
18
|
+
variant="exit"
|
|
19
|
+
:class="$style.close_desktop"
|
|
20
|
+
>
|
|
21
|
+
<close-icon />
|
|
22
|
+
</b-button>
|
|
23
|
+
</div>
|
|
24
|
+
<div v-for="(item, index) in data" :key="index">
|
|
25
|
+
<div :class="$style.see_inside_map" v-if="(visibleMapIndex == index) || !multipleSeeInside" v-html="item.markup"></div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script>
|
|
33
|
+
|
|
34
|
+
import { CloseIcon } from "barbican-reset/icons/stream";
|
|
35
|
+
|
|
36
|
+
export default {
|
|
37
|
+
name: 'SeeInside',
|
|
38
|
+
components: {
|
|
39
|
+
CloseIcon
|
|
40
|
+
},
|
|
41
|
+
data() {
|
|
42
|
+
return {
|
|
43
|
+
visibleMapIndex: null,
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
props: {
|
|
47
|
+
data: {
|
|
48
|
+
type: Array,
|
|
49
|
+
required: true,
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
computed: {
|
|
53
|
+
multipleSeeInside() {
|
|
54
|
+
return this.data.length > 1;
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="scss" module>
|
|
61
|
+
|
|
62
|
+
.see_inside_content {
|
|
63
|
+
padding: 1rem;
|
|
64
|
+
border: 1px solid $c-grey-l87;;
|
|
65
|
+
border-radius: $border-radius;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sections_title {
|
|
69
|
+
display: flex;
|
|
70
|
+
span {
|
|
71
|
+
padding-top: 2px; // To line up with the button text
|
|
72
|
+
width: 100%;
|
|
73
|
+
@include media-breakpoint-up(sm) {
|
|
74
|
+
width: auto;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.close_mobile {
|
|
78
|
+
margin-left: auto;
|
|
79
|
+
@include media-breakpoint-up(sm) {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.venue_sections {
|
|
86
|
+
display: flex;
|
|
87
|
+
gap: 1rem;
|
|
88
|
+
min-height: 28px; // Due to 28 px close icon, to prevent height change when icon shown.
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
@include media-breakpoint-up(sm) {
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.venue_section {
|
|
95
|
+
margin-right: 1rem;
|
|
96
|
+
}
|
|
97
|
+
.venue_section_active {
|
|
98
|
+
text-decoration: none;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.close_desktop {
|
|
103
|
+
margin-left: auto;
|
|
104
|
+
@include media-breakpoint-down(sm) {
|
|
105
|
+
display: none;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.see_inside_map {
|
|
110
|
+
margin-top: 1rem;
|
|
111
|
+
iframe {
|
|
112
|
+
width: 100%;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
</style>
|
package/index.js
CHANGED
|
@@ -24,6 +24,7 @@ import PaymentLogo from "./components/payment_logo";
|
|
|
24
24
|
import RelatedCard from "./components/related_card";
|
|
25
25
|
import RelatedTitle from "./components/related_title";
|
|
26
26
|
import RelatedRow from "./components/related_row";
|
|
27
|
+
import SeeInside from './components/see_inside'
|
|
27
28
|
import TypeText from "./components/type_text";
|
|
28
29
|
import VideoContent from "./components/video_content";
|
|
29
30
|
|
|
@@ -53,6 +54,7 @@ export {
|
|
|
53
54
|
RelatedCard,
|
|
54
55
|
RelatedTitle,
|
|
55
56
|
RelatedRow,
|
|
57
|
+
SeeInside,
|
|
56
58
|
TypeText,
|
|
57
59
|
VideoContent,
|
|
58
60
|
};
|
package/package.json
CHANGED