Upgrade Angular to 9. Update js dependencies to latest versions. Remove js dependencies that are no longer required. Replace angular client gen with official swagger generator. Change build scripts and adapt code to new client.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { DataSource } from '@angular/cdk/table';
|
||||
import { CollectionViewer } from '@angular/cdk/collections';
|
||||
import { Observable, BehaviorSubject, Subscription } from 'rxjs';
|
||||
import { ApiClientService } from '../../api';
|
||||
import { DefaultService } from '../../api/api/api';
|
||||
import { HttpResponse } from '@angular/common/http';
|
||||
import { MatPaginator } from '@angular/material';
|
||||
import { MatPaginator } from '@angular/material/paginator';
|
||||
|
||||
export interface Page<E> {
|
||||
offset: number;
|
||||
@@ -45,7 +45,7 @@ export abstract class AbstractPageService<D, P extends Page<D>> extends DataSour
|
||||
private subscriptions = 0;
|
||||
readonly loading = new BehaviorSubject<boolean>(false);
|
||||
|
||||
constructor(protected apiClientService: ApiClientService) {
|
||||
constructor(protected apiClientService: DefaultService) {
|
||||
super();
|
||||
this.page.subscribe((page) => {
|
||||
this.elements.next(page.elements);
|
||||
@@ -93,7 +93,7 @@ export abstract class AbstractReferencePageService<D, P extends Page<D>, R> exte
|
||||
readonly references: Map<number, R> = new Map<number, R>();
|
||||
private referenceRequests = 0;
|
||||
|
||||
constructor(protected apiClientService: ApiClientService) {
|
||||
constructor(protected apiClientService: DefaultService) {
|
||||
super(apiClientService);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MatSnackBar } from '@angular/material';
|
||||
import { MatSnackBar } from '@angular/material/snack-bar';
|
||||
|
||||
export class Snackbars {
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { MatTable } from '@angular/material';
|
||||
import { MatTable } from '@angular/material/table';
|
||||
import { ElementRef } from '@angular/core';
|
||||
|
||||
export interface TableColumn {
|
||||
|
||||
Reference in New Issue
Block a user