import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime'; import { SelectedMonthYear, CalendarDay, DateValidators } from './q2-calendar-types'; import { MomentLikeObject } from './q2-calendar-helpers'; import { DateList } from './q2-calendar-validation'; import type { EventDetail } from 'q2-tecton-common/lib/types/elements'; import { Q2InputCustomEvent } from "../../components"; /** * @name Calendar * @category Forms * @summary Use for selecting a date from a calendar popover. */ export declare class Q2Calendar implements ComponentInterface { btnCalendarToggle: HTMLQ2BtnElement; btnNextMonth: HTMLQ2BtnElement; btnNextYear: HTMLQ2BtnElement; btnPrevMonth: HTMLQ2BtnElement; btnPrevYear: HTMLQ2BtnElement; calendarBody: HTMLDivElement; calendarTable: HTMLTableElement; controlElement: HTMLQ2InputElement; dayAbbrStrings: string[]; dayStrings: string[]; defaultFormatString: string; formatModifier: string; guid: number; hintMessageElement: HTMLQ2MessageElement; internalError: string; monthStrings: string[]; popoverElement?: HTMLQ2PopoverElement; scheduledAfterRender: (() => void)[]; selectedMonthYear: SelectedMonthYear; valueOnBlur: string | { toDate(): Date; }; hostElement: HTMLElement; dateList: CalendarDay[]; hintMessage: string; hintMessageType: 'info' | 'error'; keyboardSelection: boolean; typedValue: string; /** @deprecated */ ariaLabel: string; /** * Detects the year automatically based on today's date when the user presses the `Escape` key or the `Blur` mouse event occurs. * Setting `future` or `past` as the value will increase or decrease the year by one, respectively. */ assume: 'current' | 'future' | 'past'; /** @deprecated */ buttonLabel: string; /** A label shown at the top of the popover date picker. */ calendarLabel: string; /** Display a button in the input field allowing the user to clear their selection. */ clearable: boolean; /** * Specifies a time of day after which a date is no longer valid. * * @warning * Must be a valid ISO date string. */ cutoffTime: string; /** * The most concise way to define valid days of the week for calendar. Each day of the week has a checksum value: * * - Sunday = 1 * - Monday = 2 * - Tuesday = 4 * - Wednesday = 8 * - Thursday = 16 * - Friday = 32 * - Saturday = 64 * * Add the checksum values of your desired valid days together, and set `daysOfWeekChecksum` to that summed value. * * **Example:** * @snippet * element.daysOfWeekChecksum = 127 // All days of the week are valid * element.daysOfWeekChecksum = 62; // Only weekdays are valid * element.daysOfWeekChecksum = 65; // Only Saturday and Sunday are valid * */ daysOfWeekChecksum: number; /** Disable the input field. */ disabled: boolean; /** * Text that displays as the placeholder when the field is marked `disabled`. * @localizable */ disabledMsg: string; /** Text that appears at the bottom of the popover date picker. */ disclaimer: string; /** * Determines the display format of the date field value. * * Must follow the [date-fns](https://date-fns.org/v2.28.0/docs/format) token specification. */ displayFormat: string; /** * Defines the last selectable date in the date picker popover. * * @warning * Must be a valid ISO date string. */ endDate: string; /** * Each item in the `errors` array will appear below the input field when the field is focused and `typeable` is `true`. * @localizable */ errors: string[]; /** Hide the input field's `