mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-19 17:19:42 +03:00
3340d48898
Раундтрип терял <Format> на UsualGroup/Page — формат значения пути к данным заголовка (<TitleDataPath>): мультиязычный формат вида БЛ=; БИ=* / BF=; BT=* (напр. УчетныеЗаписиЭДО/ УчетнаяЗапись — 4 группы/страницы, 40 строк diff с каскадом структурных v8:item-обёрток). Корпус (acc+erp 8.3.24): <Format>-блоки — LabelField 1784, InputField 1480 (уже обрабатывались), UsualGroup 13, Page 10 (пробел). Механизм формата уже был у полей (Add-FormatProps / Emit-MLText); подключён к группе/странице. decompile: Add-FormatProps в ветках UsualGroup/Page (захват format/editFormat). compile (ps1+py): Emit-MLText <Format>/<EditFormat> в Emit-Group/Emit-Page (рядом с titleDataPath). Верификация: таргет-раундтрип 11 форм с group/page Format → категория закрыта (0 Format LOST; целевая форма match, было 40→0); остаток — др. категория ListSettings + 1 ring3 (SpreadsheetDocument). Регресс form-compile 43/43 (ps1+py); 1С-cert кейса groups (группа с Format+TitleDataPath грузится). spec. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
39 lines
2.4 KiB
JSON
39 lines
2.4 KiB
JSON
{
|
|
"name": "Форма с группами и командной панелью",
|
|
"preRun": [
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": { "type": "DataProcessor", "name": "СГруппами" },
|
|
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
|
|
},
|
|
{
|
|
"script": "form-add/scripts/form-add",
|
|
"args": { "-ObjectPath": "{workDir}/DataProcessors/СГруппами.xml", "-FormName": "Форма" }
|
|
}
|
|
],
|
|
"params": { "outputPath": "DataProcessors/СГруппами/Forms/Форма/Ext/Form.xml" },
|
|
"validatePath": "DataProcessors/СГруппами/Forms/Форма/Ext/Form.xml",
|
|
"input": {
|
|
"title": "Группы",
|
|
"properties": { "showCloseButton": false, "horizontalAlign": "Left", "childrenAlign": "ItemsLeftTitlesLeft" },
|
|
"elements": [
|
|
{ "cmdBar": "КоманднаяПанель", "autofill": true },
|
|
{ "group": "horizontal", "name": "ГруппаШапка", "behavior": "usual", "showTitle": true, "title": "Шапка", "shortcut": "Ctrl+G", "childrenAlign": "ItemsRightTitlesLeft", "horizontalStretch": true, "groupHorizontalAlign": "Right", "throughAlign": "Use", "verticalAlign": "Top", "childItemsWidth": "Equal", "horizontalSpacing": "None", "children": [
|
|
{ "input": "Поле1", "path": "Поле1", "title": "Поле 1", "width": 20, "skipOnInput": true, "mask": "999-999" },
|
|
{ "input": "Поле2", "path": "Поле2", "title": "Поле 2" },
|
|
{ "labelField": "Метка", "path": "Поле1", "groupVerticalAlign": "Center" }
|
|
]},
|
|
{ "group": "vertical", "name": "ГруппаПодвал", "behavior": "collapsible", "collapsed": true, "title": { "ru": "Подвал", "en": "Footer" }, "collapsedTitle": "Развернуть подвал", "titleDataPath": "Изменено", "format": { "ru": "БЛ=; БИ=*", "en": "BF=; BT=*" }, "showLeftMargin": false, "enableContentChange": false, "verticalSpacing": "None", "displayImportance": "Low", "children": [
|
|
{ "input": "Поле3", "path": "Поле3", "title": "Поле 3" }
|
|
]}
|
|
],
|
|
"attributes": [
|
|
{ "name": "Объект", "type": "DataProcessorObject.СГруппами", "main": true },
|
|
{ "name": "Поле1", "type": "string" },
|
|
{ "name": "Поле2", "type": "decimal(15,2)" },
|
|
{ "name": "Поле3", "type": "date" },
|
|
{ "name": "Изменено", "type": "boolean" }
|
|
]
|
|
}
|
|
}
|