{
  "definitions": {
    "events": {
      "$ref": "#/definitions/Events",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Events": {
          "additionalProperties": false,
          "properties": {
            "setVal": {
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string"
                },
                "valid": {
                  "type": "boolean"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "valid",
                "id"
              ],
              "type": "object"
            }
          },
          "required": [
            "setVal"
          ],
          "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": {
            "array_style": {
              "description": "For `type: \"arraytags\"` only: forwarded to `hb-input-array-tags` as the host `array_style` attribute (`\"pills\"` | `\"area\"` string). When omitted, **`hb-form` defaults to `\"area\"`**.",
              "type": "string"
            },
            "dependencies": {
              "items": {
                "$ref": "#/definitions/FormSchemaDependency"
              },
              "type": "array"
            },
            "disabled": {
              "type": "boolean"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "params": {
              "$ref": "#/definitions/InputDatetimeParams"
            },
            "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"
        },
        "InputDatetimeParams": {
          "additionalProperties": false,
          "description": "Inclusive bounds passed to `new Date(...)`; `removeSeconds` hides the seconds column.",
          "properties": {
            "max": {
              "type": [
                "string",
                "number"
              ]
            },
            "min": {
              "type": [
                "string",
                "number"
              ]
            },
            "removeSeconds": {
              "description": "When truthy, the seconds `hb-input-number` is not rendered.",
              "type": "boolean"
            }
          },
          "type": "object"
        }
      }
    }
  },
  "description": "Composes `hb-input-date` and `hb-input-number` for date, hours, minutes, and (unless `params.removeSeconds`) seconds, then emits one ISO datetime string as `value`. Optional `params` as `InputDatetimeParams`: `min` / `max` (string or number) bound the chosen instant when `required`; `removeSeconds` hides the seconds column. Registers child packages. Dispatches `setVal` `{ value, valid, id }`. Bulma grouped layout + `help is-danger` on `:host`. Typings: `InputDatetimeParams`, `FormSchemaEntry`, `Component`, `Events`.",
  "storybookArgs": {
    "schemaentry": {
      "control": {
        "type": "object"
      }
    },
    "show_validation": {
      "control": {
        "type": "boolean"
      }
    },
    "setVal": {
      "action": "setVal"
    }
  },
  "styleSetup": {
    "vars": [
      {
        "name": "--bulma-text",
        "valueType": "color",
        "defaultValue": "",
        "description": "Grouped field labels and validation help text."
      },
      {
        "name": "--bulma-border",
        "valueType": "color",
        "defaultValue": "",
        "description": "Control borders for date and time sub-fields."
      },
      {
        "name": "--bulma-danger",
        "valueType": "color",
        "defaultValue": "",
        "description": "Invalid host outline and `help is-danger` when out of range or empty."
      },
      {
        "name": "--bulma-success",
        "valueType": "color",
        "defaultValue": "",
        "description": "Valid grouped controls when `show_validation` is on."
      },
      {
        "name": "--bulma-scheme-main",
        "valueType": "color",
        "defaultValue": "",
        "description": "Surface behind composed `hb-input-date` / `hb-input-number` controls."
      }
    ],
    "parts": [
      {
        "name": "invalid-feedback",
        "description": "The `p.help.is-danger` message when `show_validation` is `yes` and the combined datetime is invalid."
      }
    ]
  },
  "contributors": [],
  "htmlSlots": [],
  "i18n": [],
  "examples": [
    {
      "name": "empty",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "label": "Last Name",
          "validationTip": "This field cannot be empty.",
          "params": {
            "removeSeconds": true
          }
        }
      }
    },
    {
      "name": "emptyRequired",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "label": "Last Name",
          "validationTip": "This field cannot be empty."
        }
      }
    },
    {
      "name": "withValue",
      "data": {
        "schemaentry": {
          "placeholder": "Insert your last name here...",
          "id": "lastName",
          "required": true,
          "label": "Last Name",
          "validationTip": "This field cannot be empty.",
          "value": "2022-06-23T05:09:08.107Z"
        }
      }
    },
    {
      "name": "bugged",
      "data": {
        "schemaentry": {
          "label": "datetime",
          "placeholder": "Insert your last name here...",
          "id": "datelsastNafme66",
          "required": true,
          "validationTip": "This field cannot be empty.",
          "value": "2022-06-23T13:41:10.107Z"
        }
      }
    },
    {
      "name": "maxDate27Feb2023",
      "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-27T00:00:00.000Z"
          }
        }
      }
    },
    {
      "name": "minDate27Feb2023",
      "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"
          }
        }
      }
    },
    {
      "name": "rangeDate27Feb2023",
      "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": "disabled",
      "description": "Datetime input is fully disabled and non-interactive.",
      "data": {
        "schemaentry": {
          "id": "datetimeDisabled",
          "label": "Event date (locked)",
          "value": "2024-06-15T14:30:00.000Z",
          "disabled": true
        }
      }
    }
  ],
  "iifeIntegrity": "sha384-CIGU+tHrgjs9ZK4kkDZZhcXCKKRHjhax9xYJU0tc2jBrlBtvQWNSPMUr2nXofQ6r",
  "dependencies": [
    {
      "name": "hb-input-date",
      "dependencies": []
    },
    {
      "name": "hb-input-number",
      "dependencies": []
    }
  ],
  "screenshots": [],
  "licenses": [
    {
      "type": "Apache-2.0",
      "path": "LICENSE.md",
      "cost": 0,
      "currency": "EUR"
    }
  ],
  "readmePath": "README.md",
  "name": "hb-input-datetime",
  "category": "inputs",
  "tags": [
    "inputs"
  ],
  "size": {},
  "iifePath": "main.iife.js",
  "repoName": "@htmlbricks/hb-input-datetime",
  "version": "0.73.7"
}