v0.6.0
Pre-release
Pre-release
Bug Fixes
v-date-picker
- Bug:
fromPage
andtoPage
not updating when new date was assigned or selected.
Fix:fromPage
andtoPage
are 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-required
prop or if dragging in"range"
mode. Closes #54.
Improvements
- Add Finnish translation to locales
v-calendar
Props
- Rename
popover-header
slot name today-popover-header
to more clearly identify slot target
Slots
- Add
day-popover-footer
slot for day popover footers day-popover-header
,day-popover-footer
and custom popover slots acceptday
prop instead ofday-info
prop
Events
-
Rename
dayselect
calendar event todayclick
to 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 day
Number Day number (1 - 31). dayFromEnd
Number Day number from the end of the month (1 - 31). weekday
Number Day weekday number (1:Sun - 7:Sat). weekdayOrdinal
Number Weekday ordinal position from the start of the month (1 - 6). weekdayOrdinalFromEnd
Number Weekday ordinal position from the end of the month (1 - 6). week
Number Week number form the start of the month (1 - 6). weekFromEnd
Number Week number from the end of the month (1 - 6). month
Number Month number (1 - 12). year
Number Year number. date
Date Date for this day. dateTime
Number Result of calling date.getTime()
for this day.inMonth
Boolean Day lies in the currently active month. inPrevMonth
Boolean Day lies in the month before the currently active month. inNextMonth
Boolean Day lies in the month after the currently active month. attributes
Array List of attributes for the day involved with the event. attributesMap
Object Object map of the attributes using their designated key. event
Object Original trigger event.
v-date-picker
Props
- Add
is-required
prop tov-date-picker
to prevent null date selections. Closes #45. - Replace input related props (
input...
) withinput-props
object as a catch all for all props to apply to input element. - Replace
select-color
anddrag-color
props withtint-color
. Opacity is set to0.5
whentint-color
is applied todrag-attribute
. - Add
disabled-attribute
prop.
Defaults
- Replace input related defaults (
datePickerInput...
) withinput-props
as a configurable default function or object.