Skip to content

Commit

Permalink
feat: upgrade angular draggable droppable package
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The UMD entry point for the `angular-draggable-droppable` package has changed from `angular-draggable-droppable/dist/umd/angular-draggable-droppable.js` to `angular-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.
  • Loading branch information
Matt Lewis committed Dec 27, 2017
1 parent 26e2b53 commit fd30c39
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"@angular/core": ">=5.0.0 <7.0.0"
},
"dependencies": {
"angular-draggable-droppable": "^1.1.1",
"angular-draggable-droppable": "^2.0.0",
"angular-resizable-element": "^2.0.0",
"calendar-utils": "0.0.59",
"date-fns": "^1.28.5",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/day/calendar-day-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export interface DayViewEventResize {
[dragAxis]="{x: false, y: dayEvent.event.draggable && currentResizes.size === 0}"
[dragSnapGrid]="{y: eventSnapSize}"
[validateDrag]="validateDrag"
(dragStart)="dragStart(event, dayViewContainer)"
(dragPointerDown)="dragStart(event, dayViewContainer)"
(dragEnd)="eventDragged(dayEvent, $event.y)"
[style.marginTop.px]="dayEvent.top"
[style.height.px]="dayEvent.height"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/week/calendar-week-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface WeekViewEventResize {
[dragAxis]="{x: weekEvent.event.draggable && currentResizes.size === 0, y: false}"
[dragSnapGrid]="{x: dayColumnWidth}"
[validateDrag]="validateDrag"
(dragStart)="dragStart(weekViewContainer, event)"
(dragPointerDown)="dragStart(weekViewContainer, event)"
(dragEnd)="eventDragged(weekEvent, $event.x, dayColumnWidth)">
<mwl-calendar-week-view-event
[weekEvent]="weekEvent"
Expand Down

0 comments on commit fd30c39

Please sign in to comment.