{
  "timestamp": "2026-11-19T09:33:56",
  "compiler": {
    "name": "@stencil/core",
    "version": "4.45.4",
    "typescriptVersion": "5.8.3"
  },
  "storybook": "https://magma-design-system.github.io/magma/storybook/",
  "studio": "https://magma-design-system.github.io/magma/studio/",
  "components": [
    {
      "filePath": "src/components/mds-input-date-range/mds-input-date-range.tsx",
      "encapsulation": "shadow",
      "tag": "mds-input-date-range",
      "docs": "",
      "docsTags": [
        {
          "name": "slot",
          "text": "calendar-preselection - Add `HTML elements` or `components` to this slot."
        },
        {
          "name": "slot",
          "text": "start - Add `HTML elements` or `components` to this slot."
        },
        {
          "name": "slot",
          "text": "end - Add `HTML elements` or `components` to this slot."
        },
        {
          "name": "category",
          "text": "forms"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-input-date-range>` web component is the Magma Design System control for capturing a start/end date pair, composing two slotted `<mds-input-date>` fields with a shared pop-up `mds-calendar` (in range mode) and optional quick-pick presets. It is a form-associated compound parent that orchestrates its children rather than rendering its own native inputs.\n\n#### Semantic Behavior\n\n- **Compound parent**: Expects exactly two `<mds-input-date>` children assigned to the `start` and `end` named slots; the host keeps both in sync as a single range - it is not meant to be used with a default (text) slot.\n- **Form association**: The submitted value is a JSON string `{ startDate, endDate }`; an empty range submits no value. On form reset it restores the start/end dates present at first load.\n- **Disabled fieldset**: A disabled `<fieldset>` around the component disables its calendar button as `disabled` does, while the slotted fields, being inside the fieldset too, follow it themselves: the range cannot be changed and is left out of the form, until the fieldset is enabled.\n- **Range coercion**: When both dates are valid and the end falls before the start, the end is snapped to equal the start, also for a preselection that ends before it starts, so the committed range is never inverted.\n- **Min/max guard**: If `max` is earlier than `min` at load, `max` is clamped up to `min`; both bounds are forwarded to the calendar to block out-of-range selection, and to the slotted fields, which flag a date typed outside them and stop the submit; such a range is not emitted.\n- **Commit on blur**: Leaving the component validates the range, syncs the form value, and - when both dates are valid - emits selection.\n- **Active end**: the calendar picks one end of the range at a time, the active one. The field the user goes into names it, by focus or by a click: the \"from\" field the start, the \"to\" field the end. With no field named yet, it is the end the range lacks (the start of an empty range, the end of a range with its start alone), else the start. With no start the calendar always picks the start: a range is picked from its start.\n- **Header**: the top of the panel shows the two ends, \"Start\" and \"End\", each with its date or \"Pick a date\", as an [`mds-tab`](../mds-tab/AGENTS.md) of two voices; the voice of the active end is selected, and a click or Enter / Space on a voice makes its end the active one. The end has nothing to pick, and its voice is disabled, until the range has a start. The words follow the page language, as \"from\" and \"to\".\n- **Calendar selection**: a click in the calendar changes the active end only, also on a complete range, which is no longer started again from scratch; then the end is the active one, so a range is picked with two clicks, start then end, and a second click corrects the end. A click never swaps the ends: a day before the start, while the end is picked, becomes the new start and the end is still to pick; a day after the end, while the start is picked, becomes the new start and the end is emptied. A click that completes the range emits selection; when it picks the end it also closes the dropdown after `delay`, unless `delay` is `0`, while one that picks the start leaves it open for the end.\n- **Preselection sync**: Slotted `mds-input-date-range-preselection` children act as quick-picks; activating one applies its range, and any external/calendar change re-evaluates which preset (if any) is marked selected; a preset matching the dates of load is marked selected from the start.\n- **Emitted events**: `mdsInputDateRangeValueChange` fires when a full, valid range is committed (calendar pick, preset, or focus-out with two valid dates) and either bound actually changed since the last emit.\n- **Focus management**: Clicking the host or either field label focuses the corresponding date input, and makes its end the active one; a built-in calendar icon button, named in the page language (the `lang` of `<html>`) (\"Open calendar\"), toggles the calendar dropdown. A pick in the calendar leaves the focus where it is: the header says which end comes next.\n- **Localization**: The \"from\"/\"to\" field labels, the words of the header and the calendar honor the resolved language (el/en/es/it).\n\n#### Properties & Visual Configurations\n\n- **`startDate` / `endDate`** are the controlled range bounds in ISO `YYYY-MM-DD` form; changing them externally re-syncs the slotted inputs and the calendar.\n- **`min` / `max`** define the selectable window: the calendar blocks the dates outside it, and the host passes both bounds to the slotted fields, which check a typed date against them. A bound the range does not set leaves the one written on a field alone; one changed after load reaches both fields.\n- **`disabled`** disables the range, like a disabled native input: the calendar button is disabled, a calendar left open closes, and the dates are left out of the form. It disables the two slotted fields too: at load only when it is set, so a field disabled on its own stays disabled; a change after load reaches both fields.\n- **`size`** sets the height of the field, the same as [`<mds-button>`](../mds-button/AGENTS.md): `sm` 28px, `md` 36px, `lg` 48px (default). Match it to the buttons next to the field, or go smaller in dense layouts (filter bars, table toolbars); the text style stays the same, the padding and the inner calendar button scale with it.\n- **`delay`** is the auto-close grace period (ms) after the click that picks the end of the range; set it to `0` to keep the calendar open until the user dismisses it manually.\n- **`dualCalendar`** shows two consecutive months side by side instead of one, whatever the width of the page; the grids of the two months start at the same height, a month of five weeks next to one of six.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-input-date-range>` component, ordered from most common to most specialized. The examples assume a working knowledge of the shared component rules in [`agents/conventions.md`](../../../../agents/conventions.md).\n\n#### Minimal Range Picker\n\nThe canonical form. Slot one [`mds-input-date`](../mds-input-date/AGENTS.md) as `start` and another as `end`; the host wires them together, drives the shared calendar, and handles range validation automatically.\n\n```html\n<mds-input-date-range>\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Picking a Range in the Calendar\n\nThe calendar picks one end at a time: the one of the field the user went into, or the one selected in the header at the top of the panel. In an empty range the first click picks the start and the header passes to the end; the second click picks the end and, after `delay`, closes the panel. To change one end of a complete range, go into its field (or select its voice in the header) and click the new day: the other end stays. A day before the start, picked as the end, becomes the new start; a day after the end, picked as the start, becomes the new start and empties the end. Nothing needs configuring: the markup is the one of the minimal picker.\n\n```html\n<mds-input-date-range start-date=\"2026-03-10\" end-date=\"2026-03-19\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Pre-filling the Range\n\nUse the `start-date` and `end-date` attributes to set an initial selection. Both expect ISO `YYYY-MM-DD` strings. Changing them later re-syncs the slotted inputs and the calendar automatically.\n\n```html\n<mds-input-date-range start-date=\"2026-01-01\" end-date=\"2026-01-31\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Constraining the Selectable Window\n\nUse `min` and `max` to block out-of-window dates in the calendar. Both are ISO `YYYY-MM-DD` strings. The host passes them to the slotted fields too: a date typed out of the window turns its field to error, stops the submit of the form and is not emitted as a range.\n\n```html\n<mds-input-date-range min=\"2026-01-01\" max=\"2026-12-31\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Listening to Range Events\n\n`mdsInputDateRangeValueChange` fires when a full, valid range is committed (calendar pick, preset, or focus-out with two valid dates) and either bound actually changed since the last emit. It delivers `{ startDate, endDate }` in `event.detail`.\n\n```html\n<mds-input-date-range id=\"periodo\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n\n<script>\n  document.querySelector('#periodo').addEventListener('mdsInputDateRangeValueChange', (e) => {\n    console.log('Intervallo selezionato:', e.detail.startDate, '-', e.detail.endDate);\n  });\n</script>\n```\n\n#### Form Participation\n\n`<mds-input-date-range>` is form-associated. Add `name` and place it inside a `<form>`; the submitted value is a JSON string `{ startDate, endDate }`. An empty range submits no value. Form reset restores the dates set at first load.\n\n```html\n<form action=\"/filtra\" method=\"get\">\n  <mds-input-date-range name=\"periodo\" start-date=\"2026-01-01\" end-date=\"2026-01-31\">\n    <mds-input-date slot=\"start\"></mds-input-date>\n    <mds-input-date slot=\"end\"></mds-input-date>\n  </mds-input-date-range>\n  <mds-button type=\"submit\" label=\"Applica filtro\" variant=\"primary\" tone=\"strong\"></mds-button>\n  <mds-button type=\"reset\" label=\"Reimposta\" variant=\"dark\" tone=\"outline\"></mds-button>\n</form>\n```\n\n#### Quick-Pick Preselections\n\nSlot one or more [`mds-input-date-range-preselection`](../mds-input-date-range-preselection/AGENTS.md) elements into the component. They appear inside the calendar dropdown and act as one-click range shortcuts. The host marks the matching preset as selected, from load on and whenever the range changes to match it. A preset whose end comes before its start applies its start as both ends.\n\n```html\n<mds-input-date-range>\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n  <mds-input-date-range-preselection start=\"2026-06-02\" end=\"2026-06-08\">\n    Questa settimana\n  </mds-input-date-range-preselection>\n  <mds-input-date-range-preselection start=\"2026-06-01\" end=\"2026-06-30\">\n    Questo mese\n  </mds-input-date-range-preselection>\n</mds-input-date-range>\n```\n\n#### Controlling the Auto-Close Delay\n\nBy default the calendar closes 500 ms after the click that picks the end of the range; a click that picks the start leaves it open for the end. Set `delay=\"0\"` to keep it open until the user dismisses it manually, or increase the value for a longer grace period.\n\n```html\n<!-- Keep the calendar open after selection -->\n<mds-input-date-range delay=\"0\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n\n<!-- Longer grace period: 1 second -->\n<mds-input-date-range delay=\"1000\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Styling Customization\n\nStyle the component only through its public `--mds-input-date-range-*` CSS custom properties. Set them on the host or a parent selector; use the semantic color roles via `rgb(var(--magma-<role>))` ([`agents/color.md`](../../../../agents/color.md)) so dark mode and themes keep working.\n\n```css\n.filtro-avanzato mds-input-date-range {\n  --mds-input-date-range-background: rgb(var(--magma-surface-sunken));\n  --mds-input-date-range-fields-gap: 0 calc(var(--spacing) * 400);\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-input-date-range>`. Each entry pairs the wrong form with the right one and a one-line reason. System-wide rules (boolean-as-string, shadow piercing, Tailwind color utilities, raw native event listening) live in [`agents/mistakes.md`](../../../../agents/mistakes.md) - they apply here too but are not repeated.\n\n#### Do Not Omit the Named Slots\n\nThe host renders two named slots (`start` and `end`) and wires them together internally. Without slotted `<mds-input-date>` children the component has no visible inputs and no data to commit.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date-range start-date=\"2026-01-01\" end-date=\"2026-01-31\">\n</mds-input-date-range>\n\n<!-- CORRECT -->\n<mds-input-date-range start-date=\"2026-01-01\" end-date=\"2026-01-31\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Do Not Slot Raw `<input>` Elements\n\nThe `start` and `end` slots expect [`mds-input-date`](../mds-input-date/AGENTS.md) children. The host calls `.setValue()` and `.focusInput()` on the assigned element; a native `<input>` does not expose those methods and will break internal orchestration.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date-range>\n  <input type=\"date\" slot=\"start\" />\n  <input type=\"date\" slot=\"end\" />\n</mds-input-date-range>\n\n<!-- CORRECT -->\n<mds-input-date-range>\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Do Not Disable the Fields Instead of the Range\n\nDisabling the slotted fields leaves the calendar button of the range enabled, and the user can still change the dates from the calendar. Set `disabled` on the range: it disables its calendar button and the two fields, and leaves the dates out of the form.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date-range name=\"period\">\n  <mds-input-date slot=\"start\" disabled></mds-input-date>\n  <mds-input-date slot=\"end\" disabled></mds-input-date>\n</mds-input-date-range>\n\n<!-- CORRECT -->\n<mds-input-date-range name=\"period\" disabled>\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Do Not Use Non-ISO Date Strings\n\n`startDate`, `endDate`, `min`, and `max` all require `YYYY-MM-DD` ISO format. Passing a locale-formatted string (e.g. `\"01/06/2026\"`) is silently invalid for Luxon's `DateTime.fromISO()` and leaves the range empty or unguarded.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date-range start-date=\"01/06/2026\" end-date=\"30/06/2026\" min=\"01/01/2026\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n\n<!-- CORRECT -->\n<mds-input-date-range start-date=\"2026-06-01\" end-date=\"2026-06-30\" min=\"2026-01-01\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Do Not Listen to Native `change` or `input` Events\n\nThe component emits `mdsInputDateRangeValueChange` as a documented custom event. Native `change` / `input` events originate from inside the shadow DOM and do not bubble out reliably.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date-range id=\"range\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n<script>\n  document.querySelector('#range').addEventListener('change', handler);\n</script>\n\n<!-- CORRECT -->\n<mds-input-date-range id=\"range\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n<script>\n  document.querySelector('#range').addEventListener('mdsInputDateRangeValueChange', handler);\n</script>\n```\n\n#### Do Not Set `delay=\"false\"` to Disable Auto-Close\n\n`delay` is a numeric prop, not a boolean. The string `\"false\"` is parsed as `NaN`, which is not `0`: the dropdown then closes at once instead of staying open. Use `delay=\"0\"` to keep the calendar open after selection.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date-range delay=\"false\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n\n<!-- CORRECT -->\n<mds-input-date-range delay=\"0\">\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n```\n\n#### Do Not Slot Preselection Elements Without the Component's Calendar\n\n[`mds-input-date-range-preselection`](../mds-input-date-range-preselection/AGENTS.md) children must be direct children of `<mds-input-date-range>`. Outside the component a click finds no range to apply (the preset looks for its closest `mds-input-date-range`); inside a wrapper div the preset is not slotted into the calendar dropdown and never shows.\n\n```html\n<!-- INCORRECT -->\n<mds-input-date-range>\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n</mds-input-date-range>\n<mds-input-date-range-preselection start=\"2026-06-01\" end=\"2026-06-30\">\n  Questo mese\n</mds-input-date-range-preselection>\n\n<!-- CORRECT -->\n<mds-input-date-range>\n  <mds-input-date slot=\"start\"></mds-input-date>\n  <mds-input-date slot=\"end\"></mds-input-date>\n  <mds-input-date-range-preselection start=\"2026-06-01\" end=\"2026-06-30\">\n    Questo mese\n  </mds-input-date-range-preselection>\n</mds-input-date-range>\n```\n\n#### Do Not Omit `name` When Inside a Form\n\nWithout `name` the component is form-associated but submits no named field, so the date range is invisible to the server and to `FormData`.\n\n```html\n<!-- INCORRECT -->\n<form action=\"/filtra\" method=\"get\">\n  <mds-input-date-range>\n    <mds-input-date slot=\"start\"></mds-input-date>\n    <mds-input-date slot=\"end\"></mds-input-date>\n  </mds-input-date-range>\n</form>\n\n<!-- CORRECT -->\n<form action=\"/filtra\" method=\"get\">\n  <mds-input-date-range name=\"periodo\">\n    <mds-input-date slot=\"start\"></mds-input-date>\n    <mds-input-date slot=\"end\"></mds-input-date>\n  </mds-input-date-range>\n</form>\n```\n"
      },
      "props": [
        {
          "name": "accessibleName",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "aria-label",
          "reflectToAttr": false,
          "docs": "The accessible name of the range: each of the two fields is named after it and after the\nend of the range it covers, the visible \"from\" and \"to\" labels living in this shadow root,\nwhere no IDREF of the slotted fields could reach them.",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "delay",
          "type": "number",
          "complexType": {
            "original": "number",
            "resolved": "number",
            "references": {}
          },
          "mutable": false,
          "attr": "delay",
          "reflectToAttr": true,
          "docs": "Specifies the delay in milliseconds before closing the calendar dropdown after the click that\npicks the end of the range, if the value is 0 the dropdown will not close; a click that picks\nthe start leaves it open for the end",
          "docsTags": [
            {
              "name": "description",
              "text": "Default is 500"
            },
            {
              "name": "default",
              "text": "500"
            }
          ],
          "default": "500",
          "values": [
            {
              "type": "number"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "disabled",
          "type": "boolean | undefined",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "disabled",
          "reflectToAttr": true,
          "docs": "Disables the range, like a disabled native input: the dates cannot be changed, from the fields\nor from the calendar, and are left out of the form. It disables the two slotted fields too. A\ndisabled `<fieldset>` around the component does the same.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "dualCalendar",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "dual-calendar",
          "reflectToAttr": true,
          "docs": "Enables the linked dual-calendar range picker behavior.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "endDate",
          "type": "string",
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "mutable": false,
          "attr": "end-date",
          "reflectToAttr": true,
          "docs": "Specifies the end date of the range",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2025-06-30'"
            },
            {
              "name": "default",
              "text": "''"
            }
          ],
          "default": "''",
          "values": [
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hideToday",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "hide-today",
          "reflectToAttr": true,
          "docs": "Hides the highlight on today's date in the calendar.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "max",
          "type": "null | string",
          "complexType": {
            "original": "string | null",
            "resolved": "null | string",
            "references": {}
          },
          "mutable": false,
          "attr": "max",
          "reflectToAttr": true,
          "docs": "Specifies the max date of the range, user cannot set dates after this date",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2025-12-31'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "min",
          "type": "null | string",
          "complexType": {
            "original": "string | null",
            "resolved": "null | string",
            "references": {}
          },
          "mutable": false,
          "attr": "min",
          "reflectToAttr": true,
          "docs": "Specifies the min date of the range, user cannot set dates before this date",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2025-01-01'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "name",
          "type": "string | undefined",
          "complexType": {
            "original": "string",
            "resolved": "string | undefined",
            "references": {}
          },
          "mutable": false,
          "attr": "name",
          "reflectToAttr": true,
          "docs": "Is needed to reference the form data after the form is submitted",
          "docsTags": [],
          "values": [
            {
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "size",
          "type": "\"lg\" | \"md\" | \"sm\" | undefined",
          "complexType": {
            "original": "InputSizeType",
            "resolved": "\"lg\" | \"md\" | \"sm\" | undefined",
            "references": {
              "InputSizeType": {
                "location": "import",
                "path": "@type/input",
                "id": "src/type/input.ts::InputSizeType",
                "referenceLocation": "InputSizeType"
              }
            }
          },
          "mutable": false,
          "attr": "size",
          "reflectToAttr": true,
          "docs": "Specifies the height of the field, the same as `mds-button`: `sm` 28px, `md` 36px, `lg` 48px",
          "docsTags": [
            {
              "name": "default",
              "text": "'lg'"
            }
          ],
          "default": "'lg'",
          "values": [
            {
              "value": "lg",
              "type": "string"
            },
            {
              "value": "md",
              "type": "string"
            },
            {
              "value": "sm",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "startDate",
          "type": "string",
          "complexType": {
            "original": "string",
            "resolved": "string",
            "references": {}
          },
          "mutable": false,
          "attr": "start-date",
          "reflectToAttr": true,
          "docs": "Specifies the start date of the range",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2025-06-01'"
            },
            {
              "name": "default",
              "text": "''"
            }
          ],
          "default": "''",
          "values": [
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [
        {
          "name": "preselect",
          "returns": {
            "type": "Promise<void>",
            "docs": ""
          },
          "complexType": {
            "signature": "(event: EventDate) => Promise<void>",
            "parameters": [
              {
                "name": "event",
                "type": "EventDate",
                "docs": "the preselection range to apply"
              }
            ],
            "references": {
              "Promise": {
                "location": "global",
                "id": "global::Promise"
              },
              "EventDate": {
                "location": "local",
                "path": "/home/runner/work/magma/magma/projects/stencil/src/components/mds-input-date-range/mds-input-date-range.tsx",
                "id": "src/components/mds-input-date-range/mds-input-date-range.tsx::EventDate"
              },
              "HTMLMdsInputDateRangePreselectionElement": {
                "location": "global",
                "id": "global::HTMLMdsInputDateRangePreselectionElement"
              }
            },
            "return": "Promise<void>"
          },
          "signature": "preselect(event: EventDate) => Promise<void>",
          "parameters": [
            {
              "name": "event",
              "type": "EventDate",
              "docs": "the preselection range to apply"
            }
          ],
          "docs": "Applies the given preselection range to the input.",
          "docsTags": [
            {
              "name": "param",
              "text": "event the preselection range to apply"
            }
          ]
        }
      ],
      "events": [
        {
          "event": "mdsInputDateRangeValueChange",
          "detail": "{ startDate: string; endDate: string; }",
          "bubbles": true,
          "complexType": {
            "original": "{\n    startDate: string;\n    endDate: string;\n  }",
            "resolved": "{ startDate: string; endDate: string; }",
            "references": {}
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emitted when the selected start or end date changes.",
          "docsTags": []
        }
      ],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-input-date-range-background",
          "annotation": "prop",
          "docs": "Sets the background-color of the component",
          "visibility": "public"
        },
        {
          "name": "--mds-input-date-range-calendar-width",
          "annotation": "prop",
          "docs": "Sets the width of each calendar shown in the dropdown",
          "visibility": "internal"
        },
        {
          "name": "--mds-input-date-range-fields-firefox-justify-content",
          "annotation": "prop",
          "docs": "Sets the justify-content of the component in Firefox",
          "visibility": "internal"
        },
        {
          "name": "--mds-input-date-range-fields-gap",
          "annotation": "prop",
          "docs": "Sets the gap between the fields of the component",
          "visibility": "public"
        },
        {
          "name": "--mds-input-date-range-icon-color",
          "annotation": "prop",
          "docs": "Sets the icon color of the component",
          "visibility": "internal"
        },
        {
          "name": "--mds-input-date-range-ring",
          "annotation": "prop",
          "docs": "Sets the box-shadow of the component's input to perform the ring effect",
          "visibility": "public"
        },
        {
          "name": "--mds-input-date-range-shadow",
          "annotation": "prop",
          "docs": "Sets the box-shadow of the component's input",
          "visibility": "public"
        },
        {
          "name": "--mds-input-date-range-variant-color-rgb",
          "annotation": "prop",
          "docs": "Sets the variant colors of the component",
          "visibility": "public"
        }
      ],
      "slots": [
        {
          "name": "calendar-preselection",
          "docs": "Add `HTML elements` or `components` to this slot."
        },
        {
          "name": "end",
          "docs": "Add `HTML elements` or `components` to this slot."
        },
        {
          "name": "start",
          "docs": "Add `HTML elements` or `components` to this slot."
        }
      ],
      "parts": [],
      "states": [],
      "dependents": [],
      "dependencies": [
        "mds-tab",
        "mds-tab-item",
        "mds-calendar",
        "mds-text",
        "mds-button",
        "mds-dropdown"
      ],
      "dependencyGraph": {
        "mds-input-date-range": [
          "mds-tab",
          "mds-tab-item",
          "mds-calendar",
          "mds-text",
          "mds-button",
          "mds-dropdown"
        ],
        "mds-tab-item": [
          "mds-button"
        ],
        "mds-button": [
          "mds-icon",
          "mds-spinner",
          "mds-text"
        ],
        "mds-calendar": [
          "mds-button",
          "mds-calendar-cell"
        ],
        "mds-calendar-cell": [
          "mds-button"
        ]
      },
      "storybook": "form-input-date-range--docs"
    }
  ]
}
