{
  "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-calendar/mds-calendar.tsx",
      "encapsulation": "shadow",
      "tag": "mds-calendar",
      "docs": "",
      "docsTags": [
        {
          "name": "slot",
          "text": "preselection - Add `HTML elements` or `components` shown in the calendar preselection area."
        },
        {
          "name": "category",
          "text": "forms"
        }
      ],
      "usage": {
        "1. Description": "The `<mds-calendar>` web component is the date-selection surface of the Magma Design System: a localized month grid that lets users pick either a single day or a date range. It is the visual engine behind `mds-input-date` and `mds-input-date-range`.\n\n#### Semantic Behavior\n\n- **Range vs. single mode**: range selection is the default; set `singlePicker` to pick one day. In range mode the first click sets the start, the second sets the end, and a third click starts a new range from the clicked day; in single mode each click replaces the prior choice.\n- **Active end**: a parent that lets the user choose which end to change, as [`mds-input-date-range`](../mds-input-date-range/AGENTS.md) does, names it in `activeEnd` (`start` or `end`): a click then changes that end only, also on a complete range, instead of starting a new one. With no start, a click picks the start whatever `activeEnd` says.\n- **Never backwards**: a click never swaps the ends. A day before the start, clicked while the end is picked, becomes the new start and the end is still to pick; a day after the end, clicked while the start is picked (`activeEnd=\"start\"`), becomes the new start and the end is emptied. A `startDate` / `endDate` pair given backwards, in the markup or from code, is put in order (with a console warning); a parent that sets the two props one after the other is read once both have arrived, so a start moved past the old end is not taken for a range given backwards.\n- **Hover preview**: While a range waits for its end, the day under the pointer is previewed: the band from the start to that day when a click there would end the range, that day alone when it would become a new start. The preview is dropped with the click that changes the range.\n- **Marks**: a chosen day, either end of a range or the day of a single picker, is a full dot, the start and the end alike, and the days between them a band; the day under the pointer, not chosen yet, is a ring on a paler band.\n- **Min/max bounds**: `min` and `max` mark out-of-range day cells as disabled, blocking their selection.\n- **Multi-view navigation**: The header toggles between the day grid, a month picker, and a year picker; the year view pages in decades while the calendar view pages month by month. The two arrows are icon-only buttons named in the page language (the `lang` of `<html>`): previous / next month on the day grid, previous / next years in the year view; the month picker has nothing to page through, so there they are disabled. The header is a navigation landmark named after the month and year it shows, so two calendars side by side are two distinct landmarks.\n- **Localization**: Weekday names, month names, and cell titles are formatted in the page language (the `lang` attribute of `<html>`, `en` when absent).\n- **Emitted events**: `mdsCalendarChange` fires on every pick with `{ startDate, endDate? }`: in range mode the first click emits `{ startDate }` alone, the second the full range; `mdsCalendarPreselect` fires only with a completed range, to let preselection shortcuts re-evaluate their state.\n- **Preselection slot**: A `preselection` named slot hosts quick-pick shortcuts. The area appears while the slot holds an element, one added after load included; `hidePreselection` collapses it. The `date-preselection--has-preselection` class earlier versions required is no longer needed (it still shows the area).\n\n#### Properties & Visual Configurations\n\nDates are exchanged as ISO 8601 strings (`YYYY-MM-DD`). `startDate` and `endDate` seed the selection (a click updates the internal selection and emits `mdsCalendarChange`, it does not rewrite the attributes); on load, a valid `startDate` also determines which month is shown first.\n\n- **`singlePicker`** is the mode switch: omit it for two-ended range selection, set it for single-day pickers. When set, any `endDate` is ignored and cleared with a warning.\n- **`activeEnd`** names the end the next click picks, for a parent that shows the user which one it is; leave it unset on a calendar standing alone.\n- **`hidePreviousButton`** / **`hideNextButton`** remove one of the header navigation buttons, typically on calendars paired side by side; **`disableMonthYearSelection`** keeps the header on the day grid; **`hideToday`** removes the highlight on today's date.\n- Every boolean prop defaults to `false`: the feature is on until the bare attribute turns it off.\n- **`min`** / **`max`** define the selectable window; days outside it render disabled rather than being hidden.\n\nThis component does not use the shared `variant` / `tone` ladders on its host - those are defined in [`agents/variants.md`](../../../../agents/variants.md) and are applied internally to the navigation buttons it renders.\n",
        "2. Examples": "Correct and idiomatic ways to use the `<mds-calendar>` 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#### Single-Day Picker\n\nSet the bare `single-picker` attribute for a plain single-date selector. `mdsCalendarChange` fires once with `{ startDate }` and no `endDate`. Seed an initial date via `start-date`.\n\n```html\n<mds-calendar single-picker start-date=\"2025-06-10\"></mds-calendar>\n\n<script>\n  document.querySelector('mds-calendar').addEventListener('mdsCalendarChange', (e) => {\n    console.log('Data selezionata:', e.detail.startDate);\n  });\n</script>\n```\n\n#### Range Picker (default mode)\n\nRange selection is the default: omit `single-picker`. The first click sets the start date, the second sets the end date; a second click before the start makes that day the new start, and the end is still to pick. A click on a complete range starts a new range from the clicked day. `mdsCalendarChange` fires on every click: while the end is missing `endDate` is absent. Preload a range by supplying both `start-date` and `end-date`.\n\n```html\n<mds-calendar start-date=\"2025-09-01\" end-date=\"2025-09-15\"></mds-calendar>\n\n<script>\n  document.querySelector('mds-calendar').addEventListener('mdsCalendarChange', (e) => {\n    const { startDate, endDate } = e.detail;\n    console.log('Intervallo selezionato:', startDate, '-', endDate);\n  });\n</script>\n```\n\n#### Naming the End a Click Picks\n\nA parent that lets the user choose which end to change sets `active-end` to `start` or `end`, and keeps it in step with what the user picks: a click then changes that end only, also on a complete range. A click never puts the range backwards: picking the end, a day before the start becomes the new start; picking the start, a day after the end becomes the new start and empties the end. [`mds-input-date-range`](../mds-input-date-range/AGENTS.md) drives its calendars this way from its fields and from the header of its panel; prefer it to a calendar of your own.\n\n```html\n<mds-calendar id=\"periodo\" start-date=\"2025-09-01\" end-date=\"2025-09-15\" active-end=\"start\"></mds-calendar>\n\n<script>\n  const calendar = document.querySelector('#periodo');\n  calendar.addEventListener('mdsCalendarChange', () => {\n    // the start is picked: the end comes next\n    calendar.activeEnd = 'end';\n  });\n</script>\n```\n\n#### Restricting the Selectable Window with `min` / `max`\n\nPass ISO 8601 strings to `min` and `max` to mark out-of-range days as disabled. Days outside the window are not hidden - they remain visible but cannot be clicked.\n\n```html\n<mds-calendar\n  single-picker\n  min=\"2025-01-01\"\n  max=\"2025-12-31\"\n></mds-calendar>\n```\n\n#### Navigating to a Specific Month Programmatically\n\nUse the `updateCurrentDate` method to jump the visible month without changing the current selection. Pass any ISO date string that falls within the target month.\n\n```html\n<mds-calendar id=\"cal\" single-picker></mds-calendar>\n\n<script>\n  document.querySelector('#cal').updateCurrentDate('2026-03-01');\n</script>\n```\n\n#### Quick-Pick Preselection Shortcuts\n\nThe `preselection` named slot hosts your own shortcuts, for example `mds-button` elements whose `click` sets `start-date` / `end-date` ([`mds-input-date-range-preselection`](../mds-input-date-range-preselection/AGENTS.md) works only inside `mds-input-date-range`). The slot panel becomes visible as soon as the slot holds an element, also one added after load; set `hide-preselection` to keep it collapsed. `mdsCalendarPreselect` fires after each completed range selection so the shortcuts can re-evaluate their active state.\n\n```html\n<mds-calendar start-date=\"2025-09-01\" end-date=\"2025-09-07\">\n  <div slot=\"preselection\">\n    <mds-button variant=\"dark\" tone=\"text\" label=\"Ultimi 7 giorni\"></mds-button>\n    <mds-button variant=\"dark\" tone=\"text\" label=\"Ultimi 30 giorni\"></mds-button>\n  </div>\n</mds-calendar>\n```\n\n#### Paired Calendars Without Duplicate Navigation\n\nTwo calendars shown side by side (the pattern used by `mds-input-date-range` on wide viewports) should expose one previous and one next button in total: hide the inner buttons with `hide-previous-button` / `hide-next-button` and lock the header on the day grid with `disable-month-year-selection`, then keep the two `view-date` values one month apart from the `mdsCalendarNavigate` event.\n\n```html\n<mds-calendar id=\"start\" view-date=\"2025-09-01\" hide-next-button disable-month-year-selection></mds-calendar>\n<mds-calendar id=\"end\" view-date=\"2025-10-01\" hide-previous-button disable-month-year-selection></mds-calendar>\n```\n\n#### Listening for Selection Changes\n\nListen on the documented `mdsCalendarChange` event - not the native `change` event - so the handler receives the structured `{ startDate, endDate? }` detail object directly from the Shadow DOM.\n\n```html\n<mds-calendar id=\"picker\" single-picker></mds-calendar>\n\n<script>\n  document.querySelector('#picker').addEventListener('mdsCalendarChange', (e) => {\n    const { startDate } = e.detail;\n    document.querySelector('#output').textContent = 'Scadenza: ' + startDate;\n  });\n</script>\n```\n\n#### Embedded inside `mds-input-date` or `mds-input-date-range`\n\n`<mds-calendar>` is the visual engine used internally by [`mds-input-date`](../mds-input-date/AGENTS.md) and [`mds-input-date-range`](../mds-input-date-range/AGENTS.md). In most product surfaces, reach for those higher-level components. Use `<mds-calendar>` directly only when you need a standalone always-visible date grid without an associated text input.\n\n```html\n<!-- Higher-level: input with calendar overlay -->\n<mds-input-field label=\"Scadenza\">\n  <mds-input-date name=\"scadenza\"></mds-input-date>\n</mds-input-field>\n\n<!-- Lower-level: always-visible standalone grid -->\n<mds-calendar single-picker></mds-calendar>\n```\n\n#### Styling Customization via CSS Custom Properties\n\nAdjust the calendar appearance only through the public `--mds-calendar-*` CSS custom properties. Set them on the host element or a parent selector; use the semantic color roles so dark mode, named themes and high contrast keep working. The day cells inherit from the calendar their own public `--mds-calendar-cell-*` properties, documented on [`mds-calendar-cell`](../mds-calendar-cell/AGENTS.md).\n\n```css\n.booking-widget mds-calendar {\n  --mds-calendar-background: rgb(var(--magma-surface-muted));\n  --mds-calendar-border-radius: var(--magma-radius-xl);\n  --mds-calendar-padding: calc(var(--spacing) * 500);\n  --mds-calendar-cell-other-month-visibility: hidden;\n}\n```\n",
        "3. Mistakes": "Common incorrect uses of `<mds-calendar>`. 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 Toggle Single Mode with a Quoted Boolean String\n\n`singlePicker` is a boolean prop that defaults to `false`. The component reads the string `\"false\"` as `false`, but the prop is not reflected, so `single-picker=\"false\"` stays in the DOM and attribute selectors (`mds-calendar[single-picker]`) and any code reading the attribute still see it set. Use the bare attribute for single mode and omit it for the default range mode; toggle it at runtime by adding/removing the attribute or setting the property in JavaScript.\n\n```html\n<!-- INCORRECT -->\n<mds-calendar single-picker=\"false\"></mds-calendar>\n\n<!-- CORRECT -->\n<mds-calendar></mds-calendar>\n<mds-calendar id=\"cal\" single-picker></mds-calendar>\n<script>\n  document.querySelector('#cal').singlePicker = false; // back to range mode\n</script>\n```\n\n#### Do Not Set `end-date` When `single-picker` Is Set\n\nWhen `singlePicker` is set, the component rejects `endDate` with a console warning and clears it internally. Setting both `single-picker` and `end-date` is contradictory and produces no visible selection for the end date.\n\n```html\n<!-- INCORRECT -->\n<mds-calendar single-picker start-date=\"2025-06-01\" end-date=\"2025-06-15\"></mds-calendar>\n\n<!-- CORRECT -->\n<mds-calendar single-picker start-date=\"2025-06-01\"></mds-calendar>\n```\n\n#### Do Not Provide `startDate` After `endDate`\n\nDates must be chronologically ordered: `startDate` must precede `endDate`. The component puts a pair given backwards in order, with a console warning, but the warning is noise in the console of the page and the swap may not be the range the user meant. Always ensure `start-date <= end-date`; setting the two one after the other in the same task is fine, the calendar reads them once both have arrived.\n\n```html\n<!-- INCORRECT -->\n<mds-calendar start-date=\"2025-12-31\" end-date=\"2025-12-01\"></mds-calendar>\n\n<!-- CORRECT -->\n<mds-calendar start-date=\"2025-12-01\" end-date=\"2025-12-31\"></mds-calendar>\n```\n\n#### Do Not Listen for the Native `change` Event\n\n`<mds-calendar>` does not bubble a native `change` event from inside its Shadow DOM. Use the documented `mdsCalendarChange` custom event so the handler reliably receives the structured `{ startDate, endDate? }` payload.\n\n```html\n<!-- INCORRECT -->\n<mds-calendar id=\"cal\"></mds-calendar>\n<script>\n  document.querySelector('#cal').addEventListener('change', (e) => {\n    console.log(e.target.value); // undefined - wrong event\n  });\n</script>\n\n<!-- CORRECT -->\n<mds-calendar id=\"cal\"></mds-calendar>\n<script>\n  document.querySelector('#cal').addEventListener('mdsCalendarChange', (e) => {\n    console.log(e.detail.startDate, e.detail.endDate);\n  });\n</script>\n```\n\n#### Do Not Use `<mds-calendar>` as a Drop-In Replacement for `mds-input-date`\n\n`<mds-calendar>` is not form-associated and emits no `name`/`value` pair for form submission. When you need a date picker tied to a form field, use [`mds-input-date`](../mds-input-date/AGENTS.md) (single date) or [`mds-input-date-range`](../mds-input-date-range/AGENTS.md) (range) instead.\n\n```html\n<!-- INCORRECT -->\n<form action=\"/prenota\" method=\"post\">\n  <mds-calendar name=\"check-in\" single-picker></mds-calendar>\n  <mds-button type=\"submit\" label=\"Prenota\"></mds-button>\n</form>\n\n<!-- CORRECT -->\n<form action=\"/prenota\" method=\"post\">\n  <mds-input-field label=\"Data di arrivo\">\n    <mds-input-date name=\"check-in\"></mds-input-date>\n  </mds-input-field>\n  <mds-button type=\"submit\" label=\"Prenota\"></mds-button>\n</form>\n```\n\n#### Do Not Style Internals via Undocumented `::part()` Selectors\n\nThe only supported customization surface is the set of public `--mds-calendar-*` CSS custom properties. Targeting shadow-DOM internals with `::part()` selectors that are not in the documentation couples your code to the implementation and will break on minor releases.\n\n```css\n/* INCORRECT */\nmds-calendar::part(nav) {\n  background: red;\n}\nmds-calendar::part(cell) {\n  border: 1px solid blue;\n}\n\n/* CORRECT */\nmds-calendar {\n  --mds-calendar-background: rgb(var(--magma-surface-muted));\n  --mds-calendar-border-radius: var(--magma-radius-xl);\n  --mds-calendar-cell-other-month-visibility: hidden;\n}\n```\n"
      },
      "props": [
        {
          "name": "activeEnd",
          "type": "\"end\" | \"start\" | undefined",
          "complexType": {
            "original": "CalendarRangeEndType",
            "resolved": "\"end\" | \"start\" | undefined",
            "references": {
              "CalendarRangeEndType": {
                "location": "import",
                "path": "./meta/types",
                "id": "src/components/mds-calendar/meta/types.ts::CalendarRangeEndType",
                "referenceLocation": "CalendarRangeEndType"
              }
            }
          },
          "mutable": false,
          "attr": "active-end",
          "reflectToAttr": true,
          "docs": "Specifies the end of the range the next click picks, `start` or `end`, for a parent that\nlets the user choose it, as `mds-input-date-range` does from its fields and from the header\nof its panel. A click never puts the range backwards: a day after the end, picked as the\nstart, becomes the new start and empties the end; a day before the start, picked as the end,\nbecomes the new start and leaves the end to pick. With no start, a click picks the start.\nLeft unset, the calendar picks the start, then the end, and a click on a complete range\nstarts a new one.",
          "docsTags": [],
          "values": [
            {
              "value": "end",
              "type": "string"
            },
            {
              "value": "start",
              "type": "string"
            },
            {
              "type": "undefined"
            }
          ],
          "optional": true,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "disableMonthYearSelection",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "disable-month-year-selection",
          "reflectToAttr": false,
          "docs": "Disables switching to month or year selection views from the calendar header.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "endDate",
          "type": "null | string",
          "complexType": {
            "original": "string | null",
            "resolved": "null | string",
            "references": {}
          },
          "mutable": false,
          "attr": "end-date",
          "reflectToAttr": true,
          "docs": "Specifies the end date of the selection",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2023-10-01'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hideNextButton",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "hide-next-button",
          "reflectToAttr": false,
          "docs": "If set, the component hides the next navigation button in the calendar header.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hidePreselection",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "hide-preselection",
          "reflectToAttr": false,
          "docs": "If set, the component hides the preselection area above the calendar view even when the\n`preselection` slot has content.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hidePreviousButton",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "hide-previous-button",
          "reflectToAttr": false,
          "docs": "If set, the component hides the previous navigation button in the calendar header.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hideToday",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "hide-today",
          "reflectToAttr": false,
          "docs": "Hides the highlight on today's date in the calendar view.",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "hoverDate",
          "type": "null | string",
          "complexType": {
            "original": "string | null",
            "resolved": "null | string",
            "references": {}
          },
          "mutable": false,
          "attr": "hover-date",
          "reflectToAttr": true,
          "docs": "Specifies the date used to preview the range selection across multiple visible calendars.",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2023-10-15'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "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 minimum date of the selection",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2023-10-01'"
            },
            {
              "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 minimum date of the selection",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2023-10-01'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "singlePicker",
          "type": "boolean",
          "complexType": {
            "original": "boolean",
            "resolved": "boolean",
            "references": {}
          },
          "mutable": false,
          "attr": "single-picker",
          "reflectToAttr": false,
          "docs": "If set, the component selects a single date instead of a date range (start and end date).",
          "docsTags": [
            {
              "name": "default",
              "text": "false"
            }
          ],
          "default": "false",
          "values": [
            {
              "type": "boolean"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "startDate",
          "type": "null | string",
          "complexType": {
            "original": "string | null",
            "resolved": "null | string",
            "references": {}
          },
          "mutable": false,
          "attr": "start-date",
          "reflectToAttr": true,
          "docs": "Specifies the start date of the selection",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2023-10-01'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        },
        {
          "name": "viewDate",
          "type": "null | string",
          "complexType": {
            "original": "string | null",
            "resolved": "null | string",
            "references": {}
          },
          "mutable": false,
          "attr": "view-date",
          "reflectToAttr": true,
          "docs": "Specifies the date used to determine the visible month without changing the selection.",
          "docsTags": [
            {
              "name": "description",
              "text": "It's in ISO format (YYYY-MM-DD)."
            },
            {
              "name": "example",
              "text": "'2023-10-01'"
            },
            {
              "name": "default",
              "text": "null"
            }
          ],
          "default": "null",
          "values": [
            {
              "type": "null"
            },
            {
              "type": "string"
            }
          ],
          "optional": false,
          "required": false,
          "getter": false,
          "setter": false
        }
      ],
      "methods": [
        {
          "name": "updateCurrentDate",
          "returns": {
            "type": "Promise<void>",
            "docs": ""
          },
          "complexType": {
            "signature": "(date: string) => Promise<void>",
            "parameters": [
              {
                "name": "date",
                "type": "string",
                "docs": "the date to display, in ISO format (YYYY-MM-DD)"
              }
            ],
            "references": {
              "Promise": {
                "location": "global",
                "id": "global::Promise"
              }
            },
            "return": "Promise<void>"
          },
          "signature": "updateCurrentDate(date: string) => Promise<void>",
          "parameters": [
            {
              "name": "date",
              "type": "string",
              "docs": "the date to display, in ISO format (YYYY-MM-DD)"
            }
          ],
          "docs": "Sets the calendar's current date and re-renders the calendar accordingly.",
          "docsTags": [
            {
              "name": "param",
              "text": "date the date to display, in ISO format (YYYY-MM-DD)"
            }
          ]
        }
      ],
      "events": [
        {
          "event": "mdsCalendarChange",
          "detail": "{ startDate: string; endDate?: string | undefined; }",
          "bubbles": true,
          "complexType": {
            "original": "{\n    startDate: string;\n    endDate?: string;\n  }",
            "resolved": "{ startDate: string; endDate?: string | undefined; }",
            "references": {}
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emitted when the selected date or date range changes.",
          "docsTags": []
        },
        {
          "event": "mdsCalendarHover",
          "detail": "{ hoverDate: string | null; }",
          "bubbles": true,
          "complexType": {
            "original": "{\n    hoverDate: string | null;\n  }",
            "resolved": "{ hoverDate: string | null; }",
            "references": {}
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emitted when the user hovers over a day, used to preview a range selection.",
          "docsTags": []
        },
        {
          "event": "mdsCalendarNavigate",
          "detail": "{ currentDate: string; delta: number; }",
          "bubbles": true,
          "complexType": {
            "original": "{\n    currentDate: string;\n    delta: number;\n  }",
            "resolved": "{ currentDate: string; delta: number; }",
            "references": {}
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emitted when the user navigates to a different month or year.",
          "docsTags": []
        },
        {
          "event": "mdsCalendarPreselect",
          "detail": "void",
          "bubbles": true,
          "complexType": {
            "original": "void",
            "resolved": "void",
            "references": {}
          },
          "cancelable": true,
          "composed": true,
          "docs": "Emitted when the calendar's preselection options need to be re-evaluated.",
          "docsTags": []
        }
      ],
      "listeners": [],
      "styles": [
        {
          "name": "--mds-calendar-background",
          "annotation": "prop",
          "docs": "The background color of the calendar container.",
          "visibility": "public"
        },
        {
          "name": "--mds-calendar-border-radius",
          "annotation": "prop",
          "docs": "The border-radius of the calendar container.",
          "visibility": "public"
        },
        {
          "name": "--mds-calendar-cell-gap",
          "annotation": "prop",
          "docs": "The spacing between calendar day cells.",
          "visibility": "internal"
        },
        {
          "name": "--mds-calendar-cell-other-month-visibility",
          "annotation": "prop",
          "docs": "Controls visibility of days from other months (e.g. \"visible\", \"hidden\").",
          "visibility": "public"
        },
        {
          "name": "--mds-calendar-day-number-color",
          "annotation": "prop",
          "docs": "The color of the day numbers of the current month, weekend days aside (`--mds-calendar-cell-weekend-color`); `--mds-calendar-cell-color` wins over it.",
          "visibility": "internal"
        },
        {
          "name": "--mds-calendar-max-width",
          "annotation": "prop",
          "docs": "The maximum inline size of the calendar; it fills its container up to this width.",
          "visibility": "internal"
        },
        {
          "name": "--mds-calendar-padding",
          "annotation": "prop",
          "docs": "The internal padding of the calendar container.",
          "visibility": "public"
        },
        {
          "name": "--mds-calendar-select-month-or-year-height",
          "annotation": "prop",
          "docs": "The height of the month/year selector in the calendar header.",
          "visibility": "internal"
        },
        {
          "name": "--mds-calendar-select-month-or-year-width",
          "annotation": "prop",
          "docs": "The width of the month/year selector in the calendar header.",
          "visibility": "internal"
        }
      ],
      "slots": [
        {
          "name": "preselection",
          "docs": "Add `HTML elements` or `components` shown in the calendar preselection area."
        }
      ],
      "parts": [],
      "states": [],
      "dependents": [
        "mds-input-date",
        "mds-input-date-range"
      ],
      "dependencies": [
        "mds-button",
        "mds-calendar-cell"
      ],
      "dependencyGraph": {
        "mds-calendar": [
          "mds-button",
          "mds-calendar-cell"
        ],
        "mds-button": [
          "mds-icon",
          "mds-spinner",
          "mds-text"
        ],
        "mds-calendar-cell": [
          "mds-button"
        ],
        "mds-input-date": [
          "mds-calendar"
        ],
        "mds-input-date-range": [
          "mds-calendar"
        ]
      },
      "storybook": "ui-calendar--docs"
    }
  ]
}
