blob: 41cfd0af7647e527aa64bf650f7c905d7b076c85 (
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, V} from '#composite';
import Thing from '#thing';
import {exposeConstant} from '#composite/control-flow';
import {referenceList, soupyFind} from '#composite/wiki-properties';
import {HomepageLayoutRow} from './HomepageLayoutRow.js';
export class HomepageLayoutAlbumCarouselRow extends HomepageLayoutRow {
static [Thing.friendlyName] = `Homepage Album Carousel Row`;
static [Thing.getPropertyDescriptors] = (opts, {Album} = opts) => ({
// Update & expose
albums: referenceList({
class: input.value(Album),
find: soupyFind.input('album'),
}),
// Expose only
isHomepageLayoutAlbumCarouselRow: exposeConstant(V(true)),
type: exposeConstant(V('album carousel')),
});
static [Thing.yamlDocumentSpec] = {
fields: {
'Albums': {property: 'albums'},
},
};
}
|