mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-05 10:48:56 +03:00
4bd8f27dec
Закрывает простую часть категории C: шаблоны где у ячеек appearance содержит только per-cell атрибуты (МинимальнаяШирина и др.) без font/ borders/colors. Раньше такие шаблоны попадали в TemplateStyleMismatch. - skd-compile (ps1+py): новый preset 'none' со всеми стилевыми полями null/false. Emit-CellAppearance / _emit_cell_appearance пропускают Font-элемент когда style.font=null. - skd-decompile: пустой fingerprint (после отсева per-cell ключей) не считается за стиль ячейки; если все non-merge ячейки шаблона имели пустой fp — эмитим style="none" вместо sentinel. - Новый тест template-no-style (round-trip bit-perfect). - Versions: compile v1.31→v1.32, decompile v0.13→v0.14. Метрики: - ERP-сэмпл 30: 32 → 24 sentinel'ов, clean 24→26/30 - Корпус из 40 отчётов целевого класса: 45 → 39 sentinel'ов, 19/40 clean Остаточные sentinel'ы — реальный custom appearance (нестандартный шрифт/ выравнивание/цвет вне built-in пресетов). Требует расширения DSL под hashtable-style — отдельная задача.
28 lines
819 B
JSON
28 lines
819 B
JSON
{
|
|
"name": "Шаблон без стилевых атрибутов (style=none) — только per-cell width",
|
|
"preRun": [
|
|
{
|
|
"script": "skd-compile/scripts/skd-compile",
|
|
"input": {
|
|
"dataSets": [{
|
|
"name": "Тест",
|
|
"query": "ВЫБРАТЬ * ИЗ Справочник.Сотрудники",
|
|
"fields": ["Поле1: string", "Поле2: string"]
|
|
}],
|
|
"templates": [
|
|
{
|
|
"name": "БезСтиля",
|
|
"style": "none",
|
|
"widths": [7, 7],
|
|
"rows": [["A", "B"]]
|
|
}
|
|
]
|
|
},
|
|
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "Template.xml" },
|
|
"cwd": "{workDir}"
|
|
}
|
|
],
|
|
"params": { "templatePath": "Template.xml" },
|
|
"outputPath": "decompiled.json"
|
|
}
|