import { CustomPropertyHandler , PropertyResolveResult } from "../providers/property-handler-provider" ; import * as parseXml from '../parser/types' ; import { WidgetModel , AttributeModel , PropertyModel } from '../models/models' ; export class FormGroupHandler extends CustomPropertyHandler { canResolve ( element , handlerProperty , widget ) { return true ; } resolve ( element , attr , widget ) { return { extraData : null , wrapperWidget : widget , value : attr . value , handled : false } ; } canGenerate ( widget ) { return true ; } generate ( widget , tabsLevel , generateChildWidgetCode , generatePropertyCode ) { return '' ; } static getFormGroup ( element ) { if ( ! element || ! element . attributes ) { return '' ; } if ( ':formGroup' in element . attributes ) { return element . attributes [ ':formGroup' ] || '' ; } return this . getFormGroup ( element . parent as any ) ; } }