- fixed range mode #613
- fixed range mode #613
- improved
destroy()
behavior - addedisDestroyed
property,opts
andselectedDates
will still have empty values, instead ofnull
, even after AirDatepicker has been destroyed #600
- added
fixedHeight
option, 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}
toupdate
andsetCurrentView
methods, #583 - changed
update
method - now if you passselectedDates
then 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
clear
method, 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
onFocus
andonBeforeSelect
grant 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 toggleSelected
now can be a function #534- fixed
clear
method #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
onRenderCell
option #502
- added
onClickDayName
option, #459 - added
silent
param toclear
method, #477 - added Swedish locale, thanks to naton #207
- fixed error when trying to call
update
method withview
parameter on hidden calendar, #476 - fixed styles issue with time sliders, #489
- fixed English docs description, #490
- fixed typings for
formatDate
method, #491
- fixed css compilation, #461
- fixed
autoClose
when range mode is on, #466 - fixed
onSelect
when range mode is on. Now it accepts array of selected dates instead of single one #467 - fixed transition between
isMobile
mode 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
isMobile
option, which allows showing Air Datepicker as modal window on mobile devices - added
visiblie
option, if it is set totrue
then 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
onSelect
andonRenderCell
options:type
->cellType
,dp
->datepicker
- fixed typings
- fixed
closet
function, 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
update
method 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
selectedDates
option, 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
container
option which allows you to place datepicker in a custom element navTitles
can receive a function and could render dynamicallydateFormat
now can receive a functiononSelect
andonRenderCell
callbacks are now receive a single object as an argument instead of multiple parametersselectDate
now receives second parameter with optionsonChangeMonth
,onChangeYear
,onChangeDecades
are 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
onlyTimepicker
option - added
onShow
andonHide
callbacks - added
VERSION
field to plugin's prototype - now for selecting same date in
range
mode, you should set{toggleSelected: false}
- fixed
dateFormat
method (fixed wrong month name in Hungarian language) - fixed second call of
onRenderCallback
- fixed
_getCell()
throwing exception - new language:
sk
thanks 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:
es
thanks to MarioAraquecs
thanks to liborm85hu
thanks to gergo85fi
thanks to joonaskaskisolaphzpl
thanks to xiiofr
thanks to nicooprat
- fixed dates array in
onSelect
callback
- fixed version for npm
- added timepicker (see docs for more info)
- added possibility to set
Date
intodayButton
- global variable
Datepicker
has been removed, now all placed in$.fn.datepicker
- improved
selectDate
method, now one can pass an array of dates to select - added
npm
package - fixed issue caused by
placeholder
onreadonly
inputs in IE - fixed issue when
range
is true and first selected date is bigger than second - added new languages:
da
thanks to bjarnefnl
thanks to JaZopt
thanks to cmpscabralpt-BR
thanks to dowglazro
thanks to tourniquet
- fixed '$ is not defined' problem.
- fixed
dateFormat
method. - 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
showOtherYears
option - fixed
onSelect
event, whenrange
is true - fixed case when
range
andmultipleDates
both set to true
- add
range
feature - improve keyboard navigation (fixed two focused cells)
- add keyboard navigation
- add
classes
option to add custom classes - add
altField
option - bug fixes