@asd20/ui 3.2.768 → 3.2.770
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 +8 -1
- package/src/components/atoms/Asd20SelectInput/index.vue +2 -2
- package/src/components/atoms/Asd20Tag/index.vue +1 -1
- package/src/components/molecules/Asd20Card/index.vue +6 -1
- package/src/components/organisms/Asd20NotificationGroup/index.vue +1 -1
- package/src/data/events/district-events.json +1 -1
- package/src/data/page-queries/video-page-query-result.json +2 -2
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
class="message-image"
|
|
5
5
|
v-if="images && images.length > 0 && messageImage && fullscreen"
|
|
6
6
|
>
|
|
7
|
-
<img :src="messageImage" alt />
|
|
7
|
+
<img :src="messageImage" :alt="messageImageAlt" />
|
|
8
8
|
</div>
|
|
9
9
|
<div class="asd20-messaging__content">
|
|
10
10
|
<component
|
|
@@ -104,6 +104,13 @@ export default {
|
|
|
104
104
|
}
|
|
105
105
|
return messageImageUrl
|
|
106
106
|
},
|
|
107
|
+
messageImageAlt() {
|
|
108
|
+
// Get full image
|
|
109
|
+
const messageImages = Array.isArray(this.images) ? this.images : []
|
|
110
|
+
|
|
111
|
+
const coverImage = messageImages.find(i => i.isCover)
|
|
112
|
+
return coverImage.metadata.alt
|
|
113
|
+
},
|
|
107
114
|
},
|
|
108
115
|
}
|
|
109
116
|
</script>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="classes">
|
|
3
|
-
<label
|
|
3
|
+
<!-- <label
|
|
4
4
|
class="asd20-select-input__label"
|
|
5
5
|
v-show="!hideLabel"
|
|
6
6
|
v-html="label"
|
|
7
|
-
/>
|
|
7
|
+
/> -->
|
|
8
8
|
<div class="asd20-select-input__field-wrapper">
|
|
9
9
|
<slot name="prefix" />
|
|
10
10
|
<Asd20Icon v-show="icon" :name="icon" />
|
|
@@ -134,7 +134,12 @@ export default {
|
|
|
134
134
|
},
|
|
135
135
|
computed: {
|
|
136
136
|
truncatedDescription() {
|
|
137
|
-
|
|
137
|
+
const strippedDescription = this.description
|
|
138
|
+
//remove anchor tags but leave anchor text description
|
|
139
|
+
.replace(/<a[^>]*>(.*?)<\/a>/g, '$1')
|
|
140
|
+
// remove other html tags
|
|
141
|
+
.replace(/<[^>]+>/g, '')
|
|
142
|
+
return truncate(strippedDescription, { length: 150, separator: /,? +/ })
|
|
138
143
|
},
|
|
139
144
|
classes() {
|
|
140
145
|
return {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"uid": "MDQwMDAwMDA4MjAwRTAwMDc0QzVCNzEwMUE4MkUwMDgwMDAwMDAwMDYwMzFGM0FERjUwQkQ5MDEwMDAwMDAwMDAwMDAwMDAwMTAwMDAwMDA1NjA4MzhGNkIzMkU3OTQ1ODk2OUU1RUJDRENBM0U4Rg==",
|
|
55
55
|
"type": "event",
|
|
56
56
|
"summary": "First day of second semester",
|
|
57
|
-
"description": "",
|
|
57
|
+
"description": "<a href='www.asd20.org'>Visit ASD20.org</a> for more information.",
|
|
58
58
|
"location": "AAHS",
|
|
59
59
|
"start": "2023-01-05T07:00:00Z",
|
|
60
60
|
"end": "2023-01-06T07:00:00Z",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
],
|
|
157
157
|
"isCover": true,
|
|
158
158
|
"metadata": {
|
|
159
|
-
"alt": "",
|
|
159
|
+
"alt": "Kids in class.",
|
|
160
160
|
"credits": "Photo Credit: Krystal Story"
|
|
161
161
|
}
|
|
162
162
|
}],
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
}],
|
|
288
288
|
"isCover": true,
|
|
289
289
|
"metadata": {
|
|
290
|
-
"alt": ""
|
|
290
|
+
"alt": "A young kindergartner smiles while wearing sunglasses."
|
|
291
291
|
}
|
|
292
292
|
}],
|
|
293
293
|
"videos": [{
|