# @birchui/scheduler API reference

> Birch UI Scheduler: resource timeline and scheduling component

```bash
npm install @birchui/scheduler
```

## @birchui/scheduler

### createScheduler

Kind: function. Import from `@birchui/scheduler`.

```ts
function createScheduler<TEvent extends SchedulerEvent = SchedulerEvent, TResource extends SchedulerResource = SchedulerResource>(container: HTMLElement, options: SchedulerOptions<TEvent, TResource>): SchedulerApi<TEvent, TResource>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `container` | `HTMLElement` |  |
| `options` | `SchedulerOptions<TEvent, TResource>` |  |

### DEFAULT_ZOOM_LEVELS

Kind: const. Import from `@birchui/scheduler`.

```ts
const DEFAULT_ZOOM_LEVELS: readonly ViewPresetName[]
```

### SCHEDULER_EVENT_NAMES

Kind: const. Import from `@birchui/scheduler`.

```ts
const SCHEDULER_EVENT_NAMES: readonly (keyof SchedulerEvents)[]
```

### schedulerDefinition

Kind: const. Import from `@birchui/scheduler`.

```ts
const schedulerDefinition: WidgetDefinition<SchedulerOptions<SchedulerEvent, SchedulerResource>, SchedulerEvents<SchedulerEvent, SchedulerResource>, SchedulerApi<SchedulerEvent, SchedulerResource>>
```

### schedulerStyles

Kind: const. Import from `@birchui/scheduler`.

```ts
const schedulerStyles: "\n.lq-sched {\n --lq-sched-font-family: var(--lq-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif);\n --lq-sched-font-size: var(--lq-font-size, 13px);\n --lq-sched-fg: var(--lq-fg, #1f2328);\n --lq-sched-bg: var(--lq-bg, #ffffff);\n --lq-sched-muted-fg: var(--lq-muted-fg, #656d76);\n --lq-sched-border: var(--lq-border, #d8dee4);\n --lq-sched-header-bg: var(--lq-header-bg, #f6f8fa);\n --lq-sched-header-fg: var(--lq-header-fg, #1f2328);\n --lq-sched-row-alt: var(--lq-row-alt, #fafbfc);\n --lq-sched-row-hover: var(--lq-row-hover, #f0f4f8);\n --lq-sched-accent: var(--lq-accent, #2563eb);\n --lq-sched-selection-bg: var(--lq-selection-bg, rgba(37, 99, 235, 0.12));\n --lq-sched-focus-ring: var(--lq-focus-ring, #2563eb);\n --lq-sched-radius: var(--lq-radius, 6px);\n --lq-sched-tick-line: color-mix(in srgb, var(--lq-sched-border) 55%, transparent);\n --lq-sched-major-line: var(--lq-sched-border);\n --lq-sched-row-line: color-mix(in srgb, var(--lq-sched-border) 70%, transparent);\n --lq-sched-nonworking-bg: color-mix(in srgb, var(--lq-sched-fg) 5%, transparent);\n --lq-sched-now-color: #dc2626;\n --lq-sched-invalid-color: #dc2626;\n --lq-sched-event-text: var(--lq-sched-fg);\n position: relative;\n box-sizing: border-box;\n height: var(--lq-sched-height, 100%);\n min-height: 240px;\n overflow: hidden;\n font-family: var(--lq-sched-font-family);\n font-size: var(--lq-sched-font-size);\n color: var(--lq-sched-fg);\n background: var(--lq-sched-bg);\n border: 1px solid var(--lq-sched-border);\n border-radius: var(--lq-sched-radius);\n}\n.lq-sched.lq-theme-light {\n --lq-fg: #1f2328;\n --lq-bg: #ffffff;\n --lq-muted-fg: #656d76;\n --lq-border: #d8dee4;\n --lq-header-bg: #f6f8fa;\n --lq-header-fg: #1f2328;\n --lq-row-alt: #fafbfc;\n --lq-row-hover: #f0f4f8;\n --lq-accent: #2563eb;\n --lq-selection-bg: rgba(37, 99, 235, 0.12);\n --lq-focus-ring: #2563eb;\n}\n.lq-sched.lq-theme-dark,\n.lq-theme-dark .lq-sched:not(.lq-theme-light) {\n --lq-fg: #e6edf3;\n --lq-bg: #0d1117;\n --lq-muted-fg: #9198a1;\n --lq-border: #30363d;\n --lq-header-bg: #161b22;\n --lq-header-fg: #e6edf3;\n --lq-row-alt: #11161d;\n --lq-row-hover: #1c2330;\n --lq-accent: #4c8dff;\n --lq-selection-bg: rgba(76, 141, 255, 0.2);\n --lq-focus-ring: #79a8ff;\n --lq-sched-now-color: #f87171;\n --lq-sched-invalid-color: #f87171;\n color-scheme: dark;\n}\n@media (prefers-color-scheme: dark) {\n .lq-sched.lq-theme-auto {\n --lq-fg: #e6edf3;\n --lq-bg: #0d1117;\n --lq-muted-fg: #9198a1;\n --lq-border: #30363d;\n --lq-header-bg: #161b22;\n --lq-header-fg: #e6edf3;\n --lq-row-alt: #11161d;\n --lq-row-hover: #1c2330;\n --lq-accent: #4c8dff;\n --lq-selection-bg: rgba(76, 141, 255, 0.2);\n --lq-focus-ring: #79a8ff;\n --lq-sched-now-color: #f87171;\n --lq-sched-invalid-color: #f87171;\n color-scheme: dark;\n }\n}\n.lq-sched *,\n.lq-sched *::before,\n.lq-sched *::after {\n box-sizing: border-box;\n}\n.lq-sched-scroller {\n position: absolute;\n inset: 0;\n overflow: auto;\n overscroll-behavior: contain;\n outline: none;\n}\n.lq-sched-scroller:focus-visible {\n box-shadow: inset 0 0 0 2px var(--lq-sched-focus-ring);\n}\n.lq-sched-head {\n position: sticky;\n top: 0;\n z-index: 4;\n display: flex;\n width: calc(var(--lq-sched-resource-width) + var(--lq-sched-timeline-width));\n height: var(--lq-sched-header-height);\n background: var(--lq-sched-header-bg);\n color: var(--lq-sched-header-fg);\n}\n.lq-sched-corner {\n position: sticky;\n inset-inline-start: 0;\n z-index: 2;\n display: flex;\n align-items: flex-end;\n flex: none;\n width: var(--lq-sched-resource-width);\n height: 100%;\n overflow: hidden;\n background: var(--lq-sched-header-bg);\n border-inline-end: 1px solid var(--lq-sched-border);\n border-bottom: 1px solid var(--lq-sched-border);\n}\n.lq-sched-colhead {\n flex: none;\n height: var(--lq-sched-header-row-height);\n padding: 0 10px;\n overflow: hidden;\n font-weight: 600;\n line-height: var(--lq-sched-header-row-height);\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.lq-sched-colhead:last-child,\n.lq-sched-cell:last-child {\n flex: 1 1 auto;\n min-width: 0;\n}\n.lq-sched-timehead {\n position: relative;\n flex: none;\n width: var(--lq-sched-timeline-width);\n height: 100%;\n border-bottom: 1px solid var(--lq-sched-border);\n}\n.lq-sched-hrow {\n position: absolute;\n inset-inline-start: 0;\n width: 100%;\n height: var(--lq-sched-header-row-height);\n}\n.lq-sched-hrow + .lq-sched-hrow {\n border-top: 1px solid var(--lq-sched-row-line);\n}\n.lq-sched-hcell {\n position: absolute;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n overflow: clip;\n border-inline-end: 1px solid var(--lq-sched-row-line);\n white-space: nowrap;\n font-size: 12px;\n}\n.lq-sched-hrow:last-child .lq-sched-hcell {\n color: var(--lq-sched-muted-fg);\n}\n.lq-sched-hlabel {\n position: sticky;\n inset-inline-start: var(--lq-sched-resource-width);\n padding: 0 6px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.lq-sched-main {\n position: relative;\n display: flex;\n width: calc(var(--lq-sched-resource-width) + var(--lq-sched-timeline-width));\n height: var(--lq-sched-body-height);\n}\n.lq-sched-pane {\n position: sticky;\n inset-inline-start: 0;\n z-index: 3;\n flex: none;\n width: var(--lq-sched-resource-width);\n height: 100%;\n overflow: hidden;\n background: var(--lq-sched-bg);\n border-inline-end: 1px solid var(--lq-sched-border);\n}\n.lq-sched-res {\n position: absolute;\n inset-inline-start: 0;\n inset-inline-end: 0;\n display: flex;\n align-items: center;\n border-bottom: 1px solid var(--lq-sched-row-line);\n outline: none;\n}\n.lq-sched-res:focus-visible {\n box-shadow: inset 0 0 0 2px var(--lq-sched-focus-ring);\n}\n.lq-sched-res--group {\n font-weight: 600;\n background: var(--lq-sched-row-alt);\n}\n.lq-sched-cell {\n display: flex;\n align-items: center;\n flex: none;\n height: 100%;\n padding: 0 10px;\n overflow: hidden;\n white-space: nowrap;\n}\n.lq-sched-cell-text {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.lq-sched-swatch {\n flex: none;\n width: 8px;\n height: 8px;\n margin-inline-end: 8px;\n border-radius: 50%;\n background: var(--lq-sched-resource-color);\n}\n.lq-sched-toggle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 18px;\n height: 18px;\n margin-inline: -4px 4px;\n padding: 0;\n border: 0;\n border-radius: 4px;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n.lq-sched-toggle::before {\n content: \"\";\n width: 0;\n height: 0;\n border-inline-start: 5px solid currentColor;\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n}\n.lq-sched-toggle[aria-expanded=\"true\"]::before {\n transform: rotate(90deg);\n}\n.lq-sched-toggle:focus-visible {\n outline: 2px solid var(--lq-sched-focus-ring);\n}\n.lq-sched-toggle-spacer {\n flex: none;\n width: 18px;\n margin-inline: -4px 4px;\n}\n.lq-sched-avatar {\n --lq-sched-avatar-tint: var(--lq-sched-resource-color, var(--lq-sched-accent));\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n width: 30px;\n height: 30px;\n margin-inline-end: 8px;\n border: 1px solid color-mix(in srgb, var(--lq-sched-avatar-tint) 55%, transparent);\n border-radius: 50%;\n background: color-mix(in srgb, var(--lq-sched-avatar-tint) 18%, var(--lq-sched-bg));\n color: var(--lq-sched-fg);\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.02em;\n}\n.lq-sched-splitter {\n position: absolute;\n top: 0;\n bottom: 0;\n inset-inline-start: var(--lq-sched-resource-width);\n z-index: 6;\n width: 10px;\n margin-inline-start: -6px;\n cursor: col-resize;\n touch-action: none;\n outline: none;\n}\n.lq-sched-splitter::after {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n inset-inline-start: 4px;\n width: 2px;\n background: transparent;\n}\n.lq-sched-splitter:hover::after,\n.lq-sched-splitter:focus-visible::after,\n.lq-sched--splitting .lq-sched-splitter::after {\n background: var(--lq-sched-accent);\n}\n.lq-sched--splitting,\n.lq-sched--splitting * {\n cursor: col-resize;\n user-select: none;\n -webkit-user-select: none;\n}\n.lq-sched-pane-toggle {\n position: absolute;\n top: 0;\n inset-inline-start: 0;\n z-index: 6;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: calc(var(--lq-sched-resource-width) - 1px);\n min-width: 44px;\n height: calc(var(--lq-sched-header-height) - 1px);\n min-height: 44px;\n padding: 0;\n border: 0;\n background: none;\n color: var(--lq-sched-header-fg);\n font: inherit;\n cursor: pointer;\n}\n.lq-sched-pane-toggle[hidden] {\n display: none;\n}\n.lq-sched-pane-toggle::before {\n content: \"\";\n width: 8px;\n height: 8px;\n border-left: 2px solid currentColor;\n border-bottom: 2px solid currentColor;\n transform: translateX(2px) rotate(45deg);\n}\n.lq-sched-pane-toggle[aria-expanded=\"false\"]::before {\n transform: translateX(-2px) rotate(-135deg);\n}\n.lq-sched[dir=\"rtl\"] .lq-sched-pane-toggle::before {\n scale: -1 1;\n}\n.lq-sched-pane-toggle:focus-visible {\n outline: 2px solid var(--lq-sched-focus-ring);\n outline-offset: -2px;\n}\n.lq-sched--compact .lq-sched-colhead {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n}\n.lq-sched--compact .lq-sched-hcell {\n font-size: 11px;\n}\n.lq-sched--pane-collapsed .lq-sched-res .lq-sched-cell-text {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n}\n.lq-sched--pane-collapsed .lq-sched-avatar {\n margin-inline-end: 0;\n}\n.lq-sched--pane-collapsed .lq-sched-toggle-spacer {\n display: none;\n}\n.lq-sched-body {\n position: relative;\n flex: none;\n -webkit-touch-callout: none;\n width: var(--lq-sched-timeline-width);\n height: 100%;\n background-image: linear-gradient(to left, var(--lq-sched-tick-line) 1px, transparent 1px);\n background-size: var(--lq-sched-tick-width) 100%;\n}\n.lq-sched[dir=\"rtl\"] .lq-sched-body {\n background-image: linear-gradient(to right, var(--lq-sched-tick-line) 1px, transparent 1px);\n background-position: right top;\n}\n.lq-sched[dir=\"rtl\"] .lq-sched-toggle::before {\n scale: -1 1;\n}\n.lq-sched-bg {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n.lq-sched-shade {\n position: absolute;\n top: 0;\n bottom: 0;\n background: var(--lq-sched-nonworking-bg);\n}\n.lq-sched-major {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 1px;\n background: var(--lq-sched-major-line);\n}\n.lq-sched-lane {\n position: absolute;\n inset-inline-start: 0;\n width: 100%;\n border-bottom: 1px solid var(--lq-sched-row-line);\n}\n.lq-sched-lane--group {\n background: color-mix(in srgb, var(--lq-sched-row-alt) 70%, transparent);\n}\n.lq-sched-now,\n.lq-sched-now-head {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 2;\n width: 2px;\n margin-inline-start: -1px;\n background: var(--lq-sched-now-color);\n pointer-events: none;\n}\n.lq-sched-now-head {\n top: auto;\n height: 8px;\n}\n.lq-sched-event {\n --lq-sched-event-tint: var(--lq-sched-event-color, var(--lq-sched-accent));\n position: absolute;\n display: flex;\n align-items: center;\n min-width: 3px;\n padding-block: 0;\n padding-inline: 7px 8px;\n overflow: hidden;\n border: 1px solid color-mix(in srgb, var(--lq-sched-event-tint) 45%, transparent);\n border-inline-start: 3px solid var(--lq-sched-event-tint);\n border-radius: 4px;\n background: color-mix(in srgb, var(--lq-sched-event-tint) 16%, var(--lq-sched-bg));\n color: var(--lq-sched-event-text);\n font-size: 12px;\n line-height: 1.25;\n white-space: nowrap;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n outline: none;\n}\n.lq-sched-event--draggable {\n cursor: grab;\n}\n.lq-sched-event:hover {\n z-index: 1;\n background: color-mix(in srgb, var(--lq-sched-event-tint) 24%, var(--lq-sched-bg));\n}\n.lq-sched-event:focus-visible {\n z-index: 2;\n outline: 2px solid var(--lq-sched-focus-ring);\n outline-offset: 1px;\n}\n.lq-sched-event--selected {\n z-index: 1;\n box-shadow: 0 0 0 2px var(--lq-sched-event-tint);\n}\n.lq-sched-event--clip-start {\n border-inline-start-style: dashed;\n border-start-start-radius: 0;\n border-end-start-radius: 0;\n}\n.lq-sched-event--clip-end {\n border-start-end-radius: 0;\n border-end-end-radius: 0;\n}\n.lq-sched-event--dragging {\n opacity: 0.35;\n}\n.lq-sched-event-content {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.lq-sched-event-title {\n font-weight: 600;\n}\n.lq-sched-event--narrow {\n padding: 0;\n}\n.lq-sched-event--narrow .lq-sched-event-content {\n visibility: hidden;\n}\n.lq-sched-handle {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 1;\n width: 7px;\n cursor: ew-resize;\n touch-action: none;\n}\n.lq-sched-handle--start {\n inset-inline-start: -3px;\n}\n.lq-sched-handle--end {\n inset-inline-end: 0;\n}\n@media (pointer: coarse) {\n .lq-sched-event:not(.lq-sched-event--selected) .lq-sched-handle {\n display: none;\n }\n}\n@media (any-pointer: coarse) {\n .lq-sched-event--selected {\n overflow: visible;\n }\n .lq-sched-event--selected .lq-sched-handle {\n top: 50%;\n bottom: auto;\n width: 44px;\n height: 44px;\n margin-top: -22px;\n }\n .lq-sched-event--selected .lq-sched-handle--start {\n inset-inline-start: -22px;\n }\n .lq-sched-event--selected .lq-sched-handle--end {\n inset-inline-end: -22px;\n }\n .lq-sched-event--selected .lq-sched-handle::after {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n width: 14px;\n height: 14px;\n margin: -7px 0 0 -7px;\n border: 2px solid var(--lq-sched-event-tint);\n border-radius: 50%;\n background: var(--lq-sched-bg);\n }\n}\n.lq-sched-ghost {\n z-index: 5;\n opacity: 0.92;\n pointer-events: none;\n box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);\n}\n.lq-sched-ghost--invalid {\n --lq-sched-event-tint: var(--lq-sched-invalid-color);\n cursor: not-allowed;\n}\n.lq-sched-proxy {\n position: absolute;\n z-index: 5;\n border: 1px dashed var(--lq-sched-accent);\n border-radius: 4px;\n background: var(--lq-sched-selection-bg);\n pointer-events: none;\n}\n.lq-sched--dragging,\n.lq-sched--dragging * {\n cursor: grabbing;\n}\n.lq-sched--resizing,\n.lq-sched--resizing * {\n cursor: ew-resize;\n}\n.lq-sched--readonly .lq-sched-event {\n cursor: default;\n}\n.lq-sched-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n}\n@media (prefers-reduced-motion: no-preference) {\n .lq-sched-event {\n transition: background-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;\n }\n .lq-sched-toggle::before {\n transition: transform 0.12s ease;\n }\n}\n@media (forced-colors: active) {\n .lq-sched-event {\n border: 1px solid CanvasText;\n }\n .lq-sched-event--selected {\n outline: 2px solid Highlight;\n }\n .lq-sched :focus-visible,\n .lq-sched-splitter:focus-visible::after {\n outline: 2px solid Highlight;\n outline-offset: -2px;\n }\n}\n" = ` .lq-sched { --lq-sched-font-family: var(--lq-font-family, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); --lq-sched-font-size: var(--lq-font-size, 13px); --lq-sched-fg: var(--lq-fg, #1f2328); --lq-sched-bg: var(--lq-bg, #ffffff); --lq-sched-muted-fg: var(--lq-muted-fg, #656d76); --lq-sched-border: var(--lq-border, #d8dee4); --lq-sched-header-bg: var(--lq-header-bg, #f6f8fa); --lq-sched-header-fg: var(--lq-header-fg, #1f2328); --lq-sched-row-alt: var(--lq-row-alt, #fafbfc); --lq-sched-row-hover: var(--lq-row-hover, #f0f4f8); --lq-sched-accent: var(--lq-accent, #2563eb); --lq-sched-selection-bg: var(--lq-selection-bg, rgba(37, 99, 235, 0.12)); --lq-sched-focus-ring: var(--lq-focus-ring, #2563eb); --lq-sched-radius: var(--lq-radius, 6px); --lq-sched-tick-line: color-mix(in srgb, var(--lq-sched-border) 55%, transparent); --lq-sched-major-line: var(--lq-sched-border); --lq-sched-row-line: color-mix(in srgb, var(--lq-sched-border) 70%, transparent); --lq-sched-nonworking-bg: color-mix(in srgb, var(--lq-sched-fg) 5%, transparent); --lq-sched-now-color: #dc2626; --lq-sched-invalid-color: #dc2626; --lq-sched-event-text: var(--lq-sched-fg); position: relative; box-sizing: border-box; height: var(--lq-sched-height, 100%); min-height: 240px; overflow: hidden; font-family: var(--lq-sched-font-family); font-size: var(--lq-sched-font-size); color: var(--lq-sched-fg); background: var(--lq-sched-bg); border: 1px solid var(--lq-sched-border); border-radius: var(--lq-sched-radius); } .lq-sched.lq-theme-light { --lq-fg: #1f2328; --lq-bg: #ffffff; --lq-muted-fg: #656d76; --lq-border: #d8dee4; --lq-header-bg: #f6f8fa; --lq-header-fg: #1f2328; --lq-row-alt: #fafbfc; --lq-row-hover: #f0f4f8; --lq-accent: #2563eb; --lq-selection-bg: rgba(37, 99, 235, 0.12); --lq-focus-ring: #2563eb; } .lq-sched.lq-theme-dark, .lq-theme-dark .lq-sched:not(.lq-theme-light) { --lq-fg: #e6edf3; --lq-bg: #0d1117; --lq-muted-fg: #9198a1; --lq-border: #30363d; --lq-header-bg: #161b22; --lq-header-fg: #e6edf3; --lq-row-alt: #11161d; --lq-row-hover: #1c2330; --lq-accent: #4c8dff; --lq-selection-bg: rgba(76, 141, 255, 0.2); --lq-focus-ring: #79a8ff; --lq-sched-now-color: #f87171; --lq-sched-invalid-color: #f87171; color-scheme: dark; } @media (prefers-color-scheme: dark) { .lq-sched.lq-theme-auto { --lq-fg: #e6edf3; --lq-bg: #0d1117; --lq-muted-fg: #9198a1; --lq-border: #30363d; --lq-header-bg: #161b22; --lq-header-fg: #e6edf3; --lq-row-alt: #11161d; --lq-row-hover: #1c2330; --lq-accent: #4c8dff; --lq-selection-bg: rgba(76, 141, 255, 0.2); --lq-focus-ring: #79a8ff; --lq-sched-now-color: #f87171; --lq-sched-invalid-color: #f87171; color-scheme: dark; } } .lq-sched *, .lq-sched *::before, .lq-sched *::after { box-sizing: border-box; } .lq-sched-scroller { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; outline: none; } .lq-sched-scroller:focus-visible { box-shadow: inset 0 0 0 2px var(--lq-sched-focus-ring); } .lq-sched-head { position: sticky; top: 0; z-index: 4; display: flex; width: calc(var(--lq-sched-resource-width) + var(--lq-sched-timeline-width)); height: var(--lq-sched-header-height); background: var(--lq-sched-header-bg); color: var(--lq-sched-header-fg); } .lq-sched-corner { position: sticky; inset-inline-start: 0; z-index: 2; display: flex; align-items: flex-end; flex: none; width: var(--lq-sched-resource-width); height: 100%; overflow: hidden; background: var(--lq-sched-header-bg); border-inline-end: 1px solid var(--lq-sched-border); border-bottom: 1px solid var(--lq-sched-border); } .lq-sched-colhead { flex: none; height: var(--lq-sched-header-row-height); padding: 0 10px; overflow: hidden; font-weight: 600; line-height: var(--lq-sched-header-row-height); white-space: nowrap; text-overflow: ellipsis; } .lq-sched-colhead:last-child, .lq-sched-cell:last-child { flex: 1 1 auto; min-width: 0; } .lq-sched-timehead { position: relative; flex: none; width: var(--lq-sched-timeline-width); height: 100%; border-bottom: 1px solid var(--lq-sched-border); } .lq-sched-hrow { position: absolute; inset-inline-start: 0; width: 100%; height: var(--lq-sched-header-row-height); } .lq-sched-hrow + .lq-sched-hrow { border-top: 1px solid var(--lq-sched-row-line); } .lq-sched-hcell { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; overflow: clip; border-inline-end: 1px solid var(--lq-sched-row-line); white-space: nowrap; font-size: 12px; } .lq-sched-hrow:last-child .lq-sched-hcell { color: var(--lq-sched-muted-fg); } .lq-sched-hlabel { position: sticky; inset-inline-start: var(--lq-sched-resource-width); padding: 0 6px; overflow: hidden; text-overflow: ellipsis; } .lq-sched-main { position: relative; display: flex; width: calc(var(--lq-sched-resource-width) + var(--lq-sched-timeline-width)); height: var(--lq-sched-body-height); } .lq-sched-pane { position: sticky; inset-inline-start: 0; z-index: 3; flex: none; width: var(--lq-sched-resource-width); height: 100%; overflow: hidden; background: var(--lq-sched-bg); border-inline-end: 1px solid var(--lq-sched-border); } .lq-sched-res { position: absolute; inset-inline-start: 0; inset-inline-end: 0; display: flex; align-items: center; border-bottom: 1px solid var(--lq-sched-row-line); outline: none; } .lq-sched-res:focus-visible { box-shadow: inset 0 0 0 2px var(--lq-sched-focus-ring); } .lq-sched-res--group { font-weight: 600; background: var(--lq-sched-row-alt); } .lq-sched-cell { display: flex; align-items: center; flex: none; height: 100%; padding: 0 10px; overflow: hidden; white-space: nowrap; } .lq-sched-cell-text { overflow: hidden; text-overflow: ellipsis; } .lq-sched-swatch { flex: none; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--lq-sched-resource-color); } .lq-sched-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; margin-inline: -4px 4px; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; cursor: pointer; } .lq-sched-toggle::before { content: ""; width: 0; height: 0; border-inline-start: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; } .lq-sched-toggle[aria-expanded="true"]::before { transform: rotate(90deg); } .lq-sched-toggle:focus-visible { outline: 2px solid var(--lq-sched-focus-ring); } .lq-sched-toggle-spacer { flex: none; width: 18px; margin-inline: -4px 4px; } .lq-sched-avatar { --lq-sched-avatar-tint: var(--lq-sched-resource-color, var(--lq-sched-accent)); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; margin-inline-end: 8px; border: 1px solid color-mix(in srgb, var(--lq-sched-avatar-tint) 55%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--lq-sched-avatar-tint) 18%, var(--lq-sched-bg)); color: var(--lq-sched-fg); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; } .lq-sched-splitter { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--lq-sched-resource-width); z-index: 6; width: 10px; margin-inline-start: -6px; cursor: col-resize; touch-action: none; outline: none; } .lq-sched-splitter::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 4px; width: 2px; background: transparent; } .lq-sched-splitter:hover::after, .lq-sched-splitter:focus-visible::after, .lq-sched--splitting .lq-sched-splitter::after { background: var(--lq-sched-accent); } .lq-sched--splitting, .lq-sched--splitting * { cursor: col-resize; user-select: none; -webkit-user-select: none; } .lq-sched-pane-toggle { position: absolute; top: 0; inset-inline-start: 0; z-index: 6; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--lq-sched-resource-width) - 1px); min-width: 44px; height: calc(var(--lq-sched-header-height) - 1px); min-height: 44px; padding: 0; border: 0; background: none; color: var(--lq-sched-header-fg); font: inherit; cursor: pointer; } .lq-sched-pane-toggle[hidden] { display: none; } .lq-sched-pane-toggle::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateX(2px) rotate(45deg); } .lq-sched-pane-toggle[aria-expanded="false"]::before { transform: translateX(-2px) rotate(-135deg); } .lq-sched[dir="rtl"] .lq-sched-pane-toggle::before { scale: -1 1; } .lq-sched-pane-toggle:focus-visible { outline: 2px solid var(--lq-sched-focus-ring); outline-offset: -2px; } .lq-sched--compact .lq-sched-colhead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } .lq-sched--compact .lq-sched-hcell { font-size: 11px; } .lq-sched--pane-collapsed .lq-sched-res .lq-sched-cell-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } .lq-sched--pane-collapsed .lq-sched-avatar { margin-inline-end: 0; } .lq-sched--pane-collapsed .lq-sched-toggle-spacer { display: none; } .lq-sched-body { position: relative; flex: none; -webkit-touch-callout: none; width: var(--lq-sched-timeline-width); height: 100%; background-image: linear-gradient(to left, var(--lq-sched-tick-line) 1px, transparent 1px); background-size: var(--lq-sched-tick-width) 100%; } .lq-sched[dir="rtl"] .lq-sched-body { background-image: linear-gradient(to right, var(--lq-sched-tick-line) 1px, transparent 1px); background-position: right top; } .lq-sched[dir="rtl"] .lq-sched-toggle::before { scale: -1 1; } .lq-sched-bg { position: absolute; inset: 0; pointer-events: none; } .lq-sched-shade { position: absolute; top: 0; bottom: 0; background: var(--lq-sched-nonworking-bg); } .lq-sched-major { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--lq-sched-major-line); } .lq-sched-lane { position: absolute; inset-inline-start: 0; width: 100%; border-bottom: 1px solid var(--lq-sched-row-line); } .lq-sched-lane--group { background: color-mix(in srgb, var(--lq-sched-row-alt) 70%, transparent); } .lq-sched-now, .lq-sched-now-head { position: absolute; top: 0; bottom: 0; z-index: 2; width: 2px; margin-inline-start: -1px; background: var(--lq-sched-now-color); pointer-events: none; } .lq-sched-now-head { top: auto; height: 8px; } .lq-sched-event { --lq-sched-event-tint: var(--lq-sched-event-color, var(--lq-sched-accent)); position: absolute; display: flex; align-items: center; min-width: 3px; padding-block: 0; padding-inline: 7px 8px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--lq-sched-event-tint) 45%, transparent); border-inline-start: 3px solid var(--lq-sched-event-tint); border-radius: 4px; background: color-mix(in srgb, var(--lq-sched-event-tint) 16%, var(--lq-sched-bg)); color: var(--lq-sched-event-text); font-size: 12px; line-height: 1.25; white-space: nowrap; cursor: pointer; user-select: none; -webkit-user-select: none; outline: none; } .lq-sched-event--draggable { cursor: grab; } .lq-sched-event:hover { z-index: 1; background: color-mix(in srgb, var(--lq-sched-event-tint) 24%, var(--lq-sched-bg)); } .lq-sched-event:focus-visible { z-index: 2; outline: 2px solid var(--lq-sched-focus-ring); outline-offset: 1px; } .lq-sched-event--selected { z-index: 1; box-shadow: 0 0 0 2px var(--lq-sched-event-tint); } .lq-sched-event--clip-start { border-inline-start-style: dashed; border-start-start-radius: 0; border-end-start-radius: 0; } .lq-sched-event--clip-end { border-start-end-radius: 0; border-end-end-radius: 0; } .lq-sched-event--dragging { opacity: 0.35; } .lq-sched-event-content { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .lq-sched-event-title { font-weight: 600; } .lq-sched-event--narrow { padding: 0; } .lq-sched-event--narrow .lq-sched-event-content { visibility: hidden; } .lq-sched-handle { position: absolute; top: 0; bottom: 0; z-index: 1; width: 7px; cursor: ew-resize; touch-action: none; } .lq-sched-handle--start { inset-inline-start: -3px; } .lq-sched-handle--end { inset-inline-end: 0; } @media (pointer: coarse) { .lq-sched-event:not(.lq-sched-event--selected) .lq-sched-handle { display: none; } } @media (any-pointer: coarse) { .lq-sched-event--selected { overflow: visible; } .lq-sched-event--selected .lq-sched-handle { top: 50%; bottom: auto; width: 44px; height: 44px; margin-top: -22px; } .lq-sched-event--selected .lq-sched-handle--start { inset-inline-start: -22px; } .lq-sched-event--selected .lq-sched-handle--end { inset-inline-end: -22px; } .lq-sched-event--selected .lq-sched-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--lq-sched-event-tint); border-radius: 50%; background: var(--lq-sched-bg); } } .lq-sched-ghost { z-index: 5; opacity: 0.92; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); } .lq-sched-ghost--invalid { --lq-sched-event-tint: var(--lq-sched-invalid-color); cursor: not-allowed; } .lq-sched-proxy { position: absolute; z-index: 5; border: 1px dashed var(--lq-sched-accent); border-radius: 4px; background: var(--lq-sched-selection-bg); pointer-events: none; } .lq-sched--dragging, .lq-sched--dragging * { cursor: grabbing; } .lq-sched--resizing, .lq-sched--resizing * { cursor: ew-resize; } .lq-sched--readonly .lq-sched-event { cursor: default; } .lq-sched-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } @media (prefers-reduced-motion: no-preference) { .lq-sched-event { transition: background-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease; } .lq-sched-toggle::before { transition: transform 0.12s ease; } } @media (forced-colors: active) { .lq-sched-event { border: 1px solid CanvasText; } .lq-sched-event--selected { outline: 2px solid Highlight; } .lq-sched :focus-visible, .lq-sched-splitter:focus-visible::after { outline: 2px solid Highlight; outline-offset: -2px; } } `
```

### VIEW_PRESETS

Kind: const. Import from `@birchui/scheduler`.

```ts
const VIEW_PRESETS: Readonly<Record<ViewPresetName, ViewPreset>>
```

### DropContext

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface DropContext<TEvent extends SchedulerEvent, TResource extends SchedulerResource>
```

| Property | Type | Description |
| --- | --- | --- |
| `event` | `TEvent` |  |
| `start` | `Date` |  |
| `end` | `Date` |  |
| `resourceId` | `string` |  |
| `resource` | `TResource \| undefined` |  |
| `previous` | `{ start: Date; end: Date; resourceId: string }` |  |

### EventInteraction

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface EventInteraction<TEvent extends SchedulerEvent, TResource extends SchedulerResource>
```

| Property | Type | Description |
| --- | --- | --- |
| `event` | `TEvent` |  |
| `resource` | `TResource \| undefined` |  |
| `domEvent` | `MouseEvent \| KeyboardEvent` |  |

### EventRenderContext

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface EventRenderContext<TResource extends SchedulerResource = SchedulerResource>
```

| Property | Type | Description |
| --- | --- | --- |
| `resource` | `TResource \| undefined` |  |
| `start` | `Date` |  |
| `end` | `Date` |  |
| `element` | `HTMLElement` |  |
| `lane` | `number` |  |
| `isSelected` | `boolean` |  |

### HeaderLabelContext

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface HeaderLabelContext
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly locale` | `string \| undefined` |  |
| `readonly timeZone` | `string` |  |
| `format` | `(date: Date, options: Intl.DateTimeFormatOptions) => string` |  |
| `formatRange` | `(start: Date, end: Date, options: Intl.DateTimeFormatOptions) => string` |  |

### HeaderRowConfig

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface HeaderRowConfig
```

| Property | Type | Description |
| --- | --- | --- |
| `unit` | `TimeUnit` |  |
| `increment?` | `number` |  |
| `format?` | `HeaderFormat` |  |

### ResizeContext

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface ResizeContext<TEvent extends SchedulerEvent, TResource extends SchedulerResource>
```

| Property | Type | Description |
| --- | --- | --- |
| `event` | `TEvent` |  |
| `start` | `Date` |  |
| `end` | `Date` |  |
| `edge` | `'start' \| 'end'` |  |
| `resource` | `TResource \| undefined` |  |
| `previous` | `{ start: Date; end: Date }` |  |

### ResponsiveOptions

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface ResponsiveOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `breakpoint?` | `number` |  |

### SchedulerApi

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface SchedulerApi<TEvent extends SchedulerEvent = SchedulerEvent, TResource extends SchedulerResource = SchedulerResource> extends Widget<SchedulerOptions<TEvent, TResource>, SchedulerEvents<TEvent, TResource>>
```

| Property | Type | Description |
| --- | --- | --- |
| `setEvents` | `(events: TEvent[]) => void` |  |
| `setResources` | `(resources: TResource[]) => void` |  |
| `addEvent` | `(event: TEvent) => void` |  |
| `updateEvent` | `(id: string, patch: Partial<TEvent>) => TEvent \| undefined` |  |
| `removeEvent` | `(id: string) => TEvent \| undefined` |  |
| `getEvents` | `() => TEvent[]` |  |
| `getEventById` | `(id: string) => TEvent \| undefined` |  |
| `getResources` | `() => TResource[]` |  |
| `getResourceById` | `(id: string) => TResource \| undefined` |  |
| `setRange` | `(start: DateInput, end: DateInput) => void` |  |
| `getRange` | `() => { start: Date; end: Date }` |  |
| `getVisibleRange` | `() => { start: Date; end: Date }` |  |
| `setViewPreset` | `(preset: ViewPresetName \| ViewPreset) => void` |  |
| `getViewPreset` | `() => ViewPreset` |  |
| `zoomIn` | `() => boolean` |  |
| `zoomOut` | `() => boolean` |  |
| `scrollToDate` | `(date: DateInput, align?: ScrollAlign) => void` |  |
| `scrollToResource` | `(id: string) => void` |  |
| `scrollToEvent` | `(id: string) => void` |  |
| `dateFromX` | `(x: number) => Date` |  |
| `xFromDate` | `(date: DateInput) => number` |  |
| `resourceFromY` | `(y: number) => TResource \| undefined` |  |
| `getRowBounds` | `(resourceId: string) => { top: number; height: number } \| undefined` |  |
| `getEventsInRange` | `(start: DateInput, end: DateInput, resourceId?: string) => TEvent[]` |  |
| `selectEvent` | `(id: string \| null) => void` |  |
| `getSelectedEvent` | `() => TEvent \| null` |  |
| `expandResource` | `(id: string) => void` |  |
| `collapseResource` | `(id: string) => void` |  |
| `refresh` | `() => void` |  |
| `undo` | `() => boolean` |  |
| `redo` | `() => boolean` |  |
| `canUndo` | `() => boolean` |  |
| `canRedo` | `() => boolean` |  |
| `clearHistory` | `() => void` |  |
| `readonly element` | `HTMLElement` | Inherited from Widget. |
| `update` | `(options: Partial<SchedulerOptions<TEvent, TResource>>) => void` | Inherited from Widget. |
| `on` | `<K extends keyof TEvents & string>(event: K, listener: Listener<TEvents[K]>) => () => void` | Inherited from Widget. |
| `destroy` | `() => void` | Inherited from Widget. |

### SchedulerColumn

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface SchedulerColumn<TResource extends SchedulerResource = SchedulerResource>
```

| Property | Type | Description |
| --- | --- | --- |
| `field` | `string` |  |
| `header` | `string` |  |
| `width?` | `number` |  |
| `renderer?` | `(resource: TResource) => string \| Node` |  |

### SchedulerEvent

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface SchedulerEvent
[key: string]: unknown
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `resourceId` | `string` |  |
| `start` | `DateInput` |  |
| `end` | `DateInput` |  |
| `title` | `string` |  |
| `color?` | `string` |  |
| `draggable?` | `boolean` |  |
| `resizable?` | `boolean \| 'start' \| 'end'` |  |
| `className?` | `string` |  |
| `rrule?` | `string` |  |
| `exdates?` | `DateInput[]` |  |
| `recurringEventId?` | `string` |  |
| `recurrenceId?` | `string` |  |

### SchedulerEventChange

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface SchedulerEventChange<TEvent extends SchedulerEvent = SchedulerEvent>
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `before` | `TEvent \| null` |  |
| `after` | `TEvent \| null` |  |

### SchedulerEvents

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface SchedulerEvents<TEvent extends SchedulerEvent = SchedulerEvent, TResource extends SchedulerResource = SchedulerResource>
```

| Property | Type | Description |
| --- | --- | --- |
| `ready` | `{ api: SchedulerApi<TEvent, TResource> }` |  |
| `eventClick` | `EventInteraction<TEvent, TResource>` |  |
| `eventDoubleClick` | `EventInteraction<TEvent, TResource>` |  |
| `eventContextMenu` | `EventInteraction<TEvent, TResource>` |  |
| `eventDrop` | `{ event: TEvent; start: Date; end: Date; resourceId: string; previous: { start: Date; end: Date; resourceId: string }; source: ChangeSource; occurrence?: SchedulerOccurrence<TEvent>; scope?: EditScope; }` |  |
| `eventResize` | `{ event: TEvent; start: Date; end: Date; edge: 'start' \| 'end'; previous: { start: Date; end: Date }; source: ChangeSource; occurrence?: SchedulerOccurrence<TEvent>; scope?: EditScope; }` |  |
| `eventCreate` | `{ start: Date; end: Date; resourceId: string; resource: TResource \| undefined }` |  |
| `eventRemove` | `{ event: TEvent; source: ChangeSource \| 'api'; occurrence?: SchedulerOccurrence<TEvent>; scope?: EditScope; }` |  |
| `resourceClick` | `{ resource: TResource; domEvent: MouseEvent }` |  |
| `resourceToggle` | `{ resource: TResource; isExpanded: boolean }` |  |
| `scheduleClick` | `{ date: Date; resourceId: string; resource: TResource; domEvent: MouseEvent }` |  |
| `rangeChanged` | `{ start: Date; end: Date }` |  |
| `viewPresetChanged` | `{ preset: ViewPreset; previous: ViewPreset }` |  |
| `viewportScroll` | `{ left: number; top: number; visibleStart: Date; visibleEnd: Date }` |  |
| `selectionChanged` | `{ selected: TEvent \| null; previous: TEvent \| null }` |  |
| `resourceWidthChanged` | `{ width: number; previous: number; source: ChangeSource }` |  |
| `historyChange` | `{ action: HistoryAction; kind: EditKind \| null; changes: SchedulerEventChange<TEvent>[]; canUndo: boolean; canRedo: boolean; }` |  |

### SchedulerOccurrence

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface SchedulerOccurrence<TEvent extends SchedulerEvent = SchedulerEvent>
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `occurrenceId` | `string` |  |
| `recurrenceId` | `string` |  |
| `start` | `Date` |  |
| `end` | `Date` |  |
| `event` | `TEvent` |  |

### SchedulerOptions

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface SchedulerOptions<TEvent extends SchedulerEvent = SchedulerEvent, TResource extends SchedulerResource = SchedulerResource>
```

| Property | Type | Description |
| --- | --- | --- |
| `resources` | `TResource[]` |  |
| `events?` | `TEvent[]` |  |
| `start` | `DateInput` |  |
| `end` | `DateInput` |  |
| `viewPreset?` | `ViewPresetName \| ViewPreset` |  |
| `zoomLevels?` | `(ViewPresetName \| ViewPreset)[]` |  |
| `fillWidth?` | `boolean` |  |
| `timeZone?` | `string` |  |
| `locale?` | `string` |  |
| `weekStartsOn?` | `Weekday` |  |
| `resourceColumns?` | `SchedulerColumn<TResource>[]` |  |
| `resourceWidth?` | `number` |  |
| `rowHeight?` | `number` |  |
| `barMargin?` | `number` |  |
| `headerRowHeight?` | `number` |  |
| `eventLayout?` | `EventLayoutMode` |  |
| `snap?` | `SnapSetting` |  |
| `readOnly?` | `boolean` |  |
| `createOnDrag?` | `boolean` |  |
| `workingTime?` | `WorkingTime \| null` |  |
| `weekendDays?` | `number[]` |  |
| `now?` | `DateInput` |  |
| `showNowLine?` | `boolean` |  |
| `eventRenderer?` | `(event: TEvent, context: EventRenderContext<TResource>) => string \| Node` |  |
| `tooltips?` | `boolean \| ((event: TEvent, resource: TResource \| undefined) => string)` |  |
| `validateDrop?` | `(context: DropContext<TEvent, TResource>) => boolean` |  |
| `validateResize?` | `(context: ResizeContext<TEvent, TResource>) => boolean` |  |
| `theme?` | `SchedulerTheme` |  |
| `height?` | `number \| string` |  |
| `overscanRows?` | `number` |  |
| `overscanPx?` | `number` |  |
| `ariaLabel?` | `string` |  |
| `licenseKey?` | `string` |  |
| `injectStyles?` | `boolean` |  |
| `responsive?` | `boolean \| ResponsiveOptions` |  |
| `undoRedo?` | `boolean \| UndoRedoOptions` |  |
| `infiniteScroll?` | `boolean` |  |
| `localeText?` | `LocaleTextInput` |  |
| `rtl?` | `boolean` |  |

### SchedulerResource

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface SchedulerResource
[key: string]: unknown
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `name` | `string` |  |
| `parentId?` | `string \| null` |  |
| `color?` | `string` |  |
| `expanded?` | `boolean` |  |

### UndoRedoOptions

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface UndoRedoOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `limit?` | `number` |  |

### ViewPreset

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface ViewPreset
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `tickUnit` | `TimeUnit` |  |
| `tickIncrement?` | `number` |  |
| `tickWidth` | `number` |  |
| `headers` | `HeaderRowConfig[]` |  |
| `compactHeaders?` | `HeaderRowConfig[]` |  |
| `snap?` | `number \| 'tick'` |  |

### WorkingTime

Kind: interface. Import from `@birchui/scheduler`.

```ts
interface WorkingTime
```

| Property | Type | Description |
| --- | --- | --- |
| `days` | `number[]` |  |
| `startHour` | `number` |  |
| `endHour` | `number` |  |

### ChangeSource

Kind: type. Import from `@birchui/scheduler`.

```ts
type ChangeSource = 'pointer' | 'keyboard';
```

### DateInput

Kind: type. Import from `@birchui/scheduler`.

```ts
type DateInput = Date | string | number;
```

### EditKind

Kind: type. Import from `@birchui/scheduler`.

```ts
type EditKind = 'move' | 'resize' | 'add' | 'update' | 'remove';
```

### EditScope

Kind: type. Import from `@birchui/scheduler`.

```ts
type EditScope = 'this' | 'all';
```

### EventLayoutMode

Kind: type. Import from `@birchui/scheduler`.

```ts
type EventLayoutMode = 'stack' | 'overlap' | 'pack';
```

### HeaderFormat

Kind: type. Import from `@birchui/scheduler`.

```ts
type HeaderFormat =
  Intl.DateTimeFormatOptions | ((start: Date, end: Date, context: HeaderLabelContext) => string);
```

### HistoryAction

Kind: type. Import from `@birchui/scheduler`.

```ts
type HistoryAction = 'record' | 'undo' | 'redo' | 'clear';
```

### SchedulerTheme

Kind: type. Import from `@birchui/scheduler`.

```ts
type SchedulerTheme = 'light' | 'dark' | 'auto';
```

### ScrollAlign

Kind: type. Import from `@birchui/scheduler`.

```ts
type ScrollAlign = 'start' | 'center' | 'end';
```

### SnapSetting

Kind: type. Import from `@birchui/scheduler`.

```ts
type SnapSetting = number | 'tick' | false;
```

### TimeUnit

Kind: type. Import from `@birchui/scheduler`.

```ts
type TimeUnit = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
```

### ViewPresetName

Kind: type. Import from `@birchui/scheduler`.

```ts
type ViewPresetName =
  'minuteAndHour' | 'hourAndDay' | 'dayAndWeek' | 'dayAndMonth' | 'weekAndMonth' | 'monthAndYear';
```

### Weekday

Kind: type. Import from `@birchui/scheduler`.

```ts
type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
```

## @birchui/scheduler/engine

### addUnits

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function addUnits(ts: number, unit: TimeUnit, amount: number, zone: TimeZone): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `ts` | `number` |  |
| `unit` | `TimeUnit` |  |
| `amount` | `number` |  |
| `zone` | `TimeZone` |  |

### buildHeaderRow

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function buildHeaderRow(axis: TimeAxis, row: HeaderRowConfig, locale: string | undefined, context: HeaderLabelContext = createLabelContext(locale, axis.zone.id)): HeaderCell[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `axis` | `TimeAxis` |  |
| `row` | `HeaderRowConfig` |  |
| `locale` | `string \| undefined` |  |
| `context?` | `HeaderLabelContext` |  |

### buildHeaderRows

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function buildHeaderRows(axis: TimeAxis, rows: readonly HeaderRowConfig[], locale: string | undefined): HeaderCell[][]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `axis` | `TimeAxis` |  |
| `rows` | `readonly HeaderRowConfig[]` |  |
| `locale` | `string \| undefined` |  |

### ceilTo

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function ceilTo(ts: number, unit: TimeUnit, increment: number, zone: TimeZone, weekStartsOn: Weekday = 1): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `ts` | `number` |  |
| `unit` | `TimeUnit` |  |
| `increment` | `number` |  |
| `zone` | `TimeZone` |  |
| `weekStartsOn?` | `Weekday` |  |

### createLabelContext

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function createLabelContext(locale: string | undefined, timeZone: string): HeaderLabelContext
```

| Parameter | Type | Description |
| --- | --- | --- |
| `locale` | `string \| undefined` |  |
| `timeZone` | `string` |  |

### createRowMetrics

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function createRowMetrics(heights: ArrayLike<number>): RowMetrics
```

| Parameter | Type | Description |
| --- | --- | --- |
| `heights` | `ArrayLike<number>` |  |

### createTimeAxis

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function createTimeAxis(config: TimeAxisConfig): TimeAxis
```

| Parameter | Type | Description |
| --- | --- | --- |
| `config` | `TimeAxisConfig` |  |

### describePresetProblem

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function describePresetProblem(preset: unknown): string | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `preset` | `unknown` |  |

### describeTimeSpan

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function describeTimeSpan(start: number, end: number, locale: string | undefined, zone: TimeZone, tr: Translate = plainTranslate): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `start` | `number` |  |
| `end` | `number` |  |
| `locale` | `string \| undefined` |  |
| `zone` | `TimeZone` |  |
| `tr?` | `Translate` |  |

### floorTo

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function floorTo(ts: number, unit: TimeUnit, increment: number, zone: TimeZone, weekStartsOn: Weekday = 1): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `ts` | `number` |  |
| `unit` | `TimeUnit` |  |
| `increment` | `number` |  |
| `zone` | `TimeZone` |  |
| `weekStartsOn?` | `Weekday` |  |

### formatDate

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function formatDate(ts: number | Date, locale: string | undefined, timeZone: string, options: Intl.DateTimeFormatOptions): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `ts` | `number \| Date` |  |
| `locale` | `string \| undefined` |  |
| `timeZone` | `string` |  |
| `options` | `Intl.DateTimeFormatOptions` |  |

### formatDateRange

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function formatDateRange(start: number | Date, end: number | Date, locale: string | undefined, timeZone: string, options: Intl.DateTimeFormatOptions): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `start` | `number \| Date` |  |
| `end` | `number \| Date` |  |
| `locale` | `string \| undefined` |  |
| `timeZone` | `string` |  |
| `options` | `Intl.DateTimeFormatOptions` |  |

### formatHeaderLabel

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function formatHeaderLabel(format: HeaderFormat | undefined, unit: TimeUnit, start: number, end: number, context: HeaderLabelContext): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `format` | `HeaderFormat \| undefined` |  |
| `unit` | `TimeUnit` |  |
| `start` | `number` |  |
| `end` | `number` |  |
| `context` | `HeaderLabelContext` |  |

### getDateFormat

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function getDateFormat(locale: string | undefined, timeZone: string, options: Intl.DateTimeFormatOptions): Intl.DateTimeFormat
```

| Parameter | Type | Description |
| --- | --- | --- |
| `locale` | `string \| undefined` |  |
| `timeZone` | `string` |  |
| `options` | `Intl.DateTimeFormatOptions` |  |

### isSupportedLocale

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function isSupportedLocale(locale: string): boolean
```

| Parameter | Type | Description |
| --- | --- | --- |
| `locale` | `string` |  |

### isTimeUnit

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function isTimeUnit(value: unknown): value is TimeUnit
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### isViewPresetName

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function isViewPresetName(value: unknown): value is ViewPresetName
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### localTimeZone

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function localTimeZone(): string
```

### lowerBound

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function lowerBound(sorted: ArrayLike<number>, value: number, from = 0, to = sorted.length): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `sorted` | `ArrayLike<number>` |  |
| `value` | `number` |  |
| `from?` | `unknown` |  |
| `to?` | `unknown` |  |

### mod

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function mod(value: number, divisor: number): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `number` |  |
| `divisor` | `number` |  |

### nextBoundary

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function nextBoundary(ts: number, unit: TimeUnit, increment: number, zone: TimeZone, weekStartsOn: Weekday = 1): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `ts` | `number` |  |
| `unit` | `TimeUnit` |  |
| `increment` | `number` |  |
| `zone` | `TimeZone` |  |
| `weekStartsOn?` | `Weekday` |  |

### nonWorkingSpans

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function nonWorkingSpans(from: number, to: number, zone: TimeZone, options: ShadingOptions): TimeSpan[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `from` | `number` |  |
| `to` | `number` |  |
| `zone` | `TimeZone` |  |
| `options` | `ShadingOptions` |  |

### presetMsPerPixel

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function presetMsPerPixel(preset: ViewPreset): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `preset` | `ViewPreset` |  |

### resolvePreset

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function resolvePreset(preset: ViewPresetName | ViewPreset): ViewPreset
```

| Parameter | Type | Description |
| --- | --- | --- |
| `preset` | `ViewPresetName \| ViewPreset` |  |

### snapMove

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function snapMove(originalStart: number, proposedStart: number, context: SnapContext): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `originalStart` | `number` |  |
| `proposedStart` | `number` |  |
| `context` | `SnapContext` |  |

### snapStepMs

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function snapStepMs(setting: SnapSetting): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `setting` | `SnapSetting` |  |

### snapTime

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function snapTime(time: number, context: SnapContext, mode: SnapMode = 'round'): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `time` | `number` |  |
| `context` | `SnapContext` |  |
| `mode?` | `SnapMode` |  |

### snapToStep

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function snapToStep(time: number, step: number, zone: TimeZone, mode: SnapMode = 'round'): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `time` | `number` |  |
| `step` | `number` |  |
| `zone` | `TimeZone` |  |
| `mode?` | `SnapMode` |  |

### stepTime

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function stepTime(time: number, direction: 1 | -1, context: SnapContext): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `time` | `number` |  |
| `direction` | `1 \| -1` |  |
| `context` | `SnapContext` |  |

### tickBoundaries

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function tickBoundaries(start: number, end: number, unit: TimeUnit, increment: number, zone: TimeZone, weekStartsOn: Weekday = 1, limit: number = MAX_TICKS): number[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `start` | `number` |  |
| `end` | `number` |  |
| `unit` | `TimeUnit` |  |
| `increment` | `number` |  |
| `zone` | `TimeZone` |  |
| `weekStartsOn?` | `Weekday` |  |
| `limit?` | `number` |  |

### toTime

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function toTime(input: unknown, zone: TimeZone): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `input` | `unknown` |  |
| `zone` | `TimeZone` |  |

### upperBound

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function upperBound(sorted: ArrayLike<number>, value: number, from = 0, to = sorted.length): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `sorted` | `ArrayLike<number>` |  |
| `value` | `number` |  |
| `from?` | `unknown` |  |
| `to?` | `unknown` |  |

### visibleCellRange

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function visibleCellRange(cells: readonly HeaderCell[], fromX: number, toX: number): [number, number]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `cells` | `readonly HeaderCell[]` |  |
| `fromX` | `number` |  |
| `toX` | `number` |  |

### withTickWidth

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function withTickWidth(axis: TimeAxis, tickWidth: number): TimeAxis
```

| Parameter | Type | Description |
| --- | --- | --- |
| `axis` | `TimeAxis` |  |
| `tickWidth` | `number` |  |

### zoomLevelIndex

Kind: function. Import from `@birchui/scheduler/engine`.

```ts
function zoomLevelIndex(levels: readonly ViewPreset[], current: ViewPreset): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `levels` | `readonly ViewPreset[]` |  |
| `current` | `ViewPreset` |  |

### TimeZone

Kind: class. Import from `@birchui/scheduler/engine`.

```ts
class TimeZone
new TimeZone()
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly id` | `string` |  |
| `offset` | `(ts: number) => number` |  |
| `wall` | `(ts: number) => number` |  |
| `toWall` | `(ts: number) => WallClock` |  |
| `weekday` | `(ts: number) => number` |  |
| `fromWall` | `(year: number, month: number, day = 1, hour = 0, minute = 0, second = 0, millisecond = 0) => number` |  |
| `fromWallMs` | `(local: number) => number` |  |

### DAY

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const DAY: 86400000 = 86_400_000
```

### DEFAULT_ZOOM_LEVELS

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const DEFAULT_ZOOM_LEVELS: readonly ViewPresetName[]
```

### HOUR

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const HOUR: 3600000 = 3_600_000
```

### MAX_TICKS

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const MAX_TICKS: 200000 = 200_000
```

### MINUTE

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const MINUTE: 60000 = 60_000
```

### SECOND

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const SECOND: 1000 = 1_000
```

### TIME_UNITS

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const TIME_UNITS: readonly TimeUnit[]
```

### UNIT_DURATION

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const UNIT_DURATION: Readonly<Record<TimeUnit, number>>
```

### VIEW_PRESETS

Kind: const. Import from `@birchui/scheduler/engine`.

```ts
const VIEW_PRESETS: Readonly<Record<ViewPresetName, ViewPreset>>
```

### HeaderCell

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface HeaderCell
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly start` | `number` |  |
| `readonly end` | `number` |  |
| `readonly x` | `number` |  |
| `readonly width` | `number` |  |
| `readonly label` | `string` |  |

### HeaderLabelContext

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface HeaderLabelContext
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly locale` | `string \| undefined` |  |
| `readonly timeZone` | `string` |  |
| `format` | `(date: Date, options: Intl.DateTimeFormatOptions) => string` |  |
| `formatRange` | `(start: Date, end: Date, options: Intl.DateTimeFormatOptions) => string` |  |

### HeaderRowConfig

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface HeaderRowConfig
```

| Property | Type | Description |
| --- | --- | --- |
| `unit` | `TimeUnit` |  |
| `increment?` | `number` |  |
| `format?` | `HeaderFormat` |  |

### RowMetrics

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface RowMetrics
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly count` | `number` |  |
| `readonly totalHeight` | `number` |  |
| `top` | `(index: number) => number` |  |
| `height` | `(index: number) => number` |  |
| `indexAt` | `(y: number) => number` |  |
| `range` | `(fromY: number, toY: number, overscan?: number) => [number, number]` |  |

### ShadingOptions

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface ShadingOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `workingTime?` | `WorkingTime \| null` |  |
| `weekendDays?` | `readonly number[] \| null` |  |
| `includeHours?` | `boolean` |  |
| `maxDays?` | `number` |  |

### SnapContext

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface SnapContext
```

| Property | Type | Description |
| --- | --- | --- |
| `axis` | `TimeAxis` |  |
| `setting` | `SnapSetting` |  |

### TimeAxis

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface TimeAxis
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly start` | `number` |  |
| `readonly end` | `number` |  |
| `readonly unit` | `TimeUnit` |  |
| `readonly increment` | `number` |  |
| `readonly tickWidth` | `number` |  |
| `readonly tickCount` | `number` |  |
| `readonly totalWidth` | `number` |  |
| `readonly zone` | `TimeZone` |  |
| `readonly weekStartsOn` | `Weekday` |  |
| `readonly boundaries` | `Float64Array` |  |
| `readonly isTruncated` | `boolean` |  |
| `tickIndexAt` | `(time: number) => number` |  |
| `xFromTime` | `(time: number) => number` |  |
| `timeFromX` | `(x: number) => number` |  |

### TimeAxisConfig

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface TimeAxisConfig
```

| Property | Type | Description |
| --- | --- | --- |
| `start` | `number` |  |
| `end` | `number` |  |
| `unit` | `TimeUnit` |  |
| `increment?` | `number` |  |
| `tickWidth` | `number` |  |
| `zone` | `TimeZone` |  |
| `weekStartsOn?` | `Weekday` |  |
| `maxTicks?` | `number` |  |

### TimeSpan

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface TimeSpan
```

| Property | Type | Description |
| --- | --- | --- |
| `start` | `number` |  |
| `end` | `number` |  |

### ViewPreset

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface ViewPreset
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `tickUnit` | `TimeUnit` |  |
| `tickIncrement?` | `number` |  |
| `tickWidth` | `number` |  |
| `headers` | `HeaderRowConfig[]` |  |
| `compactHeaders?` | `HeaderRowConfig[]` |  |
| `snap?` | `number \| 'tick'` |  |

### WallClock

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface WallClock
```

| Property | Type | Description |
| --- | --- | --- |
| `year` | `number` |  |
| `month` | `number` |  |
| `day` | `number` |  |
| `hour` | `number` |  |
| `minute` | `number` |  |
| `second` | `number` |  |
| `millisecond` | `number` |  |
| `weekday` | `number` |  |

### WorkingTime

Kind: interface. Import from `@birchui/scheduler/engine`.

```ts
interface WorkingTime
```

| Property | Type | Description |
| --- | --- | --- |
| `days` | `number[]` |  |
| `startHour` | `number` |  |
| `endHour` | `number` |  |

### HeaderFormat

Kind: type. Import from `@birchui/scheduler/engine`.

```ts
type HeaderFormat =
  Intl.DateTimeFormatOptions | ((start: Date, end: Date, context: HeaderLabelContext) => string);
```

### SnapMode

Kind: type. Import from `@birchui/scheduler/engine`.

```ts
type SnapMode = 'round' | 'floor' | 'ceil';
```

### SnapSetting

Kind: type. Import from `@birchui/scheduler/engine`.

```ts
type SnapSetting = number | 'tick' | false;
```

### TimeUnit

Kind: type. Import from `@birchui/scheduler/engine`.

```ts
type TimeUnit = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
```

### ViewPresetName

Kind: type. Import from `@birchui/scheduler/engine`.

```ts
type ViewPresetName =
  'minuteAndHour' | 'hourAndDay' | 'dayAndWeek' | 'dayAndMonth' | 'weekAndMonth' | 'monthAndYear';
```

### Weekday

Kind: type. Import from `@birchui/scheduler/engine`.

```ts
type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
```

## @birchui/scheduler/scheduler

### createScheduler

Kind: function. Import from `@birchui/scheduler/scheduler`.

```ts
function createScheduler<TEvent extends SchedulerEvent = SchedulerEvent, TResource extends SchedulerResource = SchedulerResource>(container: HTMLElement, options: SchedulerOptions<TEvent, TResource>): SchedulerApi<TEvent, TResource>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `container` | `HTMLElement` |  |
| `options` | `SchedulerOptions<TEvent, TResource>` |  |

### SCHEDULER_EVENT_NAMES

Kind: const. Import from `@birchui/scheduler/scheduler`.

```ts
const SCHEDULER_EVENT_NAMES: readonly (keyof SchedulerEvents)[]
```

### schedulerDefinition

Kind: const. Import from `@birchui/scheduler/scheduler`.

```ts
const schedulerDefinition: WidgetDefinition<SchedulerOptions<SchedulerEvent, SchedulerResource>, SchedulerEvents<SchedulerEvent, SchedulerResource>, SchedulerApi<SchedulerEvent, SchedulerResource>>
```
