diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-12-03 17:53:51 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-12-03 17:53:51 -0400 |
commit | 7039d7fa471318df40c1905cd5ac52688dc6adcf (patch) | |
tree | 6c859ab2b0ee7bf86089475952ec529f40b95b83 /src/data/composite/things/track/sharedAdditionalNameList.js | |
parent | 168efd0f2685fa00259fffc9f26c7f6a30a61991 (diff) | |
parent | 2d054508f58147f5968a10f39c2f87ba62dd91f7 (diff) |
Merge branch 'preview' into time-tooltips
Diffstat (limited to 'src/data/composite/things/track/sharedAdditionalNameList.js')
-rw-r--r-- | src/data/composite/things/track/sharedAdditionalNameList.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/data/composite/things/track/sharedAdditionalNameList.js b/src/data/composite/things/track/sharedAdditionalNameList.js new file mode 100644 index 00000000..1806ec80 --- /dev/null +++ b/src/data/composite/things/track/sharedAdditionalNameList.js @@ -0,0 +1,38 @@ +// Compiles additional names directly provided by other releases. + +import {input, templateCompositeFrom} from '#composite'; + +import {exitWithoutDependency, exposeDependency} + from '#composite/control-flow'; +import {withFlattenedList, withPropertyFromList} from '#composite/data'; + +import withOtherReleases from './withOtherReleases.js'; + +export default templateCompositeFrom({ + annotation: `sharedAdditionalNameList`, + + compose: false, + + steps: () => [ + withOtherReleases(), + + exitWithoutDependency({ + dependency: '#otherReleases', + mode: input.value('empty'), + value: input.value([]), + }), + + withPropertyFromList({ + list: '#otherReleases', + property: input.value('additionalNames'), + }), + + withFlattenedList({ + list: '#otherReleases.additionalNames', + }), + + exposeDependency({ + dependency: '#flattenedList', + }), + ], +}); |