mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-20 01:20:59 +03:00
feat(form-decompile,form-compile): HorizontalLocation у CommandBar (хвост дополнений)
Свойство horizontalLocation у элемента cmdBar (<CommandBar>): auto (дефолт, не эмитим) / left / right / center, forgiving + рус.синонимы. Переиспользует Get-HLocation от дополнений (+ добавлен center). Только у <CommandBar> в корпусе (104 шт, в осн. Right), не у ButtonGroup/Popup/AutoCommandBar. Компилятор (ps1+py байт-в-байт) + декомпилятор (захват <HorizontalLocation>). Форма с CommandBar HorizontalLocation → round-trip match. Кейс commands расширен, сертифицирован в 1С. Регресс 39/39 ps1+py. Закрывает остаток CommandBar>HorizontalLocation. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
d06c2c49bb
commit
09c3dcd988
@@ -1,4 +1,4 @@
|
||||
# form-decompile v0.51 — Decompile 1C managed Form.xml to JSON DSL (draft)
|
||||
# form-decompile v0.52 — Decompile 1C managed Form.xml to JSON DSL (draft)
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
# ВНИМАНИЕ: раундтрип не гарантируется. Навык исключён из авто-использования моделью.
|
||||
param(
|
||||
@@ -1539,6 +1539,7 @@ function Decompile-Element {
|
||||
$obj[$key] = $name
|
||||
Add-CommonProps $obj $node $name
|
||||
$cs = Get-Child $node 'CommandSource'; if ($cs) { $obj['commandSource'] = $cs }
|
||||
$hl = Get-Child $node 'HorizontalLocation'; if ($hl) { $obj['horizontalLocation'] = $hl.ToLower() }
|
||||
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