@formio/angular
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.4.
74 lines (68 loc) • 3.2 kB
TypeScript
import { Form as Form$1, Webform, FormBuilder, FormioCore } from '@formio/js';
export { FormioCore as Formio } from '@formio/js';
import * as i0 from '@angular/core';
import { AfterViewInit, EventEmitter, ElementRef, InjectionToken } from '@angular/core';
import { Form, Submission } from '@formio/core/types';
import WebformBuilder from '@formio/js/lib/cjs/WebformBuilder';
import * as i3 from '@angular/common';
declare class FormioComponent implements AfterViewInit {
src?: string;
form?: Form | null;
submission?: Submission | null;
url?: string;
options?: Form$1['options'];
ready: EventEmitter<Webform>;
submit: EventEmitter<object>;
error: EventEmitter<any>;
change: EventEmitter<any>;
element: ElementRef;
instance: Webform;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FormioComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FormioComponent, "formio", never, { "src": { "alias": "src"; "required": false; }; "form": { "alias": "form"; "required": false; }; "submission": { "alias": "submission"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "ready": "ready"; "submit": "submit"; "error": "error"; "change": "change"; }, never, never, false, never>;
}
declare class FormioBuilder implements AfterViewInit {
element: ElementRef;
form?: Form$1['options'] | null;
options?: FormBuilder['options'];
change: EventEmitter<any>;
ready: EventEmitter<any>;
error: EventEmitter<any>;
builder: FormBuilder;
componentAdding: boolean;
get instance(): WebformBuilder;
ngAfterViewInit(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FormioBuilder, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<FormioBuilder, "formio-builder", never, { "form": { "alias": "form"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, { "change": "change"; "ready": "ready"; "error": "error"; }, never, never, false, never>;
}
declare class FormioEmbedModule {
static ɵfac: i0.ɵɵFactoryDeclaration<FormioEmbedModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<FormioEmbedModule, [typeof FormioComponent, typeof FormioBuilder], [typeof i3.CommonModule], [typeof FormioComponent, typeof FormioBuilder]>;
static ɵinj: i0.ɵɵInjectorDeclaration<FormioEmbedModule>;
}
declare const FormioAppConfig: InjectionToken<unknown>;
declare class FormioAppService {
baseUrl: any;
apiUrl: any;
projectUrl: any;
appUrl: any;
icons?: string;
formio: FormioCore;
user?: any;
onUser: EventEmitter<object>;
constructor(config?: {
apiUrl?: string;
baseUrl?: string;
appUrl?: string;
projectUrl?: string;
icons?: string;
config?: any;
});
setUser(user: any): void;
logout(): any;
authenticate(): any;
static ɵfac: i0.ɵɵFactoryDeclaration<FormioAppService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<FormioAppService>;
}
export { FormioAppConfig, FormioAppService, FormioBuilder, FormioComponent, FormioEmbedModule };
//# sourceMappingURL=index.d.ts.map