All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
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)