@asd20/ui-next 2.3.4 → 2.3.6
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,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.3.6](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.3.5...ui-next-v2.3.6) (2026-04-29)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* remove page header category tags ([3bab2af](https://github.com/academydistrict20/asd20-ui-next/commit/3bab2af6825c3ff025ffcaba8c23846337601779))
|
|
9
|
+
|
|
10
|
+
## [2.3.5](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.3.4...ui-next-v2.3.5) (2026-04-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* restore published and modified dates in the page header for announcements and stories ([9b9e9be](https://github.com/academydistrict20/asd20-ui-next/commit/9b9e9be565ddf787a4eb8455bb0c285747903539))
|
|
16
|
+
|
|
3
17
|
## [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
18
|
|
|
5
19
|
## [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,26 +70,29 @@
|
|
|
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
|
-
<asd20-tag-group
|
|
89
|
-
v-if="categories.length"
|
|
90
|
-
:tags="categories"
|
|
91
|
-
class="date-prefix"
|
|
92
|
-
/>
|
|
93
96
|
<slot name="meta" />
|
|
94
97
|
</div>
|
|
95
98
|
<div
|
|
@@ -186,7 +189,6 @@ import Asd20Breadcrumb from '../../../components/atoms/Asd20Breadcrumb'
|
|
|
186
189
|
import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
|
|
187
190
|
import Asd20Share from '../../molecules/Asd20Share'
|
|
188
191
|
import Asd20FormattedDate from '../../atoms/Asd20FormattedDate'
|
|
189
|
-
import Asd20TagGroup from '../../organisms/Asd20TagGroup'
|
|
190
192
|
|
|
191
193
|
import truncate from 'lodash/truncate'
|
|
192
194
|
|
|
@@ -197,7 +199,6 @@ export default {
|
|
|
197
199
|
// Asd20DistrictLogo,
|
|
198
200
|
Asd20OrganizationPicker,
|
|
199
201
|
Asd20Breadcrumb,
|
|
200
|
-
Asd20TagGroup,
|
|
201
202
|
Asd20LanguageTranslation,
|
|
202
203
|
Asd20Share,
|
|
203
204
|
Asd20FormattedDate,
|
|
@@ -243,16 +244,31 @@ export default {
|
|
|
243
244
|
this.detailLink.replace(/\/$/, '').split('/').pop()
|
|
244
245
|
)
|
|
245
246
|
},
|
|
247
|
+
hasMeta() {
|
|
248
|
+
return (
|
|
249
|
+
this.publishDateTime ||
|
|
250
|
+
this.showModifiedDateTime ||
|
|
251
|
+
this.$slots.meta
|
|
252
|
+
)
|
|
253
|
+
},
|
|
246
254
|
showModifiedDateTime() {
|
|
255
|
+
if (!this.modifiedDateTime) return false
|
|
256
|
+
if (!this.publishDateTime) return true
|
|
257
|
+
|
|
247
258
|
const publishDateTimeString = new Date(this.publishDateTime)
|
|
248
259
|
const modifiedDateTimeString = new Date(this.modifiedDateTime)
|
|
249
|
-
// console.log(publishDateTimeString, modifiedDateTimeString)
|
|
250
260
|
|
|
251
|
-
|
|
261
|
+
if (
|
|
262
|
+
Number.isNaN(publishDateTimeString.getTime()) ||
|
|
263
|
+
Number.isNaN(modifiedDateTimeString.getTime())
|
|
264
|
+
) {
|
|
265
|
+
return false
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
const publishDateTimePlusOne = new Date(
|
|
252
269
|
publishDateTimeString.setDate(publishDateTimeString.getDate() + 1)
|
|
253
270
|
)
|
|
254
|
-
|
|
255
|
-
return modifiedDateTimeString > publishDateTimePlusOne ? true : false
|
|
271
|
+
return modifiedDateTimeString > publishDateTimePlusOne
|
|
256
272
|
},
|
|
257
273
|
styles() {
|
|
258
274
|
return {
|
|
@@ -473,24 +489,21 @@ export default {
|
|
|
473
489
|
}
|
|
474
490
|
|
|
475
491
|
&__meta {
|
|
492
|
+
font-family: var(--website-typography__font-family-headlines);
|
|
493
|
+
font-size: 0.75rem;
|
|
494
|
+
font-weight: 400;
|
|
476
495
|
margin-bottom: space(0.5);
|
|
477
|
-
.asd20-tag-group {
|
|
478
|
-
margin-left: -0.5em;
|
|
479
|
-
}
|
|
480
496
|
.date-prefix {
|
|
481
|
-
|
|
482
|
-
0.6,
|
|
483
|
-
var(--website-typography__font-family-headlines)
|
|
484
|
-
);
|
|
497
|
+
font: inherit;
|
|
485
498
|
}
|
|
486
499
|
.modified-meta {
|
|
487
500
|
display: inline-block;
|
|
488
501
|
}
|
|
502
|
+
.modified-meta--after-published {
|
|
503
|
+
margin-left: 0.25em;
|
|
504
|
+
}
|
|
489
505
|
.asd20-formatted-date {
|
|
490
|
-
|
|
491
|
-
0.6,
|
|
492
|
-
var(--website-typography__font-family-headlines)
|
|
493
|
-
);
|
|
506
|
+
font: inherit;
|
|
494
507
|
}
|
|
495
508
|
}
|
|
496
509
|
|
|
@@ -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 -->
|