import { Temporal } from '@js-temporal/polyfill'; import { CoarZonedDateTimePickerSize } from '@cocoar/vue-ui'; import { CoarDateMarker } from './plain-date-cell-editor.models'; /** * Configuration for the `col.zonedDateTime()` cell renderer + editor. * * Cell value type is `Temporal.ZonedDateTime | null`. The picker exposes its * own timezone selector; when the user clears + re-picks, the resulting * `ZonedDateTime`'s `timeZoneId` may differ from the original. */ export interface ZonedDateTimeCellEditorConfig { /** Trigger size — defaults to `'s'` to fit cell height. */ size?: CoarZonedDateTimePickerSize; /** Show a clear button inside the picker. Default `true`. */ clearable?: boolean; /** Minimum selectable instant. */ min?: Temporal.ZonedDateTime | null; /** Maximum selectable instant. */ max?: Temporal.ZonedDateTime | null; /** Show ISO week numbers in the calendar panel. */ showWeekNumbers?: boolean; /** Visually highlight Saturday + Sunday. */ highlightWeekends?: boolean; /** Date markers drawn on specific dates. */ markers?: CoarDateMarker[] | ((row: TData) => CoarDateMarker[]); /** Locale override. Defaults to the consumer-app locale via `useL10n()`. */ locale?: string; /** * Default IANA timezone used when creating a new value (cell was empty * before the edit). When the cell already holds a `ZonedDateTime`, its zone * is preserved through editing unless the user explicitly changes it via * the picker's zone selector. * * Passes through to `CoarZonedDateTimePicker`'s `timeZone` prop. */ timeZone?: string; /** * Wildcard filter patterns for the timezone selector (e.g. `['Europe/*']`) * — passes through to `CoarZonedDateTimePicker`'s `timezoneFilter` prop. */ timezoneFilter?: string[]; /** * Renderer-only: IANA zone to project every cell value into for display. * When omitted (the default), each cell renders in its own value's zone — * a Tokyo event renders Tokyo wallclock, a Vienna event renders Vienna * wallclock, etc. Set this to project all cells into a single zone (e.g. * `'Europe/Vienna'` to render every row in Vienna time for cross-zone * coordination views). */ displayTimeZone?: string; } //# sourceMappingURL=zoned-date-time-cell-editor.models.d.ts.map