@asd20/ui 3.2.986 → 3.2.987
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/templates/Asd20DetailAlternateTemplate/index.vue +1 -31
- package/src/components/templates/Asd20DetailImageFullTemplate/index.vue +1 -32
- package/src/components/templates/Asd20DetailImageTemplate/index.vue +1 -31
- package/src/components/templates/Asd20DetailTemplate/index.vue +1 -25
- package/src/mixins/pageTemplateMixin.js +61 -18
package/package.json
CHANGED
|
@@ -254,25 +254,8 @@ export default {
|
|
|
254
254
|
.asd20-notification-group--floating {
|
|
255
255
|
position: absolute;
|
|
256
256
|
top: space(2.0375);
|
|
257
|
-
// .bell {
|
|
258
|
-
// box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
|
|
259
|
-
// svg {
|
|
260
|
-
// fill: var(--color__accent) !important;
|
|
261
|
-
// }
|
|
262
|
-
// span {
|
|
263
|
-
// background: var(--color__accent) !important;
|
|
264
|
-
// top: inherit !important;
|
|
265
|
-
// right: inherit !important;
|
|
266
|
-
// width: 1.2rem !important;
|
|
267
|
-
// height: 1.2rem !important;
|
|
268
|
-
// font-size: 0.75rem !important;
|
|
269
|
-
// }
|
|
270
|
-
// }
|
|
271
257
|
}
|
|
272
258
|
|
|
273
|
-
// .notification-group--inline {
|
|
274
|
-
// margin-bottom: space(3);
|
|
275
|
-
// }
|
|
276
259
|
.asd20-feeds-section--top {
|
|
277
260
|
// margin-top: space(1);
|
|
278
261
|
.asd20-swiper-feed:first-child {
|
|
@@ -290,9 +273,6 @@ export default {
|
|
|
290
273
|
}
|
|
291
274
|
}
|
|
292
275
|
}
|
|
293
|
-
// .asd20-page-content h2 {
|
|
294
|
-
// font-size: 20.8px !important;
|
|
295
|
-
// }
|
|
296
276
|
}
|
|
297
277
|
|
|
298
278
|
@media (min-width: 1024px) {
|
|
@@ -303,13 +283,6 @@ export default {
|
|
|
303
283
|
.asd20-notification-group--floating {
|
|
304
284
|
position: absolute;
|
|
305
285
|
top: space(1);
|
|
306
|
-
// .bell {
|
|
307
|
-
// span {
|
|
308
|
-
// background: var(--color__accent);
|
|
309
|
-
// top: -0.6em !important;
|
|
310
|
-
// right: -0.6em !important;
|
|
311
|
-
// }
|
|
312
|
-
// }
|
|
313
286
|
}
|
|
314
287
|
.notification-group--inline {
|
|
315
288
|
flex-basis: 100%;
|
|
@@ -320,10 +293,6 @@ export default {
|
|
|
320
293
|
}
|
|
321
294
|
}
|
|
322
295
|
|
|
323
|
-
// .asd20-feeds-section--top {
|
|
324
|
-
// margin-top: space(0);
|
|
325
|
-
// }
|
|
326
|
-
|
|
327
296
|
.asd20-page-content {
|
|
328
297
|
// margin-top: space(1);
|
|
329
298
|
display: flex;
|
|
@@ -343,6 +312,7 @@ export default {
|
|
|
343
312
|
max-width: 50vw;
|
|
344
313
|
flex: 1 1 0;
|
|
345
314
|
min-width: 0;
|
|
315
|
+
flex-direction: column;
|
|
346
316
|
}
|
|
347
317
|
}
|
|
348
318
|
}
|
|
@@ -246,24 +246,7 @@ export default {
|
|
|
246
246
|
.asd20-notification-group--floating {
|
|
247
247
|
position: absolute;
|
|
248
248
|
top: space(2);
|
|
249
|
-
// .bell {
|
|
250
|
-
// box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
|
|
251
|
-
// svg {
|
|
252
|
-
// fill: var(--color__accent) !important;
|
|
253
|
-
// }
|
|
254
|
-
// span {
|
|
255
|
-
// background: var(--color__accent) !important;
|
|
256
|
-
// top: inherit !important;
|
|
257
|
-
// right: inherit !important;
|
|
258
|
-
// width: 1.2rem !important;
|
|
259
|
-
// height: 1.2rem !important;
|
|
260
|
-
// font-size: 0.75rem !important;
|
|
261
|
-
// }
|
|
262
|
-
// }
|
|
263
249
|
}
|
|
264
|
-
// .asd20-page-content h2 {
|
|
265
|
-
// font-size: 20.8px !important;
|
|
266
|
-
// }
|
|
267
250
|
}
|
|
268
251
|
|
|
269
252
|
@media (min-width: 768px) {
|
|
@@ -271,20 +254,6 @@ export default {
|
|
|
271
254
|
.asd20-notification-group--floating {
|
|
272
255
|
position: absolute;
|
|
273
256
|
top: space(0.5);
|
|
274
|
-
// .bell {
|
|
275
|
-
// box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
|
|
276
|
-
// svg {
|
|
277
|
-
// fill: var(--color__accent) !important;
|
|
278
|
-
// }
|
|
279
|
-
// span {
|
|
280
|
-
// background: var(--color__accent) !important;
|
|
281
|
-
// top: inherit !important;
|
|
282
|
-
// right: inherit !important;
|
|
283
|
-
// width: 1.2rem !important;
|
|
284
|
-
// height: 1.2rem !important;
|
|
285
|
-
// font-size: 0.75rem !important;
|
|
286
|
-
// }
|
|
287
|
-
// }
|
|
288
257
|
}
|
|
289
258
|
}
|
|
290
259
|
}
|
|
@@ -320,7 +289,7 @@ export default {
|
|
|
320
289
|
padding: space(2) !important;
|
|
321
290
|
flex: 1 1 0;
|
|
322
291
|
min-width: 0;
|
|
323
|
-
|
|
292
|
+
flex-direction: column;
|
|
324
293
|
}
|
|
325
294
|
}
|
|
326
295
|
}
|
|
@@ -239,24 +239,7 @@ export default {
|
|
|
239
239
|
.asd20-notification-group--floating {
|
|
240
240
|
position: absolute;
|
|
241
241
|
top: space(2);
|
|
242
|
-
// .bell {
|
|
243
|
-
// box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
|
|
244
|
-
// svg {
|
|
245
|
-
// fill: var(--color__accent) !important;
|
|
246
|
-
// }
|
|
247
|
-
// span {
|
|
248
|
-
// background: var(--color__accent) !important;
|
|
249
|
-
// top: inherit !important;
|
|
250
|
-
// right: inherit !important;
|
|
251
|
-
// width: 1.2rem !important;
|
|
252
|
-
// height: 1.2rem !important;
|
|
253
|
-
// font-size: 0.75rem !important;
|
|
254
|
-
// }
|
|
255
|
-
// }
|
|
256
242
|
}
|
|
257
|
-
// .asd20-page-content h2 {
|
|
258
|
-
// font-size: 20.8px !important;
|
|
259
|
-
// }
|
|
260
243
|
}
|
|
261
244
|
|
|
262
245
|
@media (min-width: 768px) {
|
|
@@ -264,20 +247,6 @@ export default {
|
|
|
264
247
|
.asd20-notification-group--floating {
|
|
265
248
|
position: absolute;
|
|
266
249
|
top: space(0.5);
|
|
267
|
-
// .bell {
|
|
268
|
-
// box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
|
|
269
|
-
// svg {
|
|
270
|
-
// fill: var(--color__accent) !important;
|
|
271
|
-
// }
|
|
272
|
-
// span {
|
|
273
|
-
// background: var(--color__accent) !important;
|
|
274
|
-
// top: inherit !important;
|
|
275
|
-
// right: inherit !important;
|
|
276
|
-
// width: 1.2rem !important;
|
|
277
|
-
// height: 1.2rem !important;
|
|
278
|
-
// font-size: 0.75rem !important;
|
|
279
|
-
// }
|
|
280
|
-
// }
|
|
281
250
|
}
|
|
282
251
|
}
|
|
283
252
|
}
|
|
@@ -316,6 +285,7 @@ export default {
|
|
|
316
285
|
max-width: 50vw;
|
|
317
286
|
flex: 1 1 0;
|
|
318
287
|
min-width: 0;
|
|
288
|
+
flex-direction: column;
|
|
319
289
|
}
|
|
320
290
|
}
|
|
321
291
|
|
|
@@ -242,24 +242,7 @@ export default {
|
|
|
242
242
|
.asd20-notification-group--floating {
|
|
243
243
|
position: absolute;
|
|
244
244
|
top: space(2.0375);
|
|
245
|
-
// .bell {
|
|
246
|
-
// box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
|
|
247
|
-
// svg {
|
|
248
|
-
// fill: var(--color__accent) !important;
|
|
249
|
-
// }
|
|
250
|
-
// span {
|
|
251
|
-
// background: var(--color__accent) !important;
|
|
252
|
-
// top: inherit !important;
|
|
253
|
-
// right: inherit !important;
|
|
254
|
-
// width: 1.2rem !important;
|
|
255
|
-
// height: 1.2rem !important;
|
|
256
|
-
// font-size: 0.75rem !important;
|
|
257
|
-
// }
|
|
258
|
-
// }
|
|
259
245
|
}
|
|
260
|
-
// .asd20-page-content h2 {
|
|
261
|
-
// font-size: 20.8px !important;
|
|
262
|
-
// }
|
|
263
246
|
}
|
|
264
247
|
|
|
265
248
|
@media (min-width: 1024px) {
|
|
@@ -270,13 +253,6 @@ export default {
|
|
|
270
253
|
.asd20-notification-group--floating {
|
|
271
254
|
position: absolute;
|
|
272
255
|
top: space(1);
|
|
273
|
-
// .bell {
|
|
274
|
-
// span {
|
|
275
|
-
// background: var(--color__accent);
|
|
276
|
-
// top: -0.6em !important;
|
|
277
|
-
// right: -0.6em !important;
|
|
278
|
-
// }
|
|
279
|
-
// }
|
|
280
256
|
}
|
|
281
257
|
.notification-group--inline {
|
|
282
258
|
margin: space(2) space(3) space(1) space(3);
|
|
@@ -304,7 +280,7 @@ export default {
|
|
|
304
280
|
flex: 1;
|
|
305
281
|
flex: 1 1 0;
|
|
306
282
|
min-width: 0;
|
|
307
|
-
|
|
283
|
+
flex-direction: column;
|
|
308
284
|
}
|
|
309
285
|
}
|
|
310
286
|
}
|
|
@@ -134,25 +134,66 @@ export default {
|
|
|
134
134
|
}
|
|
135
135
|
},
|
|
136
136
|
|
|
137
|
-
primaryDetailMessages() {
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
// primaryDetailMessages() {
|
|
138
|
+
// // If there are more than 2 or more messages on a detail page
|
|
139
|
+
// // -- Detail Pages
|
|
140
|
+
|
|
141
|
+
// let originalMessages = JSON.parse(JSON.stringify(this.messages))
|
|
142
|
+
|
|
143
|
+
// let firstMessage = originalMessages[0]
|
|
144
|
+
// delete firstMessage.title
|
|
145
|
+
// delete firstMessage.heading
|
|
146
|
+
// delete firstMessage.summary
|
|
147
|
+
// delete firstMessage.shortDescription
|
|
148
|
+
|
|
149
|
+
// let messagesArray = originalMessages.slice(1)
|
|
150
|
+
// messagesArray.unshift(firstMessage)
|
|
151
|
+
// messagesArray.slice(
|
|
152
|
+
// 1,
|
|
153
|
+
// Math.min(originalMessages.length, this.primaryMessageLimit + 1)
|
|
154
|
+
// )
|
|
155
|
+
// return messagesArray
|
|
156
|
+
// },
|
|
140
157
|
|
|
141
|
-
|
|
158
|
+
primaryDetailMessages() {
|
|
159
|
+
const originalMessages = JSON.parse(JSON.stringify(this.messages))
|
|
160
|
+
|
|
161
|
+
return originalMessages.map((message, index) => {
|
|
162
|
+
// Clone the message
|
|
163
|
+
const newMessage = { ...message }
|
|
164
|
+
|
|
165
|
+
if (index === 0) {
|
|
166
|
+
// Strip fields already used in pageHeader
|
|
167
|
+
delete newMessage.title
|
|
168
|
+
delete newMessage.heading
|
|
169
|
+
delete newMessage.summary
|
|
170
|
+
delete newMessage.shortDescription
|
|
171
|
+
return newMessage
|
|
172
|
+
}
|
|
142
173
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
174
|
+
// Construct title + summary markup if available
|
|
175
|
+
const titleMarkup = newMessage.title
|
|
176
|
+
? `<h2>${newMessage.title}</h2>`
|
|
177
|
+
: ''
|
|
178
|
+
|
|
179
|
+
const summaryMarkup = newMessage.shortDescription
|
|
180
|
+
? `<p>${newMessage.shortDescription}</p>`
|
|
181
|
+
: ''
|
|
182
|
+
|
|
183
|
+
// Merge into bodyContent (inserted before existing body)
|
|
184
|
+
const originalBody = newMessage.bodyContent || ''
|
|
185
|
+
newMessage.bodyContent = `${titleMarkup}${summaryMarkup}${originalBody}`
|
|
186
|
+
|
|
187
|
+
// Remove title/summary fields to prevent accidental rendering
|
|
188
|
+
delete newMessage.title
|
|
189
|
+
delete newMessage.heading
|
|
190
|
+
delete newMessage.summary
|
|
191
|
+
delete newMessage.shortDescription
|
|
192
|
+
delete newMessage.detailLink
|
|
193
|
+
delete newMessage.detailLinkLabel
|
|
194
|
+
|
|
195
|
+
return newMessage
|
|
196
|
+
})
|
|
156
197
|
},
|
|
157
198
|
|
|
158
199
|
secondaryMessages() {
|
|
@@ -215,7 +256,9 @@ export default {
|
|
|
215
256
|
coverImageFull.filename.includes('headerimage')
|
|
216
257
|
) {
|
|
217
258
|
imageUrl = null
|
|
218
|
-
headerImageUrl = coverImageFull
|
|
259
|
+
headerImageUrl = coverImageFull
|
|
260
|
+
? coverImageFull.url
|
|
261
|
+
: coverImage.url || ''
|
|
219
262
|
} else {
|
|
220
263
|
imageUrl = coverImageFull ? coverImageFull.url : coverImage.url || ''
|
|
221
264
|
imageCaption = coverImage.metadata
|