Releases: nathanreyes/v-calendar
Releases · nathanreyes/v-calendar
v0.9.0
Bug Fixes
v-calendar
- Fixes Turkish locale identifier
- Fixes weekday formatting by using UNC dates with Intl.DateTimeFormat. Closes #104.
- Other small bug fixes
v-date-picker
- Fixes glitch with highlight cap animation when mode === "range"
- Fixes bug with themeStyles.dayContentstyle getting ignored. Closes #115.
Improvements
v-calendar
- Adds min-dateprop as a convenient alternative tomin-page
- Adds max-dateprop as a convenient alternative tomax-page
- Adds is-linkedprop to link panes to consecutive months whenis-double-panedis set. Closes #80.
- Adds is-verticalprop for vertical calendar orientation whenis-double-panedis set. Closes #89.
v-date-picker
- min-dateand- max-dateprops are now forwarded to- v-calendar. Closes #78.
Defaults
Theme styles modifications. Closes #93.
| Style | Modification | Description | 
|---|---|---|
| horizontalDivider | Add | Horizontal divider when calendars are in vertical orientation ( is-vertical) | 
| navHeader | Add | Navigation pane header. | 
| navHeaderTitle | Add | Navigation pane header title. | 
| navHeaderArrows | Add | Navigation pane header arrows. | 
| navMonthCell | Add | Navigation pane month cells. | 
| navYearCell | Add | Navigation pane year cells. | 
| header | Edited | Supports use of function that accepts a pageobject and return a style | 
| headerTitle | Edit | Supports use of function that accepts a pageobject and return a style | 
| headerArrows | Edit | Supports use of function that accepts a pageobject and return a style | 
| headerHorizontalDivider | Edit | Supports use of function that accepts a pageobject and return a style | 
| weekdays | Edit | Supports use of function that accepts a pageobject and return a style | 
| weekdaysHorizontalDivider | Edit | Supports use of function that accepts a pageobject and return a style | 
| weeks | Edit | Supports use of function that accepts a pageobject and return a style | 
| headerVerticalDivider | Remove | Reference note below | 
| weekdaysVerticalDivider | Remove | Reference note below | 
| weeksVerticalDivider | Remove | Reference note below | 
- Styles removed in favor of defining functions for the header,weekdaysandweeksstyles like so...
<template>
  <v-calendar :theme-styles='themeStyles'>
  </v-calendar>
</template>export default {
  data() {
    return {
      themeStyles: {
        // Use page position to set left border for the 2nd pane header
        // NOTE: You can use the `verticalDivider` style to apply a single border. Just use this technique to apply different border styles for specific sections (header, weekdays, weeks)
        header({ position }) {
          return (position === 2) && {
            borderLeft: '1px solid #dadada'
          };
        }
      }
    }
  }
}v0.8.0
Bug Fixes
v-date-picker
- Fixes select-attributeanddrag-attributeprops getting written over. Closes #75.
Improvements
v-calendar
- Attribute types (highlight, bar, dot, contentStyle, popover) can now be defined as functions that accept an object parameter with the following properties and return an object. Closes #81.
| Property Name | Type | Description | 
|---|---|---|
| day | Object | Object with specific information about the day displaying the attribute. | 
| targetDate | Object | Date info object. | 
| isHovered | Boolean | Day element is currently hovered over. | 
| isFocused | Boolean | Day element is currently focused. Only applies when a popover is configured. | 
| onStart | Boolean | Day lies on the first day of the attribute's targetDate. | 
| onEnd | Boolean | Day lies on the last day of the attributes's targetDate. | 
- The attribute.contentHoverStyleproperty has been deprecated in favor of using a function forattribute.contentStyle.
- The dayContentHovertheme style has been deprecated in favor of using a function to define thecontentStyle.
- Support use of a formats.dataparser to parse attribute dates
v-date-picker
- Add popoverShowClearMarginprop to apply clear margin when popover appears. Closes #47.
- Add events for popover-will-appear,popover-did-appear,popover-will-disappearandpopover-did-disappear
- show-popoverprop renamed to- show-day-popoverto avoid confusion with input popover
- popoverContentOffsetprop converted to number instead of a string
defaults
- formats.datasupported for parsing attribute dates
- date-picker-show-popoverrenamed to- date-picker-show-day-popover
- popover-content-offsetis converted to number instead of a string
v0.7.4
Bug Fixes
- Redress issue introduced by v0.7.3."
v0.7.3
v0.7.2
v0.7.1
Bug Fixes
- Fix setup crash when not manually specifying a locale
v0.7.0
Bug Fixes
v-calendar
- Fix animation bug when weeks-transitionortitle-transitionis"none". Closes #70.
v-date-picker
- Disabling dates on drag can invalidate current selected range. Closes #67.
Improvements
v-calendar
- Uses Javascript's Intl.DateTimeFormatAPI to supply month and day names for to 35 languages with minimal bundle size.
- Transitioned top level calendar component to render function for improved slot support.
- Supports a new formatsprop object where you can specify custom formats for title, weekdays and navigation months.
- Deprecate month-labelsandweekday-labelsprops in favor of usingformatsprop.
- Improved handling of svg icons for smaller bundle size.
v-date-picker
- Transitioned all date picker components to render functions. This allows using all slots that v-calendarsupports. Closes #49.
- Supports a new formatsprop object where you can specify custom formats for input element and date selection popovers.
- Deprecate dateFormatteranddateParserprops in favor of usingformatsprop.
v0.6.3
v0.6.1
v0.6.0
Bug Fixes
v-date-picker
- Bug: fromPageandtoPagenot updating when new date was assigned or selected.
 Fix:fromPageandtoPageare updated when new value is assigned, if needed. Closes #51.
- Bug: When clearing out input element, infinite start and end dates selected.
 Fix: When clearing out input element, date is cleared or reverts to previous value, depending onis-requiredprop or if dragging in"range"mode. Closes #54.
Improvements
- Add Finnish translation to locales
v-calendar
Props
- Rename popover-headerslot name today-popover-headerto more clearly identify slot target
Slots
- Add day-popover-footerslot for day popover footers
- day-popover-header,- day-popover-footerand custom popover slots accept- dayprop instead of- day-infoprop
Events
- 
Rename dayselectcalendar event todayclickto more clearly indicate DOM event source
- 
Modify parameter structure for day events ( dayclick,daymouseenter,daymouseover,daymouseleave). Instead of passing multiple parameters in order (and having to remember the right order), there is now a single object parameter with the following properties.Property Type Description dayNumber Day number (1 - 31). dayFromEndNumber Day number from the end of the month (1 - 31). weekdayNumber Day weekday number (1:Sun - 7:Sat). weekdayOrdinalNumber Weekday ordinal position from the start of the month (1 - 6). weekdayOrdinalFromEndNumber Weekday ordinal position from the end of the month (1 - 6). weekNumber Week number form the start of the month (1 - 6). weekFromEndNumber Week number from the end of the month (1 - 6). monthNumber Month number (1 - 12). yearNumber Year number. dateDate Date for this day. dateTimeNumber Result of calling date.getTime()for this day.inMonthBoolean Day lies in the currently active month. inPrevMonthBoolean Day lies in the month before the currently active month. inNextMonthBoolean Day lies in the month after the currently active month. attributesArray List of attributes for the day involved with the event. attributesMapObject Object map of the attributes using their designated key. eventObject Original trigger event. 
v-date-picker
Props
- Add is-requiredprop tov-date-pickerto prevent null date selections. Closes #45.
- Replace input related props (input...) withinput-propsobject as a catch all for all props to apply to input element.
- Replace select-coloranddrag-colorprops withtint-color. Opacity is set to0.5whentint-coloris applied todrag-attribute.
- Add disabled-attributeprop.
Defaults
- Replace input related defaults (datePickerInput...) withinput-propsas a configurable default function or object.