mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-06 11:40:20 +03:00
feat(skd-decompile): conditionalAppearance + outputParameters внутри structure group
Build-Structure для StructureItemGroup теперь читает локальные conditionalAppearance и outputParameters — раньше они терялись для вложенных групп (только для top-level settings работало). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
206fed0125
commit
515c82c398
@@ -1,4 +1,4 @@
|
|||||||
# skd-decompile v0.26 — Decompile 1C DCS Template.xml to JSON DSL (draft)
|
# skd-decompile v0.27 — Decompile 1C DCS Template.xml to JSON DSL (draft)
|
||||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory)]
|
[Parameter(Mandatory)]
|
||||||
@@ -1742,6 +1742,16 @@ function Build-Structure {
|
|||||||
foreach ($fc in $filterNode.SelectNodes("dcsset:item", $ns)) { $f += (Build-FilterItem -itemNode $fc -loc "$loc/filter") }
|
foreach ($fc in $filterNode.SelectNodes("dcsset:item", $ns)) { $f += (Build-FilterItem -itemNode $fc -loc "$loc/filter") }
|
||||||
$entry['filter'] = $f
|
$entry['filter'] = $f
|
||||||
}
|
}
|
||||||
|
# Local conditionalAppearance
|
||||||
|
$caNode = $it.SelectSingleNode("dcsset:conditionalAppearance", $ns)
|
||||||
|
if ($caNode) {
|
||||||
|
$ca = Build-ConditionalAppearance -caNode $caNode -loc "$loc/ca"
|
||||||
|
if ($ca.Count -gt 0) { $entry['conditionalAppearance'] = $ca }
|
||||||
|
}
|
||||||
|
# Local outputParameters
|
||||||
|
$opNode = $it.SelectSingleNode("dcsset:outputParameters", $ns)
|
||||||
|
$op = Build-OutputParameters -opNode $opNode
|
||||||
|
if ($op -and $op.Count -gt 0) { $entry['outputParameters'] = $op }
|
||||||
|
|
||||||
# Children — recursive
|
# Children — recursive
|
||||||
$children = Build-Structure -node $it -loc "$loc/children"
|
$children = Build-Structure -node $it -loc "$loc/children"
|
||||||
|
|||||||
Reference in New Issue
Block a user