(
inputs: readonly {propName: string; templateName: string; transform?: (value: any) => any}[],
)
| 80 | |
| 81 | /** Gets a map of default set of attributes to observe and the properties they affect. */ |
| 82 | export function getDefaultAttributeToPropertyInputs( |
| 83 | inputs: readonly {propName: string; templateName: string; transform?: (value: any) => any}[], |
| 84 | ) { |
| 85 | const attributeToPropertyInputs: { |
| 86 | [key: string]: [propName: string, transform: ((value: any) => any) | undefined]; |
| 87 | } = {}; |
| 88 | inputs.forEach(({propName, templateName, transform}) => { |
| 89 | attributeToPropertyInputs[camelToDashCase(templateName)] = [propName, transform]; |
| 90 | }); |
| 91 | |
| 92 | return attributeToPropertyInputs; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Gets a component's set of inputs. Uses the injector to get the component factory where the inputs |
no test coverage detected
searching dependent graphs…