QCalendar - Quasar App Extension, Vue CLI plug-in and UMD distributions available
package.json
from distributablesThe Timestamp object has been changed to include currentWeekday
. This affects any calendars, like QCalendarMonth
that has a header. The currentWeekday
will be set to true, if the current day's (as defined by now
, and defaults to today's date unless explicitly set) day of the week matches the headers day of the week,
/**
* @typedef {Object} Timestamp The Timestamp object
* @property {string=} Timestamp.date Date string in format 'YYYY-MM-DD'
* @property {string=} Timestamp.time Time string in format 'HH:MM'
* @property {number} Timestamp.year The numeric year
* @property {number} Timestamp.month The numeric month (Jan = 1, ...)
* @property {number} Timestamp.day The numeric day
* @property {number} Timestamp.weekday The numeric weekday (Sun = 0, ..., Sat = 6)
* @property {number=} Timestamp.hour The numeric hour
* @property {number} Timestamp.minute The numeric minute
* @property {number=} Timestamp.doy The numeric day of the year (doy)
* @property {number=} Timestamp.workweek The numeric workweek
* @property {boolean} Timestamp.hasDay True if Timestamp.date is filled in and usable
* @property {boolean} Timestamp.hasTime True if Timestamp.time is filled in and usable
* @property {boolean=} Timestamp.past True if the Timestamp is in the past
* @property {boolean=} Timestamp.current True if Timestamp is current day (now)
* @property {boolean=} Timestamp.future True if Timestamp is in the future
* @property {boolean=} Timestamp.disabled True if this is a disabled date
* @property {boolean=} Timestamp.currentWeekday True if this date corresponds to current weekday
*/
export const Timestamp = {
date: '', // YYYY-MM-DD
time: '', // HH:MM (optional)
year: 0, // YYYY
month: 0, // MM (Jan = 1, etc)
day: 0, // day of the month
weekday: 0, // week day (0=Sunday...6=Saturday)
hour: 0, // 24-hr format
minute: 0, // mm
doy: 0, // day of year
workweek: 0, // workweek number
hasDay: false, // if this timestamp is supposed to have a date
hasTime: false, // if this timestamp is supposed to have a time
past: false, // if timestamp is in the past (based on `now` property)
current: false, // if timestamp is current date (based on `now` property)
future: false, // if timestamp is in the future (based on `now` property)
disabled: false, // if timestamp is disabled
currentWeekday: false // if this date corresponds to current weekday
}
No new breaking changes are anticipated. Next steps:
Please see here: https://qcalendar.netlify.app/contributing/call-to-action
QCalendar is an open-source MIT licensed project that has been made possible due to the generous contributions by sponsors and backers. If you are interested in supporting this project, please consider:
head-task
renamed to head-tasks
to be consistent with other calendars