mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-03 00:30:52 +03:00
feat(form-decompile,form-compile): оформление заголовка + CurrentRowUse на Pages
Контейнер вкладок <Pages> может нести оформление заголовка (TitleFont/TitleTextColor/ TitleBackColor/…) и <CurrentRowUse>. Декомпилятор оформление УЖЕ захватывал (через Add-CommonProps→Add-Appearance), но Emit-Pages не вызывал Emit-Appearance → терялось. CurrentRowUse не ловился у Pages (только Table). Компилятор: Emit-Appearance (профиль field, как у Page) после Emit-Layout + CurrentRowUse после PagesRepresentation (порядок XSD). Декомпилятор: захват currentRowUse в обработчике Pages. Зеркало py. currentRowUse → allowlist (ps1+py). Корпус 8.3.24: Pages title-appearance ~5, CurrentRowUse ~3. Выборка 8 форм (КлиентБанк/ЗагрузкаВыписки, Контрагенты/ФормаНовогоЭлемента, … acc+erp): match 0→8, TOTAL→0. ps1==py байт-в-байт. Регресс 43/43. Spec обновлён. 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
e3ae9c27d1
commit
670a574249
@@ -1,4 +1,4 @@
|
||||
# form-decompile v0.129 — Decompile 1C managed Form.xml to JSON DSL (draft)
|
||||
# form-decompile v0.130 — Decompile 1C managed Form.xml to JSON DSL (draft)
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
# ВНИМАНИЕ: раундтрип не гарантируется. Навык исключён из авто-использования моделью.
|
||||
param(
|
||||
@@ -2090,6 +2090,7 @@ function Decompile-Element {
|
||||
$obj[$key] = $name
|
||||
Add-CommonProps $obj $node $name
|
||||
$pr = Get-Child $node 'PagesRepresentation'; if ($pr) { $obj['pagesRepresentation'] = $pr }
|
||||
$cru = Get-Child $node 'CurrentRowUse'; if ($cru) { $obj['currentRowUse'] = $cru }
|
||||
$kids = Decompile-Children $node
|
||||
if ($kids) { $obj['children'] = $kids }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user