{
  "allOf": [
    {
      "$ref": "#/definitions/ComponentContextProps"
    },
    {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "htmlContent": {
          "type": "string"
        },
        "useHTMLCode": {
          "type": "boolean"
        },
        "useSandbox": {
          "type": "boolean"
        },
        "allowScripts": {
          "type": "boolean"
        },
        "allowSameOrigin": {
          "type": "boolean"
        },
        "allowForms": {
          "type": "boolean"
        },
        "allowPopups": {
          "type": "boolean"
        },
        "variables": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/FreeTextDateVariable"
          }
        },
        "showDateSelection": {
          "type": "boolean"
        },
        "loadConf": {
          "description": "Seeds the date pickers when `showDateSelection` is on; without it they open on the tab-level range.",
          "type": "object",
          "properties": {
            "type": {
              "const": "Time",
              "type": "string"
            },
            "lead": {
              "type": "number"
            },
            "lag": {
              "type": "number"
            },
            "leadUnit": {
              "$ref": "#/definitions/DweenTimeUnit"
            },
            "lagUnit": {
              "$ref": "#/definitions/DweenTimeUnit"
            },
            "alignUnit": {
              "enum": [
                "CALENDAR_445",
                "DAYS",
                "HALFHOUR",
                "HOURS",
                "MILLIS",
                "MINUTES",
                "MONTHS",
                "SECONDS",
                "WEEKS",
                "YEARS"
              ],
              "type": "string"
            },
            "truncateStartUnit": {
              "description": "Snaps the *computed window start* down to this unit's boundary, after the lag has been\nsubtracted. Distinct from `alignUnit`, which truncates the reference time and so lands on the\nwindow's end: a 48-hour lag off an hour-aligned \"now\" starts mid-day, and `DAYS` here pulls it\nback to local midnight. Widens the window rather than shifting it. Default none/null.",
              "enum": [
                "DAYS",
                "HALFHOUR",
                "HOURS",
                "MILLIS",
                "MINUTES",
                "MONTHS",
                "SECONDS",
                "WEEKS",
                "YEARS"
              ],
              "type": "string"
            }
          },
          "required": ["alignUnit", "lag", "lagUnit", "leadUnit"]
        },
        "reportMode": {
          "description": "Set by report rendering; the viewer-only date pickers stay out of the printed output.",
          "type": "boolean"
        }
      }
    }
  ],
  "definitions": {
    "ComponentContextProps": {
      "type": "object",
      "properties": {
        "hideHeader": {
          "type": "boolean"
        }
      }
    },
    "FreeTextDateVariable": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "offset": {
          "type": "number"
        },
        "offsetUnit": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "truncateTo": {
          "enum": [
            "DAYS",
            "HALFHOUR",
            "HOURS",
            "MILLIS",
            "MINUTES",
            "MONTHS",
            "SECONDS",
            "WEEKS",
            "YEARS"
          ],
          "type": "string"
        },
        "format": {
          "type": "string"
        }
      },
      "required": ["name"]
    },
    "DweenTimeUnit": {
      "enum": [
        "DAYS",
        "HALFHOUR",
        "HOURS",
        "MILLIS",
        "MINUTES",
        "MONTHS",
        "SECONDS",
        "WEEKS",
        "YEARS"
      ],
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
