mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-10 16:14:54 +03:00
feat(skd-compile): conditionalAppearance + outputParameters внутри structure group
Реальные отчёты задают conditionalAppearance прямо на вложенной StructureItemGroup (например — особое оформление шапки группировки). Compile теперь эмитит её сразу после filter, перед outputParameters, если задана в JSON. outputParameters на StructureItemGroup уже эмитился — без изменений. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# skd-compile v1.41 — Compile 1C DCS from JSON
|
||||
# skd-compile v1.42 — Compile 1C DCS from JSON
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
param(
|
||||
[string]$DefinitionFile,
|
||||
@@ -2492,6 +2492,10 @@ function Emit-StructureItem {
|
||||
|
||||
Emit-Filter -items $item.filter -indent "$indent`t"
|
||||
|
||||
if ($item.conditionalAppearance) {
|
||||
Emit-ConditionalAppearance -items $item.conditionalAppearance -indent "$indent`t"
|
||||
}
|
||||
|
||||
if ($item.outputParameters) {
|
||||
Emit-OutputParameters -params $item.outputParameters -indent "$indent`t"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# skd-compile v1.41 — Compile 1C DCS from JSON
|
||||
# skd-compile v1.42 — Compile 1C DCS from JSON
|
||||
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||
import argparse
|
||||
import json
|
||||
@@ -2061,6 +2061,9 @@ def emit_structure_item(lines, item, indent):
|
||||
|
||||
emit_filter(lines, item.get('filter'), f'{indent}\t')
|
||||
|
||||
if item.get('conditionalAppearance'):
|
||||
emit_conditional_appearance(lines, item['conditionalAppearance'], f'{indent}\t')
|
||||
|
||||
if item.get('outputParameters'):
|
||||
emit_output_parameters(lines, item['outputParameters'], f'{indent}\t')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user