@entropic-bond/crud-panel 4.2.1 → 4.3.1
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/lib/crud-controller.d.ts
CHANGED
|
@@ -21,8 +21,11 @@ export declare abstract class CrudController<T extends EntropicComponent> {
|
|
|
21
21
|
get requiredProperties(): ClassPropNames<T>[];
|
|
22
22
|
addValidator<P extends ClassPropNames<T>>(prop: P, validatorFn: ValidatorFunction<T[P]>, errorMessage?: string): void;
|
|
23
23
|
removeValidator(prop: ClassPropNames<T>): void;
|
|
24
|
-
|
|
24
|
+
addGlobalValidator(validatorFn: ValidatorFunction<T>, errorMessage?: string): void;
|
|
25
|
+
removeGlobalValidator(): void;
|
|
26
|
+
failedValidationError(prop?: ClassPropNames<T>): string | undefined;
|
|
25
27
|
private validateProp;
|
|
28
|
+
private validateGlobal;
|
|
26
29
|
protected storeDoc(): Promise<void>;
|
|
27
30
|
protected deleteDoc(): Promise<void>;
|
|
28
31
|
/**
|
|
@@ -95,10 +98,10 @@ export declare abstract class CrudController<T extends EntropicComponent> {
|
|
|
95
98
|
protected progressController: ProgressController;
|
|
96
99
|
protected onChangeHdl: Observable<CrudControllerEvent<T>>;
|
|
97
100
|
protected onErrorHdl: Observable<Error>;
|
|
98
|
-
private _model;
|
|
99
101
|
private _document;
|
|
100
102
|
private unsubscribeDocument;
|
|
101
103
|
private _filter;
|
|
102
104
|
private validator;
|
|
105
|
+
private globalValidator;
|
|
103
106
|
}
|
|
104
107
|
export {};
|