All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
8.1.0 (2024-11-28)
You can now use this library inside a standalone Component or an NgModule like so:
imports: [FlatpickrDirective],
providers: [provideFlatpickrDefaults()],
The FlatpickrModule
NgModule was marked as deprecated and will be removed in v9
8.0.0 (2024-08-21)
- 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
- upgrade angular v16 (#54) (ece59d4)
- upgrade angular v17 (#55) (0ef8674)
- upgrade to Angular 15 (#53) (e15af4a)
7.3.0 (2023-04-26)
7.2.0 (2023-04-14)
7.1.0 (2023-03-23)
7.0.0 (2022-08-15)
- angular 14 or higher is now required to use this package
6.6.0 (2021-07-06)
- expose the flatpickr instance so you can call its methods (7270193)
6.5.3 (2021-07-05)
- fix being able to select dates (fe324c8)
6.5.2 (2021-02-02)
- export FlatpickrDirective (1ca2abf)
6.5.1 (2020-09-18)
- handle directive being destroyed before the view is created (0fe12a3)
6.5.0 (2020-09-12)
- add monthSelectorType option (e12ee40)
6.4.0 (2020-08-21)
- add common options attribute (7731a7b)
6.3.1 (2020-03-01)
6.3.0 (2020-02-15)
- add defaultSeconds option (74c6ef6)
6.2.0 (2019-12-30)
- add showMonths option (2e64c2d)
6.1.1 (2019-09-17)
- set default locale (2f35353)
6.1.0 (2018-09-18)
- support for an alternate 'now' date (e.g. non-localtime for different TZ) (d4c3866)
6.0.0 (2018-07-02)
- update flatpickr to latest version (c407b3e)
flatpickrFactory
andFLATPICKR
injection token are no longer needed and were removed. To migrate just remove the first argument you pass toFlatpickrModule.forRoot
A minimum version of flatpickr 4.5.0 or higher is now required to use this library
5.0.2 (2018-06-20)
- parse date in same way as flatpickr does it (9e38827)
- directive: fix setDisabledState behaviour (eac1055)
5.0.1 (2018-05-16)
- mark the form control when touched (d3c783e)
- mark the input as disabled when used with reactive forms (2c1122c), closes #15
5.0.0 (2017-12-24)
- upgrade to angular 5 (d764610)
- Angular 5 or higher is now required to use this package
4.0.1 (2017-11-08)
- allow angular 5 peer dependency (684395e)
4.0.0 (2017-10-22)
- 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 {}
3.0.0 (2017-10-18)
- support latest flatpickr (b66000d)
- 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
2.0.1 (2017-08-17)
- update model value even if convertModelValue is false (cd5374a)
- use input event instead of change event to detect flatpicker changes (fc6f751)
2.0.0 (2017-08-11)
- upgrade flatpickr to v3 (ea73c66)
- 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
- initial implementation (acbd9ac)