angular-formio-editor
Version:
Angular component integrating Form.io builder and renderer with a json editor
56 lines (55 loc) • 2.43 kB
TypeScript
import { AfterViewInit, OnInit, TemplateRef, OnDestroy } from '@angular/core';
import { Observable } from 'rxjs';
import { TabsetComponent } from 'ngx-bootstrap/tabs';
import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal';
import { FormioEditorOptions, FormioEditorTab } from './formio-editor-options';
import { JsonEditorComponent } from './json-editor/json-editor.component';
import { JsonEditorValidationError, JsonEditorOptions } from './json-editor/json-editor-shapes';
export declare class FormioEditorComponent implements OnInit, AfterViewInit, OnDestroy {
private modalService;
form: any;
builderDisplayChanged: boolean;
reset?: Observable<void>;
private resetSubscription;
private _options;
get options(): FormioEditorOptions;
set options(options: FormioEditorOptions);
jsonEditorOptions: JsonEditorOptions;
jsonEditorChanged: boolean;
jsonEditor: JsonEditorComponent;
rendererResourceJsonEditor: JsonEditorComponent;
rendererSchemaJsonEditor: JsonEditorComponent;
rendererResourceJsonEditorOptions: JsonEditorOptions;
rendererSchemaJsonEditorOptions: JsonEditorOptions;
submissionPanel: boolean;
showResourceSchema: boolean;
submission: any;
fullSubmission: boolean;
tabset: TabsetComponent;
activeTab: FormioEditorTab;
modalRef: BsModalRef;
private _jsonEditorErrors;
get jsonEditorErrors(): JsonEditorValidationError[];
set jsonEditorErrors(errors: JsonEditorValidationError[]);
jsonEditorWarningCounter: number;
constructor(modalService: BsModalService);
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
private setOptions;
findTab(tabId: FormioEditorTab): import("ngx-bootstrap/tabs").TabDirective;
selectTab(tabId: FormioEditorTab): void;
onSelectTab(event: any): void;
resetFormBuilder(fromJsonEditor?: boolean): void;
onBuilderDiplayChange(event: any): void;
onBuilderChange(event: any): void;
onJsonEditorError(errors: any[]): void;
onJsonEditorChange(event: any): void;
onJsonEditorApply(template: TemplateRef<any>): void;
jsonEditorApplyChanges(): void;
jsonEditorDiscardChanges(): void;
refreshJsonEditor(forceReset?: boolean): void;
resetFormRendererIfActive(): void;
showSubmissionPanel(submission: any): void;
applyResourceJsonSchema(): void;
}