@klippa/ngx-enhancy-forms 14.20.5 → 14.22.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;
@@ -1,12 +1,16 @@
1
- import { ElementRef } from "@angular/core";
1
+ import { ElementRef, OnChanges, SimpleChanges, TemplateRef } from "@angular/core";
2
2
  import * as i0 from "@angular/core";
3
- export declare class WithTooltipDirective {
3
+ export declare class WithTooltipDirective implements OnChanges {
4
+ private el;
4
5
  private div;
5
6
  private triangle;
6
7
  private triangleWhite;
7
8
  klpWithTooltip: 'orange' | 'black';
8
9
  tooltipText: string;
10
+ tooltipTemplate: TemplateRef<any>;
11
+ private templateInstance;
9
12
  constructor(el: ElementRef);
13
+ ngOnChanges(simpleChanges: SimpleChanges): void;
10
14
  static ɵfac: i0.ɵɵFactoryDeclaration<WithTooltipDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<WithTooltipDirective, "[klpWithTooltip]", never, { "klpWithTooltip": "klpWithTooltip"; "tooltipText": "tooltipText"; }, {}, never, never, false>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<WithTooltipDirective, "[klpWithTooltip]", never, { "klpWithTooltip": "klpWithTooltip"; "tooltipText": "tooltipText"; "tooltipTemplate": "tooltipTemplate"; }, {}, never, never, false>;
12
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klippa/ngx-enhancy-forms",
3
- "version": "14.20.5",
3
+ "version": "14.22.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },