@stemy/ngx-dynamic-form 13.3.11 → 13.3.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/ngx-dynamic-form/services/dynamic-form.service.mjs +13 -3
- package/esm2020/ngx-dynamic-form/utils/validation-errors.mjs +13 -18
- package/fesm2015/stemy-ngx-dynamic-form.mjs +30 -27
- package/fesm2015/stemy-ngx-dynamic-form.mjs.map +1 -1
- package/fesm2020/stemy-ngx-dynamic-form.mjs +32 -28
- package/fesm2020/stemy-ngx-dynamic-form.mjs.map +1 -1
- package/ngx-dynamic-form/services/dynamic-form.service.d.ts +2 -0
- package/ngx-dynamic-form/utils/validation-errors.d.ts +4 -4
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { DynamicFormArrayModel, DynamicFormArrayModelConfig } from "../utils/dyn
|
|
|
9
9
|
import { DynamicFormFieldSet, DynamicFormGroupModel, DynamicFormGroupModelConfig } from "../utils/dynamic-form-group.model";
|
|
10
10
|
import { DynamicFormOptionConfig, DynamicSelectModel, DynamicSelectModelConfig } from "../utils/dynamic-select.model";
|
|
11
11
|
import { DynamicBaseFormComponent } from "../components/base/dynamic-base-form.component";
|
|
12
|
+
import { AllValidationErrors } from "../utils/validation-errors";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class DynamicFormService extends Base {
|
|
14
15
|
readonly openApi: OpenApiService;
|
|
@@ -22,6 +23,7 @@ export declare class DynamicFormService extends Base {
|
|
|
22
23
|
serialize(formModel: DynamicFormModel, formGroup: FormGroup): Promise<any>;
|
|
23
24
|
notifyChanges(formModel: DynamicFormModel, formGroup: FormGroup): void;
|
|
24
25
|
showErrors(form: DynamicBaseFormComponent): void;
|
|
26
|
+
getErrors(form: DynamicBaseFormComponent): Promise<AllValidationErrors[]>;
|
|
25
27
|
protected patchValueRecursive(value: any, formModel: DynamicFormModel, formGroup: FormGroup): void;
|
|
26
28
|
protected serializeRecursive(formModel: DynamicFormModel, formGroup: FormGroup): Promise<any>;
|
|
27
29
|
protected notifyChangesRecursive(formModel: DynamicFormModel, formGroup: FormGroup, root: DynamicFormModel): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AbstractControl } from "@angular/forms";
|
|
2
2
|
export interface AllValidationErrors {
|
|
3
3
|
control: AbstractControl;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
path: string;
|
|
5
|
+
errorKey: string;
|
|
6
|
+
errorValue: any;
|
|
7
7
|
}
|
|
8
8
|
export interface FormGroupControls {
|
|
9
9
|
[key: string]: AbstractControl;
|
|
10
10
|
}
|
|
11
|
-
export declare function getFormValidationErrors(controls: FormGroupControls): AllValidationErrors[];
|
|
11
|
+
export declare function getFormValidationErrors(controls: FormGroupControls, parentPath?: string): AllValidationErrors[];
|