@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.
- package/README.md +29 -0
- package/component-inventory.json +12 -0
- package/dist/{SchedulingCalendar-WWyFL3Eo.d.ts → SchedulingCalendar-CHOIb5cT.d.ts} +10 -2
- package/dist/components/DataWorkspace.d.ts +8 -0
- package/dist/components/DataWorkspace.js +13 -4
- package/dist/components/DateTime.d.ts +33 -0
- package/dist/components/DateTime.js +53 -0
- package/dist/components/EditorialHome.d.ts +23 -6
- package/dist/components/EditorialHome.js +11 -7
- package/dist/components/OverflowRow.d.ts +34 -0
- package/dist/components/OverflowRow.js +77 -0
- package/dist/components/RelativeTime.d.ts +5 -2
- package/dist/components/RelativeTime.js +4 -2
- package/dist/components/SchedulingAgenda.d.ts +1 -1
- package/dist/components/SchedulingCalendar.d.ts +1 -1
- package/dist/components/SchedulingCalendar.js +2 -0
- package/dist/components/SchedulingTimeGrid.d.ts +1 -1
- package/dist/components/SchedulingTimeGrid.js +164 -105
- package/dist/components/SchedulingTimeline.d.ts +1 -1
- package/dist/index.cjs +2175 -1974
- package/dist/index.d.cts +103 -10
- package/dist/index.d.ts +3 -1
- package/dist/index.js +6 -0
- package/dist/labels-context.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
452
|
-
/* @__PURE__ */
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
/* @__PURE__ */
|
|
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
|
-
|
|
466
|
-
"
|
|
467
|
-
|
|
468
|
-
"
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
"
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
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__ */
|
|
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-
|
|
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';
|