import CalendarAbstract from './Abstract.js'; export default { mixins: [ CalendarAbstract ], inject: [ 'size', 'focusDate' ], data() { return { weeks: [...Array(this.focusDate.numWeeks).keys()].map(i => i+1) } }, computed: { title() { return this.focusDate.format({year: 'numeric'}); } }, methods: { setWeek(week) { // TODO(chris): test is there a week jump on year select? => yes there is if the same month/day are in different weeks ... should we prevent that? this.focusDate.w = week; this.$emit('updateMode', 'week'); } }, template: `
` }