blob: 99f3ee465222ced08ec65854ee3797d7b924badc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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'},
},
};
}
|