import { aH as valuesIdentical, aG as Dictionary, f as ViewOptions, d as CalendarOptions, q as ContentGenerator, o as ClassNameInput, aI as ViewContext, aJ as EventRangeProps, aK as DateProfileGenerator, aL as Emitter, aM as DateComponent, aN as ScrollerInterface, aO as EventSegUiInteractionState, aP as DateProfile, aQ as CalendarContext, aR as DateSpan, aS as EventStore, aT as EventInteractionState, aU as EventUiHash, aV as SplittableProps, aW as BaseComponent, aX as ElRef, c as EventRenderRange, aY as ViewOptionsRefined, l as CssDimValue, aZ as Splitter, a_ as EventDef, p as ClassNameGenerator, r as DidMountHandler, W as WillUnmountHandler, z as DayHeaderInfo, a$ as DateMeta, b0 as Hit } from './chunks/f937503a.js'; export { bt as Action, aW as BaseComponent, bO as CalendarApiImpl, bu as CalendarContentProps, aQ as CalendarContext, bl as CalendarData, bm as CalendarDataManager, bv as CalendarInner, e as CalendarListeners, b1 as CalendarListenersRefined, bQ as CalendarMediaRoot, bC as Constraint, bS as ContentContainer, q as ContentGenerator, bU as CustomRendering, ae as CustomRenderingStore, aM as DateComponent, a$ as DateMeta, aP as DateProfile, aK as DateProfileGenerator, aR as DateSpan, aG as Dictionary, r as DidMountHandler, br as ElementDragging, aL as Emitter, a_ as EventDef, b5 as EventDefHash, bP as EventImpl, b6 as EventInstanceHash, aT as EventInteractionState, bB as EventMutation, aJ as EventRangeProps, b7 as EventRefined, aO as EventSegUiInteractionState, aS as EventStore, bh as EventUi, aU as EventUiHash, b0 as Hit, b2 as Identity, bA as MinimalEventProps, bM as MoreLinkContainer, M as MountInfo, bK as NowIndicatorHeaderContainer, bL as NowIndicatorLineContainer, b9 as OrderSpec, bq as PointerDragEvent, bH as ScrollerSyncerInterface, aV as SplittableProps, aZ as Splitter, bN as ViewContainer, aI as ViewContext, aY as ViewOptionsRefined, bn as ViewProps, bs as ViewPropsTransformer, W as WillUnmountHandler, by as buildEventRangeKey, bi as combineEventUis, bb as compareByFieldSpecs, bo as computeMajorUnit, bR as computeRootClassName, be as computeViewBorderless, bj as createEventUi, bV as createFormatter, bc as flexibleCompare, bT as generateClassName, bk as getDateMeta, bz as getEventKey, bx as getEventRangeMeta, bE as getFooterScrollbarSticky, bG as getIsHeightAuto, bf as getRectCenter, bF as getTableHeaderSticky, bd as guid, b3 as identity, bp as isMajorUnit, bg as mergeEventStores, b8 as parseBusinessHours, ba as parseFieldSpecs, bI as refineClassName, bJ as refineClassNameGenerator, b4 as refineProps, bD as setRef, bw as sortEventSegs } from './chunks/f937503a.js'; import { OpenDateRange, Duration, DateMarker, DateRange, DateEnv, DateFormatter } from '@full-ui/headless-calendar'; export { DateEnv, DateFormatter, DateMarker, DateRange, addDays, addMs, asCleanDays, asRoughMinutes, asRoughMs, asRoughSeconds, createDuration, diffDayAndTime, diffWholeDays, diffWholeWeeks, formatDayString, greatestDurationDenominator, intersectRanges, isInt, isValidDate, multiplyDuration, padStart, parseMarker, rangeContainsMarker, rangesEqual, rangesIntersect, startOfDay, wholeDivideDurations } from '@full-ui/headless-calendar'; import * as react_jsx_runtime from 'react/jsx-runtime'; import * as react from 'react'; import { ReactNode, Ref, Component } from 'react'; export { r as requestJson } from './chunks/c6f406c5.js'; declare function warn(...args: any[]): void; declare function computeVisibleDayRange(timedRange: OpenDateRange, nextDayThreshold?: Duration): OpenDateRange; declare function removeExact(array: any[], exactItem: any): number; declare function isArraysEqual(array0: any[], array1: any[], itemsEqual?: typeof valuesIdentical): boolean; declare function memoize(workerFunc: (...args: Args) => Res, resEquality?: (res0: Res, res1: Res) => boolean, teardownFunc?: (res: Res) => void): (...args: Args) => Res; declare function memoizeObjArg(workerFunc: (arg: Arg) => Res, resEquality?: (res0: Res, res1: Res) => boolean, teardownFunc?: (res: Res) => void): (arg: Arg) => Res; declare function filterHash(hash: any, func: any): {}; declare function mapHash(hash: { [key: string]: InputItem; }, func: (input: InputItem, key: string) => OutputItem): { [key: string]: OutputItem; }; declare function isPropsEqualShallow(props0: any, props1: any): boolean; type FuncishClassNameInput = ((info: any) => ClassNameInput) | ClassNameInput; declare function mergeViewOptionsMap(...hashes: { [view: string]: ViewOptions; }[]): { [view: string]: ViewOptions; }; declare function mergeCalendarOptions(...optionSets: CalendarOptions[]): any; declare function joinFuncishClassNames(input0: FuncishClassNameInput, // added to string first input1: FuncishClassNameInput, optionName: string): FuncishClassNameInput; declare function mergeContentInjectors(contentGenerator0: ContentGenerator, // fallback contentGenerator1: ContentGenerator): ContentGenerator; declare function mergeLifecycleCallbacks(fn0: (...args: any[]) => any, // called first fn1: (...args: any[]) => any): (...args: any[]) => any; declare function computeElIsRtl(el: HTMLElement): boolean; declare function applyStyleProp(el: HTMLElement, name: string, val: any): void; type SizeCallback = (width: number, height: number) => void; type DisconnectSize = () => void; declare function afterSize(callback: () => void): void; declare function watchSize(el: HTMLElement, callback: SizeCallback, watchWidth?: boolean, watchHeight?: boolean): DisconnectSize; declare function watchWidth(el: HTMLElement, callback: (width: number) => void): DisconnectSize; declare function watchHeight(el: HTMLElement, callback: (height: number) => void): DisconnectSize; declare function debounce(fn: () => void, ms: number): [ request: () => void, cancel: () => void ]; declare function buildNavLinkAttrs(context: ViewContext, dateMarker: DateMarker, viewType?: string, dateStr?: string, isTabbable?: boolean): { tabIndex: number; onKeyDown(ev: KeyboardEvent): void; onClick: (ev: UIEvent) => void; role: any; 'aria-label': any; className: string; } | { onClick: (ev: UIEvent) => void; role: any; 'aria-label': any; className: string; }; interface EdgeInfo { borderLeft: number; borderRight: number; borderTop: number; borderBottom: number; scrollbarLeft: number; scrollbarRight: number; scrollbarBottom: number; paddingLeft?: number; paddingRight?: number; paddingTop?: number; paddingBottom?: number; } declare function computeEdges(el: HTMLElement, getPadding?: boolean): EdgeInfo; declare function computeInnerRect(el: any, goWithinPadding?: boolean, doFromWindowViewport?: boolean): { left: any; right: number; top: any; bottom: number; }; declare function unpromisify(func: (successCallback: (res: Res) => void, failureCallback: (error: Error) => void) => Promise | void, normalizedSuccessCallback: (res: Res) => void, normalizedFailureCallback: (error: Error) => void): void; interface CoordSpan { start: number; size: number; } interface CoordRange { start: number; end: number; } interface SlicedCoordRange extends CoordRange { isStart: boolean; isEnd: boolean; } type EventSeg = R & EventRangeProps & { isSlice?: boolean; }; type EventPlacement = EventSeg & { thickness: number; depth: number; isSlice: boolean; isZombie: boolean; }; interface EventInsertion { levelIndex: number; levelCoord: number; lateralIndex: number; touchingPlacement: EventPlacement | undefined; depth: number; } declare class SegHierarchy { private getSegThickness; strictOrder: boolean; private maxCoord; private maxDepth; private hiddenConsumes; private allowSlicing; placementsByLevel: EventPlacement[][]; levelCoords: number[]; hiddenSegs: EventSeg[]; constructor(segs: EventSeg[], getSegThickness: (seg: EventSeg) => number | undefined, strictOrder: boolean, // HACK maxCoord: number | undefined, maxDepth: number | undefined, hiddenConsumes?: boolean, // hidden segs also hide the touchingPlacement? allowSlicing?: boolean); private insertSeg; private isInsertionValid; private splitSeg; private insertSegAt; findInsertion(seg: CoordRange, segThickness: number): EventInsertion; traverseSegs(handler: (seg: EventPlacement, levelCoord: number) => void): void; } interface SegInternalGroup extends CoordRange { segs: EventSeg[]; } interface SegGroup extends SegInternalGroup { key: string; } declare function groupIntersectingSegs(segs: EventSeg[]): SegGroup[]; declare const config: any; declare class DaySeriesModel { cnt: number; dates: DateMarker[]; indices: number[]; constructor(range: DateRange, dateProfileGenerator: DateProfileGenerator); sliceRange(range: DateRange): SlicedCoordRange | null; private getDateDayIndex; } interface DayGridRange extends SlicedCoordRange { row: number; } interface DayTableCell { key: string; date: DateMarker; isMajor: boolean; renderProps?: Dictionary; attrs?: Dictionary; className?: string; dateSpanProps?: Dictionary; } declare class DayTableModel { private dateEnv; private majorUnit; rowCount: number; colCount: number; cellRows: DayTableCell[][]; headerDates: DateMarker[]; private daySeries; constructor(daySeries: DaySeriesModel, breakOnWeeks: boolean, dateEnv: DateEnv, majorUnit?: string); buildCells(): any[]; private buildCell; protected cellIsMajor(dateMarker: DateMarker): boolean; private buildHeaderDates; sliceRange(range: DateRange): DayGridRange[]; } declare class ScrollListener { el: HTMLElement; emitter: Emitter<{ scrollStart: (isDevice: boolean) => void; scroll: (isDevice: boolean) => void; scrollEnd: (isDevice: boolean) => void; }>; private wheelWaiter; private scrollWaiter; private isScroll; private isScrollRecent; private isWheelRecent; private isMouseDown; private isTouchDown; private isMouse; private isTouch; private isWheel; constructor(el: HTMLElement); destroy(): void; private startScroll; endScroll(): void; private getIsDevice; private handleScroll; private handleScrollWait; private handleWheel; private handleWheelWait; private handleMouseDown; private handleMouseUp; private handleTouchStart; private handleTouchEnd; } interface ScrollerProps { vertical?: boolean; horizontal?: boolean; hideScrollbars?: boolean; children?: ReactNode; clientWidthRef?: Ref; clientHeightRef?: Ref; bottomScrollbarWidthRef?: Ref; className?: string; style?: Dictionary; } declare class Scroller extends DateComponent implements ScrollerInterface { private el?; private _isUnmounting; listener: ScrollListener; private disconnectHRuler?; private disconnectVRuler?; private clientWidth?; private clientHeight?; private bottomScrollbarWidth?; render(): react_jsx_runtime.JSX.Element; handleEl: (el: HTMLDivElement | null) => void; handleHRuler: (el: HTMLDivElement | null) => void; handleVRuler: (el: HTMLDivElement | null) => void; endScroll(): void; get x(): number; get y(): number; scrollTo({ x, y }: { x?: number; y?: number; }): void; addScrollStartListener(handler: () => void): void; removeScrollStartListener(handler: () => void): void; addScrollEndListener(handler: (isDevice: boolean) => void): void; removeScrollEndListener(handler: (isDevice: boolean) => void): void; } interface SliceableProps { dateSelection: DateSpan; businessHours: EventStore; eventStore: EventStore; eventDrag: EventInteractionState | null; eventResize: EventInteractionState | null; eventSelection: string; eventUiBases: EventUiHash; } interface SlicedProps { fgEventSegs: (R & EventRangeProps)[]; bgEventSegs: (R & EventRangeProps)[]; businessHourSegs: (R & EventRangeProps)[]; dateSelectionSegs: (R & EventRangeProps)[]; eventDrag: EventSegUiInteractionState | null; eventResize: EventSegUiInteractionState | null; eventSelection: string; } declare abstract class Slicer { private sliceBusinessHours; private sliceDateSelection; private sliceEventStore; private sliceEventDrag; private sliceEventResize; abstract sliceRange(dateRange: DateRange, ...extraArgs: ExtraArgs): R[]; protected forceDayIfListItem: boolean; sliceProps(props: SliceableProps, dateProfile: DateProfile, nextDayThreshold: Duration | null, context: CalendarContext, ...extraArgs: ExtraArgs): SlicedProps; sliceNowDate(// does not memoize date: DateMarker, dateProfile: DateProfile, nextDayThreshold: Duration | null, context: CalendarContext, ...extraArgs: ExtraArgs): R[]; private _sliceBusinessHours; private _sliceEventStore; private _sliceInteraction; private _sliceDateSpan; private sliceEventRanges; private sliceEventRange; } declare function isPropsValid(state: SplittableProps, context: CalendarContext, dateSpanMeta?: {}, filterConfig?: any): boolean; declare class DelayedRunner { private drainedOption?; private isRunning; private isDirty; private pauseDepths; private timeoutId; constructor(drainedOption?: () => void); request(delay?: number): void; pause(scope?: string): void; resume(scope?: string, force?: boolean): void; isPaused(): number; tryDrain(): void; clear(): void; private clearTimeout; protected drained(): void; } interface RulerProps { widthRef: Ref; } declare class Ruler extends BaseComponent { private elRef; private _isUnmounting; private disconnectWidth?; render(): react_jsx_runtime.JSX.Element; componentDidMount(): void; componentWillUnmount(): void; } declare class RefMap { masterCallback?: (val: V, key: K) => void; private ignoreDeletes; rev: string; current: Map; private callbacks; constructor(masterCallback?: (val: V, key: K) => void, ignoreDeletes?: boolean); createRef(key: K): (val: V | null) => void; handleValue: (val: V, key: K) => void; } interface NowTimerProps { unit: string; unitValue?: number; children?: (now: DateMarker, todayRange: DateRange) => ReactNode; } declare class NowTimer extends Component { static contextType: any; context: ViewContext; private runner; constructor(props: NowTimerProps, context: ViewContext); render(): ReactNode; componentWillUnmount(): void; private handleChange; } interface StandardEventProps { elRef?: ElRef; attrs?: any; className?: string; display: 'list-item' | 'row' | 'column'; eventRange: EventRenderRange; slicedStart?: DateMarker; slicedEnd?: DateMarker; isStart: boolean; isEnd: boolean; isFirst?: boolean; isLast?: boolean; isDragging: boolean; isResizing: boolean; isMirror: boolean; isSelected: boolean; isPast: boolean; isFuture: boolean; isToday: boolean; disableDragging?: boolean; disableResizing?: boolean; defaultTimeFormat: DateFormatter; defaultDisplayEventTime?: boolean; defaultDisplayEventEnd?: boolean; isNarrow?: boolean; isShort?: boolean; level?: number; forcedTimeText?: string; disableLiquid?: boolean; disableZindexes?: boolean; } declare class StandardEvent extends BaseComponent { private buildPublicEvent; private el; render(): react_jsx_runtime.JSX.Element; handleEl: (el: HTMLElement | null) => void; componentDidUpdate(prevProps: StandardEventProps): void; } interface NowIndicatorDotProps { className?: string; style?: any; } declare const NowIndicatorDot: (props: NowIndicatorDotProps) => react_jsx_runtime.JSX.Element; interface BgEventProps { eventRange: EventRenderRange; isStart: boolean; isEnd: boolean; isPast: boolean; isFuture: boolean; isToday: boolean; isNarrow?: boolean; isShort?: boolean; isVertical: boolean; } declare class BgEvent extends BaseComponent { private buildPublicEvent; private el; render(): react_jsx_runtime.JSX.Element; handleEl: (el: HTMLElement | null) => void; componentDidUpdate(prevProps: BgEventProps): void; } declare function renderFill(fillType: string, options: ViewOptionsRefined): react_jsx_runtime.JSX.Element; declare const RenderId: react.Context; interface FooterScrollbarProps { isSticky?: boolean; canvasWidth: CssDimValue; scrollerRef?: Ref; scrollbarWidthRef?: Ref; } declare class FooterScrollbar extends BaseComponent { rootElRef: react.RefObject; private _isUnmounting; disconnectHeight?: () => void; render(): react_jsx_runtime.JSX.Element; componentDidMount(): void; componentWillUnmount(): void; } interface TimeGridRange { col: number; startDate: DateMarker; endDate: DateMarker; isStart: boolean; isEnd: boolean; showDot?: boolean; } declare function organizeSegsByCol(segs: S[] | null, colCount: number): S[][]; declare function splitInteractionByCol(ui: EventSegUiInteractionState | null, colCount: number): EventSegUiInteractionState[]; declare class DayTimeColsSlicer extends Slicer { sliceRange(range: DateRange, dayRanges: DateRange[]): TimeGridRange[]; } declare class AllDaySplitter extends Splitter { getKeyInfo(): { allDay: {}; timed: {}; }; getKeysForDateSpan(dateSpan: DateSpan): string[]; getKeysForEventDef(eventDef: EventDef): string[]; } interface CellRenderConfig { generatorName: string; customGenerator: ContentGenerator; innerClassNameGenerator: ClassNameGenerator; classNameGenerator: ClassNameGenerator; didMount: DidMountHandler; willUnmount: WillUnmountHandler; align: 'start' | 'center' | 'end' | ((info: { level: number; inPopover: boolean; isNarrow: boolean; }) => 'start' | 'center' | 'end'); sticky: boolean | number | string; dayHeaderFormat?: DateFormatter; datesRepDistinctDays?: boolean; } interface CellDataConfig { key: string; dateMarker: DateMarker; renderProps: RenderProps; className?: string; attrs?: any; innerAttrs?: any; colSpan?: number; hasNavLink?: boolean; } interface RowConfig { isDateRow: boolean; renderConfig: CellRenderConfig; dataConfigs: CellDataConfig[]; } interface BaseDayHeaderData extends DateMeta { isMajor: DayHeaderInfo['isMajor']; isSticky: DayHeaderInfo['isSticky']; inPopover: DayHeaderInfo['inPopover']; hasNavLink: DayHeaderInfo['hasNavLink']; view: DayHeaderInfo['view']; [otherProp: string]: any; } declare function buildDateRowConfig(dateMarkers: DateMarker[], datesRepDistinctDays: boolean, dateProfile: DateProfile, todayRange: DateRange, dayHeaderFormat: DateFormatter, // TODO: rename to dateHeaderFormat? context: ViewContext, colSpan?: number, isMajorMod?: number): RowConfig; declare function buildDateRenderConfig(dayHeaderFormat: DateFormatter, datesRepDistinctDays: boolean, context: ViewContext): CellRenderConfig; declare function buildDateDataConfigs(dateMarkers: DateMarker[], datesRepDistinctDays: boolean, dateProfile: DateProfile, todayRange: DateRange, dayHeaderFormat: DateFormatter, // TODO: rename to dateHeaderFormat? context: ViewContext, colSpan?: number, keyPrefix?: string, extraRenderProps?: Dictionary, // TODO extraAttrs?: Dictionary, // TODO className?: string, isMajorMod?: number): CellDataConfig[]; interface TimeGridLayoutProps { labelId: string | undefined; labelStr: string | undefined; dateProfile: DateProfile; nowDate: DateMarker; todayRange: DateRange; cells: DayTableCell[]; forPrint: boolean; isHitComboAllowed?: (hit0: Hit, hit1: Hit) => boolean; className: string; headerTiers: RowConfig[]; fgEventSegs: (SlicedCoordRange & EventRangeProps)[]; bgEventSegs: (SlicedCoordRange & EventRangeProps)[]; businessHourSegs: (SlicedCoordRange & EventRangeProps)[]; dateSelectionSegs: (SlicedCoordRange & EventRangeProps)[]; eventDrag: EventSegUiInteractionState | null; eventResize: EventSegUiInteractionState | null; fgEventSegsByCol: (TimeGridRange & EventRangeProps)[][]; bgEventSegsByCol: (TimeGridRange & EventRangeProps)[][]; businessHourSegsByCol: (TimeGridRange & EventRangeProps)[][]; nowIndicatorSegsByCol: TimeGridRange[][]; dateSelectionSegsByCol: (TimeGridRange & EventRangeProps)[][]; eventDragByCol: EventSegUiInteractionState[]; eventResizeByCol: EventSegUiInteractionState[]; eventSelection: string; } declare class TimeGridLayout extends BaseComponent { private buildSlatMetas; private dayScrollerRef; private timeScrollerRef; private slatHeight?; private _isUnmounting; private currentSlatCnt?; private scrollState; render(): react_jsx_runtime.JSX.Element; componentDidMount(): void; componentDidUpdate(prevProps: TimeGridLayoutProps): void; componentWillUnmount(): void; private handleSlatHeight; private resetScroll; private handleTimeScrollRequest; private handleTimeScrollEnd; private applyTimeScroll; } declare function buildTimeColsModel(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator, dateEnv: DateEnv): DayTableModel; declare function buildDayRanges(dayTableModel: DayTableModel, dateProfile: DateProfile, dateEnv: DateEnv): DateRange[]; declare class DayTableSlicer extends Slicer { forceDayIfListItem: boolean; sliceRange(dateRange: DateRange, dayTableModel: DayTableModel): DayGridRange[]; } declare function buildDayTableModel(dateProfile: DateProfile, dateProfileGenerator: DateProfileGenerator, dateEnv: DateEnv): DayTableModel; declare function createDayHeaderFormatter(explicitFormat: DateFormatter, datesRepDistinctDays: boolean, dateCnt: number): DateFormatter; interface DayGridLayoutProps { labelId: string | undefined; labelStr: string | undefined; dateProfile: DateProfile; todayRange: DateRange; cellRows: DayTableCell[][]; forPrint: boolean; isHitComboAllowed?: (hit0: Hit, hit1: Hit) => boolean; className: string; headerTiers: RowConfig[]; fgEventSegs: (DayGridRange & EventRangeProps)[]; bgEventSegs: (DayGridRange & EventRangeProps)[]; businessHourSegs: (DayGridRange & EventRangeProps)[]; dateSelectionSegs: (DayGridRange & EventRangeProps)[]; eventDrag: EventSegUiInteractionState | null; eventResize: EventSegUiInteractionState | null; eventSelection: string; } declare class DayGridLayout extends BaseComponent { private scrollerRef; private rowHeightRefMap; private _isUnmounting; private scrollDate; render(): react_jsx_runtime.JSX.Element; componentDidMount(): void; componentDidUpdate(prevProps: DayGridLayoutProps): void; componentWillUnmount(): void; resetScroll(): void; updateScrollY: () => void; handleScrollEnd: (isDevice: boolean) => void; } export { AllDaySplitter, BgEvent, CellDataConfig, CellRenderConfig, CoordRange, CoordSpan, DayGridLayout, DayGridRange, DayTableCell, DayTableModel, DayTableSlicer, DayTimeColsSlicer, DelayedRunner, FooterScrollbar, NowIndicatorDot, NowTimer, RefMap, RenderId, RowConfig, Ruler, Scroller, SegGroup, SegHierarchy, SlicedCoordRange, SlicedProps, Slicer, StandardEvent, TimeGridLayout, TimeGridRange, afterSize, applyStyleProp, buildDateDataConfigs, buildDateRenderConfig, buildDateRowConfig, buildDayRanges, buildDayTableModel, buildNavLinkAttrs, buildTimeColsModel, computeEdges, computeElIsRtl, computeInnerRect, computeVisibleDayRange, config, createDayHeaderFormatter, debounce, filterHash, groupIntersectingSegs, isArraysEqual, isPropsEqualShallow, isPropsValid, joinFuncishClassNames, mapHash, memoize, memoizeObjArg, mergeCalendarOptions, mergeContentInjectors, mergeLifecycleCallbacks, mergeViewOptionsMap, organizeSegsByCol, removeExact, renderFill, splitInteractionByCol, unpromisify, warn, watchHeight, watchSize, watchWidth };