UNPKG

angular-formio-gp

Version:

A fork of Form.io Angular JSON Form Renderer ========================== This library serves as a Dynamic JSON Powered Form rendering library for [Angular](https://angular.io). This works by providing a JSON schema to a ```<formio>``` Angular component,

45 lines (44 loc) 1.57 kB
import { EventEmitter } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { FormioResourceConfig } from './resource.config'; import { FormioResources } from './resources.service'; import { FormioAlerts } from '../components/alerts/formio.alerts'; import { FormioLoader } from '../components/loader/formio.loader'; import { FormioAppConfig } from '../formio.config'; import { FormioRefreshValue } from '../formio.common'; import Promise from 'native-promise-only'; export declare class FormioResourceService { appConfig: FormioAppConfig; config: FormioResourceConfig; loader: FormioLoader; resourcesService: FormioResources; initialized: boolean; form: any; alerts: FormioAlerts; resource: any; resourceUrl?: string; formUrl: string; formFormio: any; formio: any; refresh: EventEmitter<FormioRefreshValue>; resourceLoading?: Promise<any>; resourceLoaded?: Promise<any>; resourceId?: string; resources: any; formLoading?: Promise<any>; formLoaded: Promise<any>; formResolve: any; formReject: any; constructor(appConfig: FormioAppConfig, config: FormioResourceConfig, loader: FormioLoader, resourcesService: FormioResources); initialize(): void; init(): any; onError(error: any): void; onFormError(err: any): void; setContext(route: ActivatedRoute): void; loadForm(): any; loadParents(): any; onSubmissionError(err: any): void; loadResource(route: ActivatedRoute): any; save(resource: any): any; remove(): any; }