From 6bcbe4f3489bafff4a78f87e030c08db734af021 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 16 Nov 2024 15:41:31 -0400 Subject: data: reverseAnnotatedReferenceList --- .../reverseAnnotatedReferenceList.js | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js (limited to 'src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js') diff --git a/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js b/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js new file mode 100644 index 00000000..d18e5357 --- /dev/null +++ b/src/data/composite/wiki-properties/reverseAnnotatedReferenceList.js @@ -0,0 +1,25 @@ +import {input, templateCompositeFrom} from '#composite'; + +import {exposeDependency} from '#composite/control-flow'; +import {inputWikiData, withReverseAnnotatedReferenceList} + from '#composite/wiki-data'; + +export default templateCompositeFrom({ + annotation: `reverseAnnotatedReferenceList`, + + compose: false, + + inputs: { + data: inputWikiData({allowMixedTypes: false}), + list: input({type: 'string'}), + }, + + steps: () => [ + withReverseAnnotatedReferenceList({ + data: input('data'), + list: input('list'), + }), + + exposeDependency({dependency: '#reverseAnnotatedReferenceList'}), + ], +}); -- cgit 1.3.0-6-gf8a5