feat(skd-compile): compact AreaTemplate DSL, fix dataPath and presentation fallback

- Fix empty dataPath when field is specified as object { field, title }
- Add title to presentation fallback chain: presentation → title → name
- Add compact DSL for AreaTemplate: rows/widths/style instead of raw XML
- Built-in style presets: header, data, subheader, total
- User-defined presets via skd-styles.json (project-level overrides)
- Support vertical merge ("|"), parameters ("{Name}"), static text, null cells
- Update SKILL.md, skd-dsl-spec.md, skd-guide.md with template DSL docs
- Add examples/skd-styles.json with all supported keys
- Bump version v1.1 → v1.2

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-03-23 20:38:04 +03:00
co-authored by Claude Opus 4.6
parent b9a04b235f
commit 42df4cd6b1
6 changed files with 725 additions and 34 deletions
@@ -0,0 +1,30 @@
{
"header": {
"font": "Arial",
"fontSize": 10,
"bold": false,
"italic": false,
"hAlign": "Center",
"vAlign": "Center",
"wrap": true,
"bgColor": "style:ReportHeaderBackColor",
"textColor": null,
"borderColor": "style:ReportLineColor",
"borders": true
},
"data": {
"bgColor": "style:ReportGroup1BackColor",
"borderColor": "style:ReportLineColor"
},
"total": {
"bold": true,
"borderColor": "style:ReportLineColor"
},
"myProjectStyle": {
"bgColor": "#FFE0E0",
"textColor": "#990000",
"fontSize": 12,
"bold": true,
"hAlign": "Right"
}
}