mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-20 17:40:59 +03:00
feat(form-decompile,form-compile): FooterText/FooterDataPath на PictureField
PictureField (поле картинки в таблице) может нести <FooterText> (ML-текст подвала колонки) и <FooterDataPath> — общие cell-свойства колонки, уже поддержанные у input/labelField, но не у PictureField. Декомпилятор не захватывал, компилятор не эмитил → терялось (форма УчётныеЗаписиДокументооборота: двуязычный FooterText «Доступность ЭП»/«Digital signature availability»). Декомпилятор: захват footerDataPath/footerText в обработчике PictureField (зеркало input/labelField). Компилятор: эмиссия после Emit-Layout (как у input). Зеркало py. Ключи уже в allowlist (общие cell-props). Корпус 8.3.24: PictureField FooterText = 4 формы. Выборка 4 формы (УчётныеЗаписиДокументооборота acc+erp, ЗаказМатериаловВПроизводство, СчётФактураВыданный): match 0→4, TOTAL→0. ps1==py байт-в-байт. Регресс 43/43. 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
668173121d
commit
85ae72739f
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# form-compile v1.152 — Compile 1C managed form from JSON or object metadata
|
||||
# form-compile v1.153 — Compile 1C managed form from JSON or object metadata
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
import argparse
|
||||
import copy
|
||||
@@ -4575,6 +4575,12 @@ def emit_picture_field(lines, el, name, eid, indent):
|
||||
|
||||
emit_layout(lines, el, inner)
|
||||
|
||||
# FooterDataPath / FooterText — общие cell-свойства колонки (как у input/labelField)
|
||||
if el.get('footerDataPath'):
|
||||
lines.append(f'{inner}<FooterDataPath>{esc_xml(str(el["footerDataPath"]))}</FooterDataPath>')
|
||||
if el.get('footerText') is not None:
|
||||
emit_mltext(lines, inner, 'FooterText', el['footerText'])
|
||||
|
||||
# ValuesPicture — picture (collection) used to render the field's value.
|
||||
# Required for a Boolean-bound PictureField to actually show an icon.
|
||||
# Скаляр (Ref) или объект {src, loadTransparent}; LoadTransparent эмитится всегда.
|
||||
|
||||
Reference in New Issue
Block a user