@asd20/ui-next 2.3.4 → 2.3.5
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.3.5](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.3.4...ui-next-v2.3.5) (2026-04-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* restore published and modified dates in the page header for announcements and stories ([9b9e9be](https://github.com/academydistrict20/asd20-ui-next/commit/9b9e9be565ddf787a4eb8455bb0c285747903539))
|
|
9
|
+
|
|
3
10
|
## [2.3.4](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.3.3...ui-next-v2.3.4) (2026-04-21)
|
|
4
11
|
|
|
5
12
|
## [2.3.3](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.3.2...ui-next-v2.3.3) (2026-04-17)
|
package/package.json
CHANGED
|
@@ -70,19 +70,27 @@
|
|
|
70
70
|
v-html="heading"
|
|
71
71
|
/>
|
|
72
72
|
<div
|
|
73
|
-
v-if="
|
|
73
|
+
v-if="hasMeta"
|
|
74
74
|
class="asd20-page-header__meta"
|
|
75
75
|
>
|
|
76
|
-
<span
|
|
76
|
+
<span
|
|
77
|
+
v-if="publishDateTime"
|
|
78
|
+
class="date-prefix"
|
|
79
|
+
>
|
|
80
|
+
Published:
|
|
81
|
+
</span>
|
|
77
82
|
<asd20-formatted-date
|
|
78
83
|
v-if="publishDateTime"
|
|
79
84
|
:date-time="publishDateTime"
|
|
80
85
|
/>
|
|
81
86
|
<div
|
|
82
|
-
v-if="
|
|
87
|
+
v-if="showModifiedDateTime"
|
|
83
88
|
class="modified-meta"
|
|
89
|
+
:class="{ 'modified-meta--after-published': publishDateTime }"
|
|
84
90
|
>
|
|
85
|
-
<span class="date-prefix">
|
|
91
|
+
<span class="date-prefix">
|
|
92
|
+
{{ publishDateTime ? '| ' : '' }}Updated:
|
|
93
|
+
</span>
|
|
86
94
|
<asd20-formatted-date :date-time="modifiedDateTime" />
|
|
87
95
|
</div>
|
|
88
96
|
<asd20-tag-group
|
|
@@ -243,16 +251,32 @@ export default {
|
|
|
243
251
|
this.detailLink.replace(/\/$/, '').split('/').pop()
|
|
244
252
|
)
|
|
245
253
|
},
|
|
254
|
+
hasMeta() {
|
|
255
|
+
return (
|
|
256
|
+
this.publishDateTime ||
|
|
257
|
+
this.showModifiedDateTime ||
|
|
258
|
+
this.categories.length ||
|
|
259
|
+
this.$slots.meta
|
|
260
|
+
)
|
|
261
|
+
},
|
|
246
262
|
showModifiedDateTime() {
|
|
263
|
+
if (!this.modifiedDateTime) return false
|
|
264
|
+
if (!this.publishDateTime) return true
|
|
265
|
+
|
|
247
266
|
const publishDateTimeString = new Date(this.publishDateTime)
|
|
248
267
|
const modifiedDateTimeString = new Date(this.modifiedDateTime)
|
|
249
|
-
// console.log(publishDateTimeString, modifiedDateTimeString)
|
|
250
268
|
|
|
251
|
-
|
|
269
|
+
if (
|
|
270
|
+
Number.isNaN(publishDateTimeString.getTime()) ||
|
|
271
|
+
Number.isNaN(modifiedDateTimeString.getTime())
|
|
272
|
+
) {
|
|
273
|
+
return false
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
const publishDateTimePlusOne = new Date(
|
|
252
277
|
publishDateTimeString.setDate(publishDateTimeString.getDate() + 1)
|
|
253
278
|
)
|
|
254
|
-
|
|
255
|
-
return modifiedDateTimeString > publishDateTimePlusOne ? true : false
|
|
279
|
+
return modifiedDateTimeString > publishDateTimePlusOne
|
|
256
280
|
},
|
|
257
281
|
styles() {
|
|
258
282
|
return {
|
|
@@ -486,6 +510,9 @@ export default {
|
|
|
486
510
|
.modified-meta {
|
|
487
511
|
display: inline-block;
|
|
488
512
|
}
|
|
513
|
+
.modified-meta--after-published {
|
|
514
|
+
margin-left: 0.25em;
|
|
515
|
+
}
|
|
489
516
|
.asd20-formatted-date {
|
|
490
517
|
@include asd20-font(
|
|
491
518
|
0.6,
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
:organization-options="organizationOptions"
|
|
34
34
|
:language-code="languageCode"
|
|
35
35
|
:breadcrumb-links="breadcrumbLinks"
|
|
36
|
-
:publish-date-time="
|
|
37
|
-
:modified-date-time="
|
|
38
|
-
:categories="
|
|
36
|
+
:publish-date-time="publishDateTime"
|
|
37
|
+
:modified-date-time="modifiedDateTime"
|
|
38
|
+
:categories="messageCategories"
|
|
39
39
|
@update:languageCode="$emit('update:languageCode', $event)"
|
|
40
40
|
>
|
|
41
41
|
<!-- Floating Notifications -->
|