feat(skd): userSettingPresentation на conditionalAppearance item

Build-ConditionalAppearance не читал userSettingPresentation
(read только viewMode/userSettingID), теперь сохраняет multilang
презентацию в JSON, а Emit-ConditionalAppearance эмитит её обратно.

sample30: −80 строк (2114 → 2034).
This commit is contained in:
Nick Shirokov
2026-05-23 17:27:21 +03:00
parent 5ca8ce2b64
commit f75c71064c
3 changed files with 15 additions and 3 deletions
@@ -1,4 +1,4 @@
# skd-decompile v0.54 — Decompile 1C DCS Template.xml to JSON DSL (draft)
# skd-decompile v0.55 — Decompile 1C DCS Template.xml to JSON DSL (draft)
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
param(
[Parameter(Mandatory)]
@@ -1639,6 +1639,11 @@ function Build-ConditionalAppearance {
if ($vmN) { $entry['viewMode'] = $vmN.InnerText }
$usid = Get-Text $it "dcsset:userSettingID"
if ($usid) { $entry['userSettingID'] = 'auto' }
$uspN = $it.SelectSingleNode("dcsset:userSettingPresentation", $ns)
if ($uspN) {
$usp = Get-MLText $uspN
if ($usp) { $entry['userSettingPresentation'] = $usp }
}
# use=false на самом condAppearance item
$useV = Get-Text $it "dcsset:use"
if ($useV -eq 'false') { $entry['use'] = $false }