Files
cc-1c-skills/tests/skills/cases/form-compile/synonyms.json
T
Nick Shirokov 13174b63b1 feat(form-compile): нативная AutoCommandBar формы + autoCmdBar DSL
- Эвристика главной АКП: без cmdBar/autoCmdBar остаётся Autofill=true
  (как в Конфигураторе), с cmdBar — Autofill=false (обратная совместимость).
- Новый элемент autoCmdBar для наполнения главной АКП кастомными кнопками.
- Тихие синонимы commandBar↔cmdBar, autoCommandBar↔autoCmdBar.
- Инференс main-реквизита по типу (*Object.*, *RecordSet.*, DynamicList,
  ConstantsSet) — единственный кандидат проставляется молча с [INFO].
- Эвристика DynamicList → таблица: tableAutofill=false +
  commandBarLocation=None для привязанной таблицы (соответствие ERP).
- Косметика: <Autofill>true</Autofill> не эмитится явно.

Snapshot'ы form-* также обновлены до актуального состояния cf-init
(Ext/ClientApplicationInterface.xml).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 20:46:23 +03:00

37 lines
1.3 KiB
JSON

{
"name": "Синонимы commandBar/autoCommandBar нормализуются молча",
"preRun": [
{
"script": "meta-compile/scripts/meta-compile",
"input": { "type": "DataProcessor", "name": "Тест" },
"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": "Тест синонимов",
"attributes": [
{ "name": "Объект", "type": "DataProcessorObject.Тест", "main": true },
{ "name": "Поле", "type": "string(50)" }
],
"elements": [
{ "autoCommandBar": "ФормаКоманднаяПанель", "children": [
{ "button": "Кн1", "command": "Кн1" }
]},
{ "input": "Поле", "path": "Поле" },
{ "commandBar": "ДопПанель", "children": [
{ "button": "Кн2", "command": "Кн2" }
]}
],
"commands": [
{ "name": "Кн1", "action": "Кн1" },
{ "name": "Кн2", "action": "Кн2" }
]
}
}