UNPKG

@alfresco/adf-core

Version:
42 lines (41 loc) 1.86 kB
import { OnDestroy, OnInit } from '@angular/core'; import { FormService } from '../services/form.service'; import { FormFieldModelRenderMiddleware } from './middlewares/middleware'; import { ContainerModel, FormFieldModel, FormModel, TabModel } from './widgets'; import * as i0 from "@angular/core"; export declare class FormRendererComponent<T> implements OnInit, OnDestroy { private middlewareServices?; readonly formService: FormService; private readonly formRulesManager; private readonly dialog; private cdr; formDefinition: FormModel; readOnly: boolean; debugMode: boolean; fields: FormFieldModel[]; constructor(middlewareServices?: FormFieldModelRenderMiddleware[]); ngOnInit(): void; ngOnDestroy(): void; hasTabs(): boolean; visibleTabs(): TabModel[]; getNumberOfColumns(content: ContainerModel): number; /** * Serializes column fields * * @param content container model * @returns a list of form field models */ getContainerFields(content: ContainerModel): FormFieldModel[]; private getMaxColumnFieldSize; displayDialogToRemoveRow(field: FormFieldModel, rowIndex: number): void; /** * Calculate the column width based on the numberOfColumns and current field's colspan property * * @param container container model * @returns the column width for the given model */ getColumnWidth(container: ContainerModel): string; private runMiddlewareServices; static ɵfac: i0.ɵɵFactoryDeclaration<FormRendererComponent<any>, [{ optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<FormRendererComponent<any>, "adf-form-renderer", never, { "formDefinition": { "alias": "formDefinition"; "required": true; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, {}, never, never, true, never>; }