Skip to content

Commit

Permalink
Update ngx-ui-scroll for ivy distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Feb 23, 2024
1 parent a0127a9 commit a2419d5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 28 deletions.
53 changes: 29 additions & 24 deletions scilog/package-lock.json

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

3 changes: 2 additions & 1 deletion scilog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
"ng2-charts": "^4.1.1",
"ngx-cookie-service": "^14.0.1",
"ngx-jdenticon": "^1.0.4",
"ngx-ui-scroll": "^1.11.0-rc.1",
"ngx-ui-scroll": "^3.2.0-beta.2",
"node-polyfill-webpack-plugin": "^2.0.1",
"prismjs": "^1.28.0",
"prismjs-components-importer": "^0.2.0",
"rxjs": "^7.8.0",
"stream-browserify": "^3.0.0",
"vscroll": "^1.6.0-beta.4",
"webpack": "^5.70.0",
"zone.js": "~0.11.4"
},
Expand Down
2 changes: 1 addition & 1 deletion scilog/src/app/logbook/core/scroll-base.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class ScrollBaseService {
}

remove(id: string) {
this.datasource.adapter.remove({ predicate: ({ data }) => data.id === id });
this.datasource.adapter.remove({ predicate: ({ data }) => (data as {id: string}).id === id });
}

reset() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TestBed } from '@angular/core/testing';
import { LogbookDataService } from '@shared/remote-data.service';

import { LogbookIconScrollService } from './logbook-icon-scroll-service.service';
import { AdapterMethodResult, IDatasource } from 'ngx-ui-scroll/src/component/interfaces';
import { IDatasource } from 'ngx-ui-scroll';

describe('LogbookIconScrollServiceService', () => {
let service: LogbookIconScrollService;
Expand All @@ -24,7 +24,7 @@ describe('LogbookIconScrollServiceService', () => {
});

it('should test getData', async () => {
service['datasource'] = {adapter: {relax: async () => ({} as AdapterMethodResult)}} as IDatasource;
service['datasource'] = {adapter: {relax: async () => ({})}} as IDatasource;
expect(await service.getData(0, 10, {})).toEqual([[1, 2, 3], [4, 5, 6], [7]]);
});

Expand Down

0 comments on commit a2419d5

Please sign in to comment.