Files
cc-1c-skills/tests/skills/cases/form-compile/radio-tumbler-strings.json
T
Nick Shirokov b1e29253d5 feat(form-compile): RadioButtonField и словарь синонимов типов элементов
Поле переключателя с RadioButtonType (Auto/RadioButtons/Tumbler) и
ChoiceList (массив value+presentation). Толерантно к написанию модели:
русские имена тегов (ПолеПереключателя, RadioButtonField),
ВидПереключателя по-русски (Авто/Переключатель/Тумблер),
Перечисление.X.Y без EnumValue, синоним title для presentation,
автогенерация презентации из имени значения.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 18:43:26 +03:00

37 lines
1.3 KiB
JSON

{
"name": "RadioButtonField Tumbler + строковые значения с автогенерацией презентации",
"preRun": [
{
"script": "meta-compile/scripts/meta-compile",
"input": { "type": "DataProcessor", "name": "ТестТумблер", "attributes": [
{ "name": "ОтборСтрок", "type": "string(50)" }
]},
"args": { "-JsonPath": "{inputFile}", "-OutputDir": "{workDir}" }
},
{
"script": "form-add/scripts/form-add",
"args": { "-ObjectPath": "{workDir}/DataProcessors/ТестТумблер.xml", "-FormName": "Форма" }
}
],
"params": { "outputPath": "DataProcessors/ТестТумблер/Forms/Форма/Ext/Form.xml" },
"validatePath": "DataProcessors/ТестТумблер/Forms/Форма/Ext/Form.xml",
"input": {
"title": "Радио — Tumbler",
"attributes": [
{ "name": "Объект", "type": "DataProcessorObject.ТестТумблер", "main": true },
{ "name": "ОтборСтрок", "type": "string(50)" }
],
"elements": [
{
"radio": "ОтборСтрок",
"path": "ОтборСтрок",
"radioButtonType": "Tumbler",
"choiceList": [
{ "value": "Рекомендуемые" },
{ "value": "Все" }
]
}
]
}
}