{% comment %} Calendar — the date grid used by the datepicker, but also usable standalone as an inline / block calendar: Props: mode (single | range | multiple), selected, min / max (range length), min_date, max_date, disabled_days, disabled_dates. Emits its value via x-model and a `change` event. Note: form submission (hidden input / name) and value_format currently live in the datepicker wrapper. If a standalone form use case arrives, lift those down here so both the datepicker and a bare calendar serialise consistently. {% endcomment %}
{% comment %}Hidden inputs for form submission. Rendered only when a name is given, so a bare calendar serialises into a form the same way the datepicker does.{% endcomment %} {% if name or fromName or toName %} {% if mode == 'range' %} {% elif mode == 'multiple' %} {% else %} {% endif %} {% endif %}