@asd20/ui 3.2.414 → 3.2.417

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.
Files changed (23) hide show
  1. package/package.json +1 -1
  2. package/src/components/atoms/Asd20Messaging/index.vue +87 -69
  3. package/src/components/organisms/Asd20EventModal/index.vue +12 -16
  4. package/src/components/organisms/Asd20ImageGallery/index.vue +1 -1
  5. package/src/components/organisms/Asd20ImageHeader/index.stories.js +38 -0
  6. package/src/components/organisms/Asd20ImageHeader/index.vue +559 -0
  7. package/src/components/organisms/Asd20PageContent/index.vue +24 -1
  8. package/src/components/organisms/Asd20VideoHeaderContent/index.vue +1 -1
  9. package/src/components/templates/Asd20ArticleDigestTemplate/index.stories.js +4 -1
  10. package/src/components/templates/Asd20ArticleListTemplate/index.stories.js +7 -1
  11. package/src/components/templates/Asd20ArticleTemplate/index.stories.js +2 -1
  12. package/src/components/templates/Asd20CampusTemplate/index.stories.js +1 -1
  13. package/src/components/templates/Asd20DetailImageTemplate/index.stories.js +60 -0
  14. package/src/components/templates/Asd20DetailImageTemplate/index.vue +267 -0
  15. package/src/components/templates/Asd20LoginsTemplate/index.stories.js +3 -0
  16. package/src/components/templates/Asd20ProfileTemplate/index.stories.js +2 -1
  17. package/src/components/templates/Asd20WayfindingImageTemplate/index.stories.js +65 -0
  18. package/src/components/templates/Asd20WayfindingImageTemplate/index.vue +234 -0
  19. package/src/components/templates/Asd20WayfindingTemplate/index.stories.js +1 -1
  20. package/src/data/page-queries/landing-page-query-result.json +70 -4
  21. package/src/data/page-queries/sublanding-page-query-result.json +3 -3
  22. package/src/helpers/mapEventToCard.js +6 -3
  23. package/src/mixins/mockPageMixin.js +6 -6
@@ -132,6 +132,58 @@
132
132
  }
133
133
  }
134
134
  ],
135
+ "images": [
136
+ {
137
+ "isCover": false,
138
+ "files": [
139
+ {
140
+ "name": "full",
141
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images//full/dcc_boys_swimming_1200x800.jpg"
142
+ },
143
+ {
144
+ "name": "thumbnail-md",
145
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-md/dcc_boys_swimming_250x250.jpg"
146
+ }
147
+ ],
148
+ "metadata": {
149
+ "alt": "This is ALT text.",
150
+ "credits": "John Smith competes in the 100m backstroke. He's really a great swimmer. No, really. And this picture demonstrates just what a great swimmer he is."
151
+ }
152
+ },
153
+ {
154
+ "isCover": false,
155
+ "files": [
156
+ {
157
+ "name": "full",
158
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images//full/dcc_girls_swimming_1200x800.jpg"
159
+ },
160
+ {
161
+ "name": "thumbnail-md",
162
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-md/dcc_girls_swimming_250x250.jpg"
163
+ }
164
+ ],
165
+ "metadata": {
166
+ "alt": "This is ALT text.",
167
+ "credits": "Jane Doe competes in the 100m freestyle."
168
+ }
169
+ },
170
+ {
171
+ "isCover": true,
172
+ "files": [
173
+ {
174
+ "name": "thumbnail-md",
175
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images//thumbnail-md/dcc_swimming_250x250.jpg"
176
+ },
177
+ {
178
+ "name": "full",
179
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images/all-students-learn-at-high-levels./full/PIES-choice-photo_1280x852.jpg"
180
+ }
181
+ ],
182
+ "metadata": {
183
+ "alt": "This is ALT text."
184
+ }
185
+ }
186
+ ],
135
187
  "videos": []
136
188
  }
137
189
  },
@@ -148,7 +200,7 @@
148
200
  "images": [
149
201
  {
150
202
  "alt": "Kids leaving a school-bus",
151
- "url": "/images/header-images/kids-leaving-a-school-bus.jpg",
203
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images/bus-and-transportation-options/full/kids-leaving-a-school-bus_1200x800.jpg",
152
204
  "size": "full",
153
205
  "caption": ""
154
206
  }
@@ -180,7 +232,6 @@
180
232
  "publishDateTime": "2019-09-16T20:31:27.000Z",
181
233
  "expireDateTime": null,
182
234
  "translations": [],
183
- "images": [],
184
235
  "callsToAction": null,
185
236
  "links": [
186
237
  {
@@ -195,6 +246,14 @@
195
246
  }
196
247
  }
197
248
  ],
249
+ "images": [
250
+ {
251
+ "alt": "Kids sitting in a classroom",
252
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images/academics/full/ctms_hero_1280x834.jpg",
253
+ "size": "full",
254
+ "caption": ""
255
+ }
256
+ ],
198
257
  "videos": []
199
258
  }
200
259
  },
@@ -202,13 +261,12 @@
202
261
  "message": {
203
262
  "id": "3994bff8-4a13-46f3-b172-32d3e07485e7",
204
263
  "title": "Special Education",
205
- "summary": "Academy District 20 believes all students, regardless of disability, should be supported and encouraged to reach their potential. We offer a continuum of services and alternative placements that provide students with specialized instruction, while also minimizing the impacts of their disability. ",
264
+ "summary": "Academy District 20 believes all students, regardless of disability, should be supported and encouraged to reach their potential. We offer a continuum of services and alternative placements that provide students with specialized instruction, while also minimizing the impacts of their disability.",
206
265
  "bodyHtml": "<p>Each Academy District 20 school has at least one special education teacher and speech/language pathologist. Students may also receive supports from school social workers, school psychologists, school nurses and occupational and physical therapists.&nbsp;</p><p>Our special education staff members work with students and their families in a variety of ways such as: completing assessments, participating in the development of Individual Education Plans (IEPs) and providing specialized support services.&nbsp;</p><p>Special Education staff&nbsp;meet the state standards for licensed teachers and/or special service providers through the Colorado Department of Education.&nbsp;</p>",
207
266
  "status": "Published",
208
267
  "publishDateTime": "2019-07-12T22:01:03.000Z",
209
268
  "expireDateTime": null,
210
269
  "translations": [],
211
- "images": [],
212
270
  "callsToAction": null,
213
271
  "links": [
214
272
  {
@@ -223,6 +281,14 @@
223
281
  }
224
282
  }
225
283
  ],
284
+ "images": [
285
+ {
286
+ "alt": "Kids walking in a hallway",
287
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images/defining-excellence/full/rhs_graduation_1200x960.jpg",
288
+ "size": "full",
289
+ "caption": ""
290
+ }
291
+ ],
226
292
  "videos": []
227
293
  }
228
294
  },
@@ -63,7 +63,7 @@
63
63
  }
64
64
  },
65
65
  {
66
- "isCover": true,
66
+ "isCover": false,
67
67
  "files": [
68
68
  {
69
69
  "name": "full",
@@ -80,7 +80,7 @@
80
80
  }
81
81
  },
82
82
  {
83
- "isCover": false,
83
+ "isCover": true,
84
84
  "files": [
85
85
  {
86
86
  "name": "thumbnail-md",
@@ -88,7 +88,7 @@
88
88
  },
89
89
  {
90
90
  "name": "full",
91
- "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images//full/dcc_swimming_1200x800.jpg"
91
+ "url": "https://asd20websitestorage.blob.core.windows.net/website-files/message-images/all-students-learn-at-high-levels./full/PIES-choice-photo_1280x852.jpg"
92
92
  }
93
93
  ],
94
94
  "metadata": {
@@ -7,11 +7,14 @@ const formattedTime = event => {
7
7
  if (event.allDay) return 'All Day'
8
8
 
9
9
  if (event.multiDay) {
10
- return `${format(parse(event.originalStart), '<b>h:mm aa</b>')
10
+ return `${format(
11
+ parse(event.originalStart),
12
+ '<b>h:mm aa</b>, dddd, MMMM DD, YYYY'
13
+ )
11
14
  .replace(/#/g, '&nbsp;')
12
15
  .replace(/:00/g, '')}<br>ending ${format(
13
16
  parse(event.end),
14
- '<b>h:mm aa</b>'
17
+ '<b>h:mm aa</b>, dddd, MMMM DD, YYYY'
15
18
  )
16
19
  .replace(/#/g, '&nbsp;')
17
20
  .replace(/:00/g, '')}`
@@ -37,7 +40,7 @@ export default function mapEventToCard(event) {
37
40
  // subtitle: 'Some subtitle goes here',
38
41
  description: event.description,
39
42
  categories: event.calendarCategories.concat([event.calendarName]),
40
- date: format(event.start, 'MMM, D YYYY'),
43
+ date: format(event.start),
41
44
  time: formattedTime(event),
42
45
  weekday: event.weekday,
43
46
  day: event.day,
@@ -81,7 +81,7 @@ export default {
81
81
  1000
82
82
  )
83
83
  )
84
- // console.log({ keywords, selectedCategories })
84
+ console.log({ keywords, selectedCategories })
85
85
  },
86
86
  async loadFiles() {
87
87
  this.files = await new Promise(resolve =>
@@ -89,10 +89,10 @@ export default {
89
89
  )
90
90
  },
91
91
 
92
- // async loadPeople() {
93
- // this.people = await new Promise(resolve =>
94
- // setTimeout(() => resolve([]), 1000)
95
- // )
96
- // },
92
+ async loadPeople() {
93
+ this.people = await new Promise(resolve =>
94
+ setTimeout(() => resolve([]), 1000)
95
+ )
96
+ },
97
97
  },
98
98
  }