You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChangeLog.md 11 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. # Version 4
  2. ## 4.17.42
  3. ### Bug Squashing
  4. * fixed moment dependencies to all be the same
  5. * defaulted `option.timeZone` to `''` instead of UTC. This way it will default to the local timezone if it's not set.
  6. * fixed #959
  7. * fixed #1311 internal `getMoment` function no longer sets `startOf('d')`
  8. * fixed #935
  9. ### Other
  10. * moved some (will move the rest soon) inline docs to JSDoc now that ReSharper supports it.
  11. * moved getter/setter functions to options page instead. #1313
  12. ## 4.17.37
  13. ### New Features
  14. * Momentjs TZ intergration #1242 thanks @bodrick
  15. * Independent CSS file, in case you don't want bootstrap for some reason
  16. ### Bug Squashing
  17. * Slight changes decade view
  18. * Moved all tooltip text to `tooltips`
  19. * fixed #1212
  20. ## 4.15.35
  21. ### New Features
  22. `tooltips` allows custom, localized text to be included for icon tooltips
  23. ### Bug Squashing
  24. fixed #1066
  25. fixed #1087 `sideBySide` properly supports `toolbarPlacement [top, bottom]`
  26. fixed #1119
  27. fixed #1069 added input.blur()
  28. fixed #1049 fixed doc example
  29. fixed #999 picker now looks for an element with `.input-group-addon`
  30. ## 4.14.30
  31. ### New Features
  32. `disabledTimeIntervals` #644
  33. `allowInputToggle` #929
  34. `focusOnShow` #884
  35. public `viewDate` function #872
  36. `enabledHours` and `disabledHours`.
  37. `dp.update` fires when `viewDate` is changed (in most cases) #937
  38. `viewMode` now supports a decades view.
  39. **Note**: because the year picker shows 12 years at a time, I've elected to make this view show blocks of 12 years
  40. **Note**: when selecting a decade the `viewDate` will change to the **center** of the selected years
  41. `parseInputDate` #1095
  42. ### Bug Squashing
  43. fixed #815 by adding `.wider` when using both seconds and am/pm.
  44. fixed #816 changed both min/max date to move the selected date inside.
  45. fixed #855 #881 `fillDate`, `fillMonths`, `fillDow` uses `startOf('day')`, which will hopefully fix the DST issues.
  46. fixed #885 `daysOfWeekDisabled` will move the date to a valid date if `useCurrent` is `true`. Today button will check if the DoW is disabled.
  47. fixed #906
  48. fixed #912 if `useCurrent:false` month and year view will no longer have the current month/year selected.
  49. fixed #914 `use24hours` will ignore anything in side of `[]` in the format string.
  50. fixed #916 added titles to all icons. At some point the text should be moved to the icon's array, but this would probably be a breaking change.
  51. fixed #940 added -1 tab index to am/pm selector
  52. ### Other Changes
  53. changed in/decrement behavior to check if the new date is valid at that granularity (hours, minutes, seconds). will also validate as before
  54. ## 4.7.14
  55. Added several in new features:
  56. `keybinds`, `inline`, `debug`, `clear()`, `showClose`, `ingoreReadOnly`, `datepickerInput` and `keepInvalid`.
  57. Bug squashing
  58. ## 4.0.0
  59. #### Changes for using the component
  60. * Defined a [Public API](https://github.com/Eonasdan/bootstrap-datetimepicker/wiki/Version-4-Public-API) and hidden rest of functions, variables so that all configuration options can be changed dynamically.
  61. * `set/getDate()` is now replaced with an overloaded `date()` function. Use it without a parameter to get the currently set date or with a parameter to set the date.
  62. * `hide()`, `show()`, `toggle()`, `enable()`, `disable()` and the rest of setter functions now support chaining. ie `$('#id').data('DateTimePicker').format('DD-MM-YYYY').minDate(moment()).defaultDate(moment()).show()` works
  63. * Replaced previous - next buttons in Date subviews with configurable icons
  64. * Changed `language` option name to `locale` to be inline with moment naming
  65. * Implemented #402 all data-date-* variables are more readable and also match with the ones in the configuration object
  66. * `options.direction` and `options.orientation` were merged into a single object `options.widgetPositioning` with `vertical` and `horizontal` keys that take a string value of `'auto', 'top', 'bottom'` and `'auto', 'left', 'right'` respectively. Note that the `'up'` option was renamed to `'top'`
  67. #### Added functionality
  68. * added a second way to define options as data attributes. Instead of adding distinct `data-date-*` config options you can now also pass a `data-date-options` attribute containing an object just the same as the options object that `element.datetimepicker` constructor call takes
  69. * also added a `options()` public api function to get/set that takes an option object and applies it to the component in one call
  70. * Implemented [#130](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/130) by introducing a boolean `options.calendarWeeks` and `calendarWeeks()` api function
  71. * Implemented [#328](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/328), [#426](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/426)
  72. * Implemented [#432](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/432). Widget DOM element is now lazily added only when shown and removed from the document when hidden.
  73. * Implemented [#141](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/141) and [#283](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/283)
  74. #### Contributors related internal code changes
  75. * Refactor all UI click functions and put them as functions in the actions array private variable
  76. * Refactor template building process to seperate functions according to what they do
  77. * Remove some styles that where hardcoded in the javascript code
  78. * Refactor all code that changes the picker.date to change it through the setValue function to allow one place for validation logic (min/max/weekdaysenabled etc) and also one place for emmiting dp.change events
  79. * The v4beta branch code includes all fixes up to v.3.1.2
  80. * Added `toggle()` to the public API which toggles the visibility of the DateTimePicker
  81. * Refactored set function to be included in the setValue function
  82. * Added a testing framework using jasmine and phantom.js
  83. # Version 3
  84. ## 3.0.0
  85. * Fix for #170, #179, #183: Changed event to `dp.-`. This should fix the double change event firing.
  86. * Fix for #192: `setDate` now fires `dp.change`
  87. * Fix for #182: Picker will **not** set the default date if the input field has a value
  88. * Fix for #169: Seconds doesn't get reset when changing the date (Thanks to PR #174)
  89. * Fix for #168 z-index fix for BS modal
  90. * Fix for #155 Picker properly displays the active year and month
  91. * Fix for #154 CSS update to fix the collapse jump
  92. * Fix for #150 and #75 `minViewMode` and `viewMode` work properly
  93. * Fix for #147 AM/PM won't toggle when selecting a value from the hours grid
  94. * Fix for #44 Finally! It's here!! Thanks to @ruiwei and his code on #210 picker will adjust the positioning of the widget.
  95. #### Manually merged PR
  96. * PR #178 When using `minuteStepping` the minute select grid will only show available steppings
  97. * PR #195, #197 Using the `data-OPTION` has been changed to `data-date-OPTION`. These options are expected to be on the `input-group` if you're using the `input-group` **or** the a bare input field if you're not using the `input-group`
  98. * PR #184 The option `sideBySide` change be used to display both the d and the timepicker side by side
  99. * PR #143 Added option `daysOfWeekDisabled: []`. For example, use `daysOfWeekDisabled: [0,6]` to disable Sunday and Saturday
  100. #### **Other Changes**
  101. * Changed picker width to 300px if using seconds and am/pm
  102. * Added option `useCurrent`, thanks to @ruiwei. When true, picker will set the value to the current date/time (respects picker's format)
  103. * Added option `showToday`, thanks to @ruiwei. When true, picker will display a small arrow to indicate today's date.
  104. * Changed `startDate` to `minDate` and `endDate` to `maxDate` to make it more clear what these options do.
  105. # Version 2
  106. #### 2.1.32 (Hotfix)
  107. * Fix for #151: When a bad date value or the picker is cleared, the plugin will not longer attempt to reset it back to the previous date
  108. * Fix for #140: `setDate` can be given `null` to force clear the picker
  109. #### 2.1.30
  110. ##### Important! `build.less` file name has been been changed to `bootstrap-datetimepicker-build.less` to prevent collisions
  111. * Fix for #135: `setStartDate` and `setEndDate` should now properly set.
  112. * Fix for #133: Typed in date now respects en/disabled dates
  113. * Fix for #132: En/disable picker function works again
  114. * Fix for #117, #119, #128, #121: double event `change` event issues should be fixed
  115. * Fix for #112: `change` function no longer sets the input to a blank value if the passed in date is invalid
  116. * Enhancement for #103: Increated the `z-index` of the widget
  117. #### 2.1.20
  118. * Fix for #83: Changes to the picker should fire native `change` event for knockout and the like as well as `change.dp` which contains the old date and the new date
  119. * Fix for #78: Script has been update for breaking changes in Moment 2.4.0
  120. * Fix for #73: IE8 should be working now
  121. * Enhancement for #79: `minuteStepping` option takes a number (default is 1). Changing the minutes in the time picker will step by this number.
  122. * Enhancement for #74 and #65: `useMinutes` and `useSeconds` are now options. Disabling seconds will hide the seconds spinner. Disabling minutes will display `00` and hide the arrows
  123. * Enhancement for #67: Picker will now attempt to convert all `data-OPTION` into its appropriate option
  124. #### 2.1.11
  125. * Fix for #51, #60
  126. * Fix for #52: Picker has its own `moment` object since moment 2.4.0 has removed global reference
  127. * Fix for #57: New option for `useStrict`. When validating dates in `update` and `change`, the picker can use a stricter formatting validation
  128. * Fix for #61: Picker should now properly take formatted date. Should also have correct start of the week for locales.
  129. * Fix for #62: Default format will properly validate time picker only.
  130. #### 2.1.5
  131. * Custom icons, such as Font Awesome, are now supported. (#49)
  132. * If more then one `input-group-addon` is present use `datepickerbutton` to identify where the picker should popup from. (#48)
  133. * New Event: `error.dp`. Fires when Moment cannot parse the date or when the timepicker cannot change because of a `disabledDates` setting. Returns a Moment date object. The specific error can be found be using `invalidAt()`. For more information see [Moment's docs](http://momentjs.com/docs/#/parsing/is-valid/)
  134. * Fix for #42, plugin will now check for `A` or `a` in the format string to determine if the AM/PM selector should display.
  135. * Fix for #45, fixed null/empty and invalid dates
  136. * Fix for #46, fixed active date highlighting
  137. * Fix for #47, `change.dp` event to also include the previous date.
  138. ####2.0.1
  139. * New event `error.dp` fires when plugin cannot parse date or when increase/descreasing hours/minutes to a disabled date.
  140. * Minor fixes
  141. ####2.0.0
  142. * `disabledDates` is now an option to set the disabled dates. It accepts date objects like `new Date("November 12, 2013 00:00:00")` and `12/25/2013' and `moment` date objects
  143. * Events are easier to use