Releases: Vuepic/vue-datepicker
Releases · Vuepic/vue-datepicker
v10.0.0
⚠️ Breaking changes
date-fns
library is updated to version4
data-test
attribute is renamed todata-test-id
(#987)alt-position
now accepts any returned style and won't do any conversion (#1018)
For more info, take a look at the migration guide
🚀 Features
- Added two new properties in the
config
prop - Inline date picker will now emit a
blur
event on click away (#995) - Added option to force
top
orbottom
positioning viaauto-position
prop (#1026)
🐛 Bug Fixes
- Fixed issue where
inline-time-picker
withis-24="false"
overflows the container (#990) - Fixed issue where selecting dates between DST and non-DST timezone results in hours updating every selection (#991)
- Fixed issue where the
marker
tooltip is showing on hidden offset dates (#994) - Fixed issue where
multi-dates
select is not working whenallowPreventDefault
is enabled in theconfig
(#999) - Fixed issue where the
now
button is not working properly inmulti-dates
mode (#1000) - Month range picker doesn't trigger
range-start
andrange-end
events properly (#1005) by @jllavec - Fixed issue where
allowed-dates
are not marking disabled months inmonth-picker
(#1008) - Fixed issue with typescript build error (#1023)
- Fixed issues where on
multi-calendars
solo
mode, next calendar keeps resetting month on range picker (#1025) - Fixed the issue where the clock icon is not aligned on the mobile view
v9.0.3
🐛 Bug Fixes
- Fixed
tabSubmit
not updatingmodel-value
when the clear button is shown (#961) - Fixed missing
aria-label
field for input field (#967) - Fixed issue with partial range in
week-picker
mode setting current week as the second week (#972) - Fixed issue where click event from
dp-input
slot wrapper blocks slot clicks (#973) - Fixed issue where hidden calendar cell can be focused (#978)
🔧 Refactor
- Emit
invalid-date
event when validating date fromtext-input
(#971)
v9.0.2
🐛 Bug Fixes
- Fixed issue where touch on Android device causes double selection in range picker (#948, #964)
- Fixed issue where
null
values in min and max dates withprevent-min-max-navigation
prevent navigation (#951) - Fixed issue where
--dp-menu-min-width
is not propagated tomonth-picker
mode (#954) - Fixed
preview-format
prop not formatting based on the provided prop (#957) - Fixed wrong slot type for slot
marker-tooltip
(#959) - Fixed
text-input
tabSubmit
focusing clear button instead of parsing value (#961) by @OlaAlsaker
v9.0.1
🐛 Bug Fixes
- Fixed issue where the wrong class is applied on the
clear-icon
slot (#945) by @Tsuyoshi84 - Fixed issue where the
clearInput
aria-label is set on the wrong element (#942)
🔧 Refactor
- Calendar direction property is extracted to a CSS variable (#943)
v9.0.0
⚠️ Breaking changes
- Deprecated props are removed
- Class
dp__clear_icon
is renamed todp--clear-btn
and the icon is wrapped in<button>
tag textInput.openMenu
boolean
valuetrue
is changed to'open' | 'toggle'
- Removed
calendarWrap
andcalendarDays
from thearia-labels
prop due to accessibility violations - When using the component with web components, it must be enabled explicitly via
config.shadowDom
property
For more info, take a look at the migration guide
🚀 Features
- Added option to enable menu toggle when clicking the input field in
text-input
mode (#905) - Added
@text-input
event (#906) - Exposed
dpWrapMenuRef
(#918) - Added
customPosition
function to themarker
object (#933) - Added new slot
menu-header
that spans across all instances (#935) - Additional arria labels for overlays are added (#941)
🐛 Bug Fixes
- Fixed issue with required double touch to select date when the date has a marker on iOS devices (#904)
- Fixed accessibility violation with
aria-label
on theinput
field (#907) - Fixed accessibility issue with unable to focus the
x
button in the input field via keyboard (#908) - Fixed issue with wrong month & year assignment for
auto-range
inmulti-calendars
mode (#909) by @Tsuyoshi84 - Fixed positioning issue when layout altering slots are used (fixes #922)
- Fixed broken layout on
direction: rtl
(#931) - Fixed issue where
partial-flow
closes the menu after the first flow step (#936) - Fixed issue where the menu changes position on
text-input
(#940)
🔧 Refactor
- Accessibility improvements
- All
svg
icons now have arole
attribute - The
handleTab
function fromdp-input
slots now receives a second (optional)boolean
parameter, indicating that the event comes from the input field - Keyboard helpers (
Home
,PageUp
andPageDown
events) will now add focus (#822, #932) - The clear icon is now wrapped inside the
button
tag instead of the span
- All
v8.8.1
🐛 Bug Fixes
- Added optional chaining operator on arrow positioning (#901) by @carlssonemil
- Fixed wrong weekday names on
format-locale
in overridden timezone (#911) by @basil-gor - Fixed menu arrow positioning when the input is on the right (#920) by @allusernamestakenexceptthis
- Fixed issue with
css
import in some projects (#903)
v8.8.0
🚀 Features
- Added new
ui
prop- Add custom class support for
next
andprevious
nav buttons (#883)
- Add custom class support for
- Added
tp-inline-arrow-[up/down]
slots (#884) - Added support for dynamic calendar update when the count is updated externally (#886) by @simbacod3
🐛 Bug Fixes
- Ignore full date
[min/max]-date
validation inyear-picker
mode (#879) - Fixed wrong default time in
time-picker
mode whentimezone
is provided (#880) - Fixed incorrect month name tokens for
format-locale
(#881) by @exi66 - Fixed issues where value is not reflected in the calendar on
text-input
in specific modes (#893) - Fixed issue where
multi-calendars
are not updating ontext-input
(#894)
🔧 Refactor
⚠️ Deprecated props:input-class-name
,menu-class-name
,calendar-class-name
andcalendar-cell-class-name
in favor ofui
prop
v8.7.0
🚀 Features
- Exposed
handleFlow
method to manually trigger flow (#864) - Added
internalModelValue
as a second param to theday-class
prop (#872)
🐛 Bug Fixes
- Fixed issue where the overlay is closed on
click
when the picker is added inside<label>
tag (#661) - Fixed issue with inverse arrow-left/right navigation
- Accessibility fixes (#822)
Home/End
to respect focused cell- Fixed issue where
PageUp/PageDown
loses focus
- Fixed wrong
year
slot type (#867) - Fixed issue where month matching
min-date
inmonth-picker
mode can't be selected (#865) - Pass
on-focus
prop todp-input
slot to parsetext-input
withauto-apply
(#873) - Fixed issue where the
now
button is not selecting the date in the providedtimezone
(#874) - Fixed issue where not all properties from
range
andmulti-calendars
are being applied on[month/quarter]-picker
modes (#875 )
v8.6.0
🚀 Features
- New event
overlay-toggle
added (#852) - Added option to click and hold
time-picker
arrows (#855)- Can be enabled with
config.timeArrowHoldThreshold
- Can be enabled with
- Added
[hours/minutes/seconds]-overlay-header
slots (#857) - Added
--dp-border-color-focus
CSS variable (#863)
🐛 Bug Fixes
- Fixed type errors for slot type definitions (#854, #858)
- Fixed issue where
12
has wrong values intime-picker
when:is-24="false"
(#851) - Fixed issue where the calendar is not reacting to mode change between
range
andmulti-dates
(#560) - Fixed issue where
prevent-min-max-navigation
is not calculated properly whenv-model
is provided inmonth-picker
mode (#861)
🔧 Refactor
- Deprecated events
time-picker-open
andtime-picker-close
in favor ofoverlay-toggle
event
v8.5.1
🐛 Bug Fixes
- Fixed missing prop type definition for
clear-icon
slot (#842) - Fixed issue with
update-month-year
event not being triggered on year change inmonth-picker
mode (#843) - Fixed issue where input value disappears on
internal-model-change
event (#848) - Fixed issue where
flow
is not working properly intime-picker
mode (#849)