{
  "$schema": "https://fgjcarlos.github.io/tessera/catalog.json",
  "schemaVersion": 1,
  "tesseraVersion": "0.7.0",
  "package": "@fgjcarlos/node-red-tessera",
  "docs": "https://fgjcarlos.github.io/tessera",
  "messageContract": {
    "input": {
      "payload": "the widget value (see each widget messages.input)",
      "ui": "object: overrides any widget prop at runtime, e.g. { label, disabled, color }",
      "_client": "{ id }: deliver only to that browser; such messages are not stored"
    },
    "output": "{ payload, topic, _client: { id } } from input widgets; topic is the node topic",
    "state": "the last value of each widget is stored on the server and replayed to new browsers"
  },
  "app": {
    "node": "tessera-base",
    "note": "one per Node-RED instance: the dashboard app, served at /<path>/",
    "config": {
      "title": {
        "default": "tessera"
      },
      "path": {
        "default": "tessera",
        "required": true
      },
      "theme": {
        "default": "dark"
      },
      "accent": {
        "default": "teal"
      },
      "logo": {
        "default": ""
      },
      "logoDark": {
        "default": ""
      },
      "shortName": {
        "default": ""
      },
      "font": {
        "default": ""
      },
      "fontFamily": {
        "default": ""
      },
      "fontUrl": {
        "default": ""
      },
      "density": {
        "default": ""
      },
      "radius": {
        "default": ""
      },
      "css": {
        "default": ""
      },
      "nav": {
        "default": "topbar"
      },
      "kioskDefault": {
        "default": false
      },
      "gridCols": {
        "default": 12
      },
      "rowHeight": {
        "default": 104
      },
      "tabletCols": {
        "default": 0
      },
      "phoneCols": {
        "default": 4
      }
    },
    "nav": [
      {
        "value": "topbar",
        "label": "Top bar"
      },
      {
        "value": "sidebar",
        "label": "Sidebar"
      },
      {
        "value": "sidebar-topbar",
        "label": "Sidebar + bar"
      }
    ],
    "navDeprecated": [
      {
        "value": "kiosk",
        "use": "nav 'topbar' with kioskDefault: true (kiosk was a navigation style up to 0.4; it still works and the runtime cleans it so)"
      }
    ],
    "kiosk": "Kiosk is the app in browser full screen, nothing else: the navigation stays visible. ?kiosk on the dashboard URL turns it on for that screen, ?kiosk=0 turns it off, otherwise kioskDefault (default false) decides. Browsers only allow full screen after a user gesture, so the first click or key press on a kiosk screen asks for it; a full-screen button in the navigation (any dashboard, hidden where the Fullscreen API is missing) enters and leaves it. For an unattended screen start the browser itself in kiosk mode (chromium --kiosk <url>)",
    "themes": [
      "dark",
      "light",
      "system"
    ],
    "accents": [
      "teal",
      "blue",
      "violet",
      "amber"
    ],
    "branding": "accent is a preset (accents) or any hex colour, #rrggbb or #rgb (anything else is teal): the runtime derives the dark and light token ramps (--accent, --accent-fg, --accent-soft, --series-1) and nudges the lightness so text on the accent and the accent on every surface keep WCAG AA (4.5:1), so a very light or dark colour is shown adjusted. logo and logoDark (the dark theme's, optional) are image URLs: a path relative to the dashboard (/logo.svg, served by Node-RED httpStatic) or http(s); data:, javascript: and //host are dropped. Shown in the top bar and the sidebar, alt text = the title. shortName is the short app name (30 characters) for the home screen / PWA manifest. font, density and radius (the dashboard's style, #165) are optional and empty = today's look, which adds nothing to the stylesheet: font is '' (System), humanist, geometric, serif, mono (system font stacks, nothing is downloaded) or custom; custom needs fontFamily (1-60 letters, digits, spaces, - or _) and fontUrl (a same-origin path ending in .woff2 served by Node-RED, e.g. /fonts/plant.woff2 with httpStatic; no scheme, //host, query or special characters, never a third-party font service), otherwise it is System; density is '' (normal) or compact (tighter paddings, gaps and control heights); radius is none, small, '' (normal) or large. They go into the same stylesheet as :root tokens (--font-sans, --pad-k, --gap-k, --ctl-k, --radius-k), after the accent and before css; unknown or invalid values are ignored and logged, and only the dashboard changes, not the builder. css is advanced and unsupported: stylesheet text served after the theme at /<path>/brand.css (up to 50000 characters); selectors and tokens may change between versions. The app object of `init` carries accent, logo, logoDark, shortName (only when set) and brand (a hash of the stylesheet, '' when there is none: the browser puts it in the stylesheet URL)"
  },
  "page": {
    "node": "tessera-page",
    "note": "config node: base = the tessera-base id; widgets reference it with `page`",
    "config": {
      "base": {
        "default": "",
        "ref": "tessera-base",
        "required": true
      },
      "title": {
        "default": "Home",
        "required": true
      },
      "path": {
        "default": "home"
      },
      "order": {
        "default": 0
      },
      "layout": {
        "default": "grid"
      },
      "regions": {
        "default": {}
      },
      "fit": {
        "default": false
      },
      "fullWidth": {
        "default": false
      },
      "uiIcon": {
        "default": ""
      }
    },
    "layouts": [
      {
        "id": "grid",
        "label": "Grid",
        "regions": [
          "main"
        ],
        "rows": [
          [
            "main"
          ]
        ],
        "phoneOrder": [
          "main"
        ]
      },
      {
        "id": "sidebar-left",
        "label": "Sidebar left",
        "regions": [
          "side",
          "main"
        ],
        "rows": [
          [
            "side",
            "main"
          ]
        ],
        "phoneOrder": [
          "side",
          "main"
        ]
      },
      {
        "id": "sidebar-right",
        "label": "Sidebar right",
        "regions": [
          "main",
          "side"
        ],
        "rows": [
          [
            "main",
            "side"
          ]
        ],
        "phoneOrder": [
          "main",
          "side"
        ]
      },
      {
        "id": "band",
        "label": "Top band",
        "regions": [
          "band",
          "main"
        ],
        "rows": [
          [
            "band"
          ],
          [
            "main"
          ]
        ],
        "phoneOrder": [
          "band",
          "main"
        ]
      },
      {
        "id": "band-sidebar",
        "label": "Band + sidebar",
        "regions": [
          "band",
          "main",
          "side"
        ],
        "rows": [
          [
            "band",
            "band"
          ],
          [
            "main",
            "side"
          ]
        ],
        "phoneOrder": [
          "band",
          "main",
          "side"
        ]
      },
      {
        "id": "three-columns",
        "label": "Three columns",
        "regions": [
          "left",
          "main",
          "right"
        ],
        "rows": [
          [
            "left",
            "main",
            "right"
          ]
        ],
        "phoneOrder": [
          "left",
          "main",
          "right"
        ]
      },
      {
        "id": "two-columns",
        "label": "Two columns",
        "regions": [
          "main",
          "col2"
        ],
        "rows": [
          [
            "main",
            "col2"
          ]
        ],
        "phoneOrder": [
          "main",
          "col2"
        ]
      },
      {
        "id": "screen",
        "label": "Process screen",
        "regions": [
          "main"
        ],
        "rows": [
          [
            "main"
          ]
        ],
        "phoneOrder": [
          "main"
        ],
        "note": "Process screen: one region, main. The first widget of main in reading order (order) fills the whole area below the header and navigation (the viewport height, no page scroll on desktop; its width, height, col and row are ignored): meant for a synoptic. Any further widgets stack below it, one per row at full width with their own height, so the page scrolls to them. Below 1024 px the first widget is full width at a 4:3 box and the page scrolls. Other layouts are not affected"
      }
    ],
    "regions": [
      {
        "id": "main",
        "label": "Main",
        "kind": "grid"
      },
      {
        "id": "side",
        "label": "Sidebar",
        "kind": "stack"
      },
      {
        "id": "band",
        "label": "Top band",
        "kind": "grid"
      },
      {
        "id": "left",
        "label": "Left column",
        "kind": "stack"
      },
      {
        "id": "right",
        "label": "Right column",
        "kind": "stack"
      },
      {
        "id": "col2",
        "label": "Second column",
        "kind": "grid"
      }
    ]
  },
  "grid": {
    "columns": 12,
    "rowHeight": 104,
    "perDashboard": "tessera-base sets the grid: gridCols (any integer 4–48) and rowHeight (16–240 px), default 12 × 104; out-of-range values are clamped. Widget width/col/height/row are in that grid; catalog sizes are for 12 × 104 (double width and height for 24 × 44, four times for 48 × 20). The gap between cells is 16 px up to 24 columns and 8 px above. Presets: Normal 12 × 104, Fine 24 × 44, Extra fine 48 × 20 (exact conversions between them)",
    "deviceColumns": "tessera-base also sets the columns of tablets and phones. tabletCols: 0 (default) = the tablet uses the desktop grid, placed cells kept; 4–16 = its own count, then widgets auto-flow in reading order with their width scaled to it (round, 1 to tabletCols) and a 16 px gap. phoneCols: 2–8, default 4; phones always auto-flow, compact widgets (stat, switch, button up to a quarter of the grid and one 104 px row) take half of them, the rest all",
    "note": "grid widgets: width 1–gridCols columns, height in rows; col (0 to gridCols−1) and row (0-based) place the top-left corner in a grid region (empty: auto-flow by order, as before); widgets must not overlap; order is the reading order (phones, stack regions); region must exist in the page layout",
    "devices": "optional per-device layout, empty = same as desktop. Phone is a viewport under 768 px, tablet 768–1023 px, desktop from 1024 px. hideOn: array with \"phone\" and/or \"tablet\" (other values are dropped); the widget is not shown on those devices. phoneOrder: integer ≥ 0, the position of the widget on phones among its region (a widget without it keeps its reading position; on a tie, widgets with phoneOrder come first). phoneHeight: integer ≥ 1, rows on phones instead of height",
    "widgetConfig": {
      "name": {
        "default": ""
      },
      "page": {
        "default": "",
        "ref": "tessera-page",
        "required": true
      },
      "order": {
        "default": 0
      },
      "width": {
        "default": 3
      },
      "height": {
        "default": 1
      },
      "col": {
        "default": ""
      },
      "row": {
        "default": ""
      },
      "hideOn": {
        "default": []
      },
      "phoneOrder": {
        "default": ""
      },
      "phoneHeight": {
        "default": ""
      },
      "region": {
        "default": "main"
      },
      "topic": {
        "default": ""
      },
      "tag": {
        "default": ""
      }
    }
  },
  "tags": {
    "node": "tessera-tags",
    "note": "optional, core set, no output: a shared read-only table of named values (#158). Widgets bind to a tag with the config key `tag` instead of a wire",
    "config": {
      "name": {
        "default": "",
        "required": true
      },
      "staleTimeout": {
        "default": 0
      },
      "deadband": {
        "default": 0
      },
      "aliases": {
        "default": []
      },
      "tagList": {
        "default": []
      }
    },
    "messages": {
      "input": "msg.payload object: every key is a tag, named \"<node name>/<key>\". msg.topic + a scalar msg.payload: one tag, \"<node name>/<topic>\". msg.quality (good | bad | uncertain, default good) applies to every tag of the message. Config `deadband` (absolute, 0 = off, default): a number that moved less than that from the stored value, with the same quality, is ignored (it still refreshes last seen); quality changes and non-numbers are never filtered. A widget gets at most one state per 100 ms from tags (the latest value); append (chart points, table rows) is not coalesced"
    },
    "aliases": "config `aliases`: [{ topic, name }] (default []). An aliased msg.topic or payload key becomes the tag \"<node name>/<name>\"; other keys keep their own name. Rows need two non-empty strings (others are skipped with a warning); a repeated topic: the last row wins",
    "knownTags": "config `tagList`: [{ name, source, type, unit, description }] (default [], at most 5000 tags, strings only, name up to 200 characters; `source` is optional, see below). `name` is a key after the node name and after any alias, so \"P101_Run\" on a node named PLC1 is the tag \"PLC1/P101_Run\". A listed tag exists from the deploy on with no value and shows \"No data\" until its first value; source, type, unit and description (the non-empty ones) are its `meta`, returned by GET <admin root>/tessera/tags. Bad or duplicate rows are skipped with a warning. The editor imports CSV (header row with a name column, optional source, type, unit, description) or a JSON array through POST <admin root>/tessera/tags/import ({ text } → { tags, rejected, error }, flows.write)",
    "source": "optional `source` of a tagList row (CSV column or JSON field; text, trimmed, up to 500 characters, no control characters): a msg.topic or payload key equal to it sets the tag \"<node name>/<name>\", exactly like an alias, so one file defines name, mapping and metadata for a whole device (MQTT topics, OPC UA node ids, Modbus register keys). When the aliases table maps the same topic, the alias wins. Two rows with one source: the first wins and the other is rejected (reported, with its row number)",
    "lifecycle": "a tags node that is deleted or disabled (not a redeploy) makes its tags stale (\"No data\") and keeps them in the table; two nodes with one name share their tags and both show a status warning",
    "binding": "every grid widget that takes a value (not section, notification or button) has the config key `tag` (default empty, not required): the full tag name, e.g. \"PLC1/P101_Run\". The widget gets the value through its normal input, as msg.payload with msg.topic = the tag name, so a widget that takes a value on a wire takes it from a tag. The tag may be bound before it exists. Tags with bad quality, or not updated for the node staleTimeout seconds (0 = off, default), show the widget as \"No data\". The editor lists the known tags at GET <admin root>/tessera/tags?q= (flows.read, at most 100)"
  },
  "categories": [
    {
      "id": "indicators",
      "label": "Indicators"
    },
    {
      "id": "charts",
      "label": "Charts"
    },
    {
      "id": "data",
      "label": "Data"
    },
    {
      "id": "controls",
      "label": "Controls"
    },
    {
      "id": "inputs",
      "label": "Inputs"
    },
    {
      "id": "media",
      "label": "Media"
    },
    {
      "id": "hmi",
      "label": "HMI"
    },
    {
      "id": "advanced",
      "label": "Advanced"
    },
    {
      "id": "layout",
      "label": "Layout"
    },
    {
      "id": "feedback",
      "label": "Feedback"
    },
    {
      "id": "extensions",
      "label": "Extensions"
    }
  ],
  "nodeSets": {
    "note": "Node-RED node sets: each can be disabled in Manage palette (except tessera, the core). A flow that uses a type from a disabled set stops every flow of the instance until the set is enabled again. A running dashboard serves /<path>/catalog.json without the disabled ones (listed in `disabled`).",
    "sets": [
      {
        "name": "tessera",
        "core": true,
        "types": [
          "tessera-base",
          "tessera-page",
          "tessera-tags",
          "tessera-section",
          "tessera-notification"
        ]
      },
      {
        "name": "tessera-indicators",
        "core": false,
        "types": [
          "tessera-stat",
          "tessera-text",
          "tessera-status",
          "tessera-progress",
          "tessera-gauge"
        ]
      },
      {
        "name": "tessera-charts",
        "core": false,
        "types": [
          "tessera-chart",
          "tessera-bar",
          "tessera-pie"
        ]
      },
      {
        "name": "tessera-data",
        "core": false,
        "types": [
          "tessera-table",
          "tessera-alarms"
        ]
      },
      {
        "name": "tessera-controls",
        "core": false,
        "types": [
          "tessera-button",
          "tessera-switch",
          "tessera-slider"
        ]
      },
      {
        "name": "tessera-inputs",
        "core": false,
        "types": [
          "tessera-dropdown",
          "tessera-input",
          "tessera-datetime",
          "tessera-form"
        ]
      },
      {
        "name": "tessera-media",
        "core": false,
        "types": [
          "tessera-image",
          "tessera-camera",
          "tessera-embed"
        ]
      },
      {
        "name": "tessera-hmi",
        "core": false,
        "types": [
          "tessera-synoptic",
          "tessera-equipment"
        ]
      },
      {
        "name": "tessera-advanced",
        "core": false,
        "types": [
          "tessera-template"
        ]
      }
    ]
  },
  "widgets": [
    {
      "type": "stat",
      "node": "tessera-stat",
      "label": "Stat",
      "category": "indicators",
      "set": "tessera-indicators",
      "description": "A value with unit and sparkline",
      "tags": [
        "value",
        "kpi",
        "number",
        "metric",
        "sparkline",
        "threshold",
        "alarm"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 0,
      "messages": {
        "input": "number (or text) → the value; numbers feed the sparkline",
        "output": null
      },
      "props": {
        "label": "Value",
        "unit": "",
        "decimals": 1
      },
      "style": [
        "decimals",
        "warn",
        "alarm"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "unit",
          "config": "unit",
          "label": "Unit",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "decimals",
          "config": "decimals",
          "label": "Decimals",
          "type": "number",
          "group": "Appearance",
          "min": 0,
          "max": 6,
          "step": 1
        },
        {
          "prop": "warn",
          "config": "warn",
          "label": "Warning at",
          "type": "number",
          "group": "Appearance",
          "optional": true
        },
        {
          "prop": "alarm",
          "config": "alarm",
          "label": "Alarm at",
          "type": "number",
          "group": "Appearance",
          "optional": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "unit": {
          "default": ""
        },
        "decimals": {
          "default": 1
        },
        "warn": {
          "default": ""
        },
        "alarm": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/stat/"
    },
    {
      "type": "text",
      "node": "tessera-text",
      "label": "Text",
      "category": "indicators",
      "set": "tessera-indicators",
      "description": "Text or a formatted value",
      "tags": [
        "label",
        "message",
        "state",
        "status",
        "string",
        "note",
        "markdown",
        "format"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 0,
      "messages": {
        "input": "any → the text; objects as JSON unless `format` picks a field ({{payload.id}})",
        "output": null
      },
      "props": {
        "label": "Status",
        "format": "",
        "size": "md",
        "align": "left",
        "color": "neutral",
        "markdown": false
      },
      "style": [
        "format",
        "size",
        "align",
        "color"
      ],
      "inline": [
        "format",
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "format",
          "config": "format",
          "label": "Format",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "markdown",
          "config": "markdown",
          "label": "Markdown (bold, links, lists)",
          "type": "toggle",
          "group": "Content"
        },
        {
          "prop": "size",
          "config": "size",
          "label": "Size",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "sm",
              "label": "SM"
            },
            {
              "value": "md",
              "label": "MD"
            },
            {
              "value": "lg",
              "label": "LG"
            },
            {
              "value": "xl",
              "label": "XL"
            }
          ]
        },
        {
          "prop": "align",
          "config": "align",
          "label": "Align",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "left",
              "label": "Left"
            },
            {
              "value": "center",
              "label": "Center"
            },
            {
              "value": "right",
              "label": "Right"
            }
          ]
        },
        {
          "prop": "color",
          "config": "color",
          "label": "Color",
          "type": "swatch",
          "group": "Appearance",
          "options": [
            {
              "value": "accent",
              "label": "accent"
            },
            {
              "value": "neutral",
              "label": "neutral"
            },
            {
              "value": "success",
              "label": "success"
            },
            {
              "value": "warning",
              "label": "warning"
            },
            {
              "value": "danger",
              "label": "danger"
            }
          ]
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "format": {
          "default": ""
        },
        "size": {
          "default": "md"
        },
        "align": {
          "default": "left"
        },
        "color": {
          "default": "neutral"
        },
        "markdown": {
          "default": false
        },
        "uiIcon": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/text/"
    },
    {
      "type": "status",
      "node": "tessera-status",
      "label": "Status",
      "category": "indicators",
      "set": "tessera-indicators",
      "description": "Device state as an LED, pill or tile",
      "tags": [
        "led",
        "state",
        "on/off",
        "indicator",
        "lamp",
        "badge",
        "fault",
        "alarm",
        "running",
        "boolean"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 0,
      "messages": {
        "input": "string | number | boolean → matched (case-insensitive) to a configured state; on/off, 1/0, yes/no match true/false",
        "output": null
      },
      "props": {
        "label": "Status",
        "style": "led",
        "states": [
          {
            "value": "true",
            "label": "On",
            "color": "success",
            "icon": "",
            "blink": false
          },
          {
            "value": "false",
            "label": "Off",
            "color": "neutral",
            "icon": "",
            "blink": false
          }
        ]
      },
      "style": [
        "style"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "style",
          "config": "style",
          "label": "Style",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "led",
              "label": "LED"
            },
            {
              "value": "pill",
              "label": "Pill"
            },
            {
              "value": "tile",
              "label": "Tile"
            }
          ]
        },
        {
          "prop": "states",
          "config": "states",
          "label": "States",
          "type": "states",
          "group": "Behaviour",
          "options": [
            {
              "value": "accent",
              "label": "accent"
            },
            {
              "value": "neutral",
              "label": "neutral"
            },
            {
              "value": "success",
              "label": "success"
            },
            {
              "value": "warning",
              "label": "warning"
            },
            {
              "value": "danger",
              "label": "danger"
            }
          ]
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "style": {
          "default": "led"
        },
        "states": {
          "default": [
            {
              "value": "true",
              "label": "On",
              "color": "success",
              "icon": "",
              "blink": false
            },
            {
              "value": "false",
              "label": "Off",
              "color": "neutral",
              "icon": "",
              "blink": false
            }
          ]
        },
        "uiIcon": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/status/"
    },
    {
      "type": "progress",
      "node": "tessera-progress",
      "label": "Progress",
      "category": "indicators",
      "set": "tessera-indicators",
      "description": "Progress bar or tank level",
      "tags": [
        "bar",
        "level",
        "tank",
        "fill",
        "percent",
        "progress",
        "meter",
        "threshold",
        "alarm"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 0,
      "messages": {
        "input": "number (or numeric string) within min..max; non-numbers clear the value",
        "output": null
      },
      "props": {
        "label": "Level",
        "unit": "%",
        "min": 0,
        "max": 100,
        "decimals": 0,
        "orientation": "horizontal",
        "showValue": false
      },
      "style": [
        "decimals",
        "warn",
        "alarm",
        "orientation",
        "showValue"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "unit",
          "config": "unit",
          "label": "Unit",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "min",
          "config": "min",
          "label": "Min",
          "type": "number",
          "group": "Appearance"
        },
        {
          "prop": "max",
          "config": "max",
          "label": "Max",
          "type": "number",
          "group": "Appearance"
        },
        {
          "prop": "decimals",
          "config": "decimals",
          "label": "Decimals",
          "type": "number",
          "group": "Appearance",
          "min": 0,
          "max": 6,
          "step": 1
        },
        {
          "prop": "warn",
          "config": "warn",
          "label": "Warning at",
          "type": "number",
          "group": "Appearance",
          "optional": true
        },
        {
          "prop": "alarm",
          "config": "alarm",
          "label": "Alarm at",
          "type": "number",
          "group": "Appearance",
          "optional": true
        },
        {
          "prop": "orientation",
          "config": "orientation",
          "label": "Orientation",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "horizontal",
              "label": "Bar"
            },
            {
              "value": "vertical",
              "label": "Tank"
            }
          ]
        },
        {
          "prop": "showValue",
          "config": "showValue",
          "label": "Value inside the bar",
          "type": "toggle",
          "group": "Appearance"
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "unit": {
          "default": ""
        },
        "min": {
          "default": 0
        },
        "max": {
          "default": 100
        },
        "decimals": {
          "default": 0
        },
        "warn": {
          "default": ""
        },
        "alarm": {
          "default": ""
        },
        "orientation": {
          "default": "horizontal"
        },
        "showValue": {
          "default": false
        },
        "uiIcon": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/progress/"
    },
    {
      "type": "gauge",
      "node": "tessera-gauge",
      "label": "Gauge",
      "category": "indicators",
      "set": "tessera-indicators",
      "description": "Radial gauge with alarm zones",
      "tags": [
        "dial",
        "meter",
        "level",
        "percent",
        "range",
        "threshold",
        "alarm"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 3
      },
      "outputs": 0,
      "messages": {
        "input": "number within min..max (null, empty or non-numeric clears the value)",
        "output": null
      },
      "props": {
        "label": "Gauge",
        "unit": "%",
        "min": 0,
        "max": 100,
        "decimals": 0
      },
      "style": [
        "decimals",
        "warn",
        "alarm"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "unit",
          "config": "unit",
          "label": "Unit",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "min",
          "config": "min",
          "label": "Min",
          "type": "number",
          "group": "Appearance"
        },
        {
          "prop": "max",
          "config": "max",
          "label": "Max",
          "type": "number",
          "group": "Appearance"
        },
        {
          "prop": "decimals",
          "config": "decimals",
          "label": "Decimals",
          "type": "number",
          "group": "Appearance",
          "min": 0,
          "max": 6,
          "step": 1
        },
        {
          "prop": "warn",
          "config": "warn",
          "label": "Warning at",
          "type": "number",
          "group": "Appearance",
          "optional": true
        },
        {
          "prop": "alarm",
          "config": "alarm",
          "label": "Alarm at",
          "type": "number",
          "group": "Appearance",
          "optional": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "min": {
          "default": 0
        },
        "max": {
          "default": 100
        },
        "unit": {
          "default": ""
        },
        "decimals": {
          "default": 1
        },
        "warn": {
          "default": ""
        },
        "alarm": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/gauge/"
    },
    {
      "type": "chart",
      "node": "tessera-chart",
      "label": "Chart",
      "category": "charts",
      "set": "tessera-charts",
      "description": "Real-time line chart",
      "tags": [
        "line",
        "trend",
        "time series",
        "history",
        "plot",
        "real-time"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 3
      },
      "outputs": 0,
      "messages": {
        "input": "number → appended to the series named by msg.topic (msg.timestamp optional); [] clears; anything else (null, '', non-numeric) is never a 0: it is ignored, or with gaps on it appends a gap point (y = null, the line breaks; consecutive gaps collapse)",
        "output": null
      },
      "props": {
        "label": "Chart",
        "unit": "",
        "window": 120,
        "maxPoints": 500,
        "gaps": true
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "unit",
          "config": "unit",
          "label": "Unit",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "window",
          "config": "window",
          "label": "Time window (s)",
          "type": "number",
          "group": "Appearance",
          "min": 10,
          "step": 10
        },
        {
          "prop": "maxPoints",
          "config": "maxPoints",
          "label": "Max points",
          "type": "number",
          "group": "Behaviour",
          "min": 10,
          "step": 100
        },
        {
          "prop": "gaps",
          "config": "gaps",
          "label": "Draw a gap for a missing reading",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "unit": {
          "default": ""
        },
        "window": {
          "default": 300
        },
        "maxPoints": {
          "default": 2000
        },
        "gaps": {
          "default": true
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/chart/"
    },
    {
      "type": "bar",
      "node": "tessera-bar",
      "label": "Bar chart",
      "category": "charts",
      "set": "tessera-charts",
      "description": "Compare values by category",
      "tags": [
        "bar",
        "column",
        "histogram",
        "compare",
        "grouped",
        "stacked",
        "categories",
        "production",
        "shift"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 3
      },
      "outputs": 1,
      "messages": {
        "input": "{ label: value } or [{ label, value, series? }] → replaces the series named by msg.topic (or each item.series); null or [] clears",
        "output": "the clicked bar: { label, series, value }"
      },
      "props": {
        "label": "Units per shift",
        "unit": "",
        "decimals": 0,
        "orientation": "vertical",
        "stacked": false,
        "showValues": true,
        "min": "",
        "max": ""
      },
      "style": [
        "decimals",
        "orientation",
        "stacked",
        "showValues"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "unit",
          "config": "unit",
          "label": "Unit",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "decimals",
          "config": "decimals",
          "label": "Decimals",
          "type": "number",
          "group": "Appearance",
          "min": 0,
          "max": 6,
          "step": 1
        },
        {
          "prop": "orientation",
          "config": "orientation",
          "label": "Bars",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "vertical",
              "label": "Vertical"
            },
            {
              "value": "horizontal",
              "label": "Horizontal"
            }
          ]
        },
        {
          "prop": "stacked",
          "config": "stacked",
          "label": "Stack the series",
          "type": "toggle",
          "group": "Appearance"
        },
        {
          "prop": "showValues",
          "config": "showValues",
          "label": "Show values on the bars",
          "type": "toggle",
          "group": "Appearance"
        },
        {
          "prop": "min",
          "config": "min",
          "label": "Min",
          "type": "number",
          "group": "Appearance",
          "optional": true
        },
        {
          "prop": "max",
          "config": "max",
          "label": "Max",
          "type": "number",
          "group": "Appearance",
          "optional": true
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 6
        },
        "height": {
          "default": 3
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        },
        "unit": {
          "default": ""
        },
        "decimals": {
          "default": 0
        },
        "orientation": {
          "default": "vertical"
        },
        "stacked": {
          "default": false
        },
        "showValues": {
          "default": true
        },
        "min": {
          "default": ""
        },
        "max": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/bar/"
    },
    {
      "type": "pie",
      "node": "tessera-pie",
      "label": "Pie chart",
      "category": "charts",
      "set": "tessera-charts",
      "description": "Parts of a whole, as a pie or donut",
      "tags": [
        "pie",
        "donut",
        "share",
        "percent",
        "breakdown",
        "distribution",
        "parts",
        "downtime"
      ],
      "placement": "grid",
      "size": {
        "width": 4,
        "height": 3
      },
      "outputs": 1,
      "messages": {
        "input": "{ label: value } or [{ label, value }] → replaces every slice; null or [] clears",
        "output": "the clicked slice: { label, series: \"value\", value }"
      },
      "props": {
        "label": "Downtime by cause",
        "unit": "min",
        "decimals": 0,
        "donut": true,
        "labels": "percent"
      },
      "style": [
        "decimals",
        "donut",
        "labels"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "unit",
          "config": "unit",
          "label": "Unit",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "decimals",
          "config": "decimals",
          "label": "Decimals",
          "type": "number",
          "group": "Appearance",
          "min": 0,
          "max": 6,
          "step": 1
        },
        {
          "prop": "donut",
          "config": "donut",
          "label": "Donut (total in the middle)",
          "type": "toggle",
          "group": "Appearance"
        },
        {
          "prop": "labels",
          "config": "labels",
          "label": "Slice labels",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "percent",
              "label": "%"
            },
            {
              "value": "value",
              "label": "Value"
            },
            {
              "value": "none",
              "label": "None"
            }
          ]
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 4
        },
        "height": {
          "default": 3
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        },
        "unit": {
          "default": ""
        },
        "decimals": {
          "default": 0
        },
        "donut": {
          "default": true
        },
        "labels": {
          "default": "percent"
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/pie/"
    },
    {
      "type": "button",
      "node": "tessera-button",
      "label": "Button",
      "category": "controls",
      "set": "tessera-controls",
      "description": "Sends a payload when pressed",
      "tags": [
        "action",
        "command",
        "trigger",
        "click",
        "confirm",
        "icon"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 1,
      "messages": {
        "input": "none needed (msg.ui changes props)",
        "output": "the configured payload (typed) on press"
      },
      "props": {
        "label": "Button",
        "variant": "solid",
        "color": "accent",
        "size": "md",
        "fullWidth": true
      },
      "style": [
        "variant",
        "color",
        "size",
        "fullWidth",
        "icon",
        "iconRight"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "iconRight",
          "config": "uiIconRight",
          "label": "Icon right",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "variant",
          "config": "variant",
          "label": "Style",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "solid",
              "label": "Solid"
            },
            {
              "value": "soft",
              "label": "Soft"
            },
            {
              "value": "outline",
              "label": "Outline"
            },
            {
              "value": "ghost",
              "label": "Ghost"
            }
          ]
        },
        {
          "prop": "color",
          "config": "color",
          "label": "Color",
          "type": "swatch",
          "group": "Appearance",
          "options": [
            {
              "value": "accent",
              "label": "accent"
            },
            {
              "value": "neutral",
              "label": "neutral"
            },
            {
              "value": "success",
              "label": "success"
            },
            {
              "value": "warning",
              "label": "warning"
            },
            {
              "value": "danger",
              "label": "danger"
            }
          ]
        },
        {
          "prop": "size",
          "config": "size",
          "label": "Size",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "sm",
              "label": "SM"
            },
            {
              "value": "md",
              "label": "MD"
            },
            {
              "value": "lg",
              "label": "LG"
            },
            {
              "value": "xl",
              "label": "XL"
            }
          ]
        },
        {
          "prop": "fullWidth",
          "config": "fullWidth",
          "label": "Fill the cell width",
          "type": "toggle",
          "group": "Appearance"
        },
        {
          "prop": "payload",
          "config": "payload",
          "label": "Payload",
          "type": "payload",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "confirm",
          "config": "confirm",
          "label": "Ask to confirm",
          "type": "text",
          "group": "Behaviour"
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "variant": {
          "default": "solid"
        },
        "color": {
          "default": "accent"
        },
        "size": {
          "default": "md"
        },
        "uiIcon": {
          "default": ""
        },
        "uiIconRight": {
          "default": ""
        },
        "fullWidth": {
          "default": true
        },
        "payload": {
          "default": "clicked"
        },
        "payloadType": {
          "default": "str"
        },
        "confirm": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/button/"
    },
    {
      "type": "switch",
      "node": "tessera-switch",
      "label": "Switch",
      "category": "controls",
      "set": "tessera-controls",
      "description": "On/off toggle",
      "tags": [
        "toggle",
        "on/off",
        "boolean",
        "checkbox",
        "enable"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 1,
      "messages": {
        "input": "boolean-like → sets the state (no output unless passthru)",
        "output": "true | false when toggled"
      },
      "props": {
        "label": "Switch",
        "description": ""
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "description",
          "config": "description",
          "label": "Description",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "passthru",
          "config": "passthru",
          "label": "Pass input messages through",
          "type": "toggle",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "description": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        },
        "passthru": {
          "default": false
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/switch/"
    },
    {
      "type": "slider",
      "node": "tessera-slider",
      "label": "Slider",
      "category": "controls",
      "set": "tessera-controls",
      "description": "Pick a number in a range",
      "tags": [
        "range",
        "setpoint",
        "number",
        "input",
        "level"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 1,
      "messages": {
        "input": "number → sets the value (no output unless passthru); null, empty or non-numeric is ignored",
        "output": "number on release"
      },
      "props": {
        "label": "Slider",
        "min": 0,
        "max": 100,
        "step": 1,
        "unit": ""
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "unit",
          "config": "unit",
          "label": "Unit",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "min",
          "config": "min",
          "label": "Min",
          "type": "number",
          "group": "Appearance"
        },
        {
          "prop": "max",
          "config": "max",
          "label": "Max",
          "type": "number",
          "group": "Appearance"
        },
        {
          "prop": "step",
          "config": "step",
          "label": "Step",
          "type": "number",
          "group": "Appearance",
          "min": 0
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "passthru",
          "config": "passthru",
          "label": "Pass input messages through",
          "type": "toggle",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "min": {
          "default": 0
        },
        "max": {
          "default": 100
        },
        "step": {
          "default": 1
        },
        "unit": {
          "default": ""
        },
        "passthru": {
          "default": false
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/slider/"
    },
    {
      "type": "dropdown",
      "node": "tessera-dropdown",
      "label": "Dropdown",
      "category": "inputs",
      "set": "tessera-inputs",
      "description": "Pick one value from a list",
      "tags": [
        "select",
        "list",
        "choice",
        "options",
        "menu",
        "mode",
        "recipe",
        "combobox"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 1,
      "messages": {
        "input": "value → selects that option (no output unless passthru); msg.options replaces the list (strings or {label, value})",
        "output": "the picked option's value, with its type"
      },
      "props": {
        "label": "Mode",
        "placeholder": "",
        "options": [
          {
            "label": "Option 1",
            "value": "option1",
            "type": "str"
          },
          {
            "label": "Option 2",
            "value": "option2",
            "type": "str"
          }
        ]
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "placeholder",
          "config": "placeholder",
          "label": "Placeholder",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "options",
          "config": "options",
          "label": "Options",
          "type": "options",
          "group": "Content"
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "passthru",
          "config": "passthru",
          "label": "Pass input messages through",
          "type": "toggle",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "placeholder": {
          "default": ""
        },
        "options": {
          "default": [
            {
              "label": "Option 1",
              "value": "option1",
              "type": "str"
            },
            {
              "label": "Option 2",
              "value": "option2",
              "type": "str"
            }
          ]
        },
        "uiIcon": {
          "default": ""
        },
        "passthru": {
          "default": false
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/dropdown/"
    },
    {
      "type": "input",
      "node": "tessera-input",
      "label": "Input",
      "category": "inputs",
      "set": "tessera-inputs",
      "description": "Type a text or number",
      "tags": [
        "text",
        "number",
        "field",
        "setpoint",
        "password",
        "form",
        "entry",
        "type",
        "validation"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 1,
      "messages": {
        "input": "string | number → sets the field (not in password mode; no output unless passthru)",
        "output": "the validated value: number (or null) in number mode, string otherwise"
      },
      "props": {
        "label": "Setpoint",
        "mode": "number",
        "placeholder": "",
        "unit": "",
        "min": "",
        "max": "",
        "step": 1,
        "required": false,
        "pattern": "",
        "patternMessage": "",
        "sendOn": "enter"
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "mode",
          "config": "mode",
          "label": "Mode",
          "type": "segmented",
          "group": "Content",
          "options": [
            {
              "value": "text",
              "label": "Text"
            },
            {
              "value": "number",
              "label": "Number"
            },
            {
              "value": "password",
              "label": "Password"
            }
          ]
        },
        {
          "prop": "placeholder",
          "config": "placeholder",
          "label": "Placeholder",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "unit",
          "config": "unit",
          "label": "Unit",
          "type": "text",
          "group": "Content",
          "when": {
            "mode": [
              "number"
            ]
          }
        },
        {
          "prop": "min",
          "config": "min",
          "label": "Min",
          "type": "number",
          "group": "Appearance",
          "optional": true,
          "when": {
            "mode": [
              "number"
            ]
          }
        },
        {
          "prop": "max",
          "config": "max",
          "label": "Max",
          "type": "number",
          "group": "Appearance",
          "optional": true,
          "when": {
            "mode": [
              "number"
            ]
          }
        },
        {
          "prop": "step",
          "config": "step",
          "label": "Step",
          "type": "number",
          "group": "Appearance",
          "min": 0,
          "when": {
            "mode": [
              "number"
            ]
          }
        },
        {
          "prop": "required",
          "config": "required",
          "label": "Required",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "pattern",
          "config": "pattern",
          "label": "Pattern (regex)",
          "type": "text",
          "group": "Behaviour",
          "when": {
            "mode": [
              "text",
              "password"
            ]
          }
        },
        {
          "prop": "patternMessage",
          "config": "patternMessage",
          "label": "Pattern error",
          "type": "text",
          "group": "Behaviour",
          "when": {
            "mode": [
              "text",
              "password"
            ]
          }
        },
        {
          "prop": "sendOn",
          "config": "sendOn",
          "label": "Send",
          "type": "segmented",
          "group": "Behaviour",
          "options": [
            {
              "value": "enter",
              "label": "Enter / leave"
            },
            {
              "value": "change",
              "label": "While typing"
            }
          ]
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "passthru",
          "config": "passthru",
          "label": "Pass input messages through",
          "type": "toggle",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "mode": {
          "default": "text"
        },
        "placeholder": {
          "default": ""
        },
        "unit": {
          "default": ""
        },
        "min": {
          "default": ""
        },
        "max": {
          "default": ""
        },
        "step": {
          "default": 1
        },
        "required": {
          "default": false
        },
        "pattern": {
          "default": ""
        },
        "patternMessage": {
          "default": ""
        },
        "sendOn": {
          "default": "enter"
        },
        "uiIcon": {
          "default": ""
        },
        "passthru": {
          "default": false
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/input/"
    },
    {
      "type": "datetime",
      "node": "tessera-datetime",
      "label": "Date / time",
      "category": "inputs",
      "set": "tessera-inputs",
      "description": "Pick a date, a time, both, or a date range",
      "tags": [
        "date",
        "time",
        "calendar",
        "datetime",
        "range",
        "period",
        "schedule",
        "picker",
        "from",
        "to"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 1
      },
      "outputs": 1,
      "messages": {
        "input": "'YYYY-MM-DD', 'HH:MM', an ISO date or a timestamp (ms) → sets the value; range: { from, to }; null clears (no output unless passthru)",
        "output": "date: 'YYYY-MM-DD' + msg.timestamp (local midnight); time: 'HH:MM'; datetime: ISO (UTC) + msg.timestamp; range: { from, to } + msg.timestamp { from, to }; null when cleared"
      },
      "props": {
        "label": "Start date",
        "mode": "date",
        "min": "",
        "max": "",
        "required": false
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "mode",
          "config": "mode",
          "label": "Pick",
          "type": "segmented",
          "group": "Content",
          "options": [
            {
              "value": "date",
              "label": "Date"
            },
            {
              "value": "time",
              "label": "Time"
            },
            {
              "value": "datetime",
              "label": "Both"
            },
            {
              "value": "range",
              "label": "Range"
            }
          ]
        },
        {
          "prop": "min",
          "config": "min",
          "label": "Earliest",
          "type": "text",
          "group": "Behaviour"
        },
        {
          "prop": "max",
          "config": "max",
          "label": "Latest",
          "type": "text",
          "group": "Behaviour"
        },
        {
          "prop": "required",
          "config": "required",
          "label": "Required",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "passthru",
          "config": "passthru",
          "label": "Pass input messages through",
          "type": "toggle",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 1
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "mode": {
          "default": "date"
        },
        "min": {
          "default": ""
        },
        "max": {
          "default": ""
        },
        "required": {
          "default": false
        },
        "uiIcon": {
          "default": ""
        },
        "passthru": {
          "default": false
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/datetime/"
    },
    {
      "type": "image",
      "node": "tessera-image",
      "label": "Image",
      "category": "media",
      "set": "tessera-media",
      "description": "A picture from a URL or from the flow",
      "tags": [
        "image",
        "picture",
        "photo",
        "snapshot",
        "diagram",
        "logo",
        "png",
        "jpeg",
        "svg"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 4
      },
      "outputs": 0,
      "messages": {
        "input": "a URL, a data:image URI, a Buffer or a base64 string (PNG, JPEG, GIF, WebP, BMP, SVG; msg.mimetype when unknown; up to 5 MB) → shows it; null clears",
        "output": null
      },
      "props": {
        "label": "Image",
        "fit": "contain",
        "refresh": 0,
        "alt": ""
      },
      "style": [
        "fit"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "src",
          "config": "src",
          "label": "Image",
          "type": "image",
          "group": "Content",
          "configOnly": true
        },
        {
          "prop": "alt",
          "config": "alt",
          "label": "Description (for screen readers)",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "fit",
          "config": "fit",
          "label": "Fit",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "contain",
              "label": "Whole image"
            },
            {
              "value": "cover",
              "label": "Fill"
            }
          ]
        },
        {
          "prop": "refresh",
          "config": "refresh",
          "label": "Reload every (s, 0: never)",
          "type": "number",
          "group": "Behaviour",
          "min": 0
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 6
        },
        "height": {
          "default": 4
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        },
        "src": {
          "default": ""
        },
        "fit": {
          "default": "contain"
        },
        "refresh": {
          "default": 0
        },
        "alt": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/image/"
    },
    {
      "type": "camera",
      "node": "tessera-camera",
      "label": "Camera",
      "category": "media",
      "set": "tessera-media",
      "description": "A live MJPEG, HLS or video stream",
      "tags": [
        "camera",
        "video",
        "stream",
        "mjpeg",
        "hls",
        "cctv",
        "ip camera",
        "live",
        "webcam"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 4
      },
      "outputs": 0,
      "messages": {
        "input": "a URL (http/https or relative) → switches to that stream; null stops it. msg.ui.live false/true → switches the camera off/on in every browser",
        "output": null
      },
      "props": {
        "label": "Camera",
        "kind": "auto",
        "fit": "contain",
        "showPower": true
      },
      "style": [
        "fit"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "src",
          "config": "src",
          "label": "Stream URL",
          "type": "text",
          "group": "Content",
          "configOnly": true
        },
        {
          "prop": "kind",
          "config": "kind",
          "label": "Stream",
          "type": "segmented",
          "group": "Content",
          "options": [
            {
              "value": "auto",
              "label": "Auto"
            },
            {
              "value": "mjpeg",
              "label": "MJPEG"
            },
            {
              "value": "hls",
              "label": "HLS"
            },
            {
              "value": "video",
              "label": "Video"
            }
          ]
        },
        {
          "prop": "fit",
          "config": "fit",
          "label": "Fit",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "contain",
              "label": "Whole frame"
            },
            {
              "value": "cover",
              "label": "Fill"
            }
          ]
        },
        {
          "prop": "showPower",
          "config": "showPower",
          "label": "On/off button",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 6
        },
        "height": {
          "default": 4
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        },
        "src": {
          "default": ""
        },
        "kind": {
          "default": "auto"
        },
        "fit": {
          "default": "contain"
        },
        "showPower": {
          "default": true
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/camera/"
    },
    {
      "type": "synoptic",
      "node": "tessera-synoptic",
      "label": "Synoptic",
      "category": "hmi",
      "set": "tessera-hmi",
      "description": "A live process diagram bound to tags",
      "tags": [
        "synoptic",
        "hmi",
        "scada",
        "p&id",
        "mimic",
        "diagram",
        "process",
        "plant",
        "tank",
        "pump",
        "valve",
        "pipe",
        "floor plan"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 4
      },
      "outputs": 1,
      "messages": {
        "input": "no data on msg.payload: values come only from the tags its diagram binds (tessera-tags; tags with bad or stale quality show as no data on their own symbol). The diagram's canvas.theme is \"classic\" (the Tessera look: process items in the accent, machinery in the second chart colour, a pipe's bore filled while it flows; the default when unset) or \"isa101\" (grey, colour only for what needs attention). msg.ui overrides widget props",
        "output": "when an operator uses a command: { item, action, value } with action set (the fixed value, or a number typed by the operator within min/max), toggle (the opposite of the tag value; refused without good data), pulse (value, then the opposite after ms, default 500, max 10000) or goto (no message); _client.id is that browser. A symbol's `click` (auto, faceplate, command or none) says what a click does: auto opens its faceplate (state, a trend of the main value since the page opened, and its command, e.g. Start/Stop) when it has bound tags, and sends its command when it has none; the faceplate sends the same { item, action, value } as the symbol's command. `click: { page: '<page id>' }` on a symbol or any block that is not a pipe (text, value, button, image) is a link instead: the click goes to that page of the dashboard (by id, so a renamed path still works), sends no message and wins over auto; a link to a page that does not exist is not clickable"
      },
      "props": {
        "label": "Synoptic",
        "zoom": false
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "zoom",
          "config": "zoom",
          "label": "Zoom and pan controls",
          "type": "toggle",
          "group": "Behaviour"
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 6
        },
        "height": {
          "default": 4
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "diagram": {
          "default": {}
        },
        "zoom": {
          "default": false
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/synoptic/"
    },
    {
      "type": "equipment",
      "node": "tessera-equipment",
      "label": "Equipment",
      "category": "hmi",
      "set": "tessera-hmi",
      "description": "A tank, pump, motor, valve, compressor, heat exchanger, conveyor, agitator, silo or blower card (or your own signals; a culture tank and a feeder for aquaculture) with a library symbol and a faceplate",
      "tags": [
        "equipment",
        "hmi",
        "scada",
        "isa-101",
        "faceplate",
        "module",
        "tank",
        "pump",
        "motor",
        "valve",
        "compressor",
        "heat exchanger",
        "conveyor",
        "agitator",
        "silo",
        "blower",
        "process",
        "industry",
        "aquaculture",
        "feeder"
      ],
      "placement": "grid",
      "size": {
        "width": 3,
        "height": 2
      },
      "outputs": 1,
      "messages": {
        "input": "no data on msg.payload: values come only from tags (tessera-tags). kind is a template: tank (Level, Temp, Pressure), pump and motor (Run, Fault, Speed, Current), valve (Open, Fault, Position), compressor (Run, Fault, Pressure, Temp, Current), heat-exchanger (TempIn, TempOut, Flow), conveyor (Run, Fault, Speed), agitator (Run, Fault, Speed, Current; drawn as a motor), silo (Level, Weight, LowLevel), blower (Run, Fault, Speed, Pressure, Current) or custom (one Value); aquaculture extras: culture-tank (O2, Temp, Level, Feed) and feeder (Run, Fault, Rate, Total); an unknown kind is tank; the config `signals` (up to 16 of { key, label, unit, type: \"number\" | \"bool\", min, max, dec, lolo, lo, hi, hihi, band, texts, fault, role: \"main\" | \"command\" }) replace the template, and `symbol` is an equipment symbol id of the synoptic library (default: the template's). Each signal follows its own tag from the config `tags` ({ \"Temp\": \"PLC1/temp_t101\" }, strings, unknown signals ignored); an empty one follows <prefix>/<Signal>; with neither it is not bound. A missing tag shows —; bad or stale quality is shown per signal. msg.ui overrides widget props",
        "output": "only with a command signal (pump, motor, compressor, conveyor, agitator, blower, feeder, or a bool signal with role command): when an operator confirms Start or Stop in the faceplate: { item: prefix (the command tag when there is no prefix), action: \"start\" | \"stop\", value: true | false }, topic = the node topic or the command signal tag (its own, else <prefix>/<Signal>), _client.id = that browser. Tank, silo, valve, heat exchanger and culture tank have no commands"
      },
      "props": {
        "label": "T101",
        "kind": "tank",
        "symbol": "",
        "prefix": "RAS1/T101",
        "theme": "classic"
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "kind",
          "config": "kind",
          "label": "Template",
          "type": "select",
          "group": "Content",
          "options": [
            {
              "value": "tank",
              "label": "Tank",
              "group": "General"
            },
            {
              "value": "pump",
              "label": "Pump",
              "group": "General"
            },
            {
              "value": "motor",
              "label": "Motor",
              "group": "General"
            },
            {
              "value": "valve",
              "label": "Valve",
              "group": "General"
            },
            {
              "value": "compressor",
              "label": "Compressor",
              "group": "General"
            },
            {
              "value": "heat-exchanger",
              "label": "Heat exchanger",
              "group": "General"
            },
            {
              "value": "conveyor",
              "label": "Conveyor",
              "group": "General"
            },
            {
              "value": "agitator",
              "label": "Agitator",
              "group": "General"
            },
            {
              "value": "silo",
              "label": "Silo",
              "group": "General"
            },
            {
              "value": "blower",
              "label": "Blower",
              "group": "General"
            },
            {
              "value": "custom",
              "label": "Custom",
              "group": "General"
            },
            {
              "value": "culture-tank",
              "label": "Culture tank",
              "group": "Aquaculture"
            },
            {
              "value": "feeder",
              "label": "Feeder",
              "group": "Aquaculture"
            }
          ]
        },
        {
          "prop": "symbol",
          "config": "symbol",
          "label": "Symbol",
          "type": "select",
          "group": "Content",
          "options": [
            {
              "value": "",
              "label": "Template default"
            },
            {
              "value": "tank",
              "label": "Tank"
            },
            {
              "value": "silo",
              "label": "Silo"
            },
            {
              "value": "pump",
              "label": "Pump"
            },
            {
              "value": "motor",
              "label": "Motor"
            },
            {
              "value": "fan",
              "label": "Fan"
            },
            {
              "value": "valve",
              "label": "Control valve"
            },
            {
              "value": "valve-onoff",
              "label": "On/off valve"
            },
            {
              "value": "valve-manual",
              "label": "Manual valve"
            },
            {
              "value": "compressor",
              "label": "Compressor"
            },
            {
              "value": "heat-exchanger",
              "label": "Heat exchanger"
            },
            {
              "value": "conveyor",
              "label": "Belt conveyor"
            },
            {
              "value": "cylinder",
              "label": "Cylinder"
            }
          ]
        },
        {
          "prop": "prefix",
          "config": "prefix",
          "label": "Tag prefix",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "tags",
          "config": "tags",
          "label": "Signal tags",
          "type": "signal-tags",
          "group": "Content",
          "configOnly": true
        },
        {
          "prop": "theme",
          "config": "theme",
          "label": "Theme",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "classic",
              "label": "Tessera"
            },
            {
              "value": "isa101",
              "label": "ISA-101"
            }
          ]
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 3
        },
        "height": {
          "default": 2
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "kind": {
          "default": "tank"
        },
        "symbol": {
          "default": ""
        },
        "prefix": {
          "default": ""
        },
        "theme": {
          "default": "classic"
        },
        "tags": {
          "default": {}
        },
        "signals": {
          "default": []
        },
        "limits": {
          "default": {}
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/equipment/"
    },
    {
      "type": "template",
      "node": "tessera-template",
      "label": "Template",
      "category": "advanced",
      "set": "tessera-advanced",
      "description": "Your own component in HTML or Svelte",
      "tags": [
        "template",
        "custom",
        "html",
        "css",
        "javascript",
        "script",
        "code",
        "component",
        "svg",
        "svelte"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 3
      },
      "outputs": 1,
      "messages": {
        "input": "any msg.payload (and msg.topic) → stored and passed to the script's on(\"message\") handlers",
        "output": "what the script passes to send(payload)"
      },
      "props": {
        "label": "My component",
        "format": "html",
        "frame": true,
        "template": "<div class=\"value\">–</div>\n<button>Send</button>\n\n<style>\n  :host { display: flex; flex-direction: column; justify-content: center; gap: 10px; }\n  .value { font-size: 36px; font-weight: 650; color: var(--accent); }\n  button {\n    align-self: start; padding: 6px 14px; border-radius: 8px; cursor: pointer;\n    font: inherit; font-weight: 600; color: var(--fg);\n    background: var(--surface-2); border: 1px solid var(--line-strong);\n  }\n</style>\n\n<script>\n  const value = root.querySelector('.value');\n  on('message', (msg) => (value.textContent = msg.payload));\n  root.querySelector('button').onclick = () => send('pressed');\n</script>\n"
      },
      "style": [
        "frame"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "format",
          "config": "format",
          "label": "Format",
          "type": "segmented",
          "group": "Content",
          "options": [
            {
              "value": "html",
              "label": "HTML"
            },
            {
              "value": "svelte",
              "label": "Svelte"
            }
          ]
        },
        {
          "prop": "template",
          "config": "template",
          "label": "Template",
          "type": "code",
          "group": "Content"
        },
        {
          "prop": "frame",
          "config": "frame",
          "label": "Tile frame (off when the template draws its own card)",
          "type": "toggle",
          "group": "Appearance"
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 6
        },
        "height": {
          "default": 3
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        },
        "format": {
          "default": "html"
        },
        "frame": {
          "default": true
        },
        "template": {
          "default": "<div class=\"value\">–</div>\n<button>Send</button>\n\n<style>\n  :host { display: flex; flex-direction: column; justify-content: center; gap: 10px; }\n  .value { font-size: 36px; font-weight: 650; color: var(--accent); }\n  button {\n    align-self: start; padding: 6px 14px; border-radius: 8px; cursor: pointer;\n    font: inherit; font-weight: 600; color: var(--fg);\n    background: var(--surface-2); border: 1px solid var(--line-strong);\n  }\n</style>\n\n<script>\n  const value = root.querySelector('.value');\n  on('message', (msg) => (value.textContent = msg.payload));\n  root.querySelector('button').onclick = () => send('pressed');\n</script>\n"
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/template/"
    },
    {
      "type": "embed",
      "node": "tessera-embed",
      "label": "Embed",
      "category": "media",
      "set": "tessera-media",
      "description": "Another web page, in a sandbox",
      "tags": [
        "embed",
        "iframe",
        "page",
        "website",
        "grafana",
        "report",
        "web",
        "url"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 4
      },
      "outputs": 0,
      "messages": {
        "input": "a URL (http/https or relative) → shows that page; null clears",
        "output": null
      },
      "props": {
        "label": "Web page",
        "allowScripts": true,
        "allowForms": true,
        "allowPopups": false,
        "allowSameOrigin": false
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "src",
          "config": "src",
          "label": "Page URL",
          "type": "text",
          "group": "Content",
          "configOnly": true
        },
        {
          "prop": "allowScripts",
          "config": "allowScripts",
          "label": "Allow scripts",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "allowForms",
          "config": "allowForms",
          "label": "Allow forms",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "allowPopups",
          "config": "allowPopups",
          "label": "Allow pop-ups and new tabs",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "allowSameOrigin",
          "config": "allowSameOrigin",
          "label": "Same origin (cookies, logins)",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 6
        },
        "height": {
          "default": 4
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        },
        "src": {
          "default": ""
        },
        "allowScripts": {
          "default": true
        },
        "allowForms": {
          "default": true
        },
        "allowPopups": {
          "default": false
        },
        "allowSameOrigin": {
          "default": false
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/embed/"
    },
    {
      "type": "form",
      "node": "tessera-form",
      "label": "Form",
      "category": "inputs",
      "set": "tessera-inputs",
      "description": "Several fields sent together",
      "tags": [
        "form",
        "fields",
        "submit",
        "recipe",
        "batch",
        "login",
        "settings",
        "validation",
        "date",
        "select"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 4
      },
      "outputs": 1,
      "messages": {
        "input": "object → pre-fills the fields it names ({ key: value }); null resets to the defaults; msg.ui.fields replaces the fields",
        "output": "on Submit: { key: value } for every field (number or null, string, boolean, option value, YYYY-MM-DD or null)"
      },
      "props": {
        "label": "New batch",
        "fields": [
          {
            "key": "recipe",
            "label": "Recipe",
            "type": "select",
            "required": true,
            "options": [
              "R1",
              "R2",
              "R3"
            ]
          },
          {
            "key": "size",
            "label": "Batch size",
            "type": "number",
            "required": true,
            "min": 1,
            "max": 5000,
            "value": 1200
          },
          {
            "key": "operator",
            "label": "Operator",
            "type": "text",
            "placeholder": "Name"
          },
          {
            "key": "date",
            "label": "Start date",
            "type": "date"
          },
          {
            "key": "rinse",
            "label": "Rinse after",
            "type": "toggle",
            "value": true
          }
        ],
        "submitLabel": "Start batch",
        "cancelLabel": "Cancel",
        "resetOnSubmit": false
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "fields",
          "config": "fields",
          "label": "Fields",
          "type": "formfields",
          "group": "Content"
        },
        {
          "prop": "submitLabel",
          "config": "submitLabel",
          "label": "Submit button",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "cancelLabel",
          "config": "cancelLabel",
          "label": "Cancel button",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "resetOnSubmit",
          "config": "resetOnSubmit",
          "label": "Clear the fields after sending",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "passthru",
          "config": "passthru",
          "label": "Pass input messages through",
          "type": "toggle",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 6
        },
        "height": {
          "default": 4
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "fields": {
          "default": []
        },
        "submitLabel": {
          "default": "Submit"
        },
        "cancelLabel": {
          "default": "Cancel"
        },
        "resetOnSubmit": {
          "default": false
        },
        "uiIcon": {
          "default": ""
        },
        "passthru": {
          "default": false
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/form/"
    },
    {
      "type": "section",
      "node": "tessera-section",
      "label": "Section",
      "category": "layout",
      "set": "tessera",
      "description": "A titled frame that groups widgets",
      "tags": [
        "section",
        "group",
        "frame",
        "container",
        "box",
        "panel",
        "card",
        "title",
        "border",
        "strip"
      ],
      "placement": "grid",
      "size": {
        "width": 6,
        "height": 3
      },
      "outputs": 0,
      "messages": {
        "input": "msg.ui only: label, icon, background (none, surface, tint), border; msg.payload is ignored",
        "output": null
      },
      "props": {
        "label": "Section",
        "icon": "",
        "background": "none",
        "border": true
      },
      "style": [
        "background",
        "border"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "background",
          "config": "background",
          "label": "Background",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "none",
              "label": "None"
            },
            {
              "value": "surface",
              "label": "Surface"
            },
            {
              "value": "tint",
              "label": "Tint"
            }
          ]
        },
        {
          "prop": "border",
          "config": "border",
          "label": "Border",
          "type": "toggle",
          "group": "Appearance"
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 6
        },
        "height": {
          "default": 3
        },
        "label": {
          "default": "Section"
        },
        "region": {
          "default": "main"
        },
        "background": {
          "default": "none"
        },
        "border": {
          "default": true
        },
        "uiIcon": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/section/"
    },
    {
      "type": "notification",
      "node": "tessera-notification",
      "label": "Notification",
      "category": "feedback",
      "set": "tessera",
      "description": "Toasts and confirm dialogs",
      "tags": [
        "toast",
        "alert",
        "popup",
        "dialog",
        "confirm",
        "message",
        "notify",
        "snackbar"
      ],
      "placement": "none",
      "outputs": 1,
      "messages": {
        "input": "string → toast or dialog text; msg.ui: type, title, timeout, kind, position, okLabel, cancelLabel; msg.dismiss: true closes them",
        "output": "dialogs only: 'ok' | 'cancel', keeping the input msg properties"
      },
      "props": {
        "title": "",
        "kind": "toast",
        "level": "info",
        "timeout": 5,
        "position": "top-right",
        "okLabel": "OK",
        "cancelLabel": "Cancel"
      },
      "style": [],
      "inline": [],
      "fields": [
        {
          "prop": "kind",
          "config": "kind",
          "label": "Show as",
          "type": "segmented",
          "group": "Content",
          "options": [
            {
              "value": "toast",
              "label": "Toast"
            },
            {
              "value": "dialog",
              "label": "Dialog"
            }
          ]
        },
        {
          "prop": "level",
          "config": "level",
          "label": "Type",
          "type": "segmented",
          "group": "Content",
          "options": [
            {
              "value": "info",
              "label": "Info"
            },
            {
              "value": "success",
              "label": "Success"
            },
            {
              "value": "warning",
              "label": "Warning"
            },
            {
              "value": "error",
              "label": "Error"
            }
          ]
        },
        {
          "prop": "title",
          "config": "title",
          "label": "Title",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "position",
          "config": "position",
          "label": "Position",
          "type": "select",
          "group": "Appearance",
          "options": [
            {
              "value": "top-right",
              "label": "Top right"
            },
            {
              "value": "top-center",
              "label": "Top center"
            },
            {
              "value": "top-left",
              "label": "Top left"
            },
            {
              "value": "bottom-right",
              "label": "Bottom right"
            },
            {
              "value": "bottom-center",
              "label": "Bottom center"
            },
            {
              "value": "bottom-left",
              "label": "Bottom left"
            }
          ],
          "when": {
            "kind": [
              "toast"
            ]
          }
        },
        {
          "prop": "timeout",
          "config": "timeout",
          "label": "Close after (s, 0 = never)",
          "type": "number",
          "group": "Behaviour",
          "min": 0,
          "step": 1,
          "when": {
            "kind": [
              "toast"
            ]
          }
        },
        {
          "prop": "okLabel",
          "config": "okLabel",
          "label": "OK button",
          "type": "text",
          "group": "Behaviour",
          "when": {
            "kind": [
              "dialog"
            ]
          }
        },
        {
          "prop": "cancelLabel",
          "config": "cancelLabel",
          "label": "Cancel button",
          "type": "text",
          "group": "Behaviour",
          "when": {
            "kind": [
              "dialog"
            ]
          }
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true,
          "when": {
            "kind": [
              "dialog"
            ]
          }
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "kind": {
          "default": "toast"
        },
        "level": {
          "default": "info"
        },
        "title": {
          "default": ""
        },
        "timeout": {
          "default": 5
        },
        "position": {
          "default": "top-right"
        },
        "okLabel": {
          "default": "OK"
        },
        "cancelLabel": {
          "default": "Cancel"
        },
        "topic": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/notification/"
    },
    {
      "type": "table",
      "node": "tessera-table",
      "label": "Table",
      "category": "data",
      "set": "tessera-data",
      "description": "Rows with sorting and search",
      "tags": [
        "grid",
        "rows",
        "list",
        "log",
        "batches",
        "orders",
        "alarms",
        "records",
        "sort",
        "search"
      ],
      "placement": "grid",
      "size": {
        "width": 12,
        "height": 4
      },
      "outputs": 1,
      "messages": {
        "input": "array of row objects (replace mode) or rows to add (append mode, also a single object); [] clears; msg.ui.mode / msg.ui.columns",
        "output": "the clicked row object"
      },
      "props": {
        "label": "Table",
        "columns": [],
        "mode": "replace",
        "maxRows": 500,
        "search": true,
        "clickable": true,
        "emptyText": ""
      },
      "style": [],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "columns",
          "config": "columns",
          "label": "Columns",
          "type": "columns",
          "group": "Content"
        },
        {
          "prop": "emptyText",
          "config": "emptyText",
          "label": "Empty text",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "search",
          "config": "search",
          "label": "Search box",
          "type": "toggle",
          "group": "Appearance"
        },
        {
          "prop": "mode",
          "config": "mode",
          "label": "New data",
          "type": "segmented",
          "group": "Behaviour",
          "options": [
            {
              "value": "replace",
              "label": "Replaces rows"
            },
            {
              "value": "append",
              "label": "Adds rows"
            }
          ]
        },
        {
          "prop": "maxRows",
          "config": "maxRows",
          "label": "Max rows kept",
          "type": "number",
          "group": "Behaviour",
          "min": 1,
          "step": 100
        },
        {
          "prop": "clickable",
          "config": "clickable",
          "label": "Send the row when clicked",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 12
        },
        "height": {
          "default": 4
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "columns": {
          "default": []
        },
        "mode": {
          "default": "replace"
        },
        "maxRows": {
          "default": 500
        },
        "search": {
          "default": true
        },
        "clickable": {
          "default": true
        },
        "emptyText": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/table/"
    },
    {
      "type": "alarms",
      "node": "tessera-alarms",
      "label": "Alarm list",
      "category": "data",
      "set": "tessera-data",
      "description": "Active alarms to acknowledge, with history",
      "tags": [
        "alarm",
        "alarms",
        "events",
        "faults",
        "acknowledge",
        "ack",
        "hmi",
        "severity",
        "critical",
        "isa"
      ],
      "placement": "grid",
      "size": {
        "width": 12,
        "height": 4
      },
      "outputs": 1,
      "messages": {
        "input": "{ id, severity: critical|major|minor|info, text, time? } raises or updates an alarm (or an array of them); { id, active: false } clears it; { id, ack: true } acknowledges it; msg.reset = true empties the list",
        "output": "each alarm acknowledged in the dashboard: { id, severity, text, time, ack, ackTime, cleared, clearTime }"
      },
      "props": {
        "label": "Alarms",
        "maxHistory": 50,
        "sort": "severity",
        "blink": true,
        "ackable": true,
        "emptyText": ""
      },
      "style": [
        "blink"
      ],
      "inline": [
        "label"
      ],
      "fields": [
        {
          "prop": "label",
          "config": "label",
          "label": "Label",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "icon",
          "config": "uiIcon",
          "label": "Icon",
          "type": "icon",
          "group": "Content"
        },
        {
          "prop": "emptyText",
          "config": "emptyText",
          "label": "Empty text",
          "type": "text",
          "group": "Content"
        },
        {
          "prop": "sort",
          "config": "sort",
          "label": "Sort by",
          "type": "segmented",
          "group": "Appearance",
          "options": [
            {
              "value": "severity",
              "label": "Severity"
            },
            {
              "value": "time",
              "label": "Time"
            }
          ]
        },
        {
          "prop": "blink",
          "config": "blink",
          "label": "Blink unacknowledged critical alarms",
          "type": "toggle",
          "group": "Appearance"
        },
        {
          "prop": "ackable",
          "config": "ackable",
          "label": "Acknowledge from the dashboard",
          "type": "toggle",
          "group": "Behaviour"
        },
        {
          "prop": "maxHistory",
          "config": "maxHistory",
          "label": "History length (0: none)",
          "type": "number",
          "group": "Behaviour",
          "min": 0,
          "max": 1000
        },
        {
          "prop": "topic",
          "config": "topic",
          "label": "Topic",
          "type": "text",
          "group": "Behaviour",
          "configOnly": true
        },
        {
          "prop": "tag",
          "config": "tag",
          "label": "Tag",
          "type": "tag",
          "group": "Behaviour",
          "configOnly": true
        }
      ],
      "config": {
        "name": {
          "default": ""
        },
        "page": {
          "default": "",
          "ref": "tessera-page",
          "required": true
        },
        "order": {
          "default": 0
        },
        "col": {
          "default": ""
        },
        "row": {
          "default": ""
        },
        "hideOn": {
          "default": []
        },
        "locked": {
          "default": false
        },
        "phoneOrder": {
          "default": ""
        },
        "phoneHeight": {
          "default": ""
        },
        "width": {
          "default": 12
        },
        "height": {
          "default": 4
        },
        "label": {
          "default": ""
        },
        "topic": {
          "default": ""
        },
        "region": {
          "default": "main"
        },
        "tag": {
          "default": ""
        },
        "maxHistory": {
          "default": 50
        },
        "sort": {
          "default": "severity"
        },
        "blink": {
          "default": true
        },
        "ackable": {
          "default": true
        },
        "emptyText": {
          "default": ""
        },
        "uiIcon": {
          "default": ""
        }
      },
      "docs": "https://fgjcarlos.github.io/tessera/components/alarms/"
    }
  ],
  "symbols": {
    "note": "the symbols a tessera-synoptic diagram draws (items of type symbol cite `sym: \"<pack>/<name>\"`), from ui/symbols/core, validated as the runtime does. `props` are the properties an item can bind (`bind: { <name>: { tag, … } }`, type number, text or boolean), `ports` where a pipe connects (x and y 0–1 of the symbol box, dir n, e, s or w), `size` its box. A running dashboard also lists the symbols of extension packs, with the same fields, at `index`",
    "index": "/<path>/symbols/index.json",
    "docs": "https://fgjcarlos.github.io/tessera/components/synoptic/",
    "list": [
      {
        "id": "core/alarm",
        "label": "Alarm horn",
        "category": "states",
        "tags": [
          "horn",
          "siren",
          "annunciator",
          "beacon",
          "blink"
        ],
        "size": [
          60,
          60
        ],
        "ports": [],
        "props": [
          {
            "name": "active",
            "type": "number"
          }
        ]
      },
      {
        "id": "core/arrow",
        "label": "Arrow",
        "category": "shapes",
        "tags": [
          "direction",
          "flow",
          "pointer"
        ],
        "size": [
          80,
          40
        ],
        "ports": [
          {
            "id": "in",
            "x": 0.063,
            "y": 0.5,
            "dir": "w"
          },
          {
            "id": "out",
            "x": 0.938,
            "y": 0.5,
            "dir": "e"
          }
        ],
        "props": []
      },
      {
        "id": "core/button",
        "label": "Button",
        "category": "commands",
        "tags": [
          "push",
          "command",
          "start",
          "stop",
          "pulse"
        ],
        "size": [
          80,
          40
        ],
        "ports": [],
        "props": [
          {
            "name": "on",
            "type": "number"
          },
          {
            "name": "value",
            "type": "text"
          }
        ]
      },
      {
        "id": "core/circle",
        "label": "Circle",
        "category": "shapes",
        "tags": [
          "round",
          "dot",
          "area"
        ],
        "size": [
          60,
          60
        ],
        "ports": [
          {
            "id": "n",
            "x": 0.5,
            "y": 0.083,
            "dir": "n"
          },
          {
            "id": "e",
            "x": 0.917,
            "y": 0.5,
            "dir": "e"
          },
          {
            "id": "s",
            "x": 0.5,
            "y": 0.917,
            "dir": "s"
          },
          {
            "id": "w",
            "x": 0.083,
            "y": 0.5,
            "dir": "w"
          }
        ],
        "props": []
      },
      {
        "id": "core/compressor",
        "label": "Compressor",
        "category": "equipment",
        "tags": [
          "gas",
          "air",
          "rotating",
          "compression"
        ],
        "size": [
          80,
          90
        ],
        "ports": [
          {
            "id": "in",
            "x": 0,
            "y": 0.556,
            "dir": "w"
          },
          {
            "id": "out",
            "x": 1,
            "y": 0.556,
            "dir": "e"
          }
        ],
        "props": [
          {
            "name": "running",
            "type": "boolean"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/conveyor",
        "label": "Belt conveyor",
        "category": "equipment",
        "tags": [
          "belt",
          "bulk",
          "transport",
          "rotating"
        ],
        "size": [
          120,
          90
        ],
        "ports": [
          {
            "id": "in",
            "x": 0.25,
            "y": 0.4,
            "dir": "n"
          },
          {
            "id": "out",
            "x": 0.95,
            "y": 0.556,
            "dir": "e"
          }
        ],
        "props": [
          {
            "name": "running",
            "type": "boolean"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/cylinder",
        "label": "Pneumatic cylinder",
        "category": "equipment",
        "tags": [
          "actuator",
          "piston",
          "pneumatic",
          "linear",
          "stroke"
        ],
        "size": [
          60,
          120
        ],
        "ports": [
          {
            "id": "rod-end",
            "x": 0,
            "y": 0.483,
            "dir": "w"
          },
          {
            "id": "cap-end",
            "x": 0,
            "y": 0.767,
            "dir": "w"
          }
        ],
        "props": [
          {
            "name": "level",
            "type": "number"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/fan",
        "label": "Fan",
        "category": "equipment",
        "tags": [
          "blower",
          "rotating",
          "air"
        ],
        "size": [
          80,
          90
        ],
        "ports": [
          {
            "id": "in",
            "x": 0,
            "y": 0.556,
            "dir": "w"
          },
          {
            "id": "out",
            "x": 1,
            "y": 0.556,
            "dir": "e"
          }
        ],
        "props": [
          {
            "name": "running",
            "type": "boolean"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/flow-meter",
        "label": "Flow meter",
        "category": "instruments",
        "tags": [
          "flow",
          "transmitter",
          "inline",
          "magnetic"
        ],
        "size": [
          80,
          70
        ],
        "ports": [
          {
            "id": "in",
            "x": 0,
            "y": 0.714,
            "dir": "w"
          },
          {
            "id": "out",
            "x": 1,
            "y": 0.714,
            "dir": "e"
          }
        ],
        "props": [
          {
            "name": "running",
            "type": "boolean"
          },
          {
            "name": "value",
            "type": "text"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/heat-exchanger",
        "label": "Shell and tube heat exchanger",
        "category": "equipment",
        "tags": [
          "cooler",
          "heater",
          "exchanger"
        ],
        "size": [
          100,
          100
        ],
        "ports": [
          {
            "id": "tube-in",
            "x": 0,
            "y": 0.5,
            "dir": "w"
          },
          {
            "id": "tube-out",
            "x": 1,
            "y": 0.5,
            "dir": "e"
          },
          {
            "id": "shell-in",
            "x": 0.4,
            "y": 0.1,
            "dir": "n"
          },
          {
            "id": "shell-out",
            "x": 0.6,
            "y": 0.9,
            "dir": "s"
          }
        ],
        "props": [
          {
            "name": "running",
            "type": "boolean"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/isa-bubble",
        "label": "ISA instrument bubble",
        "category": "instruments",
        "tags": [
          "tag",
          "loop",
          "isa"
        ],
        "size": [
          60,
          60
        ],
        "ports": [
          {
            "id": "process",
            "x": 0.5,
            "y": 1,
            "dir": "s"
          }
        ],
        "props": [
          {
            "name": "value",
            "type": "text"
          }
        ]
      },
      {
        "id": "core/led",
        "label": "LED",
        "category": "states",
        "tags": [
          "lamp",
          "light",
          "indicator",
          "pilot"
        ],
        "size": [
          40,
          40
        ],
        "ports": [],
        "props": [
          {
            "name": "on",
            "type": "number"
          }
        ]
      },
      {
        "id": "core/line",
        "label": "Line",
        "category": "shapes",
        "tags": [
          "stroke",
          "divider",
          "rule"
        ],
        "size": [
          80,
          10
        ],
        "ports": [
          {
            "id": "a",
            "x": 0.063,
            "y": 0.5,
            "dir": "w"
          },
          {
            "id": "b",
            "x": 0.938,
            "y": 0.5,
            "dir": "e"
          }
        ],
        "props": []
      },
      {
        "id": "core/mini-gauge",
        "label": "Mini gauge",
        "category": "values",
        "tags": [
          "gauge",
          "dial",
          "meter",
          "level"
        ],
        "size": [
          80,
          70
        ],
        "ports": [],
        "props": [
          {
            "name": "level",
            "type": "number"
          },
          {
            "name": "value",
            "type": "text"
          }
        ]
      },
      {
        "id": "core/mode-indicator",
        "label": "Mode indicator",
        "category": "states",
        "tags": [
          "mode",
          "auto",
          "manual",
          "off",
          "selector",
          "lamp"
        ],
        "size": [
          110,
          60
        ],
        "ports": [],
        "props": [
          {
            "name": "auto",
            "type": "number"
          },
          {
            "name": "manual",
            "type": "number"
          },
          {
            "name": "off",
            "type": "number"
          },
          {
            "name": "value",
            "type": "text"
          }
        ]
      },
      {
        "id": "core/motor",
        "label": "Motor",
        "category": "equipment",
        "tags": [
          "drive",
          "rotating",
          "electric"
        ],
        "size": [
          80,
          90
        ],
        "ports": [
          {
            "id": "power",
            "x": 0.5,
            "y": 0.156,
            "dir": "n"
          },
          {
            "id": "shaft",
            "x": 1,
            "y": 0.556,
            "dir": "e"
          }
        ],
        "props": [
          {
            "name": "running",
            "type": "boolean"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/pump",
        "label": "Centrifugal pump",
        "category": "equipment",
        "tags": [
          "motor",
          "rotating",
          "centrifugal"
        ],
        "size": [
          80,
          90
        ],
        "ports": [
          {
            "id": "in",
            "x": 0,
            "y": 0.556,
            "dir": "w"
          },
          {
            "id": "out",
            "x": 0.825,
            "y": 0.056,
            "dir": "n"
          }
        ],
        "props": [
          {
            "name": "running",
            "type": "boolean"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/rectangle",
        "label": "Rectangle",
        "category": "shapes",
        "tags": [
          "box",
          "frame",
          "area",
          "group"
        ],
        "size": [
          80,
          50
        ],
        "ports": [
          {
            "id": "n",
            "x": 0.5,
            "y": 0.1,
            "dir": "n"
          },
          {
            "id": "e",
            "x": 0.938,
            "y": 0.5,
            "dir": "e"
          },
          {
            "id": "s",
            "x": 0.5,
            "y": 0.9,
            "dir": "s"
          },
          {
            "id": "w",
            "x": 0.063,
            "y": 0.5,
            "dir": "w"
          }
        ],
        "props": []
      },
      {
        "id": "core/selector",
        "label": "Selector",
        "category": "commands",
        "tags": [
          "switch",
          "mode",
          "rotary",
          "command",
          "position"
        ],
        "size": [
          80,
          70
        ],
        "ports": [],
        "props": [
          {
            "name": "pos1",
            "type": "number"
          },
          {
            "name": "pos2",
            "type": "number"
          },
          {
            "name": "pos3",
            "type": "number"
          }
        ]
      },
      {
        "id": "core/sensor",
        "label": "Sensor / transmitter",
        "category": "instruments",
        "tags": [
          "transmitter",
          "probe",
          "measurement",
          "field"
        ],
        "size": [
          60,
          80
        ],
        "ports": [
          {
            "id": "process",
            "x": 0.5,
            "y": 1,
            "dir": "s"
          }
        ],
        "props": [
          {
            "name": "value",
            "type": "text"
          }
        ]
      },
      {
        "id": "core/setpoint",
        "label": "Setpoint",
        "category": "commands",
        "tags": [
          "input",
          "entry",
          "number",
          "command",
          "sp"
        ],
        "size": [
          120,
          40
        ],
        "ports": [],
        "props": [
          {
            "name": "value",
            "type": "text"
          }
        ]
      },
      {
        "id": "core/silo",
        "label": "Silo with level",
        "category": "equipment",
        "tags": [
          "bulk",
          "hopper",
          "storage",
          "vessel"
        ],
        "size": [
          80,
          140
        ],
        "ports": [
          {
            "id": "in",
            "x": 0.5,
            "y": 0,
            "dir": "n"
          },
          {
            "id": "out",
            "x": 0.5,
            "y": 1,
            "dir": "s"
          }
        ],
        "props": [
          {
            "name": "level",
            "type": "number"
          },
          {
            "name": "value",
            "type": "text"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/stack-light",
        "label": "Stack light",
        "category": "states",
        "tags": [
          "lamp",
          "tower",
          "beacon"
        ],
        "size": [
          40,
          100
        ],
        "ports": [],
        "props": [
          {
            "name": "red",
            "type": "number"
          },
          {
            "name": "amber",
            "type": "number"
          },
          {
            "name": "green",
            "type": "number"
          }
        ]
      },
      {
        "id": "core/tank",
        "label": "Tank with level",
        "category": "equipment",
        "tags": [
          "vessel",
          "storage"
        ],
        "size": [
          80,
          120
        ],
        "ports": [
          {
            "id": "in",
            "x": 0.5,
            "y": 0,
            "dir": "n"
          },
          {
            "id": "out",
            "x": 0.5,
            "y": 1,
            "dir": "s"
          }
        ],
        "props": [
          {
            "name": "level",
            "type": "number"
          },
          {
            "name": "value",
            "type": "text"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/value-tag",
        "label": "Value tag",
        "category": "values",
        "tags": [
          "value",
          "readout",
          "tag",
          "number"
        ],
        "size": [
          100,
          30
        ],
        "ports": [],
        "props": [
          {
            "name": "value",
            "type": "text"
          }
        ]
      },
      {
        "id": "core/valve",
        "label": "Control valve",
        "category": "equipment",
        "tags": [
          "actuated",
          "modulating",
          "line"
        ],
        "size": [
          60,
          70
        ],
        "ports": [
          {
            "id": "in",
            "x": 0,
            "y": 0.714,
            "dir": "w"
          },
          {
            "id": "out",
            "x": 1,
            "y": 0.714,
            "dir": "e"
          }
        ],
        "props": [
          {
            "name": "open",
            "type": "boolean"
          },
          {
            "name": "level",
            "type": "number"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/valve-manual",
        "label": "Manual valve",
        "category": "equipment",
        "tags": [
          "handwheel",
          "hand",
          "line",
          "isolation"
        ],
        "size": [
          60,
          70
        ],
        "ports": [
          {
            "id": "in",
            "x": 0,
            "y": 0.714,
            "dir": "w"
          },
          {
            "id": "out",
            "x": 1,
            "y": 0.714,
            "dir": "e"
          }
        ],
        "props": [
          {
            "name": "open",
            "type": "boolean"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/valve-onoff",
        "label": "On/off valve",
        "category": "equipment",
        "tags": [
          "actuated",
          "pneumatic",
          "line",
          "shutoff",
          "isolation"
        ],
        "size": [
          60,
          70
        ],
        "ports": [
          {
            "id": "in",
            "x": 0,
            "y": 0.714,
            "dir": "w"
          },
          {
            "id": "out",
            "x": 1,
            "y": 0.714,
            "dir": "e"
          }
        ],
        "props": [
          {
            "name": "open",
            "type": "boolean"
          },
          {
            "name": "level",
            "type": "number"
          },
          {
            "name": "fault",
            "type": "boolean"
          }
        ]
      },
      {
        "id": "core/vertical-bar",
        "label": "Vertical bar",
        "category": "values",
        "tags": [
          "bar",
          "level",
          "indicator",
          "gauge"
        ],
        "size": [
          60,
          140
        ],
        "ports": [],
        "props": [
          {
            "name": "level",
            "type": "number"
          },
          {
            "name": "value",
            "type": "text"
          }
        ]
      }
    ]
  },
  "pageTemplates": [
    {
      "id": "monitoring",
      "label": "Monitoring",
      "description": "Four KPIs, a gauge and a trend chart",
      "layout": "grid",
      "widgets": [
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "main",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Temperature",
            "icon": "thermometer",
            "unit": "°C",
            "decimals": 1,
            "warn": 28,
            "alarm": 31
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "main",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Pressure",
            "icon": "gauge",
            "unit": "bar",
            "decimals": 2
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "main",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Flow",
            "icon": "waves",
            "unit": "m³/h",
            "decimals": 1
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "main",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Level",
            "icon": "cylinder",
            "unit": "%",
            "decimals": 0
          }
        },
        {
          "type": "gauge",
          "node": "tessera-gauge",
          "region": "main",
          "width": 4,
          "height": 3,
          "props": {
            "label": "Temperature",
            "unit": "°C",
            "min": 0,
            "max": 40,
            "decimals": 1,
            "warn": 28,
            "alarm": 31
          }
        },
        {
          "type": "chart",
          "node": "tessera-chart",
          "region": "main",
          "width": 8,
          "height": 3,
          "props": {
            "label": "Temperature trend",
            "unit": "°C",
            "window": 120
          }
        }
      ]
    },
    {
      "id": "control",
      "label": "Control panel",
      "description": "Process chart and KPIs, controls in a sidebar",
      "layout": "sidebar-right",
      "widgets": [
        {
          "type": "chart",
          "node": "tessera-chart",
          "region": "main",
          "width": 12,
          "height": 3,
          "props": {
            "label": "Process value",
            "unit": "°C",
            "window": 120
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "main",
          "width": 6,
          "height": 1,
          "props": {
            "label": "Process value",
            "icon": "thermometer",
            "unit": "°C",
            "decimals": 1
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "main",
          "width": 6,
          "height": 1,
          "props": {
            "label": "Output",
            "icon": "zap",
            "unit": "%",
            "decimals": 0
          }
        },
        {
          "type": "switch",
          "node": "tessera-switch",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Pump",
            "icon": "power"
          }
        },
        {
          "type": "switch",
          "node": "tessera-switch",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Valve",
            "icon": "pipette"
          }
        },
        {
          "type": "slider",
          "node": "tessera-slider",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Setpoint",
            "min": 20,
            "max": 90,
            "step": 0.5,
            "unit": "°C"
          }
        },
        {
          "type": "slider",
          "node": "tessera-slider",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Speed",
            "min": 0,
            "max": 100,
            "step": 1,
            "unit": "%"
          }
        },
        {
          "type": "button",
          "node": "tessera-button",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Start",
            "icon": "play",
            "size": "lg"
          }
        },
        {
          "type": "button",
          "node": "tessera-button",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Stop",
            "icon": "square",
            "variant": "soft",
            "color": "danger",
            "size": "lg",
            "confirm": "Stop the process?"
          }
        }
      ]
    },
    {
      "id": "trend",
      "label": "Trend",
      "description": "KPI band above a large chart",
      "layout": "band",
      "widgets": [
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Current",
            "icon": "activity",
            "unit": "kW",
            "decimals": 1
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Average",
            "icon": "sigma",
            "unit": "kW",
            "decimals": 1
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Peak",
            "icon": "trending-up",
            "unit": "kW",
            "decimals": 1
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Energy today",
            "icon": "battery-charging",
            "unit": "kWh",
            "decimals": 0
          }
        },
        {
          "type": "chart",
          "node": "tessera-chart",
          "region": "main",
          "width": 12,
          "height": 4,
          "props": {
            "label": "Power",
            "unit": "kW",
            "window": 300
          }
        }
      ]
    },
    {
      "id": "overview",
      "label": "Overview",
      "description": "KPI band, gauge and chart, controls on the side",
      "layout": "band-sidebar",
      "widgets": [
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 4,
          "height": 1,
          "props": {
            "label": "Production",
            "icon": "factory",
            "unit": "u/h",
            "decimals": 0
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 4,
          "height": 1,
          "props": {
            "label": "Efficiency",
            "icon": "percent",
            "unit": "%",
            "decimals": 1,
            "warn": 90
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 4,
          "height": 1,
          "props": {
            "label": "Alarms",
            "icon": "bell",
            "decimals": 0,
            "warn": 1,
            "alarm": 3
          }
        },
        {
          "type": "gauge",
          "node": "tessera-gauge",
          "region": "main",
          "width": 4,
          "height": 3,
          "props": {
            "label": "Load",
            "unit": "%",
            "min": 0,
            "max": 100,
            "decimals": 0,
            "warn": 80,
            "alarm": 95
          }
        },
        {
          "type": "chart",
          "node": "tessera-chart",
          "region": "main",
          "width": 8,
          "height": 3,
          "props": {
            "label": "Output",
            "unit": "u/h",
            "window": 120
          }
        },
        {
          "type": "switch",
          "node": "tessera-switch",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Line running",
            "icon": "power"
          }
        },
        {
          "type": "slider",
          "node": "tessera-slider",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Target rate",
            "min": 0,
            "max": 1200,
            "step": 10,
            "unit": "u/h"
          }
        },
        {
          "type": "button",
          "node": "tessera-button",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Reset counters",
            "icon": "rotate-ccw",
            "variant": "outline",
            "color": "neutral"
          }
        }
      ]
    },
    {
      "id": "alarms",
      "label": "Alarms",
      "description": "Device states, alarm count and an alarm list to acknowledge",
      "layout": "band",
      "widgets": [
        {
          "type": "status",
          "node": "tessera-status",
          "region": "band",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Pump 1",
            "style": "tile",
            "states": [
              {
                "value": "running",
                "label": "Running",
                "color": "success",
                "icon": "play",
                "blink": false
              },
              {
                "value": "stopped",
                "label": "Stopped",
                "color": "neutral",
                "icon": "square",
                "blink": false
              },
              {
                "value": "fault",
                "label": "Fault",
                "color": "danger",
                "icon": "triangle-alert",
                "blink": true
              }
            ]
          }
        },
        {
          "type": "status",
          "node": "tessera-status",
          "region": "band",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Pump 2",
            "style": "tile",
            "states": [
              {
                "value": "running",
                "label": "Running",
                "color": "success",
                "icon": "play",
                "blink": false
              },
              {
                "value": "stopped",
                "label": "Stopped",
                "color": "neutral",
                "icon": "square",
                "blink": false
              },
              {
                "value": "fault",
                "label": "Fault",
                "color": "danger",
                "icon": "triangle-alert",
                "blink": true
              }
            ]
          }
        },
        {
          "type": "status",
          "node": "tessera-status",
          "region": "band",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Compressor",
            "style": "tile",
            "states": [
              {
                "value": "running",
                "label": "Running",
                "color": "success",
                "icon": "play",
                "blink": false
              },
              {
                "value": "stopped",
                "label": "Stopped",
                "color": "neutral",
                "icon": "square",
                "blink": false
              },
              {
                "value": "fault",
                "label": "Fault",
                "color": "danger",
                "icon": "triangle-alert",
                "blink": true
              }
            ]
          }
        },
        {
          "type": "status",
          "node": "tessera-status",
          "region": "band",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Conveyor",
            "style": "tile",
            "states": [
              {
                "value": "running",
                "label": "Running",
                "color": "success",
                "icon": "play",
                "blink": false
              },
              {
                "value": "stopped",
                "label": "Stopped",
                "color": "neutral",
                "icon": "square",
                "blink": false
              },
              {
                "value": "fault",
                "label": "Fault",
                "color": "danger",
                "icon": "triangle-alert",
                "blink": true
              }
            ]
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "main",
          "width": 4,
          "height": 1,
          "props": {
            "label": "Active alarms",
            "icon": "bell-ring",
            "decimals": 0,
            "warn": 1,
            "alarm": 3
          }
        },
        {
          "type": "text",
          "node": "tessera-text",
          "region": "main",
          "width": 8,
          "height": 1,
          "props": {
            "label": "Last event",
            "icon": "message-square-warning",
            "color": "danger"
          }
        },
        {
          "type": "alarms",
          "node": "tessera-alarms",
          "region": "main",
          "width": 12,
          "height": 4,
          "props": {
            "label": "Alarm list",
            "icon": "siren"
          }
        }
      ]
    },
    {
      "id": "report",
      "label": "Shift report",
      "description": "A period picker, totals, units per line and downtime by cause",
      "layout": "band",
      "widgets": [
        {
          "type": "datetime",
          "node": "tessera-datetime",
          "region": "band",
          "width": 4,
          "height": 1,
          "props": {
            "label": "Period",
            "icon": "calendar",
            "mode": "range"
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 4,
          "height": 1,
          "props": {
            "label": "Units",
            "icon": "package",
            "unit": "u",
            "decimals": 0
          }
        },
        {
          "type": "stat",
          "node": "tessera-stat",
          "region": "band",
          "width": 4,
          "height": 1,
          "props": {
            "label": "OEE",
            "icon": "gauge",
            "unit": "%",
            "decimals": 1
          }
        },
        {
          "type": "bar",
          "node": "tessera-bar",
          "region": "main",
          "width": 8,
          "height": 3,
          "props": {
            "label": "Units per line",
            "icon": "chart-column",
            "unit": "u",
            "decimals": 0,
            "showValues": true
          }
        },
        {
          "type": "pie",
          "node": "tessera-pie",
          "region": "main",
          "width": 4,
          "height": 3,
          "props": {
            "label": "Downtime by cause",
            "icon": "clock-alert",
            "unit": "min",
            "decimals": 0,
            "donut": true,
            "labels": "percent"
          }
        }
      ]
    },
    {
      "id": "production",
      "label": "Production",
      "description": "Batch progress, tank levels and batch inputs",
      "layout": "sidebar-right",
      "widgets": [
        {
          "type": "text",
          "node": "tessera-text",
          "region": "main",
          "width": 4,
          "height": 1,
          "props": {
            "label": "Machine",
            "icon": "cog",
            "size": "lg",
            "color": "success"
          }
        },
        {
          "type": "progress",
          "node": "tessera-progress",
          "region": "main",
          "width": 8,
          "height": 1,
          "props": {
            "label": "Batch progress",
            "icon": "package",
            "unit": "u",
            "max": 1200,
            "showValue": true
          }
        },
        {
          "type": "progress",
          "node": "tessera-progress",
          "region": "main",
          "width": 4,
          "height": 3,
          "props": {
            "label": "Tank A",
            "icon": "cylinder",
            "orientation": "vertical",
            "warn": 85,
            "alarm": 95
          }
        },
        {
          "type": "progress",
          "node": "tessera-progress",
          "region": "main",
          "width": 4,
          "height": 3,
          "props": {
            "label": "Tank B",
            "icon": "cylinder",
            "orientation": "vertical",
            "warn": 85,
            "alarm": 95
          }
        },
        {
          "type": "progress",
          "node": "tessera-progress",
          "region": "main",
          "width": 4,
          "height": 3,
          "props": {
            "label": "Tank C",
            "icon": "cylinder",
            "orientation": "vertical",
            "warn": 85,
            "alarm": 95
          }
        },
        {
          "type": "dropdown",
          "node": "tessera-dropdown",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Recipe",
            "icon": "book-open",
            "options": [
              {
                "label": "Olive oil 1 L",
                "value": "R1",
                "type": "str"
              },
              {
                "label": "Olive oil 5 L",
                "value": "R2",
                "type": "str"
              },
              {
                "label": "Sunflower 1 L",
                "value": "R3",
                "type": "str"
              }
            ]
          }
        },
        {
          "type": "input",
          "node": "tessera-input",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Batch size",
            "icon": "boxes",
            "unit": "u",
            "min": 1,
            "max": 5000,
            "step": 100,
            "required": true
          }
        },
        {
          "type": "input",
          "node": "tessera-input",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Operator",
            "icon": "user",
            "mode": "text",
            "placeholder": "Name or ID"
          }
        },
        {
          "type": "button",
          "node": "tessera-button",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Start batch",
            "icon": "play",
            "size": "lg"
          }
        },
        {
          "type": "button",
          "node": "tessera-button",
          "region": "side",
          "width": 3,
          "height": 1,
          "props": {
            "label": "Abort batch",
            "icon": "square",
            "variant": "soft",
            "color": "danger",
            "size": "lg",
            "confirm": "Abort the current batch?"
          }
        }
      ]
    },
    {
      "id": "process-screen",
      "label": "Process screen",
      "description": "A synoptic that fills the whole screen, as in a SCADA",
      "layout": "screen",
      "widgets": [
        {
          "type": "synoptic",
          "node": "tessera-synoptic",
          "region": "main",
          "width": 12,
          "height": 6,
          "props": {
            "label": "Process"
          }
        }
      ]
    }
  ],
  "builderConventions": {
    "flow": "new widgets go to a flow (tab) named \"Tessera UI\"",
    "groups": "one Node-RED group per page, named after the page title; page-less nodes (notifications) go to a \"Feedback\" group",
    "icons": "widget icons are Lucide names (https://lucide.dev/icons); the node config key is uiIcon (icon is reserved by Node-RED)"
  }
}
