ichec-angular-core 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ import { CookieService } from 'ngx-cookie-service';
|
|
|
9
9
|
import { Location } from '@angular/common';
|
|
10
10
|
import { ActivatedRoute, UrlSerializer } from '@angular/router';
|
|
11
11
|
import { MatDialog } from '@angular/material/dialog';
|
|
12
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
12
13
|
import { MatTable } from '@angular/material/table';
|
|
13
14
|
import { MatSort } from '@angular/material/sort';
|
|
14
15
|
import { MatButtonToggleChange } from '@angular/material/button-toggle';
|
|
@@ -591,6 +592,7 @@ declare abstract class EditView<D extends Identifiable, L extends Identifiable,
|
|
|
591
592
|
protected _userService: UserService;
|
|
592
593
|
protected form: IForm<C, D, U>;
|
|
593
594
|
protected itemService: ItemService<D, L, C, U>;
|
|
595
|
+
protected snackBar: MatSnackBar;
|
|
594
596
|
private uploadedFiles;
|
|
595
597
|
constructor(itemService: ItemService<D, L, C, U>, form: IForm<C, D, U>);
|
|
596
598
|
onInit(): void;
|
|
@@ -607,13 +609,18 @@ declare abstract class EditView<D extends Identifiable, L extends Identifiable,
|
|
|
607
609
|
protected createItem(): C;
|
|
608
610
|
protected updateItem(item: D): U;
|
|
609
611
|
protected postItem(): void;
|
|
612
|
+
protected onPostError(e: HttpErrorResponse): void;
|
|
610
613
|
protected putItem(item: D): void;
|
|
614
|
+
protected onPutError(e: HttpErrorResponse): void;
|
|
611
615
|
protected saveFiles(item: D): void;
|
|
612
616
|
saveFile(item: D, record: IFileRecord): void;
|
|
617
|
+
onPutFileError(e: HttpErrorResponse): void;
|
|
618
|
+
onPutFileErrorSnackbar(_e: HttpErrorResponse): void;
|
|
613
619
|
getNextFileForUpload(): IFileRecord | null;
|
|
614
620
|
private isCreateRoute;
|
|
615
621
|
private getItem;
|
|
616
622
|
protected onItemUpdated(item: D): void;
|
|
623
|
+
protected postItemUpdated(): void;
|
|
617
624
|
protected onOptions(options: IRestOptions): void;
|
|
618
625
|
protected onPostActions(_actions: Record<string, OptionAction>): void;
|
|
619
626
|
}
|