@@ -32,6 +32,30 @@ Rectangle {
32 "name": "Art, header, summary",
32 "name": "Art, header, summary",
33 "layout": { "components": JSON.parse(Helpers.fullMapping) }
33 "layout": { "components": JSON.parse(Helpers.fullMapping) }
36+ "name": "Header, summary",
37+ "layout": { "components": Helpers.update(JSON.parse(Helpers.fullMapping), { "art": undefined }) }
40+ "name": "Art, header",
41+ "layout": { "components": Helpers.update(JSON.parse(Helpers.fullMapping), { "summary": undefined }) }
44+ "name": "Header only",
45+ "layout": { "components": Helpers.update(JSON.parse(Helpers.fullMapping), { "art": undefined, "summary": undefined }) }
48+ "name": "Header title only",
49+ "layout": { "components": { "title": "title" } }
52+ "name": "Header title and subtitle",
53+ "layout": { "components": { "title": "title", "subtitle": "subtitle" } }
56+ "name": "Header title and mascot",
57+ "layout": { "components": { "title": "title", "mascot": "mascot" } }
36 "name": "Art, header, summary - small",
60 "name": "Art, header, summary - small",
37 "layout": { "template": { "card-size": "small" }, "components": JSON.parse(Helpers.fullMapping) }
61 "layout": { "template": { "card-size": "small" }, "components": JSON.parse(Helpers.fullMapping) }
@@ -43,11 +67,7 @@ Rectangle {
44 "name": "Art, header, summary - horizontal",
68 "name": "Art, header, summary - horizontal",
45 "layout": { "template": { "card-layout": "horizontal" }, "components": JSON.parse(Helpers.fullMapping) }
69 "layout": { "template": { "card-layout": "horizontal" }, "components": JSON.parse(Helpers.fullMapping) }
48− "name": "Header title only",
49− "layout": { "components": { "title": "title" } }
53 CardTool {
73 CardTool {
@@ -206,9 +226,14 @@ Rectangle {
206 function test_card_size_data() {
226 function test_card_size_data() {
208 { tag: "Medium", width: units.gu(18.5), height: function() { return card.height }, index: 0 },
228 { tag: "Medium", width: units.gu(18.5), height: function() { return card.height }, index: 0 },
229+ { tag: "No art", width: units.gu(18.5), height: function() { return card.height }, index: 1 },
230+ { tag: "No summary", width: units.gu(18.5), height: function() { return card.height }, index: 2 },
231+ { tag: "Just header", width: units.gu(18.5), height: function() { return card.height }, index: 3 },
232+ { tag: "Just title", width: units.gu(18.5), height: function() { return card.height }, index: 4 },
233+ { tag: "Title and subtitle", width: units.gu(18.5), height: function() { return card.height }, index: 5 },
234+ { tag: "Title and mascot", width: units.gu(18.5), height: function() { return card.height }, index: 6 },
209− { tag: "Small", width: units.gu(12), height: function() { return card.height }, index: 1 },
235+ { tag: "Small", width: units.gu(12), height: function() { return card.height }, index: 7 },
210− { tag: "Large", width: units.gu(38), height: function() { return card.height }, index: 2 },
236+ { tag: "Large", width: units.gu(38), height: function() { return card.height }, index: 8 },
211− { tag: "Horizontal", width: units.gu(38), height: function() { return card.height }, index: 3 },
212 { tag: "OrganicGrid", width: undefined, height: undefined, index: 0, layout_index: 1},
237 { tag: "OrganicGrid", width: undefined, height: undefined, index: 0, layout_index: 1},
213 { tag: "Journal", width: undefined, height: units.gu(20), size: 20, index: 0, layout_index: 2 },
238 { tag: "Journal", width: undefined, height: units.gu(20), size: 20, index: 0, layout_index: 2 },
214 { tag: "OversizedJournal", width: undefined, height: units.gu(18.5), size: 40, index: 0, layout_index: 2 },
239 { tag: "OversizedJournal", width: undefined, height: units.gu(18.5), size: 40, index: 0, layout_index: 2 },