mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-15 18:34:57 +03:00
8448a28a29
Прозрачность картинки (<Picture><xr:LoadTransparent>) у Command/Button/Popup компилятор хардкодил true, а в корпусе значение смешано (Command true 11410/false 8066; Popup true 3142/false 2828). Явный false терялся. Теперь компилятор эмитит loadTransparent факт. значение (дефолт true — платформа всегда пишет тег внутри Picture; false при явном loadTransparent:false). Декомпилятор фиксирует ТОЛЬКО отклонение false (true опускается — додумывается дефолтом, без шума в DSL). Свойство плоское рядом с picture — консистентно с PictureDecoration(src)/PictureField(valuesPicture). TOTAL diff lines выборки 2.17: 2489 → 2415 (-74). Command/Button/Popup LoadTransparent residual → 0. Остаток (отдельный хвост): PictureField (HeaderPicture/valuesPicture), CheckBoxField-cascade, Table rowsPicture — другие картиночные объекты. Снапшот button-group (popup loadTransparent:false) сертифицирован в 1С (8.3.24). Регресс form-compile 34/34 зелёный на ps + python. decompile v0.42, compile v1.60. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
2.1 KiB
JSON
41 lines
2.1 KiB
JSON
{
|
||
"name": "ButtonGroup в командной панели + команды с tooltip/currentRowUse",
|
||
"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": "Группы кнопок",
|
||
"elements": [
|
||
{ "cmdBar": "Панель", "children": [
|
||
{ "button": "Выполнить", "command": "Выполнить", "defaultButton": true },
|
||
{ "buttonGroup": "ГруппаПереместить", "title": "Переместить", "children": [
|
||
{ "button": "Вверх", "command": "Вверх" },
|
||
{ "button": "Вниз", "command": "Вниз" }
|
||
]},
|
||
{ "buttonGroup": "ГруппаГлобальныеКоманды", "commandSource": "FormCommandPanelGlobalCommands" },
|
||
{ "popup": "ПодменюПечать", "title": "Печать", "picture": "StdPicture.Print", "loadTransparent": false, "representation": "PictureAndText", "children": [
|
||
{ "button": "ПечатьСчёта", "command": "Выполнить" }
|
||
]}
|
||
]}
|
||
],
|
||
"attributes": [
|
||
{ "name": "Объект", "type": "DataProcessorObject.ГруппыКнопок", "main": true }
|
||
],
|
||
"commands": [
|
||
{ "name": "Выполнить", "action": "ВыполнитьОбработка", "tooltip": "Запустить обработку", "shortcut": "Ctrl+Enter" },
|
||
{ "name": "Вверх", "action": "ВверхОбработка", "currentRowUse": "DontUse" },
|
||
{ "name": "Вниз", "action": "ВнизОбработка", "currentRowUse": "DontUse" }
|
||
]
|
||
}
|
||
}
|