mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-05 18:58:57 +03:00
a1131965cc
Закрывает три gap'a, выявленных при полном прогоне ERP+ACC: 1. DataSetFieldFolder — поле-папка для UI-группировки полей в композиторе настроек. Только dataPath + title, без valueType/role. - DSL: object form поля с `folder: true`. - Compile: при folder=true → <field xsi:type="DataSetFieldFolder">. - Decompile: распознать xsi:type, эмитить object form. 2. GroupItemAuto — пустой <item xsi:type="GroupItemAuto"/> в groupItems (auto-grouping, аналогично "Auto" в selection). - DSL: строка "Auto" в groupFields. - Compile/decompile: round-trip. 3. Empty <field/> в conditionalAppearance/selection (wildcard — apply to all). Раньше — SelectionItem: sentinel. Теперь эмитим как "Auto" (семантический эквивалент через SelectedItemAuto). Новый тест dataset-folder-and-auto-group (round-trip). Versions: compile v1.34→v1.35, decompile v0.16→v0.17. На предыдущем прогоне ERP+ACC: 227 sentinel'ов (218 DataSetFieldFolder + 7 GroupItemAuto + 2 SelectionItem). После — 0.
40 lines
1.3 KiB
JSON
40 lines
1.3 KiB
JSON
{
|
|
"name": "DataSetFieldFolder (поле-папка) + GroupItemAuto в structure",
|
|
"preRun": [
|
|
{
|
|
"script": "skd-compile/scripts/skd-compile",
|
|
"input": {
|
|
"dataSets": [{
|
|
"name": "Тест",
|
|
"query": "ВЫБРАТЬ * ИЗ Справочник.Сотрудники",
|
|
"fields": [
|
|
"Период: date",
|
|
{ "field": "СальдоНаНачалоПериода", "folder": true, "title": "Сальдо на начало периода" },
|
|
"СальдоНаНачалоПериода.Дт: decimal(15,2)",
|
|
"СальдоНаНачалоПериода.Кт: decimal(15,2)"
|
|
]
|
|
}],
|
|
"settingsVariants": [
|
|
{
|
|
"name": "Основной",
|
|
"settings": {
|
|
"structure": [
|
|
{
|
|
"groupFields": ["Auto"],
|
|
"children": [
|
|
{ "groupFields": ["Период"] }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "Template.xml" },
|
|
"cwd": "{workDir}"
|
|
}
|
|
],
|
|
"params": { "templatePath": "Template.xml" },
|
|
"outputPath": "decompiled.json"
|
|
}
|