mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-02 01:37:45 +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:
co-authored by
Claude Opus 4.7
parent
e5e6392b8c
commit
206fed0125
@@ -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
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
param(
|
param(
|
||||||
[string]$DefinitionFile,
|
[string]$DefinitionFile,
|
||||||
@@ -2492,6 +2492,10 @@ function Emit-StructureItem {
|
|||||||
|
|
||||||
Emit-Filter -items $item.filter -indent "$indent`t"
|
Emit-Filter -items $item.filter -indent "$indent`t"
|
||||||
|
|
||||||
|
if ($item.conditionalAppearance) {
|
||||||
|
Emit-ConditionalAppearance -items $item.conditionalAppearance -indent "$indent`t"
|
||||||
|
}
|
||||||
|
|
||||||
if ($item.outputParameters) {
|
if ($item.outputParameters) {
|
||||||
Emit-OutputParameters -params $item.outputParameters -indent "$indent`t"
|
Emit-OutputParameters -params $item.outputParameters -indent "$indent`t"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/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
|
# Source: https://github.com/Nikolay-Shirokov/cc-1c-skills
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
import json
|
||||||
@@ -2061,6 +2061,9 @@ def emit_structure_item(lines, item, indent):
|
|||||||
|
|
||||||
emit_filter(lines, item.get('filter'), f'{indent}\t')
|
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'):
|
if item.get('outputParameters'):
|
||||||
emit_output_parameters(lines, item['outputParameters'], f'{indent}\t')
|
emit_output_parameters(lines, item['outputParameters'], f'{indent}\t')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user