mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-25 22:21:01 +03:00
feat(form-decompile,form-compile): commandSource у ButtonGroup/CommandBar
ButtonGroup/CommandBar несут <CommandSource> (источник команд группы): Form (2478), FormCommandPanelGlobalCommands (1267), Item.<ИмяЭлемента> (команды конкретного элемента-таблицы). Декомпилятор не захватывал → LOST в форменных/элементных панелях. Добавлен ключ commandSource (эмитится «как есть», после Title до Representation/Autofill). Декомпилятор захватывает у ButtonGroup и CommandBar. TOTAL diff lines выборки 2.17: 5189 → 5149 (-40). ButtonGroup/CommandBar CommandSource LOST → 0. Снапшот button-group (группа глобальных команд с commandSource) сертифицирован в 1С (8.3.24). Регресс form-compile 33/33 зелёный на ps + python. decompile v0.32, compile v1.50. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
c998139c89
commit
7eb825b3a7
@@ -1,4 +1,4 @@
|
||||
# form-decompile v0.31 — Decompile 1C managed Form.xml to JSON DSL (draft)
|
||||
# form-decompile v0.32 — Decompile 1C managed Form.xml to JSON DSL (draft)
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
# ВНИМАНИЕ: раундтрип не гарантируется. Навык исключён из авто-использования моделью.
|
||||
param(
|
||||
@@ -1130,6 +1130,7 @@ function Decompile-Element {
|
||||
'ButtonGroup' {
|
||||
$obj[$key] = $name
|
||||
Add-CommonProps $obj $node $name
|
||||
$cs = Get-Child $node 'CommandSource'; if ($cs) { $obj['commandSource'] = $cs }
|
||||
$rep = Get-Child $node 'Representation'; if ($rep) { $obj['representation'] = $rep }
|
||||
$kids = Decompile-Children $node
|
||||
if ($kids) { $obj['children'] = $kids }
|
||||
@@ -1137,6 +1138,7 @@ function Decompile-Element {
|
||||
'CommandBar' {
|
||||
$obj[$key] = $name
|
||||
Add-CommonProps $obj $node $name
|
||||
$cs = Get-Child $node 'CommandSource'; if ($cs) { $obj['commandSource'] = $cs }
|
||||
if ((Get-Child $node 'Autofill') -eq 'true') { $obj['autofill'] = $true }
|
||||
$kids = Decompile-Children $node
|
||||
if ($kids) { $obj['children'] = $kids }
|
||||
|
||||
Reference in New Issue
Block a user