Repository navigation
Releases
Releases · Vuepic/vue-datepicker
v14.0.0
⚠️ Breaking Changes
- Exposed flow method
handleFlownow accepts a step value instead of an index and has been renamed toexecuteFlow partialinflowprop is removed, since it has no effect on the behaviour. Prop remains an object in case of potential updates@flow-stepemitted event will provide the step value instead of the step index
For more info, take a look at the migration guide
🚀 Features
- Accessibility improvements (#1211)
- New events added (
@menu-mounted,@menu-unmounted), each carries the menuHTMLElement - New property added in
config,onInternalKeydown onKeyUpis now teleport-aware- Forced
shift + tabclose is now gated behindconfig.tabOutClosesMenu onKeyDownis now aware ofconfig.spaceConfirmEnterkey on the input field is guarded bypreventDefault+stopImmediatePropagation- Added
Entercase foronKeyDownin the menu with the same opt-in logic - Various
aria-*improvements
- New events added (
🐛 Bug Fixes
- Fixed issue with nuxt hydration mismatch error and warnings (#1210)
- Fixed issue with
text-inputintime-pickersnaps to startTime/now mid-typing, not respecting invalid input value (#1212) - Fixed issue with elements under overlays remain focusable (#1213)
- Fixed issue with wrong calendar when using
timezone(#1233) - Fixed issue with quasar marking time input as
disabled(#1243) - Fixed issue when using
textInput.formatfunction throwing an error (#1246) - Fixed issue with "Now" button only working in date picker mode (#1249)
- Fixed issue where menu arrow is missing when positioning the menu to
top-start/endorbottom-start/end(#1257) - Fixed issue where
update-month-yearis not being emitted when changed from selecting a date from a different month (#1258) - Fixed issue with infinite loop when using
timezoneandmulti-calendars(#1273) - Fixed issue where menu arrow is not centered compared to the reference element when menu position is shifted
- Fixed issue where year selection overlay in
yearflow step opens the overlay on top instead of selected year position - Fixed issue where fixed start/end range dates times were mutable
🔧 Refactor
- Flow has been re-worked to be more stable, it will also resume from any step if the flow is broken.
v13.0.0
⚠️ Breaking Chnages
- All class names are renamed from
underscoretodash - Few class wordings are changed and few removed
week-startis now taken from thelocaleprop instead of defaulting to Monday.
For more info, take a look at the migration guide
🚀 Features
- Automatically use
week-startbased on thelocaleprop (#1236)
🐛 Bug Fixes
- Fixed issue with
text-inputnot parsing letters used for values (#1222, #1234) - Fixed teleport prop type for proper
booleansupport (by @syyyr) (#1223) - Fixed issue with
inputloosing focus upon opening the menu withselectOnFocusenabled (by @abdouthetif) (#1224, #1225) - Fixed issue with missing source files warning (#1226)
- Fixed issue with new
unplugin-dtstypes generating throwing error (#1231) - Fixed
TypeScriptissue on slots that provide different props in different modes (#1232) - Fixed issue with invalid time value when switching programatically between enabled/disabled
range(by @Kapcash) (#1256, #1259) - Fixed issue with broken
filters.yearsonmonth-pickerandquarter-picker(by @umutcantopal) (#1263, #1264) - Fixed issue with
formats.inputnot being propagated toformats.preview(#1261) - Fixed issue with extra spaces in range separator where text input is enabled with range (by @AlexanderNP) (#1269, #1271)
- Fixed issue with menu wrap remaining in the DOM after closing the menu (by @alexovn) (#1278, #1279)
🔧 Refactor
- Added
data-test-idfor preview section (by @jaccodenneboom) (#1219, #1220) - Repository converted to
pnpm workspaceand package manager changed topnpm - Removed
sassand replaced with plaincss
v12.1.0
🚀 Features
- Added support for
arrow-navigationinmulti-calendarsmode (#1086) - Added support for multiple range separators in
text-input(#1096) - Added option to disable auto range start/end switch (#1114)
- Added
applyOnBlurproperty intext-inputconfiguration (#1182) - Added
WeekStartenum export by @ChronosMasterOfAllTime (#1199) - Improve UI/UX for fixed start/end range hover and extending the range (#1200)
- Added
formatValueto theaction-previewslot props (#1207) - Exposed
selectDateanddisabledflag toaction-buttonsslot (#1207) - Exposed internal refs
dpMenuRef,dpWrapMenuRefandinputRef(#1209) - Added options to
floatingprop for customizingshiftandflipmiddleware behaviour (#1215)
🐛 Bug Fixes
- Fixed issue where
action-extraslot is displayed inline when the sidebar slot is provided (#1202) - Fixed issue with missing
{hours/minutes/seconds}Incrementintime-configprop type definition (#1203) - Fixed issue with
vitestfailing tests when usingglobal.stubs.teleportfromvue-test-utils(#1206) - Fixed issue with failing to properly parse
text-inputdate when the pattern includes short year (#1208)
🔧 Refactor
arrow-navigationwill now start from the active element instead of top-left (#1118)- Refactor slot propagation across components, added type exports per mode for
[left/right]-sidebarandmonth-yearslot props
v12.0.5
🐛 Bug Fixes
- Fixed issue with menu re-rendering while in the open state (#1192)
- FIxed issue where de-selecting multi-dates breaks time object (#1194)
- Fixed issue with menu not opening when
centeredprop is enabled by @alexpopovme (#1195) - Fixed issue with calendar days shifting depending on the OS timezone (#1198)
🔧 Refactor
booleanHTML attributes are removed from DOM when the value isfalse(#1191)
v12.0.4
🐛 Bug Fixes
- Fixed issue where
multi-calendarsnavigation ininlinemode remounts calendar on position update (#1183) - Fixed issue where end time resets on range date select (#1184)
- Fixed wrong type definition for
action-rowslot props (#1185) - Fixed issue where "blur" event is being emitted on every click outside (#1186)
- Fixed issue where clearing
text-inputvalue withauto-applyemits an empty string (#1187) - Fixed issue where
auto-applyon range select doesn't close the menu (#1188) - Fixed wrong type for
updateTimefunction intime-pickerslot (#1189) - Fixed issue where
setDateOnMenuClosetriggersupdate:model-valueto be emitted on every click outside (#1190)
v12.0.3
v12.0.2
v12.0.1
v12.0.0
⚠️ Breaking changes
This release includes a lot of internal refactor and a lot of breaking changes.
Please take a look at the migration guide
🚀 Features
- Added option to add calendard instance in
setMonthYearexposed function (#1120) - Added option to hide menu arrow (
floatingprop) (#1089) - Added option to change
inputmode(#1149) - Added option to set custom input
id(input-attrsprop) (#1163) - Added
@invalidevent that propagatesoninvalidfrom the input field (#1127) - Added input masking on
text-inputalpha stage, tnx to @apsisxcoder (#1131) - Added support for rounding the value on
nowbutton (action-rowprop) (#1138)
🐛 Bug Fixes
- Fixed issue where time values in the overlay are not reacting to
v-modelchange (#1108) - Fixed issue with time increment when picking from non-DST to DST date (#1112)
- Fixed issue with being unable to use
auto-applywhenpartialRangeis enabled (#1113) - Fixed issue where Increasing calendar width makes the inline time picker not centered (#1117)
- Fixed issue where
maxRangeandminRangeare not working inyear-pickermode (#1123) - Fixed issue where mobile swipe causes an unwanted selection of dates in the calendar (#1124, #1169)
- Fixed issue where
auto-applycloses the picker when usingflowwithrange(#1125) - Fixed issue where
start-dateis not working inquarter-pickermode (#1133) - Fixed issue where events
range-startandrange-endare not emitted when the time is updated (fixes #1142) - Fixed positioning issue on smaller screens with
preset-datesenabled (#1144) - Fixed issue with wrong week numbers from 2027 (#1147)
- Fixed isue where
auto-applynot selecting range inquarter-pickermode (#1166)
🔧 Other
- Use
@floating-ui/vuefor menu positioning instead of custom positioning logic - Use
@vueuse/core:onClickOutsideandunrefElementinstead of copied logic - Use
@date-fns/tzfor timezone calculations instead of basic custom implementation - Documentation website source code is moved under repository and updated
- Full type support throughout the library
- Root types are auto generated
v11.0.3
🐛 Bug Fixes
- Fixed wrong aria-label calendar cell from aria-pressed to aria-selected by (#1102) @sahilrajthapa
- Fixed issue where you can't type date when text-input and auto-apply are enabled (#1106) by @JoaoPedroAS51
- Fixed issue with disabled-dates function not working in year-picker mode (#1107) by @sahilrajthapa
- Fixed wrong css variable on time picker arrow icon (#1109) by @ayrtonandino
- Fixed issue with selectable months if year is out of range in
month-pickermode (#1145) by @spider-hand - Removed extra padding from the input when
clearableis set tofalse(#1150) by @Amirkian2023 - Fixed missing value and text props in
yearslot when using themonth-pickermode (#1154) by @mayswind - Fixed a11y typo in aria-selected logic for range end dates (#1167) by @brandonlavello