import { Custom } from './custom' ; var inherits = require ( 'inherits' ) ; var PropertiesActivator = require ( 'bpmn-js-properties-panel/lib/PropertiesActivator' ) ; var processProps = require ( 'bpmn-js-properties-panel/lib/provider/bpmn/parts/ProcessProps' ) , eventProps = require ( 'bpmn-js-properties-panel/lib/provider/bpmn/parts/EventProps' ) , linkProps = require ( 'bpmn-js-properties-panel/lib/provider/bpmn/parts/LinkProps' ) , documentationProps = require ( 'bpmn-js-properties-panel/lib/provider/bpmn/parts/DocumentationProps' ) , idProps = require ( 'bpmn-js-properties-panel/lib/provider/bpmn/parts/IdProps' ) , nameProps = require ( 'bpmn-js-properties-panel/lib/provider/bpmn/parts/NameProps' ) ; import { CustomProps } from './props' ; function createGeneralTabGroups ( element , bpmnFactory , elementRegistry ) { var generalGroup = { id : 'general' , label : 'General' , entries : new Array , } ; idProps ( generalGroup , element , elementRegistry ) ; nameProps ( generalGroup , element ) ; processProps ( generalGroup , element ) ; var detailsGroup = { id : 'details' , label : 'Details' , entries : new Array , } ; linkProps ( detailsGroup , element ) ; eventProps ( detailsGroup , element , bpmnFactory , elementRegistry ) ; var documentationGroup = { id : 'documentation' , label : 'Documentation' , entries : new Array , } ; documentationProps ( documentationGroup , element , bpmnFactory ) ; return [ generalGroup , detailsGroup , documentationGroup ] ; } function createCustomTabGroups ( element , elementRegistry ) { var theGroup = { id : Custom . id , label : Custom . name , entries : new Array } ; CustomProps ( theGroup , element ) ; return [ theGroup ] ; } export function CustomPropertiesProvider ( eventBus , bpmnFactory , elementRegistry ) { PropertiesActivator . call ( this , eventBus ) ; this . getTabs = function ( element ) { var generalTab = { id : 'general' , label : 'General' , groups : createGeneralTabGroups ( element , bpmnFactory , elementRegistry ) } ; var theTab = { id : Custom . id , label : Custom . name , groups : createCustomTabGroups ( element , elementRegistry ) } ; return [ generalTab , theTab , ] ; } ; } inherits ( CustomPropertiesProvider , PropertiesActivator ) ;