@formio-tmt/angular
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.4.
31 lines • 950 B
TypeScript
import { ExtendedComponentSchema, BuilderInfo, ValidateOptions } from '@formio-tmt/js';
import { EventEmitter } from '@angular/core';
import { NgElement, WithProperties } from '@angular/elements';
export interface FormioCustomComponentInfo extends BuilderInfo {
type: string;
selector: string;
emptyValue?: any;
extraValidators?: (keyof ValidateOptions)[];
fieldOptions?: string[];
template?: string;
changeEvent?: string;
editForm?: () => {
components: ExtendedComponentSchema[];
};
}
export type FormioCustomElement = NgElement & WithProperties<{
value: any;
} & ExtendedComponentSchema>;
export interface FormioEvent {
eventName: string;
data?: {
[key: string]: any;
};
}
export interface FormioCustomComponent<T> {
value: T;
valueChange: EventEmitter<T>;
disabled: boolean;
formioEvent?: EventEmitter<FormioEvent>;
}
//# sourceMappingURL=elements.common.d.ts.map