in packages/codegen-ui-react/lib/react-component-render-helper.ts [399:420]
export function buildOpeningElementAttributes(prop: ComponentPropertyValueTypes, propName: string): JsxAttribute {
if (isFixedPropertyWithValue(prop)) {
return buildFixedAttr(prop, propName);
}
if (isBoundProperty(prop)) {
return prop.defaultValue === undefined
? buildBindingAttr(prop, propName)
: buildBindingAttrWithDefault(prop, propName, prop.defaultValue);
}
if (isCollectionItemBoundProperty(prop)) {
return prop.defaultValue === undefined
? buildCollectionBindingAttr(prop, propName)
: buildCollectionBindingAttrWithDefault(prop, propName, prop.defaultValue);
}
if (isConcatenatedProperty(prop)) {
return buildConcatAttr(prop, propName);
}
if (isConditionalProperty(prop)) {
return buildConditionalAttr(prop, propName);
}
return factory.createJsxAttribute(factory.createIdentifier(propName), undefined);
}