@sedoo/unidoo 0.0.65 → 0.0.66
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 +62 -62
- package/dist/unidoo.common.js.map +1 -1
- package/dist/unidoo.umd.js +62 -62
- 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 +2 -2
package/package.json
CHANGED
|
@@ -208,7 +208,7 @@ export default {
|
|
|
208
208
|
}, this.heatmapKey);
|
|
209
209
|
},
|
|
210
210
|
hasPreviousDate (d) {
|
|
211
|
-
if (!d || !this.
|
|
211
|
+
if (!d || !this.isDateInYear(d)) return false;
|
|
212
212
|
const syear = (this.year instanceof Date) ? this.year.getFullYear() : this.year;
|
|
213
213
|
const firstDay = new Date(syear, 0, 1);
|
|
214
214
|
d.setHours(0, 0, 0, 0);
|
|
@@ -295,7 +295,7 @@ export default {
|
|
|
295
295
|
first.getMonth() === second.getMonth() &&
|
|
296
296
|
first.getDate() === second.getDate()
|
|
297
297
|
},
|
|
298
|
-
|
|
298
|
+
isDateInYear (d) {
|
|
299
299
|
if (this.year && d) {
|
|
300
300
|
const sd = '' + ((d instanceof Date) ? d.getFullYear() : d);
|
|
301
301
|
const syear = '' + ((this.year instanceof Date) ? this.year.getFullYear() : this.year);
|