@klippa/ngx-enhancy-forms 14.20.4 → 14.21.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.
@@ -17,6 +17,7 @@ export declare class FormComponent implements OnInit, OnDestroy, OnChanges {
17
17
  errorMessageLocation: 'belowCaption' | 'rightOfCaption';
18
18
  formGroup: UntypedFormGroup;
19
19
  warnings: Map<AbstractControl, string | TemplateRef<any>>;
20
+ errors: Map<AbstractControl, string>;
20
21
  patchValueInterceptor: (values: any) => Promise<any>;
21
22
  onInjected: EventEmitter<Record<string, any>>;
22
23
  private activeControls;
@@ -25,6 +26,7 @@ export declare class FormComponent implements OnInit, OnDestroy, OnChanges {
25
26
  ngOnChanges(simpleChanges: SimpleChanges): void;
26
27
  ngOnDestroy(): void;
27
28
  private patchFormWarningsMap;
29
+ private patchFormErrorsMap;
28
30
  private addSupportForPatchValueInterceptor;
29
31
  registerControl(formControl: UntypedFormControl, formElement: FormElementComponent): void;
30
32
  unregisterControl(formControl: UntypedFormControl): void;
@@ -41,5 +43,5 @@ export declare class FormComponent implements OnInit, OnDestroy, OnChanges {
41
43
  private getRenderedFieldValuesFormArray;
42
44
  private setDisabledStatesForAllControls;
43
45
  static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "klp-form", never, { "readOnly": "readOnly"; "showErrorMessages": "showErrorMessages"; "errorMessageLocation": "errorMessageLocation"; "formGroup": "formGroup"; "warnings": "warnings"; "patchValueInterceptor": "patchValueInterceptor"; }, { "onInjected": "onInjected"; }, never, ["*"], false>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "klp-form", never, { "readOnly": "readOnly"; "showErrorMessages": "showErrorMessages"; "errorMessageLocation": "errorMessageLocation"; "formGroup": "formGroup"; "warnings": "warnings"; "errors": "errors"; "patchValueInterceptor": "patchValueInterceptor"; }, { "onInjected": "onInjected"; }, never, ["*"], false>;
45
47
  }
package/lib/types.d.ts CHANGED
@@ -9,6 +9,7 @@ export interface FormErrorMessages {
9
9
  pattern: string;
10
10
  matchPassword: string;
11
11
  date: string;
12
+ formLevel?: string;
12
13
  }
13
14
  export declare type CustomErrorMessages = Record<keyof FormErrorMessages, () => string>;
14
15
  export declare type KlpDateFormats = (format: string) => MatDateFormats;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klippa/ngx-enhancy-forms",
3
- "version": "14.20.4",
3
+ "version": "14.21.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },