@tensor_1/react 2.62.0 → 2.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import { memo, useCallback, useEffect, useId, useMemo, useRef, useState } from "react";
3
+ import { memo, useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
4
4
  import { zonedDateKey, zonedHourSlots, zonedTimeOfDay } from "../calendar-model.js";
5
5
  import { layoutDaySpans, layoutTimeGridDay, placesInTopLane, proposeMove } from "../scheduling-calendar-model.js";
6
6
  import { fillLabel } from "../fill-label.js";
@@ -9,6 +9,12 @@ const MINUTES_PER_HOUR = 60;
9
9
  const LINES_PER_HOUR = 3;
10
10
  const DRAG_THRESHOLD = 4;
11
11
  const DEFAULT_STEP = 15;
12
+ const DEFAULT_OPEN_HOUR = 8;
13
+ const useIsomorphicLayoutEffect = typeof document !== "undefined" ? useLayoutEffect : useEffect;
14
+ const hoursOf = (time) => {
15
+ const match = time === void 0 ? null : /^([01]\d|2[0-3]):([0-5]\d)$/.exec(time);
16
+ return match ? Number(match[1]) + Number(match[2]) / MINUTES_PER_HOUR : null;
17
+ };
12
18
  const vars = (values) => values;
13
19
  const linesFor = (segment) => Math.max(0, Math.floor(segment.lengthHours * LINES_PER_HOUR - 0.25));
14
20
  const slotSignature = (slots) => slots.map((slot) => `${slot.label}${slot.offsetLabel ?? ""}`).join(" ");
@@ -98,6 +104,7 @@ function SchedulingTimeGrid({
98
104
  topLaneCap,
99
105
  windowLaneCap,
100
106
  maxLanes,
107
+ scrollToTime,
101
108
  emptyNote,
102
109
  nothingToShow
103
110
  }) {
@@ -142,6 +149,10 @@ function SchedulingTimeGrid({
142
149
  const entryById = useMemo(() => new Map(entries.map((entry) => [entry.id, entry])), [entries]);
143
150
  const overlayById = useMemo(() => new Map(overlays.map((overlay) => [overlay.id, overlay])), [overlays]);
144
151
  const columns = useMemo(() => days.map((date) => layoutTimeGridDay(entries, date, timeZone, { ...laneOptions, maxLanes: lanes })), [days, entries, timeZone, laneOptions, lanes]);
152
+ const hiddenByWidth = useMemo(() => {
153
+ if (lanes >= maxLanes) return days.map(() => 0);
154
+ return days.map((date, index) => Math.max(0, columns[index].hidden.length - layoutTimeGridDay(entries, date, timeZone, { ...laneOptions, maxLanes }).hidden.length));
155
+ }, [days, entries, timeZone, laneOptions, lanes, maxLanes, columns]);
145
156
  const slots = useMemo(() => days.map((date) => zonedHourSlots(date, timeZone)), [days, timeZone]);
146
157
  const top = useMemo(() => layoutDaySpans(entries.filter((entry) => placesInTopLane(entry, timeZone, laneOptions)), days, { timeZone, laneCap: Math.max(0, topLaneCap) }), [entries, days, timeZone, laneOptions, topLaneCap]);
147
158
  const drawable = useMemo(() => overlays.filter((overlay) => new Date(overlay.end).getTime() >= new Date(overlay.start).getTime()), [overlays]);
@@ -416,6 +427,49 @@ function SchedulingTimeGrid({
416
427
  };
417
428
  const nowAt = now === void 0 ? null : new Date(now).getTime();
418
429
  const nowColumn = nowAt === null || Number.isNaN(nowAt) ? -1 : days.indexOf(zonedDateKey(new Date(nowAt), timeZone));
430
+ const openHour = useMemo(() => {
431
+ const given = hoursOf(scrollToTime);
432
+ if (given !== null) return Math.floor(given);
433
+ let first = DEFAULT_OPEN_HOUR;
434
+ for (const column of columns) for (const segment of column.segments) if (segment.part !== "continuation") first = Math.min(first, segment.offsetHours);
435
+ return Math.max(0, Math.floor(first));
436
+ }, [scrollToTime, columns]);
437
+ const scrollKey = `${view}|${days[0]}|${days.length}`;
438
+ const opened = useRef({ key: "", top: null, byUser: false });
439
+ useIsomorphicLayoutEffect(() => {
440
+ const root = rootRef.current;
441
+ if (!root) return;
442
+ const state = opened.current;
443
+ if (state.key !== scrollKey) {
444
+ state.key = scrollKey;
445
+ state.byUser = false;
446
+ }
447
+ if (state.byUser) return;
448
+ const height = root.querySelector("[data-tg-column]")?.getBoundingClientRect().height ?? 0;
449
+ const hours = columns[0]?.dayHours ?? 0;
450
+ if (!(height > 0) || !(hours > 0)) return;
451
+ root.scrollTop = Math.round(openHour * (height / hours));
452
+ state.top = root.scrollTop;
453
+ }, [scrollKey, openHour, columns]);
454
+ useEffect(() => {
455
+ const root = rootRef.current;
456
+ if (!root) return void 0;
457
+ const byUser = () => {
458
+ opened.current.byUser = true;
459
+ };
460
+ const onScroll = () => {
461
+ const { top: top2 } = opened.current;
462
+ if (top2 !== null && Math.abs(root.scrollTop - top2) > 2) byUser();
463
+ };
464
+ root.addEventListener("wheel", byUser, { passive: true });
465
+ root.addEventListener("touchmove", byUser, { passive: true });
466
+ root.addEventListener("scroll", onScroll, { passive: true });
467
+ return () => {
468
+ root.removeEventListener("wheel", byUser);
469
+ root.removeEventListener("touchmove", byUser);
470
+ root.removeEventListener("scroll", onScroll);
471
+ };
472
+ }, []);
419
473
  const topHiddenOn = (date) => top.hidden.filter((id) => {
420
474
  const entry = entryById.get(id);
421
475
  return entry ? layoutDaySpans([entry], [date], { timeZone }).placed.length > 0 : false;
@@ -448,115 +502,120 @@ function SchedulingTimeGrid({
448
502
  }
449
503
  },
450
504
  children: [
451
- /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-head", children: [
452
- /* @__PURE__ */ jsx("div", { className: "uix-scheduling-calendar__tg-zone", children: fillLabel(labels.timeZone, { timeZone }) }),
453
- days.map((date, index) => {
454
- const info = dayInfo?.[date];
455
- const hiddenIds = dayInfo ? [] : [...columns[index].hidden, ...topHiddenOn(date)];
456
- const more = info ? info.overflowCount : hiddenIds.length;
457
- const moreText = fillLabel(labels.moreSpans, { count: more });
458
- const moreName = fillLabel(labels.moreEntriesLabel, { count: more, date: dateText(date, "day") });
459
- const headName = !info ? dateText(date, "day") : info.label ? fillLabel(labels.dayName, { date: dateText(date, "day"), label: info.label }) : `${dateText(date, "day")}, ${fillLabel(labels.dayCount, { count: info.count })}`;
460
- return /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-dayhead", role: "group", "aria-label": headName, "data-date": date, children: [
461
- /* @__PURE__ */ jsx(
505
+ /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-sticky", children: [
506
+ /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-head", children: [
507
+ /* @__PURE__ */ jsx("div", { className: "uix-scheduling-calendar__tg-zone", children: fillLabel(labels.timeZone, { timeZone }) }),
508
+ days.map((date, index) => {
509
+ const info = dayInfo?.[date];
510
+ const hiddenIds = dayInfo ? [] : [...columns[index].hidden, ...topHiddenOn(date)];
511
+ const more = info ? info.overflowCount + hiddenByWidth[index] : hiddenIds.length;
512
+ const moreText = fillLabel(labels.moreEntries, { count: more });
513
+ const moreName = fillLabel(labels.moreEntriesLabel, { count: more, date: dateText(date, "day") });
514
+ const headName = !info ? dateText(date, "day") : info.label ? fillLabel(labels.dayName, { date: dateText(date, "day"), label: info.label }) : `${dateText(date, "day")}, ${fillLabel(labels.dayCount, { count: info.count })}`;
515
+ return /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-dayhead", role: "group", "aria-label": headName, "data-date": date, "data-today": index === nowColumn || void 0, children: [
516
+ /* @__PURE__ */ jsx(
517
+ "button",
518
+ {
519
+ type: "button",
520
+ className: "uix-scheduling-calendar__date",
521
+ "data-calendar-date": date,
522
+ tabIndex: tabStop === date ? 0 : -1,
523
+ "aria-label": info?.label ? fillLabel(labels.dayName, { date: dateText(date, "day"), label: info.label }) : dateText(date, "day"),
524
+ onFocus: () => setActiveDay(date),
525
+ onKeyDown: (event) => onHeadKeyDown(event, date),
526
+ onClick: onSelectDate ? () => onSelectDate(date) : void 0,
527
+ children: dateText(date, "column")
528
+ }
529
+ ),
530
+ info && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__count", "aria-hidden": "true", children: fillLabel(labels.dayCount, { count: info.count }) }),
531
+ info?.markers && info.markers.length > 0 && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__markers", children: info.markers.map((marker) => /* @__PURE__ */ jsx("span", { children: renderMarker(marker, true) }, marker.id)) }),
532
+ more > 0 && (onShowMore ? /* @__PURE__ */ jsx("button", { type: "button", tabIndex: -1, className: "uix-scheduling-calendar__more", "aria-label": moreName, onClick: () => onShowMore(date, hiddenIds.map((id) => entryById.get(id)).filter(Boolean)), children: moreText }) : /* @__PURE__ */ jsxs("span", { className: "uix-scheduling-calendar__more", children: [
533
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: moreText }),
534
+ /* @__PURE__ */ jsx("span", { className: "uix-visually-hidden", children: moreName })
535
+ ] }))
536
+ ] }, date);
537
+ })
538
+ ] }),
539
+ (windowLanes > 0 || moreWindows > 0) && /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-strip", role: "group", "aria-label": labels.windows, style: vars({ "--uix-scheduling-calendar-lanes": Math.max(windowLanes, 1) + (moreWindows > 0 ? 1 : 0) }), children: [
540
+ strip.placed.map((placed) => {
541
+ const overlay = overlayById.get(placed.id);
542
+ if (!overlay) return null;
543
+ return /* @__PURE__ */ jsx(
462
544
  "button",
463
545
  {
464
546
  type: "button",
465
- className: "uix-scheduling-calendar__date",
466
- "data-calendar-date": date,
467
- tabIndex: tabStop === date ? 0 : -1,
468
- "aria-label": info?.label ? fillLabel(labels.dayName, { date: dateText(date, "day"), label: info.label }) : dateText(date, "day"),
469
- onFocus: () => setActiveDay(date),
470
- onKeyDown: (event) => onHeadKeyDown(event, date),
471
- onClick: onSelectDate ? () => onSelectDate(date) : void 0,
472
- children: dateText(date, "column")
473
- }
474
- ),
475
- info && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__count", "aria-hidden": "true", children: info.count }),
476
- info?.markers && info.markers.length > 0 && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__markers", children: info.markers.map((marker) => /* @__PURE__ */ jsx("span", { children: renderMarker(marker, true) }, marker.id)) }),
477
- more > 0 && (onShowMore ? /* @__PURE__ */ jsx("button", { type: "button", tabIndex: -1, className: "uix-scheduling-calendar__more", "aria-label": moreName, onClick: () => onShowMore(date, hiddenIds.map((id) => entryById.get(id)).filter(Boolean)), children: moreText }) : /* @__PURE__ */ jsxs("span", { className: "uix-scheduling-calendar__more", children: [
478
- /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: moreText }),
479
- /* @__PURE__ */ jsx("span", { className: "uix-visually-hidden", children: moreName })
480
- ] }))
481
- ] }, date);
482
- })
483
- ] }),
484
- (windowLanes > 0 || moreWindows > 0) && /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-strip", role: "group", "aria-label": labels.windows, style: vars({ "--uix-scheduling-calendar-lanes": Math.max(windowLanes, 1) }), children: [
485
- strip.placed.map((placed) => {
486
- const overlay = overlayById.get(placed.id);
487
- if (!overlay) return null;
488
- return /* @__PURE__ */ jsx(
489
- "button",
490
- {
491
- type: "button",
492
- tabIndex: -1,
493
- className: "uix-scheduling-calendar__window",
494
- "data-overlay-id": overlay.id,
495
- "data-pattern": overlay.pattern ?? "solid",
496
- "data-global": overlay.global || void 0,
497
- "data-kind": overlay.kind,
498
- "data-continues-before": placed.continuesBefore || void 0,
499
- "data-continues-after": placed.continuesAfter || void 0,
500
- style: { gridColumn: gridColumns(placed), ...vars({ "--uix-scheduling-calendar-lane": placed.lane }) },
501
- onClick: () => onSelectOverlay?.(overlay),
502
- "aria-label": overlayName(overlay),
503
- children: /* @__PURE__ */ jsxs("span", { className: "uix-scheduling-calendar__window-text", children: [
504
- overlay.kindLabel && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__window-kind", children: overlay.kindLabel }),
505
- /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__window-name", children: overlay.label }),
506
- overlay.scopeLabel && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__window-scope", children: overlay.scopeLabel })
507
- ] })
508
- },
509
- placed.id
510
- );
511
- }),
512
- moreWindows > 0 && (onShowMore ? /* @__PURE__ */ jsx("button", { type: "button", tabIndex: -1, className: "uix-scheduling-calendar__rowmore", "data-more-date": firstHiddenWindowDay, "aria-label": fillLabel(labels.moreWindowsLabel, { count: moreWindows, date: dateText(firstHiddenWindowDay, "day") }), onClick: () => onShowMore(firstHiddenWindowDay, []), children: fillLabel(labels.moreWindows, { count: moreWindows }) }) : /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__rowmore", children: fillLabel(labels.moreWindows, { count: moreWindows }) }))
513
- ] }),
514
- (topLanes > 0 || ghostSpan) && /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-strip uix-scheduling-calendar__tg-top", role: "group", "aria-label": labels.topLane, style: vars({ "--uix-scheduling-calendar-lanes": Math.max(topLanes, 1) }), children: [
515
- top.placed.map((placed) => {
516
- const entry = entryById.get(placed.id);
517
- if (!entry) return null;
518
- const canDrag = movable(entry);
519
- const markers = entryMarkers(entry);
520
- return /* @__PURE__ */ jsxs(
521
- "button",
522
- {
523
- type: "button",
524
- tabIndex: -1,
525
- className: "uix-scheduling-calendar__entry uix-scheduling-calendar__tg-span",
526
- "data-item-id": entry.id,
527
- "data-highlight": entry.emphasis === "highlight" || void 0,
528
- "data-dim": entry.emphasis === "dim" || void 0,
529
- "data-band": entry.band ?? "none",
530
- "data-status": entryStatus(entry),
531
- "data-state": entry.state,
532
- "data-movable": canDrag || void 0,
533
- "data-continues-before": placed.continuesBefore || void 0,
534
- "data-continues-after": placed.continuesAfter || void 0,
535
- style: { gridColumn: gridColumns(placed), ...vars({ "--uix-scheduling-calendar-lane": placed.lane }) },
536
- "aria-label": entryName(entry),
537
- "aria-describedby": canDrag ? hintId : void 0,
538
- onClick: () => handlers.click(entry),
539
- onKeyDown: canDrag ? (event) => handlers.keyDown(event, entry) : void 0,
540
- onBlur: canDrag ? () => handlers.blur(entry) : void 0,
541
- onPointerDown: canDrag ? (event) => handlers.pointerDown(event, entry, placed.startCol, true) : void 0,
542
- children: [
543
- /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__entry-text", children: renderEntry?.(entry, { availableLines: 1 }) ?? /* @__PURE__ */ jsxs(Fragment, { children: [
544
- !placed.continuesBefore && !entry.allDay && /* @__PURE__ */ jsxs(Fragment, { children: [
545
- /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__time", children: zonedTimeOfDay(entry.start, timeZone) }),
546
- " "
547
- ] }),
548
- /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__title", children: entry.title })
549
- ] }) }),
550
- markers.length > 0 && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__markers", children: markers.map((marker) => /* @__PURE__ */ jsx("span", { children: renderMarker(marker) }, marker.id)) })
551
- ]
552
- },
553
- placed.id
554
- );
555
- }),
556
- ghostSpan && /* @__PURE__ */ jsx("div", { className: "uix-scheduling-calendar__tg-ghost", "aria-hidden": "true", "data-sent": ghost?.source === "sent" || void 0, style: { gridColumn: gridColumns(ghostSpan), ...vars({ "--uix-scheduling-calendar-lane": ghostLane }) } })
547
+ tabIndex: -1,
548
+ className: "uix-scheduling-calendar__window",
549
+ "data-overlay-id": overlay.id,
550
+ "data-pattern": overlay.pattern ?? "solid",
551
+ "data-global": overlay.global || void 0,
552
+ "data-kind": overlay.kind,
553
+ "data-continues-before": placed.continuesBefore || void 0,
554
+ "data-continues-after": placed.continuesAfter || void 0,
555
+ style: { gridColumn: gridColumns(placed), ...vars({ "--uix-scheduling-calendar-lane": placed.lane }) },
556
+ onClick: () => onSelectOverlay?.(overlay),
557
+ "aria-label": overlayName(overlay),
558
+ children: /* @__PURE__ */ jsxs("span", { className: "uix-scheduling-calendar__window-text", children: [
559
+ overlay.kindLabel && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__window-kind", children: overlay.kindLabel }),
560
+ /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__window-name", children: overlay.label }),
561
+ overlay.scopeLabel && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__window-scope", children: overlay.scopeLabel })
562
+ ] })
563
+ },
564
+ placed.id
565
+ );
566
+ }),
567
+ moreWindows > 0 && (onShowMore ? /* @__PURE__ */ jsx("button", { type: "button", tabIndex: -1, className: "uix-scheduling-calendar__rowmore", "data-more-date": firstHiddenWindowDay, style: { gridColumn: days.indexOf(firstHiddenWindowDay) + 2 }, "aria-label": fillLabel(labels.moreWindowsLabel, { count: moreWindows, date: dateText(firstHiddenWindowDay, "day") }), onClick: () => onShowMore(firstHiddenWindowDay, []), children: fillLabel(labels.moreWindows, { count: moreWindows }) }) : /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__rowmore", style: { gridColumn: days.indexOf(firstHiddenWindowDay) + 2 }, children: fillLabel(labels.moreWindows, { count: moreWindows }) }))
568
+ ] }),
569
+ (topLanes > 0 || ghostSpan) && /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-strip uix-scheduling-calendar__tg-top", role: "group", "aria-label": labels.topLane, style: vars({ "--uix-scheduling-calendar-lanes": Math.max(topLanes, 1) }), children: [
570
+ top.placed.map((placed) => {
571
+ const entry = entryById.get(placed.id);
572
+ if (!entry) return null;
573
+ const canDrag = movable(entry);
574
+ const markers = entryMarkers(entry);
575
+ return /* @__PURE__ */ jsxs(
576
+ "button",
577
+ {
578
+ type: "button",
579
+ tabIndex: -1,
580
+ className: "uix-scheduling-calendar__entry uix-scheduling-calendar__tg-span",
581
+ "data-item-id": entry.id,
582
+ "data-highlight": entry.emphasis === "highlight" || void 0,
583
+ "data-dim": entry.emphasis === "dim" || void 0,
584
+ "data-band": entry.band ?? "none",
585
+ "data-status": entryStatus(entry),
586
+ "data-state": entry.state,
587
+ "data-movable": canDrag || void 0,
588
+ "data-continues-before": placed.continuesBefore || void 0,
589
+ "data-continues-after": placed.continuesAfter || void 0,
590
+ style: { gridColumn: gridColumns(placed), ...vars({ "--uix-scheduling-calendar-lane": placed.lane }) },
591
+ "aria-label": entryName(entry),
592
+ "aria-describedby": canDrag ? hintId : void 0,
593
+ onClick: () => handlers.click(entry),
594
+ onKeyDown: canDrag ? (event) => handlers.keyDown(event, entry) : void 0,
595
+ onBlur: canDrag ? () => handlers.blur(entry) : void 0,
596
+ onPointerDown: canDrag ? (event) => handlers.pointerDown(event, entry, placed.startCol, true) : void 0,
597
+ children: [
598
+ /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__entry-text", children: renderEntry?.(entry, { availableLines: 1 }) ?? /* @__PURE__ */ jsxs(Fragment, { children: [
599
+ !placed.continuesBefore && !entry.allDay && /* @__PURE__ */ jsxs(Fragment, { children: [
600
+ /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__time", children: zonedTimeOfDay(entry.start, timeZone) }),
601
+ " "
602
+ ] }),
603
+ /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__title", children: entry.title })
604
+ ] }) }),
605
+ markers.length > 0 && /* @__PURE__ */ jsx("span", { className: "uix-scheduling-calendar__markers", children: markers.map((marker) => /* @__PURE__ */ jsx("span", { children: renderMarker(marker) }, marker.id)) })
606
+ ]
607
+ },
608
+ placed.id
609
+ );
610
+ }),
611
+ ghostSpan && /* @__PURE__ */ jsx("div", { className: "uix-scheduling-calendar__tg-ghost", "aria-hidden": "true", "data-sent": ghost?.source === "sent" || void 0, style: { gridColumn: gridColumns(ghostSpan), ...vars({ "--uix-scheduling-calendar-lane": ghostLane }) } })
612
+ ] })
557
613
  ] }),
558
614
  /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-body", children: [
559
- /* @__PURE__ */ jsx("div", { className: "uix-scheduling-calendar__tg-gutter", "aria-hidden": "true", children: hourLabels(gutterIndex, false) }),
615
+ /* @__PURE__ */ jsxs("div", { className: "uix-scheduling-calendar__tg-gutter", "aria-hidden": "true", children: [
616
+ hourLabels(gutterIndex, false),
617
+ nowColumn >= 0 && now !== void 0 && /* @__PURE__ */ jsx("div", { className: "uix-scheduling-calendar__tg-nowtime", style: vars({ "--uix-scheduling-calendar-offset": (nowAt - columns[nowColumn].dayStart) / HOUR_MS }), children: zonedTimeOfDay(now, timeZone) })
618
+ ] }),
560
619
  shades.map((placed) => {
561
620
  const overlay = overlayById.get(placed.id);
562
621
  const first = columns[placed.startCol];
@@ -2,7 +2,7 @@ import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
  import { MoveProposal } from '../scheduling-calendar-model.js';
4
4
  import { TimelineRange, TimelineScale } from '../scheduling-timeline-model.js';
5
- import { j as SchedulingEntryState, p as SchedulingStatus, a as SchedulingBand, l as SchedulingMarker, o as SchedulingOverlayPattern } from '../SchedulingCalendar-WWyFL3Eo.js';
5
+ import { j as SchedulingEntryState, p as SchedulingStatus, a as SchedulingBand, l as SchedulingMarker, o as SchedulingOverlayPattern } from '../SchedulingCalendar-CHOIb5cT.js';
6
6
  import '../calendar-model.js';
7
7
  import './SchedulingResourceDay.js';
8
8
  import '../scheduling-resource-model.js';