{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "label": {
      "description": "Override the field label",
      "examples": [
        "My label"
      ],
      "type": "string",
      "markdownDescription": "Override the field label\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "hideLabel": {
      "description": "Hide the field label",
      "type": "boolean",
      "markdownDescription": "Hide the field label\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "placeholder": {
      "description": "Placeholder text shown inside the input when empty",
      "examples": [
        "Search..."
      ],
      "type": "string",
      "markdownDescription": "Placeholder text shown inside the input when empty\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "readonly": {
      "description": "Render the field in read-only mode",
      "type": "boolean",
      "markdownDescription": "Render the field in read-only mode\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "disabled": {
      "description": "Always render the input disabled",
      "type": "boolean",
      "markdownDescription": "Always render the input disabled\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "errorMessage": {
      "description": "Replace the validation error text shown under the input",
      "examples": [
        "Please fill this in"
      ],
      "type": "string",
      "markdownDescription": "Replace the validation error text shown under the input\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "disabledWhen": {
      "description": "Disable the input when the condition matches another field",
      "examples": [
        {
          "field": "id",
          "exists": true
        }
      ],
      "type": "object",
      "properties": {
        "field": {
          "type": "string",
          "description": "The other column id whose value is evaluated for the condition.",
          "markdownDescription": "The other column id whose value is evaluated for the condition.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
        },
        "eq": {
          "description": "Show/hide/disable when the field value equals this value.",
          "markdownDescription": "Show/hide/disable when the field value equals this value.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
        },
        "neq": {
          "description": "Show/hide/disable when the field value does NOT equal this value.",
          "markdownDescription": "Show/hide/disable when the field value does NOT equal this value.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
        },
        "exists": {
          "description": "When true, show/hide/disable when the field has a non-empty value.",
          "type": "boolean",
          "markdownDescription": "When true, show/hide/disable when the field has a non-empty value.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
        },
        "notExists": {
          "description": "When true, show/hide/disable when the field has no value.",
          "type": "boolean",
          "markdownDescription": "When true, show/hide/disable when the field has no value.\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
        }
      },
      "required": [
        "field"
      ],
      "markdownDescription": "Disable the input when the condition matches another field\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "colspan": {
      "description": "Grid column span (1–12)",
      "examples": [
        6,
        12
      ],
      "type": "number",
      "markdownDescription": "Grid column span (1–12)\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "width": {
      "description": "Named width (xs, sm, md, lg, xl, full) or any CSS value",
      "examples": [
        "md",
        "240px"
      ],
      "type": "string",
      "markdownDescription": "Named width (xs, sm, md, lg, xl, full) or any CSS value\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "styles": {
      "description": "Inline CSS style object applied to the field wrapper",
      "examples": [
        {
          "color": "red"
        }
      ],
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {},
      "markdownDescription": "Inline CSS style object applied to the field wrapper\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "customRender": {
      "description": "Name of a globally registered Vue component to render instead of the default input",
      "examples": [
        "MyCustomInput"
      ],
      "type": "string",
      "markdownDescription": "Name of a globally registered Vue component to render instead of the default input\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "fromLabel": {
      "description": "Label above the start date input",
      "default": "From",
      "examples": [
        "From",
        "Start date"
      ],
      "type": "string",
      "markdownDescription": "Label above the start date input\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "toLabel": {
      "description": "Label above the end date input",
      "default": "To",
      "examples": [
        "To",
        "End date"
      ],
      "type": "string",
      "markdownDescription": "Label above the end date input\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "fromField": {
      "description": "JSON object key for the start date",
      "default": "from",
      "examples": [
        "from",
        "startDate"
      ],
      "type": "string",
      "markdownDescription": "JSON object key for the start date\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "toField": {
      "description": "JSON object key for the end date",
      "default": "to",
      "examples": [
        "to",
        "endDate"
      ],
      "type": "string",
      "markdownDescription": "JSON object key for the end date\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    },
    "yearOnly": {
      "description": "Render year-only text inputs instead of full date pickers (accepts values like \"450\" or \"450 CE\")",
      "default": false,
      "examples": [
        true
      ],
      "type": "boolean",
      "markdownDescription": "Render year-only text inputs instead of full date pickers (accepts values like \"450\" or \"450 CE\")\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
    }
  },
  "additionalProperties": {},
  "title": "Crouton fieldInput options: date-range",
  "description": "Options for the from/to date range picker",
  "$id": "https://ghentcdh.github.io/crouton/schema/v1/date-range.field-input.schema.json",
  "markdownDescription": "Options for the from/to date range picker\n\n[Docs](https://ghentcdh.github.io/crouton/guide/2.resources/field-inputs/date-range)"
}
