@asd20/ui 3.2.989 → 3.2.990
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-lock.json +2 -3
- package/package.json +2 -2
- package/src/components/atoms/Asd20FormattedDate/index.vue +3 -2
- package/src/components/molecules/Asd20EventListItem.vue +1 -1
- package/src/helpers/expandEvents.js +1 -3
- package/src/helpers/formatEventTime.js +1 -1
- package/src/helpers/mapEventToCard.js +1 -2
- package/src/helpers/mapEventsToDays.js +1 -4
- package/src/helpers/mapMessageToCard.js +1 -2
package/package-lock.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asd20/ui",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.989",
|
|
4
4
|
"lockfileVersion": 1,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -33509,8 +33509,7 @@
|
|
|
33509
33509
|
"vue": {
|
|
33510
33510
|
"version": "2.6.14",
|
|
33511
33511
|
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.14.tgz",
|
|
33512
|
-
"integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ=="
|
|
33513
|
-
"dev": true
|
|
33512
|
+
"integrity": "sha512-x2284lgYvjOMj3Za7kqzRcUSxBboHqtgRE2zlos1qWaOye5yUmHn42LB1250NJBLRwEcdrB0JRwyPTEPhfQjiQ=="
|
|
33514
33513
|
},
|
|
33515
33514
|
"vue-class-component": {
|
|
33516
33515
|
"version": "7.2.6",
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"*.scss",
|
|
6
6
|
"*.vue"
|
|
7
7
|
],
|
|
8
|
-
"version": "3.2.
|
|
8
|
+
"version": "3.2.990",
|
|
9
9
|
"private": false,
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"repository": {
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"swiper": "^5.4.5",
|
|
39
39
|
"uuid": "^3.3.2",
|
|
40
40
|
"v-scroll-lock": "^1.3.1",
|
|
41
|
+
"vue": "^2.6.14",
|
|
41
42
|
"vue-intersect": "^1.1.6",
|
|
42
43
|
"vue-lazyload": "^1.2.6",
|
|
43
44
|
"vue-mq": "^1.0.1",
|
|
@@ -90,7 +91,6 @@
|
|
|
90
91
|
"stylelint-config-prettier": "^5.0.0",
|
|
91
92
|
"stylelint-config-standard": "^18.2.0",
|
|
92
93
|
"stylelint-scss": "^3.5.4",
|
|
93
|
-
"vue": "2.6.14",
|
|
94
94
|
"vue-class-component": "^7.0.2",
|
|
95
95
|
"vue-docgen-api": "^3.26.0",
|
|
96
96
|
"vue-loader": "^15.8.3",
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
|
-
import format from 'date-fns
|
|
6
|
+
import { format } from 'date-fns'
|
|
7
|
+
|
|
7
8
|
export default {
|
|
8
9
|
name: 'Asd20FormattedDate',
|
|
9
10
|
props: {
|
|
@@ -14,7 +15,7 @@ export default {
|
|
|
14
15
|
formattedDate() {
|
|
15
16
|
// let apStyle = ['Jan.', 'Feb.', 'Aug.', 'Sept.', 'Oct.', 'Nov.', 'Dec.']
|
|
16
17
|
// let shortMonths = /January|February|August|September|October|November|December /
|
|
17
|
-
let formatted = format(new Date(this.dateTime), ' MMMM d,
|
|
18
|
+
let formatted = format(new Date(this.dateTime), ' MMMM d, YYYY')
|
|
18
19
|
// for (let month of apStyle) {
|
|
19
20
|
// if (formatted.includes(month)) {
|
|
20
21
|
// formatted = month
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import format from 'date-fns
|
|
2
|
-
import addDays from 'date-fns/addDays'
|
|
3
|
-
import isSameDay from 'date-fns/isSameDay'
|
|
1
|
+
import { format, addDays, isSameDay } from 'date-fns'
|
|
4
2
|
|
|
5
3
|
export default function expandEvents(events, includePastEvents = false) {
|
|
6
4
|
return events
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import format from 'date-fns
|
|
2
|
-
import addDays from 'date-fns/addDays'
|
|
3
|
-
import isSameDay from 'date-fns/isSameDay'
|
|
4
|
-
import getDaysInMonth from 'date-fns/getDaysInMonth'
|
|
1
|
+
import { format, addDays, isSameDay, getDaysInMonth } from 'date-fns'
|
|
5
2
|
|
|
6
3
|
/**
|
|
7
4
|
* Given an array of events, returns an array of days with events grouped by date.
|