{  "schema": "easycatalog-composition-recipe/1",  "id": "vertical-record-table-with-subheaders",  "version": "1.0.0",  "title": "Vertical record table with subheaders",  "description": "Builds a vertical table from two-row record prototypes and merges hierarchical category cells within each composed area. Category1 values choose body and group-furniture prototypes, with defaults for other values. A page obstruction splits the first page's usable space into areas above and below it, forcing continuation. Opening and continued headers identify incoming groups; fragment footers use the last record leaving an area, while final footers use the group's final record. Start/end keeps protect the group boundaries. Resize linked containers to see those decisions recomputed.",  "compatiblePlanSchemas": [    "easycatalog-composition-plan/1"  ],  "features": [    "autoFitVertically",    "formattingRule",    "layoutPattern",    "overflow.continue",    "repeat.everyArea",    "table",    "table.composedAreaMerge",    "table.continuationPrototype",    "table.groupFooters",    "table.rowKeeps",    "table.subheaderKeeps",    "table.subheaders",    "table.valuePrototypes"  ],  "bindings": [    {      "id": "formattingRule.recordSubheaderTitle",      "kind": "formattingRule",      "description": "Formatting rule used as the record subheader title",      "exampleValue": "__EC_RECIPE_523x770_TITLE_RECORD_TABLE_SUBHEADERS",      "occurrences": [        {          "path": "/threads/0/content/0/asset",          "position": "value"        }      ]    },    {      "id": "formattingRule.recordContinuedSubheaderTable",      "kind": "formattingRule",      "description": "Formatting rule used as the record continued subheader table",      "exampleValue": "__EC_RECIPE_523x770_TABLE_RECORDS_WITH_CONTINUED_SUBHEADERS_V2_GROW",      "occurrences": [        {          "path": "/threads/0/content/1/asset",          "position": "value"        }      ]    },    {      "id": "field.Category1",      "kind": "field",      "description": "EasyCatalog field Category1",      "exampleValue": "Category1",      "occurrences": [        {          "path": "/threads/0/content/1/data/shape/sort/0/field",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/include/0",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/leading/0",          "position": "value"        },        {          "path": "/threads/0/content/1/table/subheaders/0/field",          "position": "value"        },        {          "path": "/threads/0/content/1/table/overrides/Category1",          "position": "memberName"        },        {          "path": "/threads/0/content/1/table/cellAttributes/fields/Category1",          "position": "memberName"        }      ],      "expectedType": "unknown",      "comparison": null,      "tabular": false    },    {      "id": "field.Category2",      "kind": "field",      "description": "EasyCatalog field Category2",      "exampleValue": "Category2",      "occurrences": [        {          "path": "/threads/0/content/1/data/shape/sort/1/field",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/include/1",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/leading/1",          "position": "value"        },        {          "path": "/threads/0/content/1/table/overrides/Category2",          "position": "memberName"        },        {          "path": "/threads/0/content/1/table/cellAttributes/fields/Category2",          "position": "memberName"        }      ],      "expectedType": "unknown",      "comparison": null,      "tabular": false    },    {      "id": "field.Category3",      "kind": "field",      "description": "EasyCatalog field Category3",      "exampleValue": "Category3",      "occurrences": [        {          "path": "/threads/0/content/1/data/shape/sort/2/field",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/include/2",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/leading/2",          "position": "value"        },        {          "path": "/threads/0/content/1/table/overrides/Category3",          "position": "memberName"        },        {          "path": "/threads/0/content/1/table/cellAttributes/fields/Category3",          "position": "memberName"        }      ],      "expectedType": "unknown",      "comparison": null,      "tabular": false    },    {      "id": "field.ID",      "kind": "field",      "description": "EasyCatalog field ID",      "exampleValue": "ID",      "occurrences": [        {          "path": "/threads/0/content/1/data/shape/sort/3/field",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/include/3",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/leading/3",          "position": "value"        },        {          "path": "/threads/0/content/1/table/overrides/ID",          "position": "memberName"        }      ],      "expectedType": "unknown",      "comparison": null,      "tabular": false    },    {      "id": "field.AlphaSV",      "kind": "field",      "description": "EasyCatalog field AlphaSV",      "exampleValue": "AlphaSV",      "occurrences": [        {          "path": "/threads/0/content/1/data/shape/sort/4/field",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/include/4",          "position": "value"        },        {          "path": "/threads/0/content/1/table/overrides/AlphaSV",          "position": "memberName"        }      ],      "expectedType": "alphanumeric",      "comparison": null,      "tabular": false    },    {      "id": "field.Price",      "kind": "field",      "description": "EasyCatalog field Price",      "exampleValue": "Price",      "occurrences": [        {          "path": "/threads/0/content/1/table/fields/include/5",          "position": "value"        },        {          "path": "/threads/0/content/1/table/fields/trailing/0",          "position": "value"        },        {          "path": "/threads/0/content/1/table/overrides/Price",          "position": "memberName"        },        {          "path": "/threads/0/content/1/table/overrides/Price/label",          "position": "value"        }      ],      "expectedType": "numeric",      "comparison": null,      "tabular": false    }  ],  "planTemplate": {    "schema": "easycatalog-composition-plan/1",    "threads": [      {        "name": "catalog-content",        "gutter": 12,        "crossAxis": "stretch",        "content": [          {            "type": "formattingRule",            "name": "record-subheader-title",            "asset": {              "$binding": "formattingRule.recordSubheaderTitle"            },            "horizontalAlignment": "center",            "onEmpty": "error"          },          {            "type": "table",            "name": "ordinary-record-subheader-table",            "asset": {              "$binding": "formattingRule.recordContinuedSubheaderTable"            },            "data": {              "source": "selectionRoot",              "result": "self",              "shape": {                "scope": "records",                "sort": [                  {                    "field": {                      "$binding": "field.Category1"                    },                    "missing": "first"                  },                  {                    "field": {                      "$binding": "field.Category2"                    },                    "missing": "first"                  },                  {                    "field": {                      "$binding": "field.Category3"                    },                    "missing": "first"                  },                  {                    "field": {                      "$binding": "field.ID"                    },                    "missing": "first"                  },                  {                    "field": {                      "$binding": "field.AlphaSV"                    }                  }                ]              }            },            "compositionMode": "place",            "autoFitVertically": true,            "minimumHeight": 48,            "overflow": "continue",            "table": {              "mode": "vertical",              "mergeScope": "composedArea",              "keep": {                "atStart": 2,                "atEnd": 2              },              "fields": {                "include": [                  {                    "$binding": "field.Category1"                  },                  {                    "$binding": "field.Category2"                  },                  {                    "$binding": "field.Category3"                  },                  {                    "$binding": "field.ID"                  },                  {                    "$binding": "field.AlphaSV"                  },                  {                    "$binding": "field.Price"                  }                ],                "leading": [                  {                    "$binding": "field.Category1"                  },                  {                    "$binding": "field.Category2"                  },                  {                    "$binding": "field.Category3"                  },                  {                    "$binding": "field.ID"                  }                ],                "trailing": [                  {                    "$binding": "field.Price"                  }                ],                "removeEmpty": false              },              "subheaders": [                {                  "field": {                    "$binding": "field.Category1"                  },                  "prototypeRow": 0,                  "prototypes": [                    {                      "value": "Office",                      "prototypeRow": 3,                      "bodyPrototypeRow": 9                    },                    {                      "value": "Outdoor",                      "prototypeRow": 5,                      "bodyPrototypeRow": 11                    }                  ],                  "omitWhenSingle": false,                  "keep": {                    "atStart": 2,                    "atEnd": 2                  },                  "repeat": {                    "mode": "every area",                    "prototypeRow": 2,                    "prototypes": [                      {                        "value": "Office",                        "prototypeRow": 7                      },                      {                        "value": "Outdoor",                        "prototypeRow": 8                      }                    ]                  },                  "footer": {                    "prototypeRow": 13,                    "prototypes": [                      {                        "value": "Office",                        "prototypeRow": 15                      },                      {                        "value": "Outdoor",                        "prototypeRow": 17                      }                    ]                  },                  "fragmentFooter": {                    "prototypeRow": 21,                    "prototypes": [                      {                        "value": "Office",                        "prototypeRow": 23                      },                      {                        "value": "Outdoor",                        "prototypeRow": 25                      }                    ]                  }                }              ],              "overrides": {                "{$binding:field.Category1}": {                  "label": {                    "content": "<img>",                    "fieldOptions": {                      "css": "img { width: 5mm; height: 5mm; fillcolor: #ff0000; strokecolor: none; strokeweight: 0pt; topleftcorneroption: rounded_corner; toprightcorneroption: rounded_corner; bottomleftcorneroption: rounded_corner; bottomrightcorneroption: rounded_corner; topleftcornerradius: 1mm; toprightcornerradius: 1mm; bottomleftcornerradius: 1mm; bottomrightcornerradius: 1mm; }"                    }                  }                },                "{$binding:field.Category2}": {                  "label": {                    "content": "<img>",                    "fieldOptions": {                      "css": "img { width: 5mm; height: 5mm; fillcolor: #00ff00; strokecolor: none; strokeweight: 0pt; topleftcorneroption: rounded_corner; toprightcorneroption: rounded_corner; bottomleftcorneroption: rounded_corner; bottomrightcorneroption: rounded_corner; topleftcornerradius: 1mm; toprightcornerradius: 1mm; bottomleftcornerradius: 1mm; bottomrightcornerradius: 1mm; }"                    }                  }                },                "{$binding:field.Category3}": {                  "label": {                    "content": "<img>",                    "fieldOptions": {                      "css": "img { width: 5mm; height: 5mm; fillcolor: #0000ff; strokecolor: none; strokeweight: 0pt; topleftcorneroption: rounded_corner; toprightcorneroption: rounded_corner; bottomleftcorneroption: rounded_corner; bottomrightcorneroption: rounded_corner; topleftcornerradius: 1mm; toprightcornerradius: 1mm; bottomleftcornerradius: 1mm; bottomrightcornerradius: 1mm; }"                    }                  }                },                "{$binding:field.ID}": {                  "label": "Code"                },                "{$binding:field.AlphaSV}": {                  "label": "Product"                },                "{$binding:field.Price}": {                  "label": {                    "$binding": "field.Price"                  }                }              },              "cellAttributes": {                "fields": {                  "{$binding:field.Category1}": {                    "mergeVertical": "matching"                  },                  "{$binding:field.Category2}": {                    "mergeVertical": "matchingNonEmpty",                    "applyWhenLeftMerges": true                  },                  "{$binding:field.Category3}": {                    "mergeVertical": "matchingNonEmpty",                    "applyWhenLeftMerges": true                  }                }              }            },            "onEmpty": "error"          }        ]      }    ],    "layoutPattern": {      "name": "record-table-obstruction-area",      "areas": [        {          "name": "record-table-flow",          "bounds": [            0,            0,            1,            1          ]        }      ],      "obstructions": {        "source": "layer",        "layer": "__EC Table Obstructions",        "include": [          "page"        ],        "clearance": [          8,          0,          8,          0        ],        "flow": "block",        "minimumWidth": 72,        "minimumHeight": 48      }    }  },  "requirements": {    "units": "points",    "generatedPage": {      "width": 523.275590551,      "height": 769.889763778    },    "adaptGeometryToTargetDocument": true,    "pageObstructions": true  },  "verification": {    "suite": "easycatalog-composition-recipes",    "testNumber": 48,    "success": true,    "placedCount": 6,    "areaCount": 5  }}