angularx-flatpickr
Version:
An angular 17.0+ wrapper for flatpickr
329 lines (150 loc) • 10.6 kB
Markdown
# Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [8.1.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v8.0.0...v8.1.0) (2024-11-28)
### Features
* convert to standalone ([73d51bc](https://github.com/mattlewis92/angularx-flatpickr/commit/73d51bce7f565f86790c77fb4b261ec4bdf86649)), closes [#57](https://github.com/mattlewis92/angularx-flatpickr/issues/57) [#56](https://github.com/mattlewis92/angularx-flatpickr/issues/56)
## [8.0.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v7.3.0...v8.0.0) (2024-08-21)
### ⚠ BREAKING CHANGES
* support for angular 16 has been removed. Please use this package with angular 17 or higher
* support for angular 15 has been removed. Please use this package with angular 16 or higher
* support for angular 14 has been removed. Please use this package with angular 15 or higher
### Features
* upgrade angular v16 ([#54](https://github.com/mattlewis92/angularx-flatpickr/issues/54)) ([ece59d4](https://github.com/mattlewis92/angularx-flatpickr/commit/ece59d44bc0e07f2fe4e413e955725a4b5b4c937))
* upgrade angular v17 ([#55](https://github.com/mattlewis92/angularx-flatpickr/issues/55)) ([0ef8674](https://github.com/mattlewis92/angularx-flatpickr/commit/0ef86743567b009c1b078a4ecd798f2df693292f))
* upgrade to Angular 15 ([#53](https://github.com/mattlewis92/angularx-flatpickr/issues/53)) ([e15af4a](https://github.com/mattlewis92/angularx-flatpickr/commit/e15af4a7342365ac27c2868162ccd9490b1a8958))
## [7.3.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v7.2.0...v7.3.0) (2023-04-26)
### Features
* add allowInvalidPreload input ([#52](https://github.com/mattlewis92/angularx-flatpickr/issues/52)) ([33d5d24](https://github.com/mattlewis92/angularx-flatpickr/commit/33d5d24dbac221a924779e1963012e9bf4aaf3c3))
## [7.2.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v7.1.0...v7.2.0) (2023-04-14)
### Features
* add minTime and maxTime inputs ([#51](https://github.com/mattlewis92/angularx-flatpickr/issues/51)) ([0c92a9b](https://github.com/mattlewis92/angularx-flatpickr/commit/0c92a9b869490892a9fd763a6591a826f485a9b5))
## [7.1.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v7.0.0...v7.1.0) (2023-03-23)
### Features
* add ignoredFocusElements input ([#50](https://github.com/mattlewis92/angularx-flatpickr/issues/50)) ([da15442](https://github.com/mattlewis92/angularx-flatpickr/commit/da1544235c06037e6cffdd7e2178c6f18debc8bf))
## [7.0.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.6.0...v7.0.0) (2022-08-15)
### ⚠ BREAKING CHANGES
* angular 14 or higher is now required to use this package
### build
* upgrade to angular 14 ([#49](https://github.com/mattlewis92/angularx-flatpickr/issues/49)) ([bd5419f](https://github.com/mattlewis92/angularx-flatpickr/commit/bd5419fecbcb187f6643dfbf388a3732f68b7e8b))
<a name="6.6.0"></a>
# [6.6.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.5.3...v6.6.0) (2021-07-06)
### Features
* expose the flatpickr instance so you can call its methods ([7270193](https://github.com/mattlewis92/angularx-flatpickr/commit/7270193))
<a name="6.5.3"></a>
## [6.5.3](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.5.2...v6.5.3) (2021-07-05)
### Bug Fixes
* fix being able to select dates ([fe324c8](https://github.com/mattlewis92/angularx-flatpickr/commit/fe324c8))
<a name="6.5.2"></a>
## [6.5.2](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.5.1...v6.5.2) (2021-02-02)
### Bug Fixes
* export FlatpickrDirective ([1ca2abf](https://github.com/mattlewis92/angularx-flatpickr/commit/1ca2abf))
<a name="6.5.1"></a>
## [6.5.1](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.5.0...v6.5.1) (2020-09-18)
### Bug Fixes
* handle directive being destroyed before the view is created ([0fe12a3](https://github.com/mattlewis92/angularx-flatpickr/commit/0fe12a3))
<a name="6.5.0"></a>
# [6.5.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.4.0...v6.5.0) (2020-09-12)
### Features
* add monthSelectorType option ([e12ee40](https://github.com/mattlewis92/angularx-flatpickr/commit/e12ee40))
<a name="6.4.0"></a>
# [6.4.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.3.1...v6.4.0) (2020-08-21)
### Features
* add common options attribute ([7731a7b](https://github.com/mattlewis92/angularx-flatpickr/commit/7731a7b))
<a name="6.3.1"></a>
## [6.3.1](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.3.0...v6.3.1) (2020-03-01)
### Bug Fixes
* workaround bug in flatpickr where the alt input class wouldn't be set ([519caf3](https://github.com/mattlewis92/angularx-flatpickr/commit/519caf3)), closes [#40](https://github.com/mattlewis92/angularx-flatpickr/issues/40)
<a name="6.3.0"></a>
# [6.3.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.2.0...v6.3.0) (2020-02-15)
### Features
* add defaultSeconds option ([74c6ef6](https://github.com/mattlewis92/angularx-flatpickr/commit/74c6ef6))
<a name="6.2.0"></a>
# [6.2.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.1.1...v6.2.0) (2019-12-30)
### Features
* add showMonths option ([2e64c2d](https://github.com/mattlewis92/angularx-flatpickr/commit/2e64c2d))
<a name="6.1.1"></a>
## [6.1.1](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.1.0...v6.1.1) (2019-09-17)
### Bug Fixes
* set default locale ([2f35353](https://github.com/mattlewis92/angularx-flatpickr/commit/2f35353))
<a name="6.1.0"></a>
# [6.1.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v6.0.0...v6.1.0) (2018-09-18)
### Features
* support for an alternate 'now' date (e.g. non-localtime for different TZ) ([d4c3866](https://github.com/mattlewis92/angularx-flatpickr/commit/d4c3866))
<a name="6.0.0"></a>
# [6.0.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v5.0.2...v6.0.0) (2018-07-02)
### Features
* update flatpickr to latest version ([c407b3e](https://github.com/mattlewis92/angularx-flatpickr/commit/c407b3e))
### BREAKING CHANGES
* `flatpickrFactory` and `FLATPICKR` injection token are no longer needed and were removed. To migrate just remove the first argument you pass to `FlatpickrModule.forRoot`
A minimum version of flatpickr 4.5.0 or higher is now required to use this library
<a name="5.0.2"></a>
## [5.0.2](https://github.com/mattlewis92/angularx-flatpickr/compare/v5.0.1...v5.0.2) (2018-06-20)
### Bug Fixes
* parse date in same way as flatpickr does it ([9e38827](https://github.com/mattlewis92/angularx-flatpickr/commit/9e38827))
* **directive:** fix setDisabledState behaviour ([eac1055](https://github.com/mattlewis92/angularx-flatpickr/commit/eac1055))
<a name="5.0.1"></a>
## [5.0.1](https://github.com/mattlewis92/angularx-flatpickr/compare/v5.0.0...v5.0.1) (2018-05-16)
### Bug Fixes
* mark the form control when touched ([d3c783e](https://github.com/mattlewis92/angularx-flatpickr/commit/d3c783e))
* mark the input as disabled when used with reactive forms ([2c1122c](https://github.com/mattlewis92/angularx-flatpickr/commit/2c1122c)), closes [#15](https://github.com/mattlewis92/angularx-flatpickr/issues/15)
<a name="5.0.0"></a>
# [5.0.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v4.0.1...v5.0.0) (2017-12-24)
### Features
* upgrade to angular 5 ([d764610](https://github.com/mattlewis92/angularx-flatpickr/commit/d764610))
### BREAKING CHANGES
* Angular 5 or higher is now required to use this package
<a name="4.0.1"></a>
## [4.0.1](https://github.com/mattlewis92/angularx-flatpickr/compare/v4.0.0...v4.0.1) (2017-11-08)
### Bug Fixes
* allow angular 5 peer dependency ([684395e](https://github.com/mattlewis92/angularx-flatpickr/commit/684395e))
<a name="4.0.0"></a>
# [4.0.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v3.0.0...v4.0.0) (2017-10-22)
### Bug Fixes
* **aot:** allow the lib to compile with aot ([12c76e8](https://github.com/mattlewis92/angularx-flatpickr/commit/12c76e8)), closes [#7](https://github.com/mattlewis92/angularx-flatpickr/issues/7)
### BREAKING CHANGES
* **aot:** the value you pass to the forRoot method for flatpickr has changed. The new signature is:
```
import { NgModule } from '@angular/core';
import * as flatpickr from 'flatpickr';
import { FlatpickrModule, FLATPICKR } from 'angularx-flatpickr';
export function flatpickrFactory() {
return flatpickr;
}
@NgModule({
imports: [
FlatpickrModule.forRoot({
provide: FLATPICKR,
useFactory: flatpickrFactory
})
]
})
class MyModule {}
```
<a name="3.0.0"></a>
# [3.0.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v2.0.1...v3.0.0) (2017-10-18)
### Bug Fixes
* support latest flatpickr ([b66000d](https://github.com/mattlewis92/angularx-flatpickr/commit/b66000d))
### Features
* upgrade flatpickr to v4 ([0fa4335](https://github.com/mattlewis92/angularx-flatpickr/commit/0fa4335)), closes [#4](https://github.com/mattlewis92/angularx-flatpickr/issues/4) [#5](https://github.com/mattlewis92/angularx-flatpickr/issues/5)
### BREAKING CHANGES
* flatpickr is now a peer dependency of this module. You must now add it as an
explicit dependency, import it and pass it to the first argument of `FlatpickrModule.forRoot`
<a name="2.0.1"></a>
## [2.0.1](https://github.com/mattlewis92/angularx-flatpickr/compare/v2.0.0...v2.0.1) (2017-08-17)
### Bug Fixes
* update model value even if convertModelValue is false ([cd5374a](https://github.com/mattlewis92/angularx-flatpickr/commit/cd5374a))
* use input event instead of change event to detect flatpicker changes ([fc6f751](https://github.com/mattlewis92/angularx-flatpickr/commit/fc6f751))
<a name="2.0.0"></a>
# [2.0.0](https://github.com/mattlewis92/angularx-flatpickr/compare/v1.0.0...v2.0.0) (2017-08-11)
### Bug Fixes
* make the directive to work with reactive forms ([e619706](https://github.com/mattlewis92/angularx-flatpickr/commit/e619706)), closes [#1](https://github.com/mattlewis92/angularx-flatpickr/issues/1)
### Features
* upgrade flatpickr to v3 ([ea73c66](https://github.com/mattlewis92/angularx-flatpickr/commit/ea73c66))
### BREAKING CHANGES
* flatpickr has been upgraded to v3. The `utc` was removed from this lib as it was
removed from flatpickr
* the forms module is now required to use this component
<a name="1.0.0"></a>
# 1.0.0 (2017-04-07)
### Features
* initial implementation ([acbd9ac](https://github.com/mattlewis92/angularx-flatpickr/commit/acbd9ac))