@entropic-bond/crud-panel 4.2.1 → 4.3.0

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.
@@ -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
- failedValidationError(prop: ClassPropNames<T>): string | undefined;
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
  /**
@@ -100,5 +103,6 @@ export declare abstract class CrudController<T extends EntropicComponent> {
100
103
  private unsubscribeDocument;
101
104
  private _filter;
102
105
  private validator;
106
+ private globalValidator;
103
107
  }
104
108
  export {};