@explorer-1/vue 0.2.20 → 0.2.21
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
CHANGED
|
@@ -52,11 +52,7 @@
|
|
|
52
52
|
import type { PropType } from 'vue'
|
|
53
53
|
import { defineComponent } from 'vue'
|
|
54
54
|
import dayjs, { type Dayjs } from 'dayjs'
|
|
55
|
-
import
|
|
56
|
-
import minMax from 'dayjs/plugin/minMax.js'
|
|
57
|
-
|
|
58
|
-
dayjs.extend(duration)
|
|
59
|
-
dayjs.extend(minMax)
|
|
55
|
+
import { type Duration } from 'dayjs/plugin/duration.js'
|
|
60
56
|
|
|
61
57
|
const calculateDuration = (start: Dayjs): Duration | undefined => {
|
|
62
58
|
// Use round seconds so the datetime string stays valid and can be read by screen readers.
|
package/src/utils/dayjs.js
CHANGED
|
@@ -3,7 +3,8 @@ import updateLocale from 'dayjs/plugin/updateLocale.js'
|
|
|
3
3
|
import localizedFormat from 'dayjs/plugin/localizedFormat.js'
|
|
4
4
|
import timezone from 'dayjs/plugin/timezone.js'
|
|
5
5
|
import advancedFormat from 'dayjs/plugin/advancedFormat.js'
|
|
6
|
-
|
|
6
|
+
import duration from 'dayjs/plugin/duration.js'
|
|
7
|
+
import minMax from 'dayjs/plugin/minMax.js'
|
|
7
8
|
// Locales must be imported manually
|
|
8
9
|
// see https://github.com/iamkun/dayjs/tree/dev/src/locale
|
|
9
10
|
import 'dayjs/locale/en-gb.js'
|
|
@@ -29,4 +30,7 @@ dayjs.updateLocale('en', {
|
|
|
29
30
|
]
|
|
30
31
|
})
|
|
31
32
|
|
|
33
|
+
dayjs.extend(duration)
|
|
34
|
+
dayjs.extend(minMax)
|
|
35
|
+
|
|
32
36
|
export default dayjs
|