mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-14 18:04:58 +03:00
0778cc89ee
- runner.mjs v0.4: --with-validation flag runs validators on real output - postValidate config in 20 _skill.json files (maps skill → validator) - validatePath in ~100 positive test cases - skipValidation for 5 cross-reference cases (isolated workspace limitation) - Integration tests: build-config (19 steps), build-epf (6), build-cfe (4) - base-config cache from build-config for downstream tests - Fix chart-of-calculation-types test data (DependenceOnCalculationTypes) - 285/285 unit + 3/3 integration, all green with validation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
94 lines
3.2 KiB
JSON
94 lines
3.2 KiB
JSON
{
|
|
"name": "Макет с разными стилями — шрифты, границы, выравнивание",
|
|
"input": {
|
|
"columns": 5,
|
|
"defaultWidth": 25,
|
|
"fonts": {
|
|
"default": { "face": "Arial", "size": 10 },
|
|
"bold": { "face": "Arial", "size": 10, "bold": true },
|
|
"italic": { "face": "Arial", "size": 10, "italic": true },
|
|
"header": { "face": "Times New Roman", "size": 14, "bold": true },
|
|
"small": { "face": "Arial", "size": 8 },
|
|
"underlined": { "face": "Arial", "size": 10, "underline": true }
|
|
},
|
|
"styles": {
|
|
"header-center": { "font": "header", "align": "center" },
|
|
"bold-left": { "font": "bold", "border": "bottom" },
|
|
"italic-right": { "font": "italic", "align": "right" },
|
|
"bordered": { "border": "all" },
|
|
"bordered-center": { "border": "all", "align": "center" },
|
|
"bordered-right": { "border": "all", "align": "right" },
|
|
"thick-border": { "border": "all", "borderWidth": "thick", "font": "bold" },
|
|
"top-bottom": { "border": "top,bottom" },
|
|
"small-note": { "font": "small", "align": "center" },
|
|
"underlined-left": { "font": "underlined" },
|
|
"wrap-cell": { "border": "all", "wrap": true }
|
|
},
|
|
"areas": [
|
|
{
|
|
"name": "Заголовок",
|
|
"rows": [
|
|
{ "height": 25, "cells": [
|
|
{ "col": 1, "span": 5, "style": "header-center", "text": "НАКЛАДНАЯ" }
|
|
]}
|
|
]
|
|
},
|
|
{
|
|
"name": "Подпись",
|
|
"rows": [
|
|
{ "cells": [
|
|
{ "col": 1, "span": 2, "style": "bold-left", "text": "Поставщик:" },
|
|
{ "col": 3, "span": 3, "style": "underlined-left", "param": "Поставщик" }
|
|
]}
|
|
]
|
|
},
|
|
{
|
|
"name": "ШапкаТаблицы",
|
|
"rows": [
|
|
{ "rowStyle": "thick-border", "cells": [
|
|
{ "col": 1, "text": "№" },
|
|
{ "col": 2, "text": "Товар" },
|
|
{ "col": 3, "text": "Кол-во" },
|
|
{ "col": 4, "text": "Цена" },
|
|
{ "col": 5, "text": "Сумма" }
|
|
]}
|
|
]
|
|
},
|
|
{
|
|
"name": "Строка",
|
|
"rows": [
|
|
{ "rowStyle": "bordered", "cells": [
|
|
{ "col": 1, "style": "bordered-center", "param": "НомерСтроки" },
|
|
{ "col": 2, "style": "wrap-cell", "param": "Товар" },
|
|
{ "col": 3, "style": "bordered-right", "param": "Количество" },
|
|
{ "col": 4, "style": "bordered-right", "param": "Цена" },
|
|
{ "col": 5, "style": "bordered-right", "param": "Сумма" }
|
|
]}
|
|
]
|
|
},
|
|
{
|
|
"name": "Итого",
|
|
"rows": [
|
|
{ "cells": [
|
|
{ "col": 4, "style": "top-bottom", "text": "Итого:" },
|
|
{ "col": 5, "style": "top-bottom", "param": "Всего" }
|
|
]}
|
|
]
|
|
},
|
|
{
|
|
"name": "Примечание",
|
|
"rows": [
|
|
{ "cells": [
|
|
{ "col": 1, "span": 5, "style": "small-note", "text": "* Цены указаны без НДС" }
|
|
]}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"params": { "outputPath": "Template.xml" },
|
|
"validatePath": "Template.xml",
|
|
"expect": {
|
|
"files": ["Template.xml"]
|
|
}
|
|
}
|