mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-15 18:34:57 +03:00
9c1ea1662a
CommandSet встречается на Table (23) и Form (8). Форменный excludedCommands уже поддержан, табличный — нет. - compiler PS1+PY: Emit-Table — excludedCommands → <CommandSet>; заодно viewStatusLocation/searchControlLocation (из того же блока свойств таблицы). - decompiler: Table — CommandSet→excludedCommands, searchStringLocation (раньше не ловился), viewStatusLocation/searchControlLocation. - docs/form-dsl-spec: excludedCommands + view/searchControl у таблицы. - tests: table расширен, сертифицирован в 1С. ExcludedCommand ушёл из топа LOST. Регресс 32/32 PS1+PY, churn нулевой. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
37 lines
1.5 KiB
JSON
37 lines
1.5 KiB
JSON
{
|
|
"name": "Форма с таблицей",
|
|
"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": "Просмотр данных",
|
|
"elements": [
|
|
{ "table": "Данные", "path": "Данные", "changeRowSet": true,
|
|
"viewStatusLocation": "None", "searchControlLocation": "None",
|
|
"excludedCommands": ["Add", "Delete", "MoveUp", "MoveDown"], "columns": [
|
|
{ "input": "Дата", "path": "Данные.Дата" },
|
|
{ "input": "Сумма", "path": "Данные.Сумма" },
|
|
{ "input": "Комментарий", "path": "Данные.Комментарий" }
|
|
]}
|
|
],
|
|
"attributes": [
|
|
{ "name": "Объект", "type": "DataProcessorObject.Таблица", "main": true },
|
|
{ "name": "Данные", "type": "ValueTable", "columns": [
|
|
{ "name": "Дата", "type": "date" },
|
|
{ "name": "Сумма", "type": "decimal(15,2)" },
|
|
{ "name": "Комментарий", "type": "string(200)" }
|
|
]}
|
|
]
|
|
}
|
|
}
|