mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-20 01:20:59 +03:00
fix(skd-compile): object-form structure, OrGroup string items, useRestriction alias
- Default structure item type to 'group' when omitted; accept groupFields as alias for groupBy
- Parse string shorthand items inside OrGroup/AndGroup/NotGroup filter recursion
- Accept useRestriction key (object form { field: true }) alongside restrict array
- Deduplicate SelectedItemAuto in skd-edit add-selection
- Update SKILL.md with object structure and useRestriction docs
- Add test cases for all 4 fixes
skd-compile v1.9→v1.10, skd-edit v1.8→v1.9
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
46e065adb9
commit
384e68cab4
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"name": "OrGroup в conditionalAppearance со строками-shorthand в items",
|
||||
"params": { "outputPath": "Template.xml" },
|
||||
"input": {
|
||||
"dataSets": [{
|
||||
"name": "Основной",
|
||||
"query": "ВЫБРАТЬ Т.Поле1, Т.Поле2, Т.Сумма ИЗ Регистр КАК Т",
|
||||
"fields": ["Поле1: decimal", "Поле2: decimal", "Сумма: decimal(15,2)"]
|
||||
}],
|
||||
"settingsVariants": [{
|
||||
"name": "Основной",
|
||||
"settings": {
|
||||
"selection": ["Поле1", "Поле2", "Сумма"],
|
||||
"conditionalAppearance": [
|
||||
{
|
||||
"filter": [{"group": "Or", "items": [
|
||||
"Поле1 = 1",
|
||||
"Поле2 = 2"
|
||||
]}],
|
||||
"appearance": { "Формат": "ЧЦ=15; ЧДЦ=0" }
|
||||
}
|
||||
],
|
||||
"structure": "details"
|
||||
}
|
||||
}]
|
||||
},
|
||||
"validatePath": "Template.xml",
|
||||
"expect": {
|
||||
"files": ["Template.xml"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user