@sedoo/unidoo 0.0.64 → 0.0.65
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/dist/unidoo.common.js +73 -64
- package/dist/unidoo.common.js.map +1 -1
- package/dist/unidoo.umd.js +73 -64
- package/dist/unidoo.umd.js.map +1 -1
- package/dist/unidoo.umd.min.js +2 -2
- package/dist/unidoo.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/unidoo-heatmap/UnidooHeatmap.vue +11 -4
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable keyword-spacing */
|
|
1
2
|
<template>
|
|
2
3
|
<v-container>
|
|
3
4
|
<section heatmap-calendar>
|
|
@@ -215,10 +216,16 @@ export default {
|
|
|
215
216
|
return true;
|
|
216
217
|
},
|
|
217
218
|
hasNextDate (d) {
|
|
218
|
-
if (!d || !this.
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
if (
|
|
219
|
+
if (!d || !this.isDateInYear(d)) return false;
|
|
220
|
+
const syear = (this.year instanceof Date) ? this.year.getFullYear() : this.year;
|
|
221
|
+
let lastDay = null;
|
|
222
|
+
if (new Date(syear, 0, 1).getFullYear() === new Date().getFullYear()) {
|
|
223
|
+
lastDay = new Date();
|
|
224
|
+
} else {
|
|
225
|
+
lastDay = new Date(syear, 11, 31);
|
|
226
|
+
}
|
|
227
|
+
lastDay.setHours(0, 0, 0, 0);
|
|
228
|
+
if (d >= lastDay) return false;
|
|
222
229
|
return true;
|
|
223
230
|
},
|
|
224
231
|
focusDate (d) {
|