diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 13:11:03 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 13:46:48 -0400 |
| commit | ca4e9b3fd53f91e1cd95c8aa20496177ec39d669 (patch) | |
| tree | 41010ff4455d44c2e791a9bf9ebadae11596afe7 /src/data/things/AdditionalName.js | |
| parent | c4a2bd0e7b29abc201d40b7cdae7815a508f8681 (diff) | |
infra: rename singleton-export thing modules
Diffstat (limited to 'src/data/things/AdditionalName.js')
| -rw-r--r-- | src/data/things/AdditionalName.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/data/things/AdditionalName.js b/src/data/things/AdditionalName.js new file mode 100644 index 00000000..99f3ee46 --- /dev/null +++ b/src/data/things/AdditionalName.js @@ -0,0 +1,31 @@ +import {input} from '#composite'; +import Thing from '#thing'; + +import {exposeConstant} from '#composite/control-flow'; +import {contentString, thing} from '#composite/wiki-properties'; + +export class AdditionalName extends Thing { + static [Thing.getPropertyDescriptors] = () => ({ + // Update & expose + + thing: thing(), + + name: contentString(), + annotation: contentString(), + + // Expose only + + isAdditionalName: [ + exposeConstant({ + value: input.value(true), + }), + ], + }); + + static [Thing.yamlDocumentSpec] = { + fields: { + 'Name': {property: 'name'}, + 'Annotation': {property: 'annotation'}, + }, + }; +} |