mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-09-06 10:10:52 +03:00
feat(form-decompile,form-compile): эмиссия оформления Page/Popup + ColumnGroup HeaderPicture + whitespace Title/ToolTip
Декомпилятор ловил эти свойства (Add-CommonProps/Add-Appearance), но эмиттеры компилятора их не выводили → LOST. Четыре подфикса (по выбору пользователя из топа list-iter): 1. Page>BackColor/TitleTextColor/TitleFont (193+): Emit-Page не звал Emit-Appearance. Добавлен (profile field, после ShowTitle перед компаньоном — порядок корпуса). 2. Popup>TitleTextColor/TitleFont (133/127): Emit-Popup не звал Emit-Appearance. Добавлен. 3. ColumnGroup>HeaderPicture (144): Emit-ColumnGroup не звал Emit-ColumnPics. Добавлен (после ShowInHeader/Layout перед оформлением — порядок корпуса). 4. UsualGroup Title/ToolTip с whitespace-контентом: Add-CommonProps читал title/tooltip через Get-LangText (PreserveWhitespace=false стрипал <v8:content> </> → "" → компилятор подавлял). Новый Get-LangTextWS восстанавливает " " (как Get-MLFormattedValue). 1-пробельные tooltip'ы теперь матчатся; редкий N-пробельный → косметика числа пробелов. Зеркало py. Выборка 40 форм с этими категориями: целевые потери 0 (match 21, остаток — несвязанный хвост). Кейсы pages (+backColor/titleTextColor/titleFont), column-group (+headerPicture), button-group (popup +titleTextColor/titleFont) сертифицированы в 1С. Регресс 43/43 (ps1+py). Раскрыто (отдельно): MultipleValuesBackColor (input) — другой appearance-ключ. 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
c96bcc3566
commit
32273d2be8
@@ -1,4 +1,4 @@
|
||||
# form-compile v1.119 — Compile 1C managed form from JSON or object metadata
|
||||
# form-compile v1.120 — Compile 1C managed form from JSON or object metadata
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
param(
|
||||
[string]$JsonPath,
|
||||
@@ -3555,6 +3555,9 @@ function Emit-ColumnGroup {
|
||||
Emit-CommonFlags -el $el -indent $inner
|
||||
Emit-Layout -el $el -indent $inner
|
||||
|
||||
# Картинка заголовка колонки-группы (после ShowInHeader/Layout, перед оформлением — порядок XSD)
|
||||
Emit-ColumnPics -el $el -indent $inner
|
||||
|
||||
# Оформление (цвета/шрифты/граница) — перед компаньоном
|
||||
Emit-Appearance -el $el -indent $inner -profile 'field'
|
||||
|
||||
@@ -4387,6 +4390,9 @@ function Emit-Page {
|
||||
if ($el.showTitle -eq $false) { X "$inner<ShowTitle>false</ShowTitle>" }
|
||||
Emit-Layout -el $el -indent $inner
|
||||
|
||||
# Оформление страницы (BackColor / TitleTextColor / TitleFont) — после ShowTitle, перед компаньоном
|
||||
Emit-Appearance -el $el -indent $inner -profile 'field'
|
||||
|
||||
# Companion
|
||||
Emit-Companion -tag "ExtendedTooltip" -name "${name}РасширеннаяПодсказка" -indent $inner -content $el.extendedTooltip
|
||||
|
||||
@@ -4753,6 +4759,10 @@ function Emit-Popup {
|
||||
X "$inner<Representation>$($el.representation)</Representation>"
|
||||
}
|
||||
Emit-Layout -el $el -indent $inner
|
||||
|
||||
# Оформление попапа (TitleTextColor / TitleFont) — перед компаньоном
|
||||
Emit-Appearance -el $el -indent $inner -profile 'field'
|
||||
|
||||
Emit-Companion -tag "ExtendedTooltip" -name "${name}РасширеннаяПодсказка" -indent $inner -content $el.extendedTooltip
|
||||
|
||||
# Children
|
||||
|
||||
Reference in New Issue
Block a user