source: admin-center/trunk/fuentes/admin-center.install/usr/share/admin-center/lib/bower_components/eonasdan-bootstrap-datetimepicker/docs/ChangeLog.md @ 6782

Last change on this file since 6782 was 6782, checked in by kbut, 20 months ago

add moment and datetimepicker bootstrap plugin

File size: 10.6 KB
Line 
1# Version 4
2
3## 4.17.42
4
5### Bug Squashing
6
7* fixed moment dependencies to all be the same
8* defaulted `option.timeZone` to `''` instead of UTC. This way it will default to the local timezone if it's not set.
9* fixed #959
10* fixed #1311 internal `getMoment` function no longer sets `startOf('d')`
11* fixed #935
12
13### Other
14
15* moved some (will move the rest soon) inline docs to JSDoc now that ReSharper supports it.
16* moved getter/setter functions to options page instead. #1313
17
18## 4.17.37
19
20### New Features
21
22* Momentjs TZ intergration #1242 thanks @bodrick
23* Independent CSS file, in case you don't want bootstrap for some reason
24
25### Bug Squashing
26
27* Slight changes decade view
28* Moved all tooltip text to `tooltips`
29* fixed #1212
30
31## 4.15.35
32
33### New Features
34
35`tooltips` allows custom, localized text to be included for icon tooltips
36
37### Bug Squashing
38
39fixed #1066
40
41fixed #1087 `sideBySide` properly supports `toolbarPlacement [top, bottom]`
42
43fixed #1119
44
45fixed #1069 added input.blur()
46
47fixed #1049 fixed doc example
48
49fixed #999 picker now looks for an element with `.input-group-addon`
50
51
52## 4.14.30
53
54### New Features
55
56`disabledTimeIntervals` #644
57
58`allowInputToggle` #929
59
60`focusOnShow` #884
61
62public `viewDate` function #872
63
64`enabledHours` and `disabledHours`.
65
66`dp.update` fires when `viewDate` is changed (in most cases) #937
67
68`viewMode` now supports a decades view.
69
70   **Note**: because the year picker shows 12 years at a time, I've elected to make this view show blocks of 12 years
71
72   **Note**: when selecting a decade the `viewDate` will change to the **center** of the selected years
73
74`parseInputDate` #1095
75
76### Bug Squashing
77
78fixed #815 by adding `.wider` when using both seconds and am/pm.
79
80fixed #816 changed both min/max date to move the selected date inside.
81
82fixed #855 #881 `fillDate`, `fillMonths`, `fillDow` uses `startOf('day')`, which will hopefully fix the DST issues.
83
84fixed #885 `daysOfWeekDisabled` will move the date to a valid date if `useCurrent` is `true`. Today button will check if the DoW is disabled.
85
86fixed #906
87
88fixed #912 if `useCurrent:false` month and year view will no longer have the current month/year selected.
89
90fixed #914 `use24hours` will ignore anything in side of `[]` in the format string.
91
92fixed #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.
93
94fixed #940 added -1 tab index to am/pm selector
95
96### Other Changes
97
98changed in/decrement behavior to check if the new date is valid at that granularity (hours, minutes, seconds). will also validate as before
99
100## 4.7.14
101
102Added several in new features:
103   
104    `keybinds`, `inline`, `debug`, `clear()`, `showClose`, `ingoreReadOnly`, `datepickerInput` and `keepInvalid`.
105
106Bug squashing
107
108## 4.0.0
109
110#### Changes for using the component
111
112* 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.
113
114* `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.
115
116* `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
117
118* Replaced previous - next buttons in Date subviews with configurable icons
119
120* Changed `language` option name to `locale` to be inline with moment naming
121
122* Implemented #402 all data-date-* variables are more readable and also match with the ones in the configuration object
123
124* `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'`
125
126#### Added functionality
127
128* 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
129
130* also added a `options()` public api function to get/set that takes an option object and applies it to the component in one call
131
132* Implemented [#130](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/130) by introducing a boolean `options.calendarWeeks` and `calendarWeeks()` api function
133
134* Implemented [#328](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/328), [#426](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/426)
135
136* 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.
137
138* Implemented [#141](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/141) and [#283](https://github.com/Eonasdan/bootstrap-datetimepicker/issues/283)
139
140
141#### Contributors related internal code changes
142
143* Refactor all UI click functions and put them as functions in the actions array private variable
144
145* Refactor template building process to seperate functions according to what they do
146
147* Remove some styles that where hardcoded in the javascript code
148
149* 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
150
151* The v4beta branch code includes all fixes up to v.3.1.2
152
153* Added `toggle()` to the public API which toggles the visibility of the DateTimePicker
154
155* Refactored set function to be included in the setValue function
156
157* Added a testing framework using jasmine and phantom.js
158
159# Version 3
160
161## 3.0.0
162
163
164* Fix for #170, #179, #183: Changed event to `dp.-`. This should fix the double change event firing.
165* Fix for #192: `setDate` now fires `dp.change`
166* Fix for #182: Picker will **not** set the default date if the input field has a value
167* Fix for #169: Seconds doesn't get reset when changing the date (Thanks to PR #174)
168* Fix for #168 z-index fix for BS modal
169* Fix for #155 Picker properly displays the active year and month
170* Fix for #154 CSS update to fix the collapse jump
171* Fix for #150 and #75 `minViewMode` and `viewMode` work properly
172* Fix for #147 AM/PM won't toggle when selecting a value from the hours grid
173* Fix for #44 Finally! It's here!! Thanks to @ruiwei and his code on #210 picker will adjust the positioning of the widget.
174
175#### Manually merged PR
176
177* PR #178 When using `minuteStepping` the minute select grid will only show available steppings
178* 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`
179* PR #184 The option `sideBySide` change be used to display both the d and the timepicker side by side
180* PR #143 Added option `daysOfWeekDisabled: []`. For example, use `daysOfWeekDisabled: [0,6]` to disable Sunday and Saturday
181
182#### **Other Changes**
183* Changed picker width to 300px if using seconds and am/pm
184* Added option `useCurrent`, thanks to @ruiwei. When true, picker will set the value to the current date/time (respects picker's format)
185* Added option `showToday`, thanks to @ruiwei. When true, picker will display a small arrow to indicate today's date.
186* Changed `startDate` to `minDate` and `endDate` to `maxDate` to make it more clear what these options do.
187
188# Version 2
189
190#### 2.1.32 (Hotfix)
191
192* 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
193* Fix for #140: `setDate` can be given `null` to force clear the picker
194
195#### 2.1.30
196##### Important! `build.less` file name has been been changed to `bootstrap-datetimepicker-build.less` to prevent collisions
197
198* Fix for #135: `setStartDate` and `setEndDate` should now properly set.
199* Fix for #133: Typed in date now respects en/disabled dates
200* Fix for #132: En/disable picker function works again
201* Fix for #117, #119, #128, #121: double event `change` event issues should be fixed
202* Fix for #112: `change` function no longer sets the input to a blank value if the passed in date is invalid
203
204* Enhancement for #103: Increated the `z-index` of the widget
205
206#### 2.1.20
207* 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
208* Fix for #78: Script has been update for breaking changes in Moment 2.4.0
209* Fix for #73: IE8 should be working now
210
211* Enhancement for #79: `minuteStepping` option takes a number (default is 1). Changing the minutes in the time picker will step by this number.
212* 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
213* Enhancement for #67: Picker will now attempt to convert all `data-OPTION` into its appropriate option
214
215#### 2.1.11
216* Fix for #51, #60
217* Fix for #52: Picker has its own `moment` object since moment 2.4.0 has removed global reference
218* Fix for #57: New option for `useStrict`. When validating dates in `update` and `change`, the picker can use a stricter formatting validation
219* Fix for #61: Picker should now properly take formatted date. Should also have correct start of the week for locales.
220* Fix for #62: Default format will properly validate time picker only.
221
222#### 2.1.5
223* Custom icons, such as Font Awesome, are now supported. (#49)
224* If more then one `input-group-addon` is present use `datepickerbutton` to identify where the picker should popup from. (#48)
225* 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/)
226* Fix for #42, plugin will now check for `A` or `a` in the format string to determine if the AM/PM selector should display.
227* Fix for #45, fixed null/empty and invalid dates
228* Fix for #46, fixed active date highlighting
229* Fix for #47, `change.dp` event to also include the previous date.
230
231####2.0.1
232* New event `error.dp` fires when plugin cannot parse date or when increase/descreasing hours/minutes to a disabled date.
233* Minor fixes
234
235####2.0.0
236* `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
237* Events are easier to use
Note: See TracBrowser for help on using the repository browser.