ichec-angular-core 1.0.2 → 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
|
@@ -427,6 +427,7 @@ declare class ItemService<D extends Identifiable, L extends Identifiable = D, C
|
|
|
427
427
|
canDelete(): boolean;
|
|
428
428
|
canView(): boolean;
|
|
429
429
|
typePlural(): string;
|
|
430
|
+
get typeTitleCase(): string;
|
|
430
431
|
}
|
|
431
432
|
|
|
432
433
|
declare class ResolvedPermission {
|
|
@@ -581,15 +582,25 @@ declare abstract class DetailView<D extends Identifiable, L extends Identifiable
|
|
|
581
582
|
private _getItem;
|
|
582
583
|
}
|
|
583
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
|
+
|
|
584
593
|
declare abstract class EditView<D extends Identifiable, L extends Identifiable, C = D, U extends Identifiable = D> {
|
|
585
594
|
createMode: _angular_core.WritableSignal<boolean>;
|
|
586
595
|
heading: _angular_core.Signal<string>;
|
|
587
596
|
submitting: _angular_core.WritableSignal<boolean>;
|
|
597
|
+
errorType: _angular_core.WritableSignal<string>;
|
|
588
598
|
protected item: _angular_core.WritableSignal<D | null>;
|
|
589
599
|
protected fileKeys: string[];
|
|
590
600
|
protected _route: ActivatedRoute;
|
|
591
601
|
protected _location: Location;
|
|
592
602
|
protected _userService: UserService;
|
|
603
|
+
protected feedbackService: FeedbackService;
|
|
593
604
|
protected form: IForm<C, D, U>;
|
|
594
605
|
protected itemService: ItemService<D, L, C, U>;
|
|
595
606
|
protected snackBar: MatSnackBar;
|
|
@@ -610,13 +621,15 @@ declare abstract class EditView<D extends Identifiable, L extends Identifiable,
|
|
|
610
621
|
protected updateItem(item: D): U;
|
|
611
622
|
protected postItem(): void;
|
|
612
623
|
protected onPostError(e: HttpErrorResponse): void;
|
|
624
|
+
protected onPostErrorSnackBar(_e: HttpErrorResponse): void;
|
|
613
625
|
protected putItem(item: D): void;
|
|
614
626
|
protected onPutError(e: HttpErrorResponse): void;
|
|
627
|
+
protected onPutErrorSnackBar(_e: HttpErrorResponse): void;
|
|
615
628
|
protected saveFiles(item: D): void;
|
|
616
629
|
saveFile(item: D, record: IFileRecord): void;
|
|
630
|
+
getNextFileForUpload(): IFileRecord | null;
|
|
617
631
|
onPutFileError(e: HttpErrorResponse): void;
|
|
618
632
|
onPutFileErrorSnackbar(_e: HttpErrorResponse): void;
|
|
619
|
-
getNextFileForUpload(): IFileRecord | null;
|
|
620
633
|
private isCreateRoute;
|
|
621
634
|
private getItem;
|
|
622
635
|
protected onItemUpdated(item: D): void;
|