Skip to content

Commit

Permalink
Merge pull request #94 from kreuzerk/feature/angular13deps
Browse files Browse the repository at this point in the history
chore: 🤖 (deps) upgrade deps to v13
  • Loading branch information
nivekcode authored Mar 3, 2022
2 parents ca2a3e6 + d324fc9 commit 592a215
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 33 deletions.
35 changes: 16 additions & 19 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
"@angular/platform-browser": "~13.2.4",
"@angular/platform-browser-dynamic": "~13.2.4",
"@angular/router": "~13.2.4",
"rxjs": "~6.5.5",
"tsickle": "^0.39.1",
"tslib": "^2.0.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions projects/ng-sortgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.1",
"license": "MIT",
"peerDependencies": {
"@angular/common": "^12.0.0",
"@angular/core": "^12.0.0"
"@angular/common": "^13.0.0",
"@angular/core": "^13.0.0"
},
"repository": {
"type": "git",
Expand Down
9 changes: 2 additions & 7 deletions projects/ng-sortgrid/src/lib/ngsg-item.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ describe('NgsgItemDirective', () => {
} as any;
const ngsgEventService = new NgsgEventsService();
const scrollHelperService = {
scrollIfNecessary: () => { },
scrollIfNecessary: () => {},
} as any;
const classService = {
addActiveClass: jest.fn()
addActiveClass: jest.fn(),
} as any;

beforeEach(() => {
Expand All @@ -48,11 +48,6 @@ describe('NgsgItemDirective', () => {
);
});

it('should not set the draggable attribute on the elment', () => {
sut.ngAfterViewInit();
expect((elementRef.nativeElement as any).draggable).toBeFalsy();
});

it('should not set selectedElements if the event did not occur on the host', () => {
const event = {
target: {
Expand Down
4 changes: 2 additions & 2 deletions projects/ng-sortgrid/src/lib/ngsg-item.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class NgsgItemDirective implements OnInit, OnChanges, AfterViewInit, OnDe
}

ngOnDestroy(): void {
this.destroy$.next();
this.destroy$.next(true);
this.destroy$.complete();
}

Expand Down Expand Up @@ -146,7 +146,7 @@ export class NgsgItemDirective implements OnInit, OnChanges, AfterViewInit, OnDe
const currentOrder = this.reflectService.reflectChanges(this.ngSortGridGroup, this.el.nativeElement);
this.sorted.next({previousOrder, currentOrder});
this.ngsgStore.resetSelectedItems(this.ngSortGridGroup);
this.ngsgEventService.dropped$.next();
this.ngsgEventService.dropped$.next(true);
}

@HostListener('click')
Expand Down

0 comments on commit 592a215

Please sign in to comment.