- Updated
[email protected]
- Updated
[email protected]
- Replaced
contra.emitter
with[email protected]/emitter
- Updated
[email protected]
- Fixed regression caused by
2.1.10
where you could no longer enter a valid date typing manually
- Bumped
[email protected]
, fixing a bug removingfocus
event listener
- Replaced use of
Date.now
withnew Date()
because browser support - Bumped
[email protected]
- Bumped
[email protected]
- Extracted positioning API into
bullseye
- Fixed a bug where inline calendars couldn't be instantiated
- Replaced
./events
withcrossvent
for code reuse
- Fixed a bug where inline date pickers would blink for a brief moment on the screen, when initialized
- Removed dependency on
raf
- Added the ability to set
autoClose
to'time'
, which only automatically hides the calendar when and if a time is picked
- Added
strictParse
option to avoid partial matches againstinputFormat
- Remove dependency on
lodash.throttle
- Removed unnecessary
'ready'
event listener from inline calendars
- Fixed an issue where input calendars wouldn't be hidden upon initialization
- Fixed an issue where
.options()
would forget an internal setting that identifies inputs - Fixed an issue where
.options.reset()
would forget the container for an inline calendar - Fixed an issue where
.options.reset()
would hide an inline calendar
- Removed necessity to wait until
'ready'
event was fired in order to interact with calendar - Event listeners registered on a
'destroy'
event handler will no longer be immediately removed - Introduced ability to pass
weekdayFormat
as an array with 7 strings
- Fixed an issue where
autoHideOnBlur
wouldn't work on Firefox
- Fixed an issue where you couldn't navigate months if the calendar was out of range
- Added ability to change weekdays format
- Changed navigation buttons to
button
type
- Changed
weekStart
default value tomoment().weekday(0).day()
- Circumvented a deprecation warning from
moment
- Bumped
moment
tov2.8.2
- API methods now allow for chaining even when the operation is a no-op
- Fixed an issue (#27) where inline calendars wouldn't get positioned using the
.show
API method - Created a
'show'
event, emitted whenever the calendar is displayed - Created a
'hide'
event, emitted whenever the calendar is hidden
- Fixed an issue (#25) which prevented you from using
min
andmax
whendate
isfalse
- Fixed an issue in old IE browsers
- Fixed an issue where date validation resulted in the wrong dates being disabled
- Introduced ability to display months side-by-side in a single calendar
- Fixed issues when setting an initial value on calendars that also validate their inputs
- Fixed a bug where you couldn't set
appendTo: 'parent'
for calendar associated to input fields
- Fixed a bug where calendars would be cached but never found again
rome.find
returnsnull
if no calendar is found
- Fixed an issue where tapping the input field wouldn't re-open the calendar on mobile (fb8fc070)
- Fixed an issue where the standalone version didn't export an API
- Fixed
scrollTop
issues in IE8 - Fixed click-to-hide issues in IE8
- Improved demo conformance by adding a
DOCTYPE
- When destroying a calendar, API methods become a no-op instead of getting deleted
- Fixed internal clone method
- Fixed a myriad of issues in IE8, enabling basic support
- Fixed an issue where reference errors occured when setting an
initialValue
or aninput
'svalue
- Introduced
except
andonly
validators
- Refactored validator factories so that the consumer doesn't need to bind
'data'
events torefresh
inline calendars
- Renamed validator factories
- Calendars are rendered when shown
- Validation occurs whenever a calendar is shown
- Fixed a bug where inline calendars couldn't be retrieved with
rome.find
- Introduced validator factories for common date comparison use cases
- Introduced
calendar.refresh
method to refresh a calendar on demand
- Fixed a bug where positioning would fail if the container had
position: relative
- Replaced
contra
withcontra.emitter
, shaving bytes
rome.find
operates on both inputs and inline calendars- Fixed a minor bug when showing and hiding calendars on
'ready'
- Where possible, API methods return the Rome instance for chaining
- Merged
rome.inline
withrome(elem, options?)
- Changed the way how
moment
should be passed torome
, because architecture - Introduced ability to set an
initialValue
for the calendar - Published internal method
setValue(value)
to set a date on the calendar - Published internal method
emitValues()
to emit data through the calendar - Initialization happens in the next frame, meaning you can easily listen for
'ready'
events - Split functionality between calendar and input field
- Ability to create inline calendars that don't depend on an input field
- Original method doesn't change its public API
- Fixed an issue where the date closest to an invalid one wouldn't be selected
- Introduced
dateValidator
andtimeValidator
options
- Fixed an issue when
required
was set tofalse
- Published alternative distribution
rome.standalone.js
which doesn't bundlemoment
- Implemented
required
option that allows the input field to be cleared
- Fixed a bug where the calendar would break if
time
was set tofalse
- Fixed a bug where you weren't able to navigate to the month if it was visible in the current calendar view
- Implemented
weekStart
to choose the starting day of the week
- Made it easier to overwrite the absolute positioning of the calendar by only setting it once, on the stylesheet
- Fixed a bug where closing the calendar, with the time list open, triggered a rendering bug in WebKit (952e714)
- Cloned options objects return proper clones of the
min
andmax
moments instead of references
- Consumer only gets copies of the configuration object, never the original
- Introduced
.options.reset()
to reset options to their default values like.options()
used to do
Changes
.options()
API changed, now returns copy of options if no arguments are provided
- Fixed a bug where the calendar wasn't being absolutely positioned
- Fixed bug when setting
appendTo: 'parent'
- Fixed support for
min
andmax
time settings
- Added the ability to choose a minimum date
- Added the ability to choose a maximum date
- Added the ability to click on days in neighboring months
- Initial Public Release