mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-16 18:53:18 +03:00
4430ebc42e
Корень: тип-детекция элемента видела ключ 'picture' РАНЬШЕ 'popup'/'button' в списке
типов. Но 'picture' это и тип (PictureDecoration), и свойство-иконка у popup/button/cmdBar
(оба строковые → не развязать по значению). Попап «{ popup, picture, representation }»
ошибочно компилировался как <PictureDecoration name="StdPicture.X"> → терялся весь попап
+ каскад. Решение: понизить приоритет picture/picField (в конец TYPE_KEYS) — тип-ключ
владельца выигрывает.
+ Button DataPath: кнопки общих команд несут <DataPath> (Объект.Ref, Items.X.CurrentData.Поле,
2706 в корпусе) — привязка команды к контексту. Не захватывался. Добавлен ключ path у button.
TOTAL diff lines выборки 2.17: 2727 → 2489 (-238). Снапшот button-group (+popup с картинкой)
сертифицирован в 1С (8.3.24). Регресс form-compile 34/34 зелёный на ps + python.
decompile v0.41, compile v1.59.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
41 lines
2.0 KiB
JSON
41 lines
2.0 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", "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" }
|
||
]
|
||
}
|
||
}
|