UNPKG

@asoftwareworld/form-builder-pro

Version:

ASW Form Builder Pro helps you with rapid development and designed web forms which includes several controls. The key feature of Form Builder is to make your content attractive and effective. We can customize our control at run time and preview the same b

53 lines (52 loc) 2.24 kB
import { EventEmitter, OnInit } from '@angular/core'; import { FormArray, FormBuilder, FormGroup } from '@angular/forms'; import { CSSFrameworkEnum } from '@asoftwareworld/form-builder-pro/api'; import { ObjectUtils } from '@asoftwareworld/form-builder-pro/utils'; import { Observable } from 'rxjs'; import { AswApiService } from '../../service/api.service'; import * as i0 from "@angular/core"; export declare class AswApiParams implements OnInit { private formBuilder; private aswApiService; aswApiParamsForm: FormGroup; icons: any; openIDBrequest: any; indexedDB: any; CSSFramework: CSSFrameworkEnum; newRequest: EventEmitter<any>; apiResponse: EventEmitter<any>; bodyType: string; responseData: any; responseError: any; endpointError: string; loadingState: boolean; constants: any; filteredHeaderKeys: Observable<string[]>[]; objectUtils: typeof ObjectUtils; endpoint: string; isEndpointDisabled: boolean; constructor(formBuilder: FormBuilder, aswApiService: AswApiService); get headers(): FormArray; get bodyFormData(): FormArray; initHeaders(): FormArray; ManageHeadersControl(index: number): void; createHeader(): FormGroup; addNewHeader(): void; removeHeader(index: number): void; createBodyFormData(): FormGroup; addNewBodyFormData(): void; removeBodyFormData(index: number): void; ngOnInit(): void; private _filter; saveWorkspaceRequest(): void; validateUrl(text: string): boolean; constructObject(ctx: string): any; loadWorkspaceRequest(request: any): void; deconstructObject(object: any, type: string): any[]; onSubmit(): void; private setDataResponse; private setErrorResponse; onChange(value: any): void; static ɵfac: i0.ɵɵFactoryDeclaration<AswApiParams, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AswApiParams, "asw-api-communicator-params", never, { "openIDBrequest": { "alias": "openIDBrequest"; "required": false; }; "indexedDB": { "alias": "indexedDB"; "required": false; }; "CSSFramework": { "alias": "CSSFramework"; "required": false; }; }, { "newRequest": "newRequest"; "apiResponse": "apiResponse"; }, never, never, false, never>; }