timepicker-ui
Version:
timepicker-ui is an easy library with timepicker. Created with TypeScript based on Material Design from Google.
258 lines (140 loc) • 5.45 kB
Markdown
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [2.7.0] - 2022-11-17
### Add
- added new value to the property `theme` called `m3`.
Theme `m3` based on the new Material Design v3. Material Design 3 is still not release in offical version for WEB but you can use it if you want.
There is new version of [Material Design 3](https://m3.material.io/components/time-pickers/overview).
If new version M3 will be released this design will get improve.
## [2.6.0] - 2022-11-16
### Change
- changed invoke of `close()` method. These method has to invoke with double parentheses `close()()`. The first parentheses doesn't have any parameters, the second has the same what had in the previous method.
### Add
- added `delayHandler` prop to avoid delay on buttons
### Fix
- fixed problem with 0NaN error when using touch input. Thanks to @grizzlymannn
## [2.5.0] - 2022-05-06
### Change
- changed logic about `hour` and `minutes`. Previous version used divs as buttons, the current version is using `inputs` instead divs.
- removed `preventDefault` option, to use `editable` option is enough to set this option to `true`
### Add
- added `debounce` function to close/open timepicker
### Fix
- fixed problem with `edtiable` options durning change hour/minutes on desktop/mobile
## [2.4.5] - 2022-04-02
### Fix
- fixed unnecessary change code to `disable Time`
## [2.4.4] - 2022-04-02
### Fix
- fixed problem with `focusTrap` with React about eval error
## [2.4.3] - 2022-04-02
### Fix
- fixed problem with `minutes` option in `currentTime`
### Add
- added `focusTrap` to turn off/on focus traping on picker. The default value is set to true
- added possibility to open picker by click enter if input is focused
## [2.4.2] - 2022-03-29
### Fix
- fixed problem with `currentTime` about displaying wrong hour in the picker
- fixed problem with `editable` option when switch during desktop/mobile options
### Add
- added `OptionTypes` to allows to import types from package
## [2.4.1] - 2022-03-26
### Add
- added new `currentTime` option
### Fix
- fixed landscape on the mobile view
### Update
- updated comments in code to methods/options to show properly descriptions in codes editors
## [2.4.0] - 2022-03-22
### Add
- added new update method
- added new destroy method
- added new option `disabledTime` that allows to set to timepicker disabled time
### Update
- updated a methods open, close with new parameters and callbacks
## [2.3.0] - 2022-03-05
### Fix
- fixed problem with [switchToMinutesAfterSelectHour](https://github.com/pglejzer/timepicker-ui/issues/13) option
- fixed problem with [update](https://github.com/pglejzer/timepicker-ui/issues/12) event
- fixed problem with [animation](https://github.com/pglejzer/timepicker-ui/issues/11) option name
- fixed problem with [iconTemplete and iconTemplateMobile](https://github.com/pglejzer/timepicker-ui/issues/9) names
- fixed problem with [switching mobile/desktop view](https://github.com/pglejzer/timepicker-ui/issues/9)
- fixed problem to set options with data-attributes
### Change
- changed option name from `selectLabelTime` to `labelTime`
### Add
- added [UMD version](https://github.com/pglejzer/timepicker-ui/issues/8)
- added new options `mobileTimeLabel` to change time label on mobile version
## [2.2.3] - 2021-09-26
### Update
- Update README.md and links
## [2.2.2] - 2021-09-25
### Fixed
- Fixed hand circle SCSS on the crane mode
- Fixed am/om SCSS on the crane mode
### Update
- Update typings, remove alomost all @ts-ignore and any types.
## [2.2.1] - 2021-09-24
### Fixed
- Fixed scss with landscape version
- Fixed class active to hour/minutes
## [2.2.0] - 2021-09-23
### Added
- Version 24h
- Input validation
### Update
- Change scss styles
- Update types
## [2.1.1] - 2021-01-24
### Fixed
- Fixed problem with transition
## [2.1.0] - 2021-01-24
### Added
- Added new option <code>animated</code> to turn on/off animations on picker on start/close.
- Added new option <code>editable</code> to edit hour/minutes on the web mode.
- Added new option <code>preventDefault</code> to turn on/off defaults events to clock face events.
### Change
- Change docs example
- Removed unnecessary option <code>inputTemplate</code> from options types.
### Fixed
- Fixed problem with events on remove
## [2.0.2] - 2021-01-21
### Fixed
- Fixed problem with close event.
## [2.0.1] - 2021-01-18
### Fixed
- Fixed problem with keyboard icon click on mobile.
## [2.0.0] - 2021-01-17
### Changed
- Everything was rewritten to TypeScript
### Fixed
- Fixed problems with move events on mobile.
## [1.2.0] - 2020-11-05
### Changed
- Fixed return values of <code>type</code> in the events
### Added
- Added the possibility to have multiple open elements on init
[1.1.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...v1.1.0