@klippa/ngx-enhancy-forms 14.22.10 → 14.22.12
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/esm2020/lib/form/form-element/form-element.component.mjs +36 -7
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +35 -6
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +35 -6
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/lib/form/form-element/form-element.component.d.ts +5 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, InjectionToken, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, InjectionToken, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AbstractControl, UntypedFormControl } from '@angular/forms';
|
|
3
3
|
import { ValueAccessorBase } from '../../elements/value-accessor-base/value-accessor-base.component';
|
|
4
4
|
import { CustomErrorMessages, FormErrorMessages } from '../../types';
|
|
@@ -6,7 +6,7 @@ import { FormComponent } from '../form.component';
|
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare const FORM_ERROR_MESSAGES: InjectionToken<CustomErrorMessages>;
|
|
8
8
|
export declare const DEFAULT_ERROR_MESSAGES: FormErrorMessages;
|
|
9
|
-
export declare class FormElementComponent implements AfterViewInit {
|
|
9
|
+
export declare class FormElementComponent implements AfterViewInit, OnDestroy {
|
|
10
10
|
private parent;
|
|
11
11
|
private customMessages;
|
|
12
12
|
private elRef;
|
|
@@ -34,12 +34,14 @@ export declare class FormElementComponent implements AfterViewInit {
|
|
|
34
34
|
private input;
|
|
35
35
|
errorFullyVisible: boolean;
|
|
36
36
|
private popupState;
|
|
37
|
+
private subscriptions;
|
|
37
38
|
constructor(parent: FormComponent, customMessages: CustomErrorMessages, elRef: ElementRef);
|
|
38
39
|
ngAfterViewInit(): Promise<void>;
|
|
39
40
|
shouldShowErrorMessages(): boolean;
|
|
40
41
|
substituteParameters(message: string, parameters: Record<string, any>): string;
|
|
41
42
|
registerControl(formControl: UntypedFormControl, input?: ValueAccessorBase<any>): void;
|
|
42
43
|
determinePopupState(): void;
|
|
44
|
+
private setUpErrorTooltipListeners;
|
|
43
45
|
unregisterControl(formControl: UntypedFormControl): void;
|
|
44
46
|
getAttachedControl(): AbstractControl;
|
|
45
47
|
getAttachedInput(): ValueAccessorBase<any>;
|
|
@@ -67,6 +69,7 @@ export declare class FormElementComponent implements AfterViewInit {
|
|
|
67
69
|
closePopup(): void;
|
|
68
70
|
togglePopup(): void;
|
|
69
71
|
setErrorTooltipOffset: () => void;
|
|
72
|
+
ngOnDestroy(): void;
|
|
70
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormElementComponent, [{ optional: true; }, { optional: true; }, null]>;
|
|
71
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormElementComponent, "klp-form-element", never, { "caption": "caption"; "direction": "direction"; "captionSpacing": "captionSpacing"; "verticalAlignment": "verticalAlignment"; "spaceDistribution": "spaceDistribution"; "swapInputAndCaption": "swapInputAndCaption"; "errorMessageAsTooltip": "errorMessageAsTooltip"; }, {}, ["fieldInput"], ["*"], false>;
|
|
72
75
|
}
|