All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
0.24.1 (2018-05-09)
0.24.0 (2018-04-17)
0.23.7 (2018-03-15)
0.23.6 (2018-02-12)
0.23.5 (2018-02-11)
0.23.4 (2018-02-11)
0.23.3 (2018-01-29)
0.23.2 (2018-01-10)
0.23.1 (2018-01-02)
- restore compatibility with system.js (1b3c27a)
0.23.0 (2018-01-02)
- date-formatter: use the angular date formatter by default (bd68045)
- export drag+drop and resizable modules for use in custom templates (579a51a), closes #419
- upgrade angular draggable droppable package (fd30c39)
- upgrade angular resizable element (26e2b53)
- upgrade calendar-utils (fe59aad)
- upgrade to angular 5 (775a62e), closes #417
- use ng-packagr for bundling the package (5744e9b), closes #408
- day-view: expose the period on the beforeViewRender output (24739ce), closes #418
- month-view: call beforeViewRender with the view period (a9ab6d9), closes #418
- week-view: expose the view period on beforeViewRender (cb73eff), closes #418
- angular 5 or higher is now required to use this package
- if using a locale other than english you will need to import the appropriate locale data somewhere in your app:
import { registerLocaleData } from '@angular/common';
import localeFr from '@angular/common/locales/fr'; // to register french
registerLocaleData(localeFr);
- date-formatter: the angular date formatter is now used by default to format dates instead of the formatter that requires the Intl polyfill
- day-view: the event signature of the beforeViewRender output has changed from $event.body to $event.body.hourGrid
- week-view: for people extending the root week view component, eventRows is now named view.eventRows
- the getWeekView function return signature has changed from an array of event rows to an object with the eventRows property set to the previous arrat value. This should only affect people overriding the CalendarUtils.getWeekView method.
- the umd entry path has changed from
angular-calendar/umd/angular-calendar.js
toangular-calendar/bundles/angular-calendar.umd.js
. System.js users will need to update their config - The UMD entry point for the
angular-draggable-droppable
package has changed fromangular-draggable-droppable/dist/umd/angular-draggable-droppable.js
toangular-draggable-droppable/bundles/angular-draggable-droppable.umd.js
. System.js users will need to update their config accordingly.
Also the dragStart output was renamed to dragPointerDown. Users using a custom template for the root day or week view components will need to adjust their templates accordingly.
- The UMD entry point for the
angular-resizable-element
package has changed fromangular-resizable-element/dist/umd/angular-resizable-element.js
toangular-resizable-element/bundles/angular-resizable-element.umd.js
. System.js users will need to update their config accordingly. - System.js users will now need to add an entry for the
positioning
package to their config'positioning': 'npm:positioning/dist/umd/positioning.js'
.
0.22.3 (2017-12-24)
- allow event actions to work on draggable events (c4d6abc), closes #373
- restore TS < 2.4 compatibility (fbfe430)
0.22.2 (2017-12-23)
- restore TS < 2.4 compatibility (fbfe430)
0.22.1 (2017-11-22)
0.22.0 (2017-11-19)
- day-view: allow the hour segment height to be customised (688693c), closes #360
- add individual month / week / day modules (e87ae23), closes #361
- add runtime validation of event properties (194fe59), closes #362
- introduce angular date formatter (cd40235), closes #376
- styles: move css files into the css root directory (72ae546)
- move umd bundle up and out of the dist directory (59d0049)
- styles: css styles have moved from:
node_modules/angular-calendar/dist/css/angular-calendar.css
to
node_modules/angular-calendar/css/angular-calendar.css
- The umd path for system.js users has changed from:
node_modules/angular-calendar/dist/umd/angular-calendar.js
to
node_modules/angular-calendar/umd/angular-calendar.js
0.21.3 (2017-10-21)
- allow angular 5 peer dependency (d178614)
0.21.2 (2017-09-07)
- monthView: allow adding extra weeks to the month view (529ebd3)
0.21.1 (2017-08-31)
0.21.0 (2017-08-29)
- monthView: don't fire dayClicked output when clicking on an event and using hammerjs (283c50e), closes #318
0.20.1 (2017-08-14)
- monthView: make collapse animation smoother (7b52366)
0.20.0 (2017-08-06)
- dayView: add the event.cssClass to the event container instead of the event itself (591dd4a), closes #299
- monthView: only call beforeViewRender once when refreshing the view (3dd3118), closes #293
- weekView: custom event
cssClass
's are now added to the event container instead of the event i (712ded8)
- weekView: you may need to adjust your CSS slightly to account for this change. See the day view breaking change for how to migrate.
- dayView: the
event.cssClass
property is now added to the parent container element, rather than the event itself. You may need to update your CSS.
Before:
.my-custom-event-class {}
After:
.my-custom-event-class .cal-event {}
People using custom day event event templates can also remove these lines from their template:
[class.cal-starts-within-day]="!dayEvent.startsBeforeDay"
[class.cal-ends-within-day]="!dayEvent.endsAfterDay"
[ngClass]="dayEvent.event.cssClass"
0.19.0 (2017-07-14)
0.18.3 (2017-06-28)
- tooltipTemplate: ensure custom tooltip template is available to other custom templates (ce14b96)
0.18.2 (2017-06-26)
0.18.1 (2017-06-25)
- Missed a breaking change that wasn't included in 0.18.0
0.18.0 (2017-06-25)
- dayView: introduce the
beforeViewRender
output (cfab254) - monthView: allow a css class to be added to a column header (abf02d8)
- monthView: introduce the
beforeViewRender
output (c9a2366) - tooltip: allow the event tooltip templates to be customised (82faaf4), closes #249
- weekendDays: allow weekend days to be customised (581b9a8), closes #255
- weekView: allow a custom css class to be added to a column header (068d08b), closes #222
- weekView: revert allowDragOutside feature (ac70656)
- upgrade calendar-utils (0dd602b)
- weekView: introduce the
dayHeaderClicked
output (2f11094), closes #222
- monthView: the
dayModifier
input has been replaced with a more powerfulbeforeViewRender
output. See the demo for an example of how to migrate your code. - dayView: the
hourSegmentModifier
has been replaced with thebeforeViewRender
output. - For system.js users only, the UMD path to the
calendar-utils
module has changed fromcalendar-utils/dist/umd/calendarUtils.js
tocalendar-utils/dist/umd/calendar-utils.js
- weekView: the
allowDragOutside
option has been removed from the week view as this can be implemented in user land. Please see this plunker for how to introduce it yourself: https://plnkr.co/edit/5KyUBC0lnfMsYMcVFAR9?p=preview - weekView: the
dayClicked
output has been replaced with thedayHeaderClicked
output. To migrate:
Before:
(dayClicked)="clickedDate = $event.date"
After:
(dayHeaderClicked)="clickedDate = $event.day.date"
0.17.4 (2017-06-21)
- various fixes when excluding days on the week and month views (58ce981)
0.17.3 (2017-06-12)
0.17.2 (2017-06-12)
- weekView: use correct event span when the the week doesn't start on a sunday (f19e970)
0.17.1 (2017-06-10)
- dayView: allow events to be resized that are next to each other (f627b8e), closes #225
- weekView: allow events to be resized that are next to each other (01b776c)
0.17.0 (2017-05-29)
- dayView: ensure all day event actions are always visible (132d990)
- dayView: ensure event actions are always visible (445b74f)
- weekView: stop events pushing others along when resizing (e6e02c5), closes #191
- meta: add
CalendarEvent
meta
property for storing arbritary data (43b0124), closes #218 - meta: make the event meta property generic so it can be strongly typed (d74c8e8)
- weekView: show event actions (7e7af92), closes #219
- Typescript 2.3 or higher is now required to use this library
0.16.0 (2017-05-27)
0.15.4 (2017-05-21)
- monthView: ensure events are dropped onto the correct dates (af48ed2)
0.15.3 (2017-05-21)
0.15.2 (2017-05-18)
0.15.1 (2017-05-17)
- refresh: use markForCheck instead of detectChanges (16dc938)
0.15.0 (2017-05-14)
- dayView: correct events dimensions for apps without bootstrap (977c344), closes #201
- tooltip: avoid ExpressionChangedAfterItHasBeenCheckedError when sometimes showing the tooltip (f9776c6), closes #196
- tooltip: position the tooltip correctly when using AoT (4531ebc)
- touch: use tap event instead of click if hammerjs is loaded (665520e), closes #203
- allow calendar-utils functions to be overridden (35ae95a), closes #199
- allow overriding of providers via the calendar modules forRoot method (847212e), closes #205
- if not using
CalendarModule.forRoot()
you must explicitly add theCalendarUtils
provider to your module declaration
0.14.0 (2017-04-21)
- weekView: add support for minute level precision on week view events (25d6933)
0.13.6 (2017-04-21)
- dayView: respect eventSnapSize when dragging events (028005f)
- dayView: respect eventSnapSize when resizing events (c0be926), closes #188
0.13.5 (2017-04-14)
0.13.4 (2017-04-10)
- dayView: fix resizing of events (18b573f)
0.13.3 (2017-04-10)
0.13.2 (2017-04-10)
- monthView: handle DST changes in the middle of the month (fcbca8a)
0.13.1 (2017-04-09)
0.13.0 (2017-04-07)
0.12.0 (2017-04-05)
- dayView: allow the all day event template to be customised (d542d13)
- dayView: allow the hour segment template to be customised (149b605), closes #172
0.11.0 (2017-03-29)
0.10.1 (2017-03-25)
- allow events array to be null (bcdf335)
0.10.0 (2017-03-24)
- ng4: angular 4.0 or higher is now required to use this library. The upgrade should be seamless for most users.
0.9.1 (2017-03-23)
0.9.0 (2017-03-21)
- monthView: allow open day events template to be customised (ef5a37f)
- monthView: allow the cell templates to be customised (4603e6b)
- monthView: allow the header template to be customised (53db16b)
- weekView: allow the header template to be customised (595a667)
- expose day, week and month view components so they can be extended with inheritance (426c287)
0.8.0 (2017-03-12)
- excludeDays: add an option to hide days on the month and week views (e296357)
0.7.3 (2017-03-04)
- loosen angular peer dependency to support angular 4 (e00c115)
- dayView: allow dropping of external events (86e5d06), closes #150
- monthView: add helper classes to the month view header (0008a83), closes #152
- weekView: allow external events to be dropped on the column headers (83266f7), closes #150
0.7.2 (2017-02-03)
- disable drag events when resizing (43c128c)
0.7.1 (2017-02-01)
- add all declarations to exports (Please note that these sub components will be subject to breaking changes in the next release once #16 lands, however will eventually become part of the public API. Use at your own risk!) (f20a991)
0.7.0 (2017-01-28)
0.6.2 (2017-01-06)
- export the CalendarMonthViewDay interface (4142231)
0.6.1 (2016-12-30)
- update the event title in the UI when it changes (3b611bf), closes #116
- monthView: cell events should be clickable (d61719e), closes #111
0.6.0 (2016-12-21)
- draggable: if not using CalendarModule.forRoot() and manually adding providers you must now also include the DraggableHelper from the angular-draggable-droppable module
Before:
import {CalendarModule, CalendarEventTitleFormatter, CalendarDateFormatter} from 'angular-calendar';
imports: [
CalendarModule
],
providers: [
CalendarEventTitleFormatter,
CalendarDateFormatter
]
After:
import {CalendarModule, CalendarEventTitleFormatter, CalendarDateFormatter} from 'angular-calendar';
import {DraggableHelper} from 'angular-draggable-droppable';
imports: [
CalendarModule
],
providers: [
CalendarEventTitleFormatter,
CalendarDateFormatter,
DraggableHelper
]
0.5.0 (2016-12-18)
- dayView: don't allow events to be resized outside of the calendar (78eb123), closes #99
- dayView: use correct event height when resizing from the top (1c5e74f)
- weekView: dont allow events to be resized outside of the calendar component (007fbc5), closes #99
- add drag and drop support (#100) (bbc02f3), closes #10 #102
- remove change detection strategy from all components (#101) (36458ab), closes #94
- rename
CalendarEventTitle
service toCalendarEventTitleFormatter
(45c0142)
- the
CalendarEventTitle
service has been renamed toCalendarEventTitleFormatter
- A dependency on the
angular-draggable-droppable
library has been added. System.js users will need to add this to their config:
'angular-draggable-droppable': 'npm:angular-draggable-droppable/dist/umd/angular-draggable-droppable.js'
- For enhanced performance it is recommended that you add
changeDetection: ChangeDetectionStrategy.OnPush
on all components that use this library. This will restrict change detection to only run when the components inputs change
0.4.4 (2016-12-07)
- date-fns: upgrade date-fns to fix module not found TS errors (733ed3e)
0.4.3 (2016-12-05)
0.4.2 (2016-12-05)
- botched release
0.4.1 (2016-11-25)
- date-fns: fix duplicate module declaration typescript errors (24be6f3)
0.4.0 (2016-11-04)
- dayView: add tooltips to events (2cc7929), closes #75
- dayView: allow resizing of events (95b9033)
- weekView: support resizing of events (c034a9d), closes #9
- rename module from angular2-calendar to angular-calendar (fa1ef98), closes #69
- The module has now been renamed from angular2-calendar to angular-calendar
The path to the sass and UMD builds has now changed. To migrate change all occurences of angular2-calendar
to angular-calendar
- dayView: day view events now have tooltips by default
- aot: angular 2.1.2 or higher is now required for AOT to work
- dayView: A dependency on the
angular-resizable-element
library has now been added. System.js users will need to add this to their config
'angular-resizable-element': 'npm:angular-resizable-element/dist/umd/angular-resizable-element.js',
Part of #9
0.3.6 (2016-10-30)
- dayView: fix event column stacking (4570fc6), closes #80
- dayView: show all day events that start outside of the day view start (edb2614), closes #79
0.3.5 (2016-10-13)
- system.js: use date-fns index imports for system.js users (096d6a2)
0.3.4 (2016-10-08)
- umd: more robust fix for umd build (135116a)
0.3.3 (2016-10-07)
0.3.2 (2016-10-06)
- rollup: allow the module to be bundled with rollup (e6deeea)
0.3.1 (2016-10-05)
- support building with rollup (428e254)
0.3.0 (2016-10-05)
- only versions of angular >= 2.0.0 are supported (6b1700b), closes #66
- remove positioning sourcemap from umd build (d7ea482), closes #66
- add CalendarModule.forRoot so providers dont need to be specified (ee54b8f)
- no RC versions of angular are supported. This was probably introduced in 0.2.x of this module, but clarifying here as a distinct breaking change
0.2.7 (2016-10-05)
- use commonjs date-fns imports for rollup (7e758ba)
0.2.6 (2016-09-28)
- typings: dont include reference to core-js (4daac27)
0.2.5 (2016-09-24)
- aot: export all components for aot (f701f86)
0.2.4 (2016-09-24)
- aot: export components so aot works (8b7ffc7)
0.2.3 (2016-09-24)
- aot: fix typescript errors when doing aot (c5ac3f9)
0.2.2 (2016-09-23)
- typings and esm paths (b70b92a)
0.2.1 (2016-09-23)
- allow any 1.x version of date-fns to be installed (726aaac)
- esm: dont import sass files in the esm build (00120f9)
- ng-bootstrap: add ng-bootstrap dependency to fix es module imports (af91adc)
0.2.0 (2016-09-23)
- build: support offline template compilation (dc12621)
- replace the moment dependency with the date-fns library (c147827), closes #48
- 1/ The
dayClicked
,dayModifier
andhourSegmentModifier
output objects now return pure date objects instead of moments
2/ If using the CalendarMomentDateFormatter
you must now also provide moment to the calendar like so
import * as moment from 'moment';
import {
CalendarMomentDateFormatter,
CalendarDateFormatter,
MOMENT
} from './../angular2-calendar';
...
providers: [
{provide: CalendarDateFormatter, useClass: CalendarMomentDateFormatter},
{provide: MOMENT, useValue: moment}
]
3/ The week start day is now no longer determined by moment. You must manually pass it to the month and week view components like so
// the first day of the week is Monday
[weekStartsOn]="1"
4/ If using this library without a module bundler you must make sure the date-fns library is included in a script tag
- build: The dist file paths have changed. To migrate
Before
import 'angular2-calendar/css/angular2-calendar.css';
After:
import 'angular2-calendar/dist/css/angular2-calendar.css';
For System.js users the path to the UMD files has changed:
Before:
node_modules/angular2-calendar/angular2-calendar.js
After:
node_modules/angular2-calendar/dist/umd/angular2-calendar.js
Webpack / browserify users aren't affected
0.1.3 (2016-09-13)
- peerDependencies: support any version of angular >= RC5 (2698bcf)
0.1.2 (2016-09-08)
0.1.1 (2016-09-03)
- monthView: fix the eventClicked output (745fff7)
Initial release