UNPKG

@formio-tmt/angular

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.4.

64 lines 1.93 kB
import { ExtendedComponentSchema, ValidateOptions } from '@formio-tmt/js'; import { AlertsPosition } from './types/alerts-position'; export { ConditionalOptions, ValidateOptions } from '@formio-tmt/js'; export interface ComponentOptions<T = any, V extends ValidateOptions = ValidateOptions> extends ExtendedComponentSchema<T> { validate?: V; } export interface FormioRefreshValue { property?: string; value?: object; form?: object; submission?: object; } export interface AccessSetting { type: string; roles: string[]; } export interface FormioForm { title?: string; display?: string; name?: string; path?: string; type?: string; project?: string; template?: string; components?: ExtendedComponentSchema[]; tags?: string[]; access?: AccessSetting[]; submissionAccess?: AccessSetting[]; } export interface ComponentInstance { component: ExtendedComponentSchema; id: string; type: string; asString?(value: any): string; getView(value: any): string; } export interface AlertsOptions { submitMessage: string; } export interface ErrorsOptions { message: string; } export declare class FormioError { message: string; component: ExtendedComponentSchema; silent?: boolean; constructor(message: string, component: ExtendedComponentSchema, silent?: boolean); } export type FormioSubmissionCallback = (error: FormioError, submission: object) => void; export type FormioBeforeSubmit = (submission: object, callback: FormioSubmissionCallback) => void; export interface FormioHookOptions { beforeSubmit: FormioBeforeSubmit; } export interface FormioOptions { errors?: ErrorsOptions; alerts?: AlertsOptions; alertsPosition?: AlertsPosition; disableAlerts?: boolean; i18n?: object; fileService?: object; hooks?: FormioHookOptions; sanitizeConfig?: any; } //# sourceMappingURL=formio.common.d.ts.map