ichec-angular-core 1.0.1 → 1.0.3
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';
|
|
@@ -426,6 +427,7 @@ declare class ItemService<D extends Identifiable, L extends Identifiable = D, C
|
|
|
426
427
|
canDelete(): boolean;
|
|
427
428
|
canView(): boolean;
|
|
428
429
|
typePlural(): string;
|
|
430
|
+
get typeTitleCase(): string;
|
|
429
431
|
}
|
|
430
432
|
|
|
431
433
|
declare class ResolvedPermission {
|
|
@@ -580,17 +582,28 @@ declare abstract class DetailView<D extends Identifiable, L extends Identifiable
|
|
|
580
582
|
private _getItem;
|
|
581
583
|
}
|
|
582
584
|
|
|
585
|
+
declare class FeedbackService extends ItemWithUserService<IFeedbackDetail, IFeedbackDetail, IFeedbackCreate> {
|
|
586
|
+
readonly _url: string;
|
|
587
|
+
typename: string;
|
|
588
|
+
sendError(e: HttpErrorResponse): void;
|
|
589
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeedbackService, never>;
|
|
590
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<FeedbackService>;
|
|
591
|
+
}
|
|
592
|
+
|
|
583
593
|
declare abstract class EditView<D extends Identifiable, L extends Identifiable, C = D, U extends Identifiable = D> {
|
|
584
594
|
createMode: _angular_core.WritableSignal<boolean>;
|
|
585
595
|
heading: _angular_core.Signal<string>;
|
|
586
596
|
submitting: _angular_core.WritableSignal<boolean>;
|
|
597
|
+
errorType: _angular_core.WritableSignal<string>;
|
|
587
598
|
protected item: _angular_core.WritableSignal<D | null>;
|
|
588
599
|
protected fileKeys: string[];
|
|
589
600
|
protected _route: ActivatedRoute;
|
|
590
601
|
protected _location: Location;
|
|
591
602
|
protected _userService: UserService;
|
|
603
|
+
protected feedbackService: FeedbackService;
|
|
592
604
|
protected form: IForm<C, D, U>;
|
|
593
605
|
protected itemService: ItemService<D, L, C, U>;
|
|
606
|
+
protected snackBar: MatSnackBar;
|
|
594
607
|
private uploadedFiles;
|
|
595
608
|
constructor(itemService: ItemService<D, L, C, U>, form: IForm<C, D, U>);
|
|
596
609
|
onInit(): void;
|
|
@@ -607,13 +620,20 @@ declare abstract class EditView<D extends Identifiable, L extends Identifiable,
|
|
|
607
620
|
protected createItem(): C;
|
|
608
621
|
protected updateItem(item: D): U;
|
|
609
622
|
protected postItem(): void;
|
|
623
|
+
protected onPostError(e: HttpErrorResponse): void;
|
|
624
|
+
protected onPostErrorSnackBar(_e: HttpErrorResponse): void;
|
|
610
625
|
protected putItem(item: D): void;
|
|
626
|
+
protected onPutError(e: HttpErrorResponse): void;
|
|
627
|
+
protected onPutErrorSnackBar(_e: HttpErrorResponse): void;
|
|
611
628
|
protected saveFiles(item: D): void;
|
|
612
629
|
saveFile(item: D, record: IFileRecord): void;
|
|
613
630
|
getNextFileForUpload(): IFileRecord | null;
|
|
631
|
+
onPutFileError(e: HttpErrorResponse): void;
|
|
632
|
+
onPutFileErrorSnackbar(_e: HttpErrorResponse): void;
|
|
614
633
|
private isCreateRoute;
|
|
615
634
|
private getItem;
|
|
616
635
|
protected onItemUpdated(item: D): void;
|
|
636
|
+
protected postItemUpdated(): void;
|
|
617
637
|
protected onOptions(options: IRestOptions): void;
|
|
618
638
|
protected onPostActions(_actions: Record<string, OptionAction>): void;
|
|
619
639
|
}
|