{
  "definitions": {
    "events": {
      "$ref": "#/definitions/Events",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Events": {
          "additionalProperties": false,
          "properties": {
            "clickEnter": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "valid": {
                  "type": "boolean"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "valid"
              ],
              "type": "object"
            },
            "setVal": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "valid": {
                  "type": "boolean"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "valid",
                "id"
              ],
              "type": "object"
            }
          },
          "required": [
            "setVal",
            "clickEnter"
          ],
          "type": "object"
        }
      }
    },
    "component": {
      "$ref": "#/definitions/Component",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Component": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "schemaentry": {
              "$ref": "#/definitions/FormSchemaEntry"
            },
            "show_validation": {
              "enum": [
                "yes",
                "no"
              ],
              "type": "string"
            },
            "style": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "FormSchemaDependency": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "values": {
              "items": {
                "type": [
                  "string",
                  "number",
                  "boolean"
                ]
              },
              "type": "array"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        "FormSchemaEntry": {
          "additionalProperties": false,
          "properties": {
            "dependencies": {
              "items": {
                "$ref": "#/definitions/FormSchemaDependency"
              },
              "type": "array"
            },
            "disabled": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "params": {
              "$ref": "#/definitions/InputDateParams"
            },
            "placeholder": {
              "type": "string"
            },
            "readonly": {
              "type": "boolean"
            },
            "required": {
              "type": "boolean"
            },
            "type": {
              "description": "Discriminator for `hb-form` rows (`row`, `text`, `number`, …). May be omitted on a standalone `schemaentry` when implied by the host tag.",
              "type": "string"
            },
            "validationRegex": {
              "type": "string"
            },
            "validationTip": {
              "type": "string"
            },
            "value": {}
          },
          "required": [
            "id"
          ],
          "type": "object"
        },
        "InputDateParams": {
          "additionalProperties": false,
          "description": "Passed to `new Date(...)` for inclusive range checks on the chosen date.",
          "properties": {
            "max": {
              "type": [
                "string",
                "number"
              ]
            },
            "min": {
              "type": [
                "string",
                "number"
              ]
            }
          },
          "type": "object"
        }
      }
    }
  },
  "description": "Native date control with Bulma `input` + `is-success` / `is-danger` and `help is-danger`. Optional `params` as `InputDateParams`: `min` and `max` are passed to `new Date(...)` and mirrored to the input’s `min`/`max` attributes when set. `schemaentry.value` is typically an ISO date string. Dispatches `setVal` and `clickEnter`. Theme `--bulma-*` on `:host`. Typings: `InputDateParams`, `FormSchemaEntry`, `Component`, `Events`.",
  "storybookArgs": {
    "schemaentry": {
      "control": {
        "type": "object"
      }
    },
    "show_validation": {
      "control": {
        "type": "boolean"
      }
    },
    "setVal": {
      "action": "setVal"
    },
    "clickEnter": {
      "action": "clickEnter"
    }
  },
  "styleSetup": {
    "vars": [
      {
        "name": "--bulma-text",
        "valueType": "color",
        "defaultValue": "",
        "description": "Label, native date value, and help text color."
      },
      {
        "name": "--bulma-border",
        "valueType": "color",
        "defaultValue": "",
        "description": "Input border before `is-success` / `is-danger` modifiers."
      },
      {
        "name": "--bulma-danger",
        "valueType": "color",
        "defaultValue": "",
        "description": "Invalid state border and `help is-danger` emphasis."
      },
      {
        "name": "--bulma-success",
        "valueType": "color",
        "defaultValue": "",
        "description": "Valid state (`is-success`) when `show_validation` is enabled."
      },
      {
        "name": "--bulma-scheme-main",
        "valueType": "color",
        "defaultValue": "",
        "description": "Input surface background inside the shadow root."
      }
    ],
    "parts": [
      {
        "name": "invalid-feedback",
        "description": "The `p.help.is-danger` message when `show_validation` is `yes` and the date fails `required` or `min`/`max` bounds."
      }
    ]
  },
  "contributors": [],
  "htmlSlots": [],
  "i18n": [],
  "examples": [
    {
      "name": "default",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "label": "Last Name",
          "validationTip": "This field cannot be empty."
        }
      }
    },
    {
      "name": "from27Febb2022",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "label": "Last Name",
          "validationTip": "This field cannot be empty.",
          "params": {
            "min": "2023-02-27T08:00:32.009Z"
          }
        }
      }
    },
    {
      "name": "to27Febb2022",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "label": "Last Name",
          "validationTip": "This field cannot be empty.",
          "params": {
            "max": "2023-02-27T08:00:32.009Z"
          }
        }
      }
    },
    {
      "name": "in27Febb2022",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "label": "Last Name",
          "validationTip": "This field cannot be empty.",
          "params": {
            "min": "2023-02-27T00:00:00.000Z",
            "max": "2023-02-27T23:59:59.999Z"
          }
        }
      }
    },
    {
      "name": "date27Febb2023",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "label": "Last Name",
          "validationTip": "This field cannot be empty.",
          "value": "1984-02-27"
        }
      }
    },
    {
      "name": "disabled",
      "description": "Date input is fully disabled and non-interactive.",
      "data": {
        "schemaentry": {
          "id": "dateDisabled",
          "label": "Birth date (locked)",
          "value": "1990-05-15",
          "disabled": true
        }
      }
    }
  ],
  "iifeIntegrity": "sha384-2kLL3tLWu2jrOzGb62Xx0UJBQIXgMSfacKZjvbP5JL53Tw8jbPP7/wFCQ6jEPdb1",
  "dependencies": [],
  "screenshots": [],
  "licenses": [
    {
      "type": "Apache-2.0",
      "path": "LICENSE.md",
      "cost": 0,
      "currency": "EUR"
    }
  ],
  "readmePath": "README.md",
  "name": "hb-input-date",
  "category": "inputs",
  "tags": [
    "inputs"
  ],
  "size": {},
  "iifePath": "main.iife.js",
  "repoName": "@htmlbricks/hb-input-date",
  "version": "0.71.37"
}