@asd20/ui 3.2.460 → 3.2.462
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/package.json +1 -1
- package/src/components/atoms/Asd20Messaging/index.vue +2 -2
- package/src/components/organisms/Asd20PageContent/index.vue +11 -0
- package/src/components/templates/Asd20WayfindingAlternateTemplate/index.vue +46 -4
- package/src/components/templates/Asd20WayfindingImageTemplate/index.vue +48 -4
- package/src/components/templates/Asd20WayfindingTemplate/index.vue +0 -5
- package/src/mixins/pageTemplateMixin.js +14 -6
package/package.json
CHANGED
|
@@ -179,6 +179,17 @@ export default {
|
|
|
179
179
|
margin: space(1) !important;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
&--grid,
|
|
183
|
+
&--fullscreen {
|
|
184
|
+
.primary-messaging-section,
|
|
185
|
+
.secondary-messaging-section {
|
|
186
|
+
padding: space(2) space(3);
|
|
187
|
+
// &::v-deep > * {
|
|
188
|
+
// flex: 1 1 var(--minimum-column-width);
|
|
189
|
+
// margin: var(--gutter) !important;
|
|
190
|
+
// }
|
|
191
|
+
}
|
|
192
|
+
}
|
|
182
193
|
}
|
|
183
194
|
}
|
|
184
195
|
</style>
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
|
|
56
56
|
<!-- Page Content -->
|
|
57
57
|
<asd20-page-content
|
|
58
|
-
|
|
59
|
-
:
|
|
60
|
-
omit-
|
|
61
|
-
|
|
58
|
+
class="intro-message"
|
|
59
|
+
:primary-messages="primaryMessage"
|
|
60
|
+
omit-detail-links
|
|
61
|
+
omit-calls-to-action
|
|
62
62
|
>
|
|
63
63
|
<!-- Inline-Notifications -->
|
|
64
64
|
<template slot="before">
|
|
@@ -71,6 +71,16 @@
|
|
|
71
71
|
></asd20-notification-group>
|
|
72
72
|
</client-only>
|
|
73
73
|
</template>
|
|
74
|
+
|
|
75
|
+
<slot></slot>
|
|
76
|
+
</asd20-page-content>
|
|
77
|
+
|
|
78
|
+
<asd20-page-content
|
|
79
|
+
:primary-messages="wayFindingPrimaryMessages"
|
|
80
|
+
:secondary-messages="secondaryMessages"
|
|
81
|
+
omit-body-content
|
|
82
|
+
grid
|
|
83
|
+
/>
|
|
74
84
|
<!-- Feeds -->
|
|
75
85
|
<template slot="before">
|
|
76
86
|
<asd20-feeds-section
|
|
@@ -171,6 +181,11 @@ export default {
|
|
|
171
181
|
)
|
|
172
182
|
)
|
|
173
183
|
},
|
|
184
|
+
primaryMessage() {
|
|
185
|
+
const introMessage = this.primaryMessages.slice(0, 1)
|
|
186
|
+
if ((introMessage[0].bodyHtml === '' || null) || (introMessage[0].detailLink !== '' || null)) return
|
|
187
|
+
return introMessage
|
|
188
|
+
},
|
|
174
189
|
},
|
|
175
190
|
}
|
|
176
191
|
</script>
|
|
@@ -227,6 +242,30 @@ export default {
|
|
|
227
242
|
}
|
|
228
243
|
}
|
|
229
244
|
}
|
|
245
|
+
.intro-message {
|
|
246
|
+
.asd20-messaging {
|
|
247
|
+
border-left: 40px solid var(--color__tertiary);
|
|
248
|
+
border-bottom: 20px solid var(--color__tertiary);
|
|
249
|
+
padding-left: space(1);
|
|
250
|
+
padding-bottom: space(1);
|
|
251
|
+
}
|
|
252
|
+
p {
|
|
253
|
+
// font-family: var(--website-typography__font-family-headlines);
|
|
254
|
+
font-size: 18px !important;
|
|
255
|
+
line-height: 1.5;
|
|
256
|
+
font-family: var(--website-typography__font-family-headlines);
|
|
257
|
+
}
|
|
258
|
+
h2 {
|
|
259
|
+
@include asd20-font(
|
|
260
|
+
1.5,
|
|
261
|
+
var(--website-typography__font-family-headlines),
|
|
262
|
+
1.2,
|
|
263
|
+
700
|
|
264
|
+
);
|
|
265
|
+
font-family: var(--website-typography__font-family-headlines);
|
|
266
|
+
// font-size: 36px !important;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
230
269
|
}
|
|
231
270
|
|
|
232
271
|
@media (min-width: 1024px) {
|
|
@@ -248,6 +287,9 @@ export default {
|
|
|
248
287
|
.asd20-page-content {
|
|
249
288
|
margin-top: space(0);
|
|
250
289
|
}
|
|
290
|
+
.intro-message {
|
|
291
|
+
width: 90%;
|
|
292
|
+
}
|
|
251
293
|
}
|
|
252
294
|
}
|
|
253
295
|
</style>
|
|
@@ -52,12 +52,14 @@
|
|
|
52
52
|
</template>
|
|
53
53
|
<!-- <asd20-breadcrumb slot="top" :links="breadcrumbLinks"></asd20-breadcrumb> -->
|
|
54
54
|
</asd20-image-header>
|
|
55
|
+
|
|
56
|
+
|
|
55
57
|
<!-- Page Content -->
|
|
56
58
|
<asd20-page-content
|
|
57
|
-
|
|
58
|
-
:
|
|
59
|
-
omit-
|
|
60
|
-
|
|
59
|
+
class="intro-message"
|
|
60
|
+
:primary-messages="primaryMessage"
|
|
61
|
+
omit-detail-links
|
|
62
|
+
omit-calls-to-action
|
|
61
63
|
>
|
|
62
64
|
<!-- Inline-Notifications -->
|
|
63
65
|
<template slot="before">
|
|
@@ -70,6 +72,16 @@
|
|
|
70
72
|
></asd20-notification-group>
|
|
71
73
|
</client-only>
|
|
72
74
|
</template>
|
|
75
|
+
|
|
76
|
+
<slot></slot>
|
|
77
|
+
</asd20-page-content>
|
|
78
|
+
|
|
79
|
+
<asd20-page-content
|
|
80
|
+
:primary-messages="wayFindingPrimaryMessages"
|
|
81
|
+
:secondary-messages="secondaryMessages"
|
|
82
|
+
omit-body-content
|
|
83
|
+
fullscreen
|
|
84
|
+
/>
|
|
73
85
|
<!-- Announcement Feed -->
|
|
74
86
|
<template slot="before">
|
|
75
87
|
<asd20-feeds-section
|
|
@@ -174,6 +186,11 @@ export default {
|
|
|
174
186
|
)
|
|
175
187
|
)
|
|
176
188
|
},
|
|
189
|
+
primaryMessage() {
|
|
190
|
+
const introMessage = this.primaryMessages.slice(0, 1)
|
|
191
|
+
if ((introMessage[0].bodyHtml === '' || null) || (introMessage[0].detailLink !== '' || null)) return
|
|
192
|
+
return introMessage
|
|
193
|
+
},
|
|
177
194
|
},
|
|
178
195
|
}
|
|
179
196
|
</script>
|
|
@@ -252,6 +269,30 @@ export default {
|
|
|
252
269
|
}
|
|
253
270
|
}
|
|
254
271
|
}
|
|
272
|
+
.intro-message {
|
|
273
|
+
.asd20-messaging {
|
|
274
|
+
border-left: 40px solid var(--color__tertiary);
|
|
275
|
+
border-bottom: 20px solid var(--color__tertiary);
|
|
276
|
+
padding-left: space(1);
|
|
277
|
+
padding-bottom: space(1);
|
|
278
|
+
}
|
|
279
|
+
p {
|
|
280
|
+
// font-family: var(--website-typography__font-family-headlines);
|
|
281
|
+
font-size: 18px !important;
|
|
282
|
+
line-height: 1.5;
|
|
283
|
+
font-family: var(--website-typography__font-family-headlines);
|
|
284
|
+
}
|
|
285
|
+
h2 {
|
|
286
|
+
@include asd20-font(
|
|
287
|
+
1.5,
|
|
288
|
+
var(--website-typography__font-family-headlines),
|
|
289
|
+
1.2,
|
|
290
|
+
700
|
|
291
|
+
);
|
|
292
|
+
font-family: var(--website-typography__font-family-headlines);
|
|
293
|
+
// font-size: 36px !important;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
255
296
|
}
|
|
256
297
|
@media (min-width: 768px) {
|
|
257
298
|
.asd20-template-wayfinding-image {
|
|
@@ -287,6 +328,9 @@ export default {
|
|
|
287
328
|
}
|
|
288
329
|
}
|
|
289
330
|
}
|
|
331
|
+
.intro-message {
|
|
332
|
+
width: 90%;
|
|
333
|
+
}
|
|
290
334
|
}
|
|
291
335
|
}
|
|
292
336
|
</style>
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
|
|
75
75
|
<slot></slot>
|
|
76
76
|
</asd20-page-content>
|
|
77
|
-
<!-- <hr class="seperator" /> -->
|
|
78
77
|
|
|
79
78
|
<asd20-page-content
|
|
80
79
|
:primary-messages="wayFindingPrimaryMessages"
|
|
@@ -246,10 +245,6 @@ export default {
|
|
|
246
245
|
// font-size: 36px !important;
|
|
247
246
|
}
|
|
248
247
|
}
|
|
249
|
-
.seperator {
|
|
250
|
-
width: 90%;
|
|
251
|
-
margin: auto;
|
|
252
|
-
}
|
|
253
248
|
}
|
|
254
249
|
|
|
255
250
|
@media (min-width: 1024px) {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
|
+
data: () => ({
|
|
3
|
+
desktop: true,
|
|
4
|
+
}),
|
|
2
5
|
props: {
|
|
3
6
|
// Page meta
|
|
4
7
|
id: { type: String, default: '' },
|
|
@@ -203,17 +206,13 @@ export default {
|
|
|
203
206
|
widgetsSectionProps() {
|
|
204
207
|
/*
|
|
205
208
|
Rules:
|
|
206
|
-
- Sidebar only shown if more than one message, or the first message has bodyHtml
|
|
209
|
+
- Sidebar only shown if more than one message, or the first message has bodyHtml, or screen width is > 1024
|
|
207
210
|
- Sidebar widgets move to Footer when sidebar is not present
|
|
208
|
-
- If both sidebar and footer widgets are shown, prefer placing them in sidebar
|
|
209
211
|
- Full-width widgets are placed in the footer only
|
|
210
|
-
- If related links contain images, they become full-width
|
|
211
212
|
*/
|
|
212
213
|
|
|
213
214
|
const useSidebar =
|
|
214
|
-
this.firstMessage &&
|
|
215
|
-
this.firstMessage.bodyHtml &&
|
|
216
|
-
window.innerWidth >= 1024
|
|
215
|
+
this.firstMessage && this.firstMessage.bodyHtml && this.desktop
|
|
217
216
|
|
|
218
217
|
const relatedLinksContainImages =
|
|
219
218
|
this.relatedLinks.length && !!this.relatedLinks.find(l => !!l.imageUrl)
|
|
@@ -305,4 +304,13 @@ export default {
|
|
|
305
304
|
]
|
|
306
305
|
},
|
|
307
306
|
},
|
|
307
|
+
mounted() {
|
|
308
|
+
this.desktop = window.innerWidth >= 1024
|
|
309
|
+
window.addEventListener('resize', this.handleResize)
|
|
310
|
+
},
|
|
311
|
+
methods: {
|
|
312
|
+
handleResize() {
|
|
313
|
+
this.desktop = window.innerWidth >= 1024
|
|
314
|
+
},
|
|
315
|
+
},
|
|
308
316
|
}
|