@wemake4u/form-player-se 1.0.25 → 1.0.26
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/esm2022/lib/dynamic-form/dynamic-form.component.mjs +51 -23
- package/esm2022/lib/services/dialog.service.mjs +17 -2
- package/esm2022/lib/services/form.service.mjs +28 -4
- package/fesm2022/wemake4u-form-player-se.mjs +93 -26
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/dynamic-form/dynamic-form.component.d.ts +2 -0
- package/lib/services/dialog.service.d.ts +1 -0
- package/lib/services/form.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -325,6 +325,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
325
325
|
set activeNav(value: number);
|
|
326
326
|
getFormGroup(path: string | null): FormGroup;
|
|
327
327
|
getFormStatus(form: any, index: number): SirioStepperProgressStatus;
|
|
328
|
+
getErrors(form: any): number;
|
|
328
329
|
activateForm(event: NgxSirioEvent<SirioStepperProgressBarComponent>): void;
|
|
329
330
|
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
330
331
|
evaluateTemplate(value: string | null): string;
|
|
@@ -335,6 +336,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
335
336
|
private _forms;
|
|
336
337
|
private _activeNav;
|
|
337
338
|
private defaultValue;
|
|
339
|
+
private controlMap;
|
|
338
340
|
private get language();
|
|
339
341
|
private onChangeSchema;
|
|
340
342
|
private onChangeValue;
|
|
@@ -9,6 +9,7 @@ export declare class DialogService implements IEvaluatorProvider {
|
|
|
9
9
|
alert(text: string, options?: DialogOptions): void;
|
|
10
10
|
info(text: string, options?: DialogOptions): void;
|
|
11
11
|
confirm(text: string, options?: DialogOptions): void;
|
|
12
|
+
show(text: string, options?: DialogOptions): void;
|
|
12
13
|
prompt(text: string, defaultValue?: string, options?: DialogOptions): void;
|
|
13
14
|
getContext(): Record<string, any>;
|
|
14
15
|
private showDialog;
|
|
@@ -28,6 +28,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
28
28
|
moveUp(control: AbstractControl, path: Path, index: number): boolean;
|
|
29
29
|
moveDown(control: AbstractControl, path: Path, index: number): boolean;
|
|
30
30
|
status(control: AbstractControl, path: Path, pathOptions?: PathOptions): FormControlStatus | undefined;
|
|
31
|
+
errors(controls: Iterable<AbstractControl>): number;
|
|
31
32
|
getInvalidControls(control: AbstractControl): {
|
|
32
33
|
path: string;
|
|
33
34
|
control: AbstractControl;
|
|
@@ -43,6 +44,7 @@ export declare class FormService implements IEvaluatorProvider {
|
|
|
43
44
|
private createArrayItem;
|
|
44
45
|
private createControlFromValue;
|
|
45
46
|
private createControlFromArray;
|
|
47
|
+
private collectErrors;
|
|
46
48
|
private setUnknown;
|
|
47
49
|
private isUnknown;
|
|
48
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|