@klippa/ngx-enhancy-forms 14.19.3 → 14.20.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.
- package/esm2020/lib/form/form-element/form-element.component.mjs +16 -7
- package/esm2020/lib/form/form.component.mjs +1 -1
- package/esm2020/lib/withTooltip.component.mjs +10 -3
- package/fesm2015/klippa-ngx-enhancy-forms.mjs +25 -8
- package/fesm2015/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/fesm2020/klippa-ngx-enhancy-forms.mjs +24 -8
- package/fesm2020/klippa-ngx-enhancy-forms.mjs.map +1 -1
- package/lib/form/form-element/form-element.component.d.ts +3 -1
- package/lib/form/form.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -45,7 +45,9 @@ export declare class FormElementComponent implements AfterViewInit {
|
|
|
45
45
|
getAttachedInput(): ValueAccessorBase<any>;
|
|
46
46
|
registerErrorHandler(error: string, templateRef: TemplateRef<any>): void;
|
|
47
47
|
registerCaption(templateRef: TemplateRef<any>): void;
|
|
48
|
-
getWarningToShow(): string
|
|
48
|
+
getWarningToShow(): string | TemplateRef<any>;
|
|
49
|
+
getWarningToShowAsTemplateRef(): TemplateRef<any>;
|
|
50
|
+
getWarningToShowIsTemplateRef(): boolean;
|
|
49
51
|
getErrorToShow(): string;
|
|
50
52
|
getCustomErrorHandler(error: string): {
|
|
51
53
|
error: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AbstractControl, UntypedFormArray, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { FormElementComponent } from './form-element/form-element.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -16,7 +16,7 @@ export declare class FormComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
16
16
|
showErrorMessages: boolean;
|
|
17
17
|
errorMessageLocation: 'belowCaption' | 'rightOfCaption';
|
|
18
18
|
formGroup: UntypedFormGroup;
|
|
19
|
-
warnings: Map<AbstractControl, string
|
|
19
|
+
warnings: Map<AbstractControl, string | TemplateRef<any>>;
|
|
20
20
|
patchValueInterceptor: (values: any) => Promise<any>;
|
|
21
21
|
onInjected: EventEmitter<Record<string, any>>;
|
|
22
22
|
private activeControls;
|
|
@@ -34,7 +34,7 @@ export declare class FormComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
34
34
|
private addFormControl;
|
|
35
35
|
private disableInactiveFormControl;
|
|
36
36
|
getFormElementByFormControl(control: AbstractControl): FormElementComponent;
|
|
37
|
-
getWarningToShow(control: AbstractControl): string
|
|
37
|
+
getWarningToShow(control: AbstractControl): string | TemplateRef<any>;
|
|
38
38
|
trySubmit(): Promise<any>;
|
|
39
39
|
private handleSubmission;
|
|
40
40
|
private getRenderedFieldValuesFormGroup;
|