@stemy/ngx-dynamic-form 19.9.37 → 19.9.39
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.
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { Injector, Type } from "@angular/core";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { EventsService, IApiService, ILanguageService } from "@stemy/ngx-utils";
|
|
3
|
+
import { EventsService, IApiService, ILanguageService, UniversalService } from "@stemy/ngx-utils";
|
|
4
4
|
import { FormArrayData, FormBuilderOptions, FormDateData, FormFieldConfig, FormFieldData, FormFieldProps, FormFieldSerializer, FormFieldSetData, FormGroupData, FormInputData, FormSelectData, FormSelectOption, FormSerializerData, FormStaticData, FormUploadData } from "../common-types";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export type FormFieldBuilder = (fb: DynamicFormBuilderService, parent: FormFieldConfig, options: FormBuilderOptions) => Partial<FormFieldConfig>;
|
|
7
7
|
export declare class DynamicFormBuilderService {
|
|
8
8
|
readonly injector: Injector;
|
|
9
9
|
readonly events: EventsService;
|
|
10
|
+
readonly universal: UniversalService;
|
|
10
11
|
readonly api: IApiService;
|
|
12
|
+
protected readonly rootElement: HTMLElement;
|
|
11
13
|
protected readonly languages: ILanguageService;
|
|
12
14
|
protected readonly defaultNumericStep: number;
|
|
13
15
|
readonly language: Observable<string>;
|
|
14
|
-
constructor(injector: Injector, events: EventsService, api: IApiService, languages: ILanguageService, defaultNumericStep: number);
|
|
16
|
+
constructor(injector: Injector, events: EventsService, universal: UniversalService, api: IApiService, rootElement: HTMLElement, languages: ILanguageService, defaultNumericStep: number);
|
|
15
17
|
resolveFormFields(type: Type<any>, parent: FormFieldConfig, options?: FormBuilderOptions): FormFieldConfig[];
|
|
16
18
|
resolveFormGroup(key: string, target: Type<any>, data: FormGroupData, parent?: FormFieldConfig, options?: FormBuilderOptions): FormFieldConfig;
|
|
17
19
|
resolveFormArray(key: string, itemType: string | FormInputData | Type<any>, data: FormArrayData, parent?: FormFieldConfig, options?: FormBuilderOptions): FormFieldConfig;
|