Change Log
Version 6
Version 6-alpha17
Bug fixes
- Fixed issue with calendar weeks. #2441
Version 6-alpha16
New
- Started building html migration tool
Bug fixes
- Fixed issue with daysOfWeekDisabled. #2419
- Fixed issue with reading the data- attributes. #2430
- Fixed start of the week option having the incorrect heading. #2443
Version 6-alpha15
New
- Added
localization.startOfTheWeek. This allows setting the start of the week. - Added
numberingSystemtoDateTimeFormatOptions - Added
metaproperty to options.
Bug fixes
- Fixed issue with 24 hour display formatting. #2414
- Fixed default input change formatting function to check for empty dates. #2411
- Fixed an issue with the unsubscribe method typing. #2411
- Fixed an issue where the picker would try to update the clock view even it wasn't enabled. #2438
- Fixed an issue using a time component would not go back to the clock view. #2431
- The picker will return to the view date and show the calendar or clock after being reopened. #2410
- Fixed clock/calendar switching to wait until the other view is ready before switching. #2421
- Fixed the options interface so all properties are optionsal. #2439
- BREAKING
localization.dayViewHeaderFormatno longer takes a string but instead accepts aDateTimeFormatOptions. This will allow for more customization. #2420
Version 6-alpha14
New
- Cleaned up css a bit. Got rid of the popper arrow and aligned the picker to the start of the element.
- BREAKING
display.inputFormatnow takes a function, not an Intl format. It has also been moved tohooks.inputFormatBy default a function will be executed that uses Intl to format the selected date(s) based on the selected components. - Added
hooks.inputParse - Merged number localization Thanks @hkvstore #2408
Bug fixes
Version 6-alpha1.0.13
New
- Created a new method
set(value: any, index?: number, from: string = 'date.set')that tries to conver thevalueprovided and then tries to set that value to theindex(or 0 if not using multidate). - Added esm output
- Exposed
UnitandDateTimeFormatOptionsfrom the DateTime class. - Renamed
togglePeriodtotoggleMeridiem - Added
toggleMeridiemclass to AM/PM button - Cleaned up css a bit. Got rid of the popper arrow and aligned the picker to the start of the element.
Bug fixes
Version 6-alpha1.0.4
Bug fixes
- Fixed issue with meridiem (AM/PM) button clicks.
Version 6-alpha1.0.3
Bug fixes
Version 6-alpha1
General
- picker returns a
DateTimewhich is an extended javascriptDateobject. - picker no longer uses jQuery, momentjs, or bootstrap
- events now have interfaces
Configuration
- renamed
tooltiptolocalization- renamed
tooltip.prevMonthtolocalization.previousMonth - renamed
tooltip.prevYeartolocalization.previousYear - renamed
tooltip.prevDecadetolocalization.previousDecade - renamed
tooltip.prevCenturytolocalization.previousCentury - moved
dayViewHeaderFormattolocalization.dayViewHeaderFormat dayViewHeaderFormatnow takes a javascriptintlmonth option, e.g.long(default)
- renamed
- moved
localetolocalization - removed
useStrict - removed
timeZone - removed
format- added
display.inputFormatthat takesDateTimeFormatOptions;
- added
- removed
collapse - removed
extraFormats - removed
widgetParent - removed
widgetPositioning - changed
viewModefrom'times' | 'days'to'clock' | 'calendar' - renamed
allowMultidateandmultidateSeparatortomultipleDatesandmultipleDatesSeparator - moved the following to
restrictions- minDate
- maxDate
- disabledDates
- enabledDates
- daysOfWeekDisabled
- disabledHours
- enabledHours
- readonly
- disabledTimeIntervals
- moved the following to
display- sideBySide
- calendarWeeks
- viewMode
- toolbarPlacement
- buttons
- widgetPositioning
- icons
- inline
- keepOpen
- disabledTimeIntervals is now an array of
{ from: DateTime, to: DateTime } - removed check for
dateOptionson the element data set. jQuery hid allowing an object by looping through the properties - removed
keybindings- this might come back later - removed
readonly< - removed
ignoreReadonly< - removed
focusOnShow<
Styles
Tip: All new css values are in Namespace.Css.*
in the consts.ts file
- renamed
bootstrap-datetimepicker-widgettotempus-dominus-widget - renamed
tempusDominus-bootstrap-datetimepicker-widget-with-calendar-weekstotempus-dominus-with-calendar-weeks( v5)- removed
.input-group [data-toggle="datetimepicker"]setting the cursor type to pointer.
- removed
Date
- renamed
datepickertodate-container - renamed
datepicker-decadestodate-container-decades - renamed
datepicker-yearstodate-container-years - renamed
datepicker-monthstodate-container-months - renamed
datepicker-daystodate-container-days - renamed
prevtoprevious - renamed
data-daytodata-valueto be consistent with other views
Time
- renamed
usetwentyfourtouseTwentyfour - renamed
timepickertotime-container - renamed
timepicker-hourtotime-container-hour - renamed
timepicker-minutetotime-container-minute - renamed
timepicker-secondtotime-container-second
Saas
Saas file is now called tempus-dominus.scss. The "build" file has been deleted as it's
no longer required.
Events
- changed
isInvalidtoisValidand flipped the boolean (v5) - changed event now emits
undefinedinstead of false when the date is being cleared - changed plugin.name from
datetimepickertotempus-dominus - changed root data namespace from
datetimepickertotd
Version 5
Version 5 was a rewrite of v4 taking some pending pull requests and fixes along with it. Unfortunately, I didn't do a very good job at documenting those changes.
Version 4
The changlog from v2-v4 can be read here.