Files
cc-1c-skills/tests/skills/cases/form-compile/chart-fields.json
T
Nick Shirokov f534add7b4 feat(form-decompile,form-compile): измерения планировщика (dimensions) — Planner Phase 1
Расширение Phase 1 кластера Chart-Settings: реквизит pl:Planner теперь несёт
измерения планировщика (<pl:dimension> — «Измерения» в конфигураторе) с элементами.

DSL planner.dimensions[]: объект разреза (value — ссылка xr:DesignTimeRef или nil,
text-заголовок, цвета, font) + elements[] (элементы измерения, РЕКУРСИВНЫ — могут
нести вложенные elements, как показывает UI колонкой «Элементы»; поле
showOnlySubordinatesAreas). Тип value авто-выводится: ссылочный вид →
xsi:type="xr:DesignTimeRef", иначе xs:string. Пустой текст → самозакрывающийся
<pl:text/> (как в выгрузке). Общие хелперы Emit/Get-PlannerValue/Text применены
и к элементам расписания (items).

Раундтрип бит-в-бит: синтетика upload/epf/Диаграммы (items + 2 dimensions +
вложенные elements + period). Зеркало py (ps1==py байт-в-байт). Кейс chart-fields
расширен измерением (nil-разрез + xs:string-элемент + showOnlySubordinatesAreas),
сертифицирован загрузкой в 1С. Регресс 41/41 (ps1+py).

Ограничение: item.dimensionValues (привязка элемента расписания к элементам
измерений) пока всегда пустой.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-10 13:57:54 +03:00

48 lines
2.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"name": "Форма с полями диаграмм + design-time Settings планировщика",
"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": [
{ "chart": "Диаграмма", "path": "Диаграмма", "titleLocation": "none" },
{ "graphicalSchema": "Схема", "path": "Схема", "titleLocation": "none", "edit": false },
{ "periodField": "Период", "path": "Период", "titleLocation": "none" },
{ "ganttChart": "Ганта", "path": "Ганта", "titleLocation": "none",
"ganttTable": { "table": "ТаблицаГанта", "path": "Ганта", "height": 3 } },
{ "dendrogram": "Дендро", "path": "Дендро", "titleLocation": "none" },
{ "planner": "Планировщик", "path": "Планировщик", "titleLocation": "none" }
],
"attributes": [
{ "name": "Объект", "type": "DataProcessorObject.Диаграммы", "main": true },
{ "name": "Диаграмма", "type": "d5p1:Chart" },
{ "name": "Схема", "type": "d5p1:FlowchartContextType" },
{ "name": "Период", "type": "v8:StandardPeriod" },
{ "name": "Ганта", "type": "d5p1:GanttChart" },
{ "name": "Дендро", "type": "d5p1:Dendrogram" },
{ "name": "Планировщик", "type": "pl:Planner", "planner": {
"items": [
{ "text": "Встреча", "begin": "2026-06-09T01:00:00", "end": "2026-06-09T04:00:00" }
],
"dimensions": [
{ "text": "Измерение", "elements": [
{ "value": "А", "text": "Элемент А", "showOnlySubordinatesAreas": true }
] }
],
"period": { "begin": "2026-06-09T00:00:00", "end": "2026-06-09T23:59:59" }
} }
]
}
}