- added iso-date data attribute to the cells, #640
- added triggering
changeevent on<input />element when user selects a date in the calendar #624 - fixed an unnecessary call to the
onBeforeSelectfunction when the{silent: false}argument is passed #649 - now
clearbutton works correctly in the range mode #642 - now keyboard events are not triggered when the calendar is hidden #631
- fixed return type in
selectDatefunction, thanks to marfrede in #656 - now you can re-enable cells in
onRenderCellcallback, thanks to kdagnan in #657 - fixed gramma and spelling in the Russian docs, thanks to Ser5 in #669
- fixed range mode #613
- fixed range mode #613
- improved
destroy()behavior - addedisDestroyedproperty,optsandselectedDateswill still have empty values, instead ofnull, even after AirDatepicker has been destroyed #600
- added
fixedHeightoption, allows you to have equal weeks number in every month - added method
disableDate, allows you to disabled one or multiple dates with datepicker API - added prop
disabledDates- it is a Set which holds all disabled dates - added possibility to pass
{silent: true}toupdateandsetCurrentViewmethods, #583 - changed
updatemethod - now if you passselectedDatesthen calendar will keep selected only those dates - fixed selecting time on same date when
range: true, #568 - fixed date conversion to local date when using strings, e.g
selectDate('2024-03-05')#589 - fixed localization generation, thanks to hreyeslo in #524
- fixed type definition for
clearmethod, thanks to ahmetzambak in #591 - fixed German translation for "clear", thanks to pbek in #582
- added Slovenian locale, thanks to carliblaz in #569
- added Basque locale, thanks to ikerib in #529
- added Norwegian locale, thanks to MortenSpjotvoll in #521
- added new options
onFocusandonBeforeSelectgrant you more control over range selection behaviour and more #526 - added new method
getViewDates()allows you to get all dates that should be currently displayed in calendar #536 toggleSelectednow can be a function #534- fixed
clearmethod #546 - added Bulgarian locale, thanks to tonytomov, in #531
- added Catalan locale, thanks to joatb, in #542
- added Croatian Locale, thanks to diomed, in #551
- added handling of optional chaining operator in dist package #518
- added Indonesian locale, thanks to BariqDharmawan, in #517
- recreate global container if it was removed from DOM #516
- added Greek locale, thanks to sonole, in #515
- fixed time format in timepicker body #512
- fixed day period value, when selecting date while datepicker is not active, #510
- fixed German locale, #511
- added Japanese locale, thanks to kyong0612, in #505
- added Korean locale, thanks to YankeeTube, in #506
- new feature that allow you to add custom attributes via
onRenderCell#502, read docs - fixed selecting cell when using custom html with
onRenderCelloption #502
- added
onClickDayNameoption, #459 - added
silentparam toclearmethod, #477 - added Swedish locale, thanks to naton #207
- fixed error when trying to call
updatemethod withviewparameter on hidden calendar, #476 - fixed styles issue with time sliders, #489
- fixed English docs description, #490
- fixed typings for
formatDatemethod, #491
- fixed css compilation, #461
- fixed
autoClosewhen range mode is on, #466 - fixed
onSelectwhen range mode is on. Now it accepts array of selected dates instead of single one #467 - fixed transition between
isMobilemode on and off #470 - added position update when resizing window #472
- added Sinhala locale, thanks to nimeshc64 in #464
- fixed French locale, thanks to matschik in #465
- added Ukrainian locale, thanks to zaandr in #471
- added lazy rendering - now inner components of datepicker will be created only when it will be visible, and will be destroyed when datepicker is hidden
- improved
position- now it can be function which allows you to perform advanced positioning using third-party libraries such as popperjs or manually - added
isMobileoption, which allows showing Air Datepicker as modal window on mobile devices - added
visiblieoption, if it is set totruethen calendar will be visible at the start - changed
dateFormat- as function it now handles all dates at once, instead of each date separately - fixed field names in
onSelectandonRenderCelloptions:type->cellType,dp->datepicker - fixed typings
- fixed
closetfunction, thanks to @hreyeslo in #445 - added Turkish locale, thanks to @ozkanozcan in #447
- added opportunity to set attributes when creating custom buttons, thanks to @khidirbekov in #448
- added Thai locale, thanks to @boatkung in #453
- fixed
updatemethod issue when some changes did not apply immediately
- no more jQuery
- improve rendering process - remove redundant cell render when selecting date, which gave a large speed boost compared to the old version
- date format tokens now use Unicode Technical Standard
- TypeScript support
- added
selectedDatesoption, to be able to select dates from the start - added a possibility to create custom buttons
- now one could change selected range by dragging dates
- added
containeroption which allows you to place datepicker in a custom element navTitlescan receive a function and could render dynamicallydateFormatnow can receive a functiononSelectandonRenderCellcallbacks are now receive a single object as an argument instead of multiple parametersselectDatenow receives second parameter with optionsonChangeMonth,onChangeYear,onChangeDecadesare replaced with single optiononChangeViewDate- localization now must be provided as an object instead of string as it was before
- fixed min,max dates in decade mode
- fixed min,max dates handling
- changed RegExp for recognizing date parts
- changed jquery version dependency
- added
onlyTimepickeroption - added
onShowandonHidecallbacks - added
VERSIONfield to plugin's prototype - now for selecting same date in
rangemode, you should set{toggleSelected: false} - fixed
dateFormatmethod (fixed wrong month name in Hungarian language) - fixed second call of
onRenderCallback - fixed
_getCell()throwing exception - new language:
skthanks to RobiNN1
- added possibility to select single date when
{range: true} - added support of 12 hours mode in
altFieldDateFormat - improved work with minDate and maxDate when
{timepicker: true} - fixed wrong class adding when
{range: true} - new languages:
esthanks to MarioAraquecsthanks to liborm85huthanks to gergo85fithanks to joonaskaskisolaphzplthanks to xiiofrthanks to nicooprat
- fixed dates array in
onSelectcallback
- fixed version for npm
- added timepicker (see docs for more info)
- added possibility to set
DateintodayButton - global variable
Datepickerhas been removed, now all placed in$.fn.datepicker - improved
selectDatemethod, now one can pass an array of dates to select - added
npmpackage - fixed issue caused by
placeholderonreadonlyinputs in IE - fixed issue when
rangeis true and first selected date is bigger than second - added new languages:
dathanks to bjarnefnlthanks to JaZoptthanks to cmpscabralpt-BRthanks to dowglazrothanks to tourniquet
- fixed '$ is not defined' problem.
- fixed
dateFormatmethod. - fixed typo in Russian docs, add ids in docs headers.
- fixed typo in
monthsField - added German language (thanks to Ichag)
- tests added
- added Chinese language (thanks to think2011)
- fixed if '0' is passed to
firstDay - fixed
showOtherYearsoption - fixed
onSelectevent, whenrangeis true - fixed case when
rangeandmultipleDatesboth set to true
- add
rangefeature - improve keyboard navigation (fixed two focused cells)
- add keyboard navigation
- add
classesoption to add custom classes - add
altFieldoption - bug fixes