@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sedoo/unidoo",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "build": "vue-cli-service build --target lib --name unidoo src/plugin.js",
@@ -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.compairDateWithYear(d)) return false
219
- const today = new Date();
220
- today.setHours(0, 0, 0, 0);
221
- if (d >= today) return false;
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) {