schedulant 2.0.9 → 2.1.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/dist/schedulant.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, Fragment as At, jsxs as O } from "react/jsx-runtime";
|
|
2
2
|
import * as ie from "react";
|
|
3
|
-
import { createContext as
|
|
3
|
+
import { createContext as Mt, useReducer as bt, useEffect as N, useContext as wt, useRef as k, useCallback as C, useState as re, useMemo as F, memo as ae, useLayoutEffect as Et } from "react";
|
|
4
4
|
import E from "dayjs";
|
|
5
5
|
import Ct from "dayjs/plugin/weekYear";
|
|
6
6
|
import Dt from "dayjs/plugin/weekOfYear";
|
|
@@ -10,7 +10,7 @@ import { Dropdown as Z, Space as kt } from "antd";
|
|
|
10
10
|
import X from "@ant-design/icons/lib/components/Icon";
|
|
11
11
|
import { PlusSquareOutlined as xt, MinusSquareOutlined as Ot } from "@ant-design/icons";
|
|
12
12
|
import { useSortable as It, SortableContext as Pt, verticalListSortingStrategy as Lt } from "@dnd-kit/sortable";
|
|
13
|
-
import { useSensors as Nt, useSensor as _e, PointerSensor as Yt, KeyboardSensor as _t, DndContext as Wt, closestCenter as
|
|
13
|
+
import { useSensors as Nt, useSensor as _e, PointerSensor as Yt, KeyboardSensor as _t, DndContext as Wt, closestCenter as zt, DragOverlay as Ht } from "@dnd-kit/core";
|
|
14
14
|
import { restrictToVerticalAxis as Vt } from "@dnd-kit/modifiers";
|
|
15
15
|
import { flushSync as Ft } from "react-dom";
|
|
16
16
|
const de = {
|
|
@@ -49,8 +49,8 @@ const de = {
|
|
|
49
49
|
default:
|
|
50
50
|
return t;
|
|
51
51
|
}
|
|
52
|
-
}, ut =
|
|
53
|
-
const [e, n] =
|
|
52
|
+
}, ut = Mt(void 0), Ut = ({ children: t }) => {
|
|
53
|
+
const [e, n] = bt(qt, void 0, Bt);
|
|
54
54
|
return N(() => {
|
|
55
55
|
localStorage.setItem(dt, JSON.stringify(e));
|
|
56
56
|
}, [e]), /* @__PURE__ */ a(ut.Provider, { value: { state: e, dispatch: n }, children: t });
|
|
@@ -59,12 +59,12 @@ const de = {
|
|
|
59
59
|
if (t === void 0)
|
|
60
60
|
throw new Error("useSchedulantContext must be used within a SchedulantProvider");
|
|
61
61
|
return t;
|
|
62
|
-
}, w = (t) => `${t}px`, oe = (t) => Number(t.replace(/px$/, "")), We = (t) => document.querySelector(`.${t}`), jt = 0.7, W = 10, ht = 16,
|
|
62
|
+
}, w = (t) => `${t}px`, oe = (t) => Number(t.replace(/px$/, "")), We = (t) => document.querySelector(`.${t}`), jt = 0.7, W = 10, ht = 16, ze = 13, $t = 0.3, He = 0.8, Gt = 0.25, Xt = 0.75, Qt = 100, Kt = (t) => {
|
|
63
63
|
N(() => {
|
|
64
|
-
const e = document.getElementById("schedulant-view-harness"), n = document.getElementById("schedulant-datagrid-body"), s = document.getElementById("schedulant-timeline-head"), i = n ? n.getBoundingClientRect().height : 0, r = s ? s.getBoundingClientRect().height : 0, o = i + r +
|
|
64
|
+
const e = document.getElementById("schedulant-view-harness"), n = document.getElementById("schedulant-datagrid-body"), s = document.getElementById("schedulant-timeline-head"), i = n ? n.getBoundingClientRect().height : 0, r = s ? s.getBoundingClientRect().height : 0, o = i + r + ze, l = t - o > 0 ? o : t;
|
|
65
65
|
e && (e.style.height = w(l));
|
|
66
66
|
const c = () => {
|
|
67
|
-
const m = n ? n.getBoundingClientRect().height : 0,
|
|
67
|
+
const m = n ? n.getBoundingClientRect().height : 0, g = s ? s.getBoundingClientRect().height : 0, h = m + g + ze, u = t - h > 0 ? h : t;
|
|
68
68
|
e && (e.style.height = w(u));
|
|
69
69
|
}, d = new ResizeObserver(() => {
|
|
70
70
|
c();
|
|
@@ -77,38 +77,38 @@ const de = {
|
|
|
77
77
|
N(() => {
|
|
78
78
|
const i = t.current, r = e.current, o = n.current, l = s.current;
|
|
79
79
|
if (!i || !r || !o || !l) return;
|
|
80
|
-
const c = [], d = (m,
|
|
81
|
-
m.addEventListener(
|
|
80
|
+
const c = [], d = (m, g, h, u) => {
|
|
81
|
+
m.addEventListener(g, h, u), c.push(() => m.removeEventListener(g, h));
|
|
82
82
|
};
|
|
83
83
|
return d(r, "scroll", () => {
|
|
84
84
|
i.scrollTop = r.scrollTop, l.scrollLeft = r.scrollLeft;
|
|
85
85
|
}), d(i, "scroll", () => {
|
|
86
86
|
o.scrollLeft = i.scrollLeft;
|
|
87
87
|
}), d(i, "wheel", ((m) => {
|
|
88
|
-
let
|
|
88
|
+
let g = !1;
|
|
89
89
|
if (m.deltaY !== 0) {
|
|
90
90
|
const h = r.scrollHeight - r.clientHeight, u = Math.max(0, Math.min(h, r.scrollTop + m.deltaY));
|
|
91
|
-
r.scrollTop = u, i.scrollTop = u,
|
|
91
|
+
r.scrollTop = u, i.scrollTop = u, g = !0;
|
|
92
92
|
}
|
|
93
|
-
if (
|
|
93
|
+
if (g && m.deltaX !== 0) {
|
|
94
94
|
const h = i.scrollWidth - i.clientWidth, u = Math.max(0, Math.min(h, i.scrollLeft + m.deltaX));
|
|
95
95
|
i.scrollLeft = u, o.scrollLeft = u;
|
|
96
96
|
} else if (m.deltaX !== 0) {
|
|
97
97
|
const h = i.scrollWidth - i.clientWidth;
|
|
98
98
|
o.scrollLeft = Math.max(0, Math.min(h, i.scrollLeft + m.deltaX));
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
g && m.preventDefault();
|
|
101
101
|
}), { passive: !1 }), d(r, "wheel", ((m) => {
|
|
102
|
-
let
|
|
102
|
+
let g = !1;
|
|
103
103
|
if (m.deltaY !== 0) {
|
|
104
104
|
const h = r.scrollHeight - r.clientHeight, u = Math.max(0, Math.min(h, r.scrollTop + m.deltaY));
|
|
105
|
-
r.scrollTop = u, i.scrollTop = u,
|
|
105
|
+
r.scrollTop = u, i.scrollTop = u, g = !0;
|
|
106
106
|
}
|
|
107
107
|
if (m.deltaX !== 0) {
|
|
108
108
|
const h = r.scrollWidth - r.clientWidth, u = Math.max(0, Math.min(h, r.scrollLeft + m.deltaX));
|
|
109
|
-
r.scrollLeft = u, l.scrollLeft = u,
|
|
109
|
+
r.scrollLeft = u, l.scrollLeft = u, g = !0;
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
g && m.preventDefault();
|
|
112
112
|
}), { passive: !1 }), () => c.forEach((m) => m());
|
|
113
113
|
}, [t, e, n, s]);
|
|
114
114
|
}, Jt = (t, e) => {
|
|
@@ -291,20 +291,20 @@ class le {
|
|
|
291
291
|
return (typeof s == "number" ? s : 0) - (typeof i == "number" ? i : 0);
|
|
292
292
|
}
|
|
293
293
|
static createTree(e, n, s, i) {
|
|
294
|
-
const r = "undefined", o = e.map((u) => new tn(u)), l = new Map(Object.entries(j(n, (u) => u.getResourceId()))), c = o.reduce((u, A) => u.set(A.getId(), A), /* @__PURE__ */ new Map()), d = new Map(Object.entries(j(s, (u) => u.getResourceId()))), m = new Map(Object.entries(j(i, (u) => u.getResourceId()))),
|
|
295
|
-
for (;
|
|
296
|
-
const u =
|
|
294
|
+
const r = "undefined", o = e.map((u) => new tn(u)), l = new Map(Object.entries(j(n, (u) => u.getResourceId()))), c = o.reduce((u, A) => u.set(A.getId(), A), /* @__PURE__ */ new Map()), d = new Map(Object.entries(j(s, (u) => u.getResourceId()))), m = new Map(Object.entries(j(i, (u) => u.getResourceId()))), g = [{ parentId: r, depth: 0 }], h = new Map(Object.entries(j(o, (u) => u.getParentId().getOrElse(r))));
|
|
295
|
+
for (; g.length > 0; ) {
|
|
296
|
+
const u = g.pop();
|
|
297
297
|
if (u) {
|
|
298
|
-
const { parentId: A, depth: p } = u,
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
const y = l.get(
|
|
303
|
-
y.forEach((D) => D.setResourceApi(
|
|
304
|
-
const
|
|
305
|
-
|
|
306
|
-
const
|
|
307
|
-
|
|
298
|
+
const { parentId: A, depth: p } = u, v = h.get(A);
|
|
299
|
+
v && v.sort(le.compare).forEach((M) => {
|
|
300
|
+
const f = M.getId();
|
|
301
|
+
M.setDepth(p), M.setParent(c.get(A)), M.setChildren(h.get(f) || []);
|
|
302
|
+
const y = l.get(f) || [];
|
|
303
|
+
y.forEach((D) => D.setResourceApi(M)), M.setEventApis(y);
|
|
304
|
+
const S = d.get(f) || [];
|
|
305
|
+
S.forEach((D) => D.setResourceApi(M)), M.setMilestoneApis(S);
|
|
306
|
+
const b = m.get(f) || [];
|
|
307
|
+
b.forEach((D) => D.setResourceApi(M)), M.setCheckpointApis(b), g.push({ parentId: f, depth: p + 1 });
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -430,21 +430,21 @@ class K {
|
|
|
430
430
|
for (; s.isSameOrBefore(n, "day"); ) {
|
|
431
431
|
const m = s.startOf("year").format("YYYY-MM-DD");
|
|
432
432
|
i.years[m] = i.years[m] || [], i.years[m].push(s.clone()), d.has(m) || d.set(m, d.size);
|
|
433
|
-
const
|
|
434
|
-
i.quarters[
|
|
433
|
+
const g = s.startOf("quarter").format("YYYY-MM-DD");
|
|
434
|
+
i.quarters[g] = i.quarters[g] || [], i.quarters[g].push(s.clone()), c.has(g) || c.set(g, c.size);
|
|
435
435
|
const h = s.startOf("month").format("YYYY-MM-DD");
|
|
436
436
|
i.months[h] = i.months[h] || [], i.months[h].push(s.clone()), l.has(h) || l.set(h, l.size);
|
|
437
437
|
const u = s.startOf("week").format("YYYY-MM-DD");
|
|
438
438
|
i.weeks[u] = i.weeks[u] || [], i.weeks[u].push(s.clone()), o.has(u) || o.set(u, o.size), i.days.push(s.clone()), this.dayPositionCache.set(s.format("YYYY-MM-DD"), r), r++, s = s.add(1, "day");
|
|
439
439
|
}
|
|
440
|
-
return o.forEach((m,
|
|
441
|
-
this.weekPositionCache.set(
|
|
442
|
-
}), l.forEach((m,
|
|
443
|
-
this.monthPositionCache.set(
|
|
444
|
-
}), c.forEach((m,
|
|
445
|
-
this.quarterPositionCache.set(
|
|
446
|
-
}), d.forEach((m,
|
|
447
|
-
this.yearPositionCache.set(
|
|
440
|
+
return o.forEach((m, g) => {
|
|
441
|
+
this.weekPositionCache.set(g, m);
|
|
442
|
+
}), l.forEach((m, g) => {
|
|
443
|
+
this.monthPositionCache.set(g, m);
|
|
444
|
+
}), c.forEach((m, g) => {
|
|
445
|
+
this.quarterPositionCache.set(g, m);
|
|
446
|
+
}), d.forEach((m, g) => {
|
|
447
|
+
this.yearPositionCache.set(g, m);
|
|
448
448
|
}), i;
|
|
449
449
|
}
|
|
450
450
|
constructor(e, n) {
|
|
@@ -826,7 +826,7 @@ const on = (t, e, n) => {
|
|
|
826
826
|
});
|
|
827
827
|
};
|
|
828
828
|
}, [t, e, n]);
|
|
829
|
-
},
|
|
829
|
+
}, z = ({ condition: t, children: e, fallback: n }) => /* @__PURE__ */ a(At, { children: t ? e : n }), ln = (t, e, n) => {
|
|
830
830
|
const s = k(-1), i = C(() => We("schedulant-datagrid-head"), []), r = C(() => We("schedulant-datagrid-body"), []), o = C((h) => {
|
|
831
831
|
h.preventDefault();
|
|
832
832
|
const u = n.current;
|
|
@@ -844,25 +844,25 @@ const on = (t, e, n) => {
|
|
|
844
844
|
u ? u.addEventListener("mousemove", o) : console.error("scheduleEl", u);
|
|
845
845
|
}, [o, e]), d = C((h) => {
|
|
846
846
|
h.preventDefault();
|
|
847
|
-
const u = s.current, A = i(), p = r(),
|
|
848
|
-
if (
|
|
849
|
-
const
|
|
850
|
-
|
|
847
|
+
const u = s.current, A = i(), p = r(), v = A.firstElementChild, M = p.firstElementChild, f = v?.children, y = M?.children;
|
|
848
|
+
if (f && y) {
|
|
849
|
+
const S = f[u], b = y[u], D = h.clientX - S.getBoundingClientRect().left, T = h.clientX - b.getBoundingClientRect().left;
|
|
850
|
+
S.style.width = w(D), b.style.width = w(T);
|
|
851
851
|
}
|
|
852
852
|
}, [r, i, s]), m = C((h) => {
|
|
853
853
|
h.preventDefault(), s.current = -1;
|
|
854
854
|
const u = i(), A = r();
|
|
855
855
|
u.removeEventListener("mousemove", d), A.removeEventListener("mousemove", d);
|
|
856
|
-
}, [s, i, r, d]),
|
|
856
|
+
}, [s, i, r, d]), g = C((h) => (u) => {
|
|
857
857
|
u.preventDefault();
|
|
858
858
|
const A = h.current?.parentElement, p = h.current?.parentElement?.parentElement;
|
|
859
859
|
if (p) {
|
|
860
|
-
let
|
|
861
|
-
|
|
862
|
-
for (let y = 0; y <
|
|
863
|
-
|
|
864
|
-
const
|
|
865
|
-
|
|
860
|
+
let v = p.getElementsByTagName("td");
|
|
861
|
+
v.length === 0 && (v = p.getElementsByTagName("th"));
|
|
862
|
+
for (let y = 0; y < v.length; y++)
|
|
863
|
+
v[y] === A && (s.current = y);
|
|
864
|
+
const M = i(), f = r();
|
|
865
|
+
M.addEventListener("mousemove", d), f.addEventListener("mousemove", d);
|
|
866
866
|
} else
|
|
867
867
|
console.error("trElement", p);
|
|
868
868
|
}, [i, r, d, s]);
|
|
@@ -870,7 +870,7 @@ const on = (t, e, n) => {
|
|
|
870
870
|
datagridResizerMouseUp: l,
|
|
871
871
|
datagridResizerMouseDown: c,
|
|
872
872
|
datagridCellResizerMouseUp: m,
|
|
873
|
-
datagridCellResizerMouseDownFunc:
|
|
873
|
+
datagridCellResizerMouseDownFunc: g
|
|
874
874
|
};
|
|
875
875
|
}, an = (t) => {
|
|
876
876
|
const e = k(null);
|
|
@@ -900,7 +900,7 @@ const on = (t, e, n) => {
|
|
|
900
900
|
children: t.resourceAreaColumn.headerContent
|
|
901
901
|
}
|
|
902
902
|
) }),
|
|
903
|
-
/* @__PURE__ */ a(
|
|
903
|
+
/* @__PURE__ */ a(z, { condition: t.isResizable, children: /* @__PURE__ */ a(
|
|
904
904
|
"div",
|
|
905
905
|
{
|
|
906
906
|
className: "schedulant-datagrid-cell-resizer",
|
|
@@ -982,9 +982,9 @@ function hn(t, e, n) {
|
|
|
982
982
|
if (t.shiftKey && G) {
|
|
983
983
|
const c = e.indexOf(G), d = e.indexOf(r);
|
|
984
984
|
if (c !== -1 && d !== -1) {
|
|
985
|
-
const m = Math.min(c, d),
|
|
985
|
+
const m = Math.min(c, d), g = Math.max(c, d);
|
|
986
986
|
o || L.clear();
|
|
987
|
-
for (let h = m; h <=
|
|
987
|
+
for (let h = m; h <= g; h++)
|
|
988
988
|
L.add(e[h]);
|
|
989
989
|
}
|
|
990
990
|
} else o ? (L.has(r) ? L.delete(r) : L.add(r), G = r) : (L.clear(), L.add(r), G = r);
|
|
@@ -1019,29 +1019,29 @@ function mn(t, e, n) {
|
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
1021
|
const gn = (t) => {
|
|
1022
|
-
const { dispatch: e } = Te(), n = k(null), i = t.schedulantApi.getScheduleView().getTimelineView().calculateLaneHeight(t.resourceApi), r = C((y,
|
|
1023
|
-
const
|
|
1024
|
-
if (Object.keys(
|
|
1025
|
-
const I =
|
|
1022
|
+
const { dispatch: e } = Te(), n = k(null), i = t.schedulantApi.getScheduleView().getTimelineView().calculateLaneHeight(t.resourceApi), r = C((y, S) => {
|
|
1023
|
+
const b = S.getResource();
|
|
1024
|
+
if (Object.keys(b).includes(y)) {
|
|
1025
|
+
const I = b[y];
|
|
1026
1026
|
if (typeof I == "string")
|
|
1027
1027
|
return I;
|
|
1028
1028
|
} else {
|
|
1029
|
-
const I =
|
|
1029
|
+
const I = b.extendedProps?.[y];
|
|
1030
1030
|
if (typeof I == "string" || typeof I == "number")
|
|
1031
1031
|
return I;
|
|
1032
1032
|
}
|
|
1033
1033
|
return "";
|
|
1034
1034
|
}, []);
|
|
1035
1035
|
cn(n, t.resourceAreaColumn, t.schedulantApi, t.resourceApi);
|
|
1036
|
-
const o = t.resourceApi.getId(), l = !t.isDraggable || !t.showPlusSquare, { attributes: c, listeners: d, setNodeRef: m, isDragging:
|
|
1036
|
+
const o = t.resourceApi.getId(), l = !t.isDraggable || !t.showPlusSquare, { attributes: c, listeners: d, setNodeRef: m, isDragging: g } = It({
|
|
1037
1037
|
id: o,
|
|
1038
1038
|
disabled: l,
|
|
1039
1039
|
transition: null
|
|
1040
1040
|
}), h = t.overId === o && t.activeId !== o, u = () => {
|
|
1041
1041
|
const y = ["schedulant-datagrid-cell", "schedulant-resource"];
|
|
1042
|
-
return mt().has(o) && y.push("schedulant-resource-selected"), t.isDraggable &&
|
|
1043
|
-
}, [A, p] = re(!1), [
|
|
1044
|
-
y &&
|
|
1042
|
+
return mt().has(o) && y.push("schedulant-resource-selected"), t.isDraggable && g && y.push("schedulant-resource-dragging"), t.isDraggable && h && t.dropPosition && y.push(`schedulant-resource-drop-${t.dropPosition}`), y.join(" ");
|
|
1043
|
+
}, [A, p] = re(!1), [v, M] = re({}), f = C((y) => {
|
|
1044
|
+
y && M(mn(t.schedulantApi, t.resourceApi, t.resourceAreaColumn)), p(y);
|
|
1045
1045
|
}, [t.schedulantApi, t.resourceApi, t.resourceAreaColumn]);
|
|
1046
1046
|
return /* @__PURE__ */ a(
|
|
1047
1047
|
"td",
|
|
@@ -1057,8 +1057,8 @@ const gn = (t) => {
|
|
|
1057
1057
|
destroyOnHidden: !0,
|
|
1058
1058
|
trigger: ["contextMenu"],
|
|
1059
1059
|
open: A,
|
|
1060
|
-
onOpenChange:
|
|
1061
|
-
menu:
|
|
1060
|
+
onOpenChange: f,
|
|
1061
|
+
menu: v,
|
|
1062
1062
|
children: /* @__PURE__ */ O(
|
|
1063
1063
|
"div",
|
|
1064
1064
|
{
|
|
@@ -1072,7 +1072,7 @@ const gn = (t) => {
|
|
|
1072
1072
|
{
|
|
1073
1073
|
className: "schedulant-datagrid-expander schedulant-datagrid-expander-placeholder",
|
|
1074
1074
|
children: [
|
|
1075
|
-
t.showIndentation && Array.from({ length: t.resourceApi.getDepth() }, (y,
|
|
1075
|
+
t.showIndentation && Array.from({ length: t.resourceApi.getDepth() }, (y, S) => /* @__PURE__ */ a("span", { className: "schedulant-icon" }, S + 1)),
|
|
1076
1076
|
/* @__PURE__ */ a("span", { className: "schedulant-icon", children: t.collapseIds.some((y) => y === t.resourceApi.getId()) ? /* @__PURE__ */ a(
|
|
1077
1077
|
xt,
|
|
1078
1078
|
{
|
|
@@ -1098,7 +1098,7 @@ const gn = (t) => {
|
|
|
1098
1098
|
t.showPlusSquare && t.resourceApi.getMilestoneApis().length > 0 && /* @__PURE__ */ a("span", { className: "schedulant-milestone-indicator", children: /* @__PURE__ */ a(dn, { width: 14, height: 14, color: "#91003c" }) })
|
|
1099
1099
|
] })
|
|
1100
1100
|
] }) }),
|
|
1101
|
-
/* @__PURE__ */ a(
|
|
1101
|
+
/* @__PURE__ */ a(z, { condition: t.isResizable, children: /* @__PURE__ */ a("div", { className: "schedulant-datagrid-cell-resizer", onMouseUp: t.cellResizerMouseUp, onMouseDown: t.cellResizerMouseDownFunc(n) }) })
|
|
1102
1102
|
]
|
|
1103
1103
|
}
|
|
1104
1104
|
)
|
|
@@ -1106,7 +1106,7 @@ const gn = (t) => {
|
|
|
1106
1106
|
)
|
|
1107
1107
|
}
|
|
1108
1108
|
);
|
|
1109
|
-
}, fn = (t) => /* @__PURE__ */ a("colgroup", { children: t.resourceAreaColumns.map((e) => /* @__PURE__ */ a("col", { style: { minWidth: Qt } }, e.field)) }), pn = (
|
|
1109
|
+
}, fn = (t) => /* @__PURE__ */ a("colgroup", { children: t.resourceAreaColumns.map((e) => /* @__PURE__ */ a("col", { style: { minWidth: Qt } }, e.field)) }), pn = (t, e, n) => {
|
|
1110
1110
|
const s = n.getStart(), i = n.getEnd(), r = i.isBefore(E(), "day"), o = s.isAfter(E(), "day"), l = s.isSameOrBefore(E(), "day") && (i.isAfter(E(), "day") || i.isSame(E(), "day"));
|
|
1111
1111
|
return N(() => {
|
|
1112
1112
|
const c = t.current;
|
|
@@ -1131,7 +1131,7 @@ const gn = (t) => {
|
|
|
1131
1131
|
}, [t, e, n, r, o, l]), { isPast: r, isFuture: o, isProcess: l };
|
|
1132
1132
|
};
|
|
1133
1133
|
var se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1134
|
-
function
|
|
1134
|
+
function yn(t) {
|
|
1135
1135
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1136
1136
|
}
|
|
1137
1137
|
var ue, Ve;
|
|
@@ -1145,7 +1145,7 @@ function xe() {
|
|
|
1145
1145
|
return ue = t, ue;
|
|
1146
1146
|
}
|
|
1147
1147
|
var he, Fe;
|
|
1148
|
-
function
|
|
1148
|
+
function vn() {
|
|
1149
1149
|
if (Fe) return he;
|
|
1150
1150
|
Fe = 1;
|
|
1151
1151
|
var t = typeof se == "object" && se && se.Object === Object && se;
|
|
@@ -1155,11 +1155,11 @@ var me, Be;
|
|
|
1155
1155
|
function gt() {
|
|
1156
1156
|
if (Be) return me;
|
|
1157
1157
|
Be = 1;
|
|
1158
|
-
var t =
|
|
1158
|
+
var t = vn(), e = typeof self == "object" && self && self.Object === Object && self, n = t || e || Function("return this")();
|
|
1159
1159
|
return me = n, me;
|
|
1160
1160
|
}
|
|
1161
1161
|
var ge, qe;
|
|
1162
|
-
function
|
|
1162
|
+
function Sn() {
|
|
1163
1163
|
if (qe) return ge;
|
|
1164
1164
|
qe = 1;
|
|
1165
1165
|
var t = gt(), e = function() {
|
|
@@ -1168,7 +1168,7 @@ function An() {
|
|
|
1168
1168
|
return ge = e, ge;
|
|
1169
1169
|
}
|
|
1170
1170
|
var fe, Ue;
|
|
1171
|
-
function
|
|
1171
|
+
function An() {
|
|
1172
1172
|
if (Ue) return fe;
|
|
1173
1173
|
Ue = 1;
|
|
1174
1174
|
var t = /\s/;
|
|
@@ -1183,7 +1183,7 @@ var pe, je;
|
|
|
1183
1183
|
function Mn() {
|
|
1184
1184
|
if (je) return pe;
|
|
1185
1185
|
je = 1;
|
|
1186
|
-
var t =
|
|
1186
|
+
var t = An(), e = /^\s+/;
|
|
1187
1187
|
function n(s) {
|
|
1188
1188
|
return s && s.slice(0, t(s) + 1).replace(e, "");
|
|
1189
1189
|
}
|
|
@@ -1197,7 +1197,7 @@ function ft() {
|
|
|
1197
1197
|
return ye = e, ye;
|
|
1198
1198
|
}
|
|
1199
1199
|
var ve, Ge;
|
|
1200
|
-
function
|
|
1200
|
+
function bn() {
|
|
1201
1201
|
if (Ge) return ve;
|
|
1202
1202
|
Ge = 1;
|
|
1203
1203
|
var t = ft(), e = Object.prototype, n = e.hasOwnProperty, s = e.toString, i = t ? t.toStringTag : void 0;
|
|
@@ -1214,7 +1214,7 @@ function wn() {
|
|
|
1214
1214
|
return ve = r, ve;
|
|
1215
1215
|
}
|
|
1216
1216
|
var Se, Xe;
|
|
1217
|
-
function
|
|
1217
|
+
function wn() {
|
|
1218
1218
|
if (Xe) return Se;
|
|
1219
1219
|
Xe = 1;
|
|
1220
1220
|
var t = Object.prototype, e = t.toString;
|
|
@@ -1224,39 +1224,39 @@ function En() {
|
|
|
1224
1224
|
return Se = n, Se;
|
|
1225
1225
|
}
|
|
1226
1226
|
var Ae, Qe;
|
|
1227
|
-
function
|
|
1227
|
+
function En() {
|
|
1228
1228
|
if (Qe) return Ae;
|
|
1229
1229
|
Qe = 1;
|
|
1230
|
-
var t = ft(), e =
|
|
1230
|
+
var t = ft(), e = bn(), n = wn(), s = "[object Null]", i = "[object Undefined]", r = t ? t.toStringTag : void 0;
|
|
1231
1231
|
function o(l) {
|
|
1232
1232
|
return l == null ? l === void 0 ? i : s : r && r in Object(l) ? e(l) : n(l);
|
|
1233
1233
|
}
|
|
1234
1234
|
return Ae = o, Ae;
|
|
1235
1235
|
}
|
|
1236
|
-
var
|
|
1237
|
-
function
|
|
1238
|
-
if (Ke) return
|
|
1236
|
+
var Me, Ke;
|
|
1237
|
+
function Cn() {
|
|
1238
|
+
if (Ke) return Me;
|
|
1239
1239
|
Ke = 1;
|
|
1240
1240
|
function t(e) {
|
|
1241
1241
|
return e != null && typeof e == "object";
|
|
1242
1242
|
}
|
|
1243
|
-
return
|
|
1243
|
+
return Me = t, Me;
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1246
|
-
function
|
|
1247
|
-
if (Ze) return
|
|
1245
|
+
var be, Ze;
|
|
1246
|
+
function Dn() {
|
|
1247
|
+
if (Ze) return be;
|
|
1248
1248
|
Ze = 1;
|
|
1249
|
-
var t =
|
|
1249
|
+
var t = En(), e = Cn(), n = "[object Symbol]";
|
|
1250
1250
|
function s(i) {
|
|
1251
1251
|
return typeof i == "symbol" || e(i) && t(i) == n;
|
|
1252
1252
|
}
|
|
1253
|
-
return
|
|
1253
|
+
return be = s, be;
|
|
1254
1254
|
}
|
|
1255
1255
|
var we, Je;
|
|
1256
|
-
function
|
|
1256
|
+
function Tn() {
|
|
1257
1257
|
if (Je) return we;
|
|
1258
1258
|
Je = 1;
|
|
1259
|
-
var t = Mn(), e = xe(), n =
|
|
1259
|
+
var t = Mn(), e = xe(), n = Dn(), s = NaN, i = /^[-+]0x[0-9a-f]+$/i, r = /^0b[01]+$/i, o = /^0o[0-7]+$/i, l = parseInt;
|
|
1260
1260
|
function c(d) {
|
|
1261
1261
|
if (typeof d == "number")
|
|
1262
1262
|
return d;
|
|
@@ -1269,35 +1269,35 @@ function Rn() {
|
|
|
1269
1269
|
if (typeof d != "string")
|
|
1270
1270
|
return d === 0 ? d : +d;
|
|
1271
1271
|
d = t(d);
|
|
1272
|
-
var
|
|
1273
|
-
return
|
|
1272
|
+
var g = r.test(d);
|
|
1273
|
+
return g || o.test(d) ? l(d.slice(2), g ? 2 : 8) : i.test(d) ? s : +d;
|
|
1274
1274
|
}
|
|
1275
1275
|
return we = c, we;
|
|
1276
1276
|
}
|
|
1277
1277
|
var Ee, et;
|
|
1278
|
-
function
|
|
1278
|
+
function Rn() {
|
|
1279
1279
|
if (et) return Ee;
|
|
1280
1280
|
et = 1;
|
|
1281
|
-
var t = xe(), e =
|
|
1281
|
+
var t = xe(), e = Sn(), n = Tn(), s = "Expected a function", i = Math.max, r = Math.min;
|
|
1282
1282
|
function o(l, c, d) {
|
|
1283
|
-
var m,
|
|
1283
|
+
var m, g, h, u, A, p, v = 0, M = !1, f = !1, y = !0;
|
|
1284
1284
|
if (typeof l != "function")
|
|
1285
1285
|
throw new TypeError(s);
|
|
1286
|
-
c = n(c) || 0, t(d) && (
|
|
1287
|
-
function
|
|
1288
|
-
var V = m, q =
|
|
1289
|
-
return m =
|
|
1286
|
+
c = n(c) || 0, t(d) && (M = !!d.leading, f = "maxWait" in d, h = f ? i(n(d.maxWait) || 0, c) : h, y = "trailing" in d ? !!d.trailing : y);
|
|
1287
|
+
function S(R) {
|
|
1288
|
+
var V = m, q = g;
|
|
1289
|
+
return m = g = void 0, v = R, u = l.apply(q, V), u;
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1292
|
-
return
|
|
1291
|
+
function b(R) {
|
|
1292
|
+
return v = R, A = setTimeout(I, c), M ? S(R) : u;
|
|
1293
1293
|
}
|
|
1294
1294
|
function D(R) {
|
|
1295
|
-
var V = R - p, q = R -
|
|
1296
|
-
return
|
|
1295
|
+
var V = R - p, q = R - v, Q = c - V;
|
|
1296
|
+
return f ? r(Q, h - q) : Q;
|
|
1297
1297
|
}
|
|
1298
1298
|
function T(R) {
|
|
1299
|
-
var V = R - p, q = R -
|
|
1300
|
-
return p === void 0 || V >= c || V < 0 ||
|
|
1299
|
+
var V = R - p, q = R - v;
|
|
1300
|
+
return p === void 0 || V >= c || V < 0 || f && q >= h;
|
|
1301
1301
|
}
|
|
1302
1302
|
function I() {
|
|
1303
1303
|
var R = e();
|
|
@@ -1306,33 +1306,33 @@ function kn() {
|
|
|
1306
1306
|
A = setTimeout(I, D(R));
|
|
1307
1307
|
}
|
|
1308
1308
|
function P(R) {
|
|
1309
|
-
return A = void 0, y && m ?
|
|
1309
|
+
return A = void 0, y && m ? S(R) : (m = g = void 0, u);
|
|
1310
1310
|
}
|
|
1311
1311
|
function Y() {
|
|
1312
|
-
A !== void 0 && clearTimeout(A),
|
|
1312
|
+
A !== void 0 && clearTimeout(A), v = 0, m = p = g = A = void 0;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function H() {
|
|
1315
1315
|
return A === void 0 ? u : P(e());
|
|
1316
1316
|
}
|
|
1317
1317
|
function _() {
|
|
1318
1318
|
var R = e(), V = T(R);
|
|
1319
|
-
if (m = arguments,
|
|
1319
|
+
if (m = arguments, g = this, p = R, V) {
|
|
1320
1320
|
if (A === void 0)
|
|
1321
|
-
return
|
|
1322
|
-
if (
|
|
1323
|
-
return clearTimeout(A), A = setTimeout(I, c),
|
|
1321
|
+
return b(p);
|
|
1322
|
+
if (f)
|
|
1323
|
+
return clearTimeout(A), A = setTimeout(I, c), S(p);
|
|
1324
1324
|
}
|
|
1325
1325
|
return A === void 0 && (A = setTimeout(I, c)), u;
|
|
1326
1326
|
}
|
|
1327
|
-
return _.cancel = Y, _.flush =
|
|
1327
|
+
return _.cancel = Y, _.flush = H, _;
|
|
1328
1328
|
}
|
|
1329
1329
|
return Ee = o, Ee;
|
|
1330
1330
|
}
|
|
1331
1331
|
var Ce, tt;
|
|
1332
|
-
function
|
|
1332
|
+
function kn() {
|
|
1333
1333
|
if (tt) return Ce;
|
|
1334
1334
|
tt = 1;
|
|
1335
|
-
var t =
|
|
1335
|
+
var t = Rn(), e = xe(), n = "Expected a function";
|
|
1336
1336
|
function s(i, r, o) {
|
|
1337
1337
|
var l = !0, c = !0;
|
|
1338
1338
|
if (typeof i != "function")
|
|
@@ -1345,131 +1345,128 @@ function xn() {
|
|
|
1345
1345
|
}
|
|
1346
1346
|
return Ce = s, Ce;
|
|
1347
1347
|
}
|
|
1348
|
-
var
|
|
1349
|
-
const pt = /* @__PURE__ */
|
|
1350
|
-
const e = F(() => "schedulant-timeline-event-position-guide", []), n = k(0), s = k(0), i = k(0), r = k(!1), o = k("none"), l = C((
|
|
1351
|
-
const
|
|
1348
|
+
var xn = kn();
|
|
1349
|
+
const pt = /* @__PURE__ */ yn(xn), On = (t) => {
|
|
1350
|
+
const e = F(() => "schedulant-timeline-event-position-guide", []), n = k(0), s = k(0), i = k(0), r = k(!1), o = k("none"), l = C((f) => {
|
|
1351
|
+
const b = t.schedulantApi.getScheduleView().getTimelineView(), D = f - n.current, T = t.timelineWidth, I = b.getTotalSlots(), P = Math.round(D / T * I), Y = P / I * T;
|
|
1352
1352
|
return { moveSlots: P, distance: Y, deltaX: D };
|
|
1353
|
-
}, [t]), c = C((
|
|
1354
|
-
const y = t.schedulantApi.getScheduleView().getTimelineView(),
|
|
1353
|
+
}, [t]), c = C((f) => {
|
|
1354
|
+
const y = t.schedulantApi.getScheduleView().getTimelineView(), S = f.style.left, b = f.style.right, D = y.calculateLaneHeight(t.resourceApi), T = document.createElement("div");
|
|
1355
1355
|
T.className = e, Object.assign(T.style, {
|
|
1356
1356
|
position: "absolute",
|
|
1357
1357
|
zIndex: 1,
|
|
1358
|
-
left:
|
|
1359
|
-
right:
|
|
1358
|
+
left: S,
|
|
1359
|
+
right: b,
|
|
1360
1360
|
height: w(D),
|
|
1361
1361
|
backgroundColor: t.schedulantApi.getDragHintColor()
|
|
1362
|
-
}),
|
|
1363
|
-
}, [t, e]), d = C((
|
|
1364
|
-
const y =
|
|
1365
|
-
y?.className === e &&
|
|
1366
|
-
}, [e]), m = C((
|
|
1367
|
-
const
|
|
1368
|
-
if (
|
|
1369
|
-
const
|
|
1370
|
-
switch (
|
|
1362
|
+
}), f.parentNode?.insertBefore(T, f);
|
|
1363
|
+
}, [t, e]), d = C((f) => {
|
|
1364
|
+
const y = f.previousElementSibling;
|
|
1365
|
+
y?.className === e && f.parentElement?.removeChild(y);
|
|
1366
|
+
}, [e]), m = C((f, y) => {
|
|
1367
|
+
const S = f.previousElementSibling;
|
|
1368
|
+
if (S && S.className === e) {
|
|
1369
|
+
const b = o.current, { distance: D } = l(y);
|
|
1370
|
+
switch (b) {
|
|
1371
1371
|
case "press_event": {
|
|
1372
|
-
|
|
1372
|
+
S.style.left = w(Math.max(s.current + D, 0)), S.style.right = w(i.current - D);
|
|
1373
1373
|
break;
|
|
1374
1374
|
}
|
|
1375
1375
|
case "press_event_left": {
|
|
1376
1376
|
const T = Math.max(s.current + D, 0);
|
|
1377
|
-
|
|
1377
|
+
S.style.left = w(T);
|
|
1378
1378
|
break;
|
|
1379
1379
|
}
|
|
1380
1380
|
case "press_event_right": {
|
|
1381
1381
|
const T = i.current - D;
|
|
1382
|
-
|
|
1382
|
+
S.style.right = w(T);
|
|
1383
1383
|
break;
|
|
1384
1384
|
}
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
}, [l, e]),
|
|
1388
|
-
const
|
|
1387
|
+
}, [l, e]), g = C((f, y) => {
|
|
1388
|
+
const S = t.eventApi, b = t.schedulantApi, D = o.current, { moveSlots: T, distance: I } = l(y);
|
|
1389
1389
|
switch (D) {
|
|
1390
1390
|
case "press_event": {
|
|
1391
|
-
|
|
1392
|
-
const P =
|
|
1393
|
-
|
|
1394
|
-
el:
|
|
1391
|
+
f.style.left = w(Math.max(s.current + I, 0)), f.style.right = w(i.current - I);
|
|
1392
|
+
const P = S.getStart().add(T, "day"), Y = S.getEnd().add(T, "day");
|
|
1393
|
+
b.eventMove({
|
|
1394
|
+
el: f,
|
|
1395
1395
|
startDate: P,
|
|
1396
1396
|
endDate: Y,
|
|
1397
|
-
eventApi:
|
|
1398
|
-
schedulantApi:
|
|
1397
|
+
eventApi: S,
|
|
1398
|
+
schedulantApi: b
|
|
1399
1399
|
});
|
|
1400
1400
|
break;
|
|
1401
1401
|
}
|
|
1402
1402
|
case "press_event_left": {
|
|
1403
1403
|
const P = Math.max(s.current + I, 0);
|
|
1404
|
-
|
|
1405
|
-
const Y =
|
|
1406
|
-
|
|
1407
|
-
el:
|
|
1404
|
+
f.style.left = w(P);
|
|
1405
|
+
const Y = S.getStart().add(T, "day");
|
|
1406
|
+
b.eventResizeStart({
|
|
1407
|
+
el: f,
|
|
1408
1408
|
date: Y,
|
|
1409
|
-
eventApi:
|
|
1410
|
-
schedulantApi:
|
|
1409
|
+
eventApi: S,
|
|
1410
|
+
schedulantApi: b
|
|
1411
1411
|
});
|
|
1412
1412
|
break;
|
|
1413
1413
|
}
|
|
1414
1414
|
case "press_event_right": {
|
|
1415
1415
|
const P = i.current - I;
|
|
1416
|
-
|
|
1417
|
-
const Y =
|
|
1418
|
-
|
|
1419
|
-
el:
|
|
1416
|
+
f.style.right = w(P);
|
|
1417
|
+
const Y = S.getEnd().add(T, "day");
|
|
1418
|
+
b.eventResizeEnd({
|
|
1419
|
+
el: f,
|
|
1420
1420
|
date: Y,
|
|
1421
|
-
eventApi:
|
|
1422
|
-
schedulantApi:
|
|
1421
|
+
eventApi: S,
|
|
1422
|
+
schedulantApi: b
|
|
1423
1423
|
});
|
|
1424
1424
|
break;
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
|
-
}, [t, l]), h = C((
|
|
1428
|
-
|
|
1429
|
-
const y = r.current,
|
|
1430
|
-
if (y &&
|
|
1431
|
-
const { deltaX:
|
|
1427
|
+
}, [t, l]), h = C((f) => {
|
|
1428
|
+
f.preventDefault();
|
|
1429
|
+
const y = r.current, S = t.timelineEventHarnessRef.current;
|
|
1430
|
+
if (y && S) {
|
|
1431
|
+
const { deltaX: b } = l(f.clientX), D = s.current + b, T = i.current - b;
|
|
1432
1432
|
switch (o.current) {
|
|
1433
1433
|
case "press_event":
|
|
1434
|
-
|
|
1434
|
+
S.style.left = w(D), S.style.right = w(T);
|
|
1435
1435
|
break;
|
|
1436
1436
|
case "press_event_left":
|
|
1437
|
-
|
|
1437
|
+
S.style.left = w(D);
|
|
1438
1438
|
break;
|
|
1439
1439
|
case "press_event_right":
|
|
1440
|
-
|
|
1440
|
+
S.style.right = w(T);
|
|
1441
1441
|
break;
|
|
1442
1442
|
}
|
|
1443
|
-
m(
|
|
1443
|
+
m(S, f.clientX);
|
|
1444
1444
|
}
|
|
1445
1445
|
}, [t.timelineEventHarnessRef, m, l]), u = F(
|
|
1446
1446
|
() => pt(h, ht),
|
|
1447
1447
|
[h]
|
|
1448
|
-
), A = C((
|
|
1449
|
-
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
}, [t.schedulantApi, t.timelineEventHarnessRef, c, u]), p = C((
|
|
1453
|
-
A(
|
|
1454
|
-
}, [A]),
|
|
1455
|
-
A(
|
|
1456
|
-
}, [A]),
|
|
1457
|
-
A(
|
|
1448
|
+
), A = C((f, y) => {
|
|
1449
|
+
f.preventDefault();
|
|
1450
|
+
const S = t.schedulantApi.getSchedulantElRef().current, b = t.timelineEventHarnessRef.current;
|
|
1451
|
+
b && S ? (r.current = !0, o.current = y, n.current = f.clientX, s.current = oe(b.style.left), i.current = oe(b.style.right), c(b), S.addEventListener("mousemove", u)) : (console.error("scheduleEl", S), console.error("timelineEventHarness", b));
|
|
1452
|
+
}, [t.schedulantApi, t.timelineEventHarnessRef, c, u]), p = C((f) => {
|
|
1453
|
+
A(f, "press_event");
|
|
1454
|
+
}, [A]), v = C((f) => {
|
|
1455
|
+
A(f, "press_event_left");
|
|
1456
|
+
}, [A]), M = C((f) => {
|
|
1457
|
+
A(f, "press_event_right");
|
|
1458
1458
|
}, [A]);
|
|
1459
1459
|
return N(() => {
|
|
1460
|
-
const
|
|
1461
|
-
if (y &&
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
v.removeEventListener("mouseup", M), v.removeEventListener("mouseout", M), y.removeEventListener("mousemove", u), u.cancel();
|
|
1469
|
-
};
|
|
1470
|
-
}
|
|
1460
|
+
const f = t.timelineEventHarnessRef.current, y = t.schedulantApi.getSchedulantElRef().current;
|
|
1461
|
+
if (y && f) {
|
|
1462
|
+
const S = (b) => {
|
|
1463
|
+
b.preventDefault(), r.current && (d(f), g(f, b.clientX), y.removeEventListener("mousemove", u), r.current = !1, o.current = "none");
|
|
1464
|
+
};
|
|
1465
|
+
return document.addEventListener("mouseup", S), () => {
|
|
1466
|
+
document.removeEventListener("mouseup", S), y.removeEventListener("mousemove", u), u.cancel();
|
|
1467
|
+
};
|
|
1471
1468
|
}
|
|
1472
|
-
}, [u, t, d,
|
|
1469
|
+
}, [u, t, d, g]), { handleMouseDown: p, leftHandleMouseDown: v, rightHandleMouseDown: M };
|
|
1473
1470
|
}, nt = (t) => /* @__PURE__ */ a(X, { component: () => /* @__PURE__ */ a(
|
|
1474
1471
|
"svg",
|
|
1475
1472
|
{
|
|
@@ -1515,8 +1512,8 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1515
1512
|
}
|
|
1516
1513
|
)
|
|
1517
1514
|
}
|
|
1518
|
-
), ...t }),
|
|
1519
|
-
const e = k(null), n = k(null), s = t.schedulantApi.getTimelineApi(), i = t.schedulantApi.getScheduleView().getTimelineView(), r = t.eventApi.getTextColor().getOrElse("white"), o = t.eventApi.getBorderColor().getOrElse(t.eventApi.getColor()), l = t.eventApi.getBackgroundColor().getOrElse(t.eventApi.getColor()), c = i.calculateLaneHeight(t.resourceApi), d = i.calculateEventHeight(), m = (c - d) / 2 - 1, { isPast:
|
|
1515
|
+
), ...t }), In = ae((t) => {
|
|
1516
|
+
const e = k(null), n = k(null), s = t.schedulantApi.getTimelineApi(), i = t.schedulantApi.getScheduleView().getTimelineView(), r = t.eventApi.getTextColor().getOrElse("white"), o = t.eventApi.getBorderColor().getOrElse(t.eventApi.getColor()), l = t.eventApi.getBackgroundColor().getOrElse(t.eventApi.getColor()), c = i.calculateLaneHeight(t.resourceApi), d = i.calculateEventHeight(), m = (c - d) / 2 - 1, { isPast: g, isFuture: h, isProcess: u } = pn(e, t.schedulantApi, t.eventApi), { handleMouseDown: A, leftHandleMouseDown: p, rightHandleMouseDown: v } = On({
|
|
1520
1517
|
timelineEventHarnessRef: n,
|
|
1521
1518
|
timelineWidth: t.timelineWidth,
|
|
1522
1519
|
eventApi: t.eventApi,
|
|
@@ -1537,13 +1534,13 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1537
1534
|
trigger: ["contextMenu"],
|
|
1538
1535
|
menu: {
|
|
1539
1536
|
items: t.schedulantApi.getEventContextMenuItems(),
|
|
1540
|
-
onClick: (
|
|
1541
|
-
const { key:
|
|
1537
|
+
onClick: (M) => {
|
|
1538
|
+
const { key: f, keyPath: y, domEvent: S } = M;
|
|
1542
1539
|
t.schedulantApi.onEventContextMenuClick({
|
|
1543
|
-
key:
|
|
1540
|
+
key: f,
|
|
1544
1541
|
keyPath: y,
|
|
1545
|
-
domEvent:
|
|
1546
|
-
isPast:
|
|
1542
|
+
domEvent: S,
|
|
1543
|
+
isPast: g,
|
|
1547
1544
|
isFuture: h,
|
|
1548
1545
|
isProcess: u,
|
|
1549
1546
|
eventApi: t.eventApi,
|
|
@@ -1559,11 +1556,11 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1559
1556
|
ref: e,
|
|
1560
1557
|
children: [
|
|
1561
1558
|
/* @__PURE__ */ a(
|
|
1562
|
-
|
|
1559
|
+
z,
|
|
1563
1560
|
{
|
|
1564
1561
|
condition: t.schedulantApi.isEditable(),
|
|
1565
1562
|
fallback: /* @__PURE__ */ a(
|
|
1566
|
-
|
|
1563
|
+
z,
|
|
1567
1564
|
{
|
|
1568
1565
|
condition: t.eventApi.getStart().isBefore(s.getStart()),
|
|
1569
1566
|
fallback: /* @__PURE__ */ a("div", { style: { width: W, height: d } }),
|
|
@@ -1571,7 +1568,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1571
1568
|
}
|
|
1572
1569
|
),
|
|
1573
1570
|
children: /* @__PURE__ */ a(
|
|
1574
|
-
|
|
1571
|
+
z,
|
|
1575
1572
|
{
|
|
1576
1573
|
condition: !t.eventApi.getStart().isBefore(s.getStart()),
|
|
1577
1574
|
fallback: /* @__PURE__ */ a(nt, { width: W, height: d, color: "#FFFFFF" }),
|
|
@@ -1589,7 +1586,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1589
1586
|
}
|
|
1590
1587
|
),
|
|
1591
1588
|
/* @__PURE__ */ a(
|
|
1592
|
-
|
|
1589
|
+
z,
|
|
1593
1590
|
{
|
|
1594
1591
|
condition: t.schedulantApi.isEditable() && !t.eventApi.getStart().isBefore(s.getStart()) && t.eventApi.getEnd().isSameOrBefore(s.getEnd()),
|
|
1595
1592
|
fallback: /* @__PURE__ */ a(
|
|
@@ -1598,7 +1595,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1598
1595
|
className: "schedulant-event-main",
|
|
1599
1596
|
style: { color: r, width: `calc(100% - ${W * 2}px)` },
|
|
1600
1597
|
children: /* @__PURE__ */ a(
|
|
1601
|
-
|
|
1598
|
+
z,
|
|
1602
1599
|
{
|
|
1603
1600
|
condition: t.eventApi.getUrl().isDefined(),
|
|
1604
1601
|
fallback: /* @__PURE__ */ a("span", { children: t.eventApi.getTitle() }),
|
|
@@ -1621,7 +1618,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1621
1618
|
style: { color: r, width: `calc(100% - ${W * 2}px)`, cursor: "grab" },
|
|
1622
1619
|
onMouseDown: A,
|
|
1623
1620
|
children: /* @__PURE__ */ a(
|
|
1624
|
-
|
|
1621
|
+
z,
|
|
1625
1622
|
{
|
|
1626
1623
|
condition: t.eventApi.getUrl().isDefined(),
|
|
1627
1624
|
fallback: /* @__PURE__ */ a("span", { children: t.eventApi.getTitle() }),
|
|
@@ -1640,11 +1637,11 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1640
1637
|
}
|
|
1641
1638
|
),
|
|
1642
1639
|
/* @__PURE__ */ a(
|
|
1643
|
-
|
|
1640
|
+
z,
|
|
1644
1641
|
{
|
|
1645
1642
|
condition: t.schedulantApi.isEditable(),
|
|
1646
1643
|
fallback: /* @__PURE__ */ a(
|
|
1647
|
-
|
|
1644
|
+
z,
|
|
1648
1645
|
{
|
|
1649
1646
|
condition: t.eventApi.getEnd().isAfter(s.getEnd()),
|
|
1650
1647
|
fallback: /* @__PURE__ */ a("div", { style: { width: W, height: d } }),
|
|
@@ -1652,7 +1649,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1652
1649
|
}
|
|
1653
1650
|
),
|
|
1654
1651
|
children: /* @__PURE__ */ a(
|
|
1655
|
-
|
|
1652
|
+
z,
|
|
1656
1653
|
{
|
|
1657
1654
|
condition: t.eventApi.getEnd().isSameOrBefore(s.getEnd()),
|
|
1658
1655
|
fallback: /* @__PURE__ */ a(it, { width: W, height: d, color: "#FFFFFF" }),
|
|
@@ -1660,7 +1657,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1660
1657
|
"div",
|
|
1661
1658
|
{
|
|
1662
1659
|
className: "schedulant-event-resize-handle",
|
|
1663
|
-
onMouseDown:
|
|
1660
|
+
onMouseDown: v,
|
|
1664
1661
|
style: { width: W, height: d, cursor: "ew-resize" },
|
|
1665
1662
|
children: /* @__PURE__ */ a(st, { width: W, height: d, color: "#FFFFFF" })
|
|
1666
1663
|
}
|
|
@@ -1674,7 +1671,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1674
1671
|
)
|
|
1675
1672
|
}
|
|
1676
1673
|
) });
|
|
1677
|
-
}),
|
|
1674
|
+
}), Pn = (t, e, n) => {
|
|
1678
1675
|
const s = n.getTime(), i = s.isBefore(E(), "day"), r = s.isAfter(E(), "day"), o = s.isSame(E(), "day");
|
|
1679
1676
|
return N(() => {
|
|
1680
1677
|
const l = t.current;
|
|
@@ -1699,37 +1696,37 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1699
1696
|
}, [e, n, t, i, r, o]), { isPast: i, isFuture: r, isProcess: o };
|
|
1700
1697
|
}, yt = (t) => {
|
|
1701
1698
|
const e = F(() => "schedulant-timeline-marker-position-guide", []), n = k(0), s = k(0), i = k(0), r = k(!1), o = C((p) => {
|
|
1702
|
-
const
|
|
1703
|
-
|
|
1699
|
+
const v = p.style.left, M = p.style.right, f = t.schedulantApi.getScheduleView().getTimelineView(), y = t.milestoneApi?.getResourceApi() ?? t.checkpointApi?.getResourceApi(), S = f.calculateLaneHeight(y), b = document.createElement("div");
|
|
1700
|
+
b.className = e, Object.assign(b.style, {
|
|
1704
1701
|
position: "absolute",
|
|
1705
1702
|
zIndex: 1,
|
|
1706
|
-
left:
|
|
1707
|
-
right:
|
|
1708
|
-
height: w(
|
|
1703
|
+
left: v,
|
|
1704
|
+
right: M,
|
|
1705
|
+
height: w(S),
|
|
1709
1706
|
backgroundColor: t.schedulantApi.getDragHintColor()
|
|
1710
|
-
}), p.parentNode?.insertBefore(
|
|
1707
|
+
}), p.parentNode?.insertBefore(b, p);
|
|
1711
1708
|
}, [t, e]), l = C((p) => {
|
|
1712
|
-
const
|
|
1713
|
-
|
|
1709
|
+
const v = p.previousElementSibling;
|
|
1710
|
+
v?.className === e && p.parentElement?.removeChild(v);
|
|
1714
1711
|
}, [e]), c = C((p) => {
|
|
1715
|
-
const
|
|
1712
|
+
const f = t.schedulantApi.getScheduleView().getTimelineView(), y = p - n.current, S = t.timelineWidth, b = f.getTotalSlots(), D = Math.round(y / S * b), T = D / b * t.timelineWidth;
|
|
1716
1713
|
return {
|
|
1717
1714
|
moveSlots: D,
|
|
1718
1715
|
distance: T,
|
|
1719
1716
|
deltaX: y,
|
|
1720
|
-
totalWidth:
|
|
1721
|
-
totalSlots:
|
|
1717
|
+
totalWidth: S,
|
|
1718
|
+
totalSlots: b
|
|
1722
1719
|
};
|
|
1723
|
-
}, [t]), d = C((p,
|
|
1724
|
-
const
|
|
1725
|
-
if (
|
|
1726
|
-
const { distance:
|
|
1727
|
-
|
|
1720
|
+
}, [t]), d = C((p, v) => {
|
|
1721
|
+
const M = p.previousElementSibling;
|
|
1722
|
+
if (M && M.className === e) {
|
|
1723
|
+
const { distance: f } = c(v);
|
|
1724
|
+
M.style.left = w(Math.max(s.current + f, 0)), M.style.right = w(i.current - f);
|
|
1728
1725
|
}
|
|
1729
|
-
}, [e, c]), m = C((p,
|
|
1730
|
-
const { moveSlots:
|
|
1731
|
-
if (p.style.left = w(Math.max(s.current +
|
|
1732
|
-
const y = t.milestoneApi.getTime().add(
|
|
1726
|
+
}, [e, c]), m = C((p, v) => {
|
|
1727
|
+
const { moveSlots: M, distance: f } = c(v);
|
|
1728
|
+
if (p.style.left = w(Math.max(s.current + f, 0)), p.style.right = w(i.current - f), t.milestoneApi) {
|
|
1729
|
+
const y = t.milestoneApi.getTime().add(M, "day");
|
|
1733
1730
|
t.schedulantApi.milestoneMove({
|
|
1734
1731
|
el: p,
|
|
1735
1732
|
date: y,
|
|
@@ -1737,7 +1734,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1737
1734
|
milestoneApi: t.milestoneApi
|
|
1738
1735
|
});
|
|
1739
1736
|
} else if (t.checkpointApi) {
|
|
1740
|
-
const y = t.checkpointApi.getTime().add(
|
|
1737
|
+
const y = t.checkpointApi.getTime().add(M, "day");
|
|
1741
1738
|
t.schedulantApi.checkpointMove({
|
|
1742
1739
|
el: p,
|
|
1743
1740
|
date: y,
|
|
@@ -1746,40 +1743,40 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1746
1743
|
});
|
|
1747
1744
|
}
|
|
1748
1745
|
n.current = 0;
|
|
1749
|
-
}, [t, c]),
|
|
1746
|
+
}, [t, c]), g = C((p) => {
|
|
1750
1747
|
p.preventDefault();
|
|
1751
|
-
const
|
|
1752
|
-
if (
|
|
1753
|
-
const
|
|
1754
|
-
|
|
1748
|
+
const v = t.markerRef.current, M = r.current;
|
|
1749
|
+
if (v && M) {
|
|
1750
|
+
const f = p.clientX - n.current, y = s.current + f, S = i.current - f;
|
|
1751
|
+
v.style.left = w(y), v.style.right = w(S), d(v, p.clientX);
|
|
1755
1752
|
}
|
|
1756
1753
|
}, [t.markerRef, d]), h = F(
|
|
1757
|
-
() => pt(
|
|
1758
|
-
[
|
|
1754
|
+
() => pt(g, ht),
|
|
1755
|
+
[g]
|
|
1759
1756
|
), u = C((p) => {
|
|
1760
1757
|
p.preventDefault();
|
|
1761
|
-
const
|
|
1762
|
-
|
|
1758
|
+
const v = t.markerRef.current, M = r.current, f = t.schedulantApi.getSchedulantElRef().current;
|
|
1759
|
+
M && f && v && (l(v), m(v, p.clientX), f.removeEventListener("mousemove", h), r.current = !1);
|
|
1763
1760
|
}, [h, t.markerRef, t.schedulantApi, l, m]), A = C((p) => {
|
|
1764
1761
|
p.preventDefault();
|
|
1765
|
-
const
|
|
1766
|
-
|
|
1762
|
+
const v = t.schedulantApi.getSchedulantElRef().current, M = t.markerRef.current;
|
|
1763
|
+
v && M && (r.current = !0, n.current = p.clientX, s.current = oe(M.style.left), i.current = oe(M.style.right), o(M), v.addEventListener("mousemove", h));
|
|
1767
1764
|
}, [o, h, t.markerRef, t.schedulantApi]);
|
|
1768
1765
|
return N(() => {
|
|
1769
|
-
const p = t.schedulantApi.getSchedulantElRef().current,
|
|
1770
|
-
if (p &&
|
|
1771
|
-
const
|
|
1772
|
-
if (
|
|
1773
|
-
const
|
|
1774
|
-
y.preventDefault(), r.current && !
|
|
1766
|
+
const p = t.schedulantApi.getSchedulantElRef().current, v = t.markerRef.current;
|
|
1767
|
+
if (p && v) {
|
|
1768
|
+
const M = v.parentElement?.parentElement;
|
|
1769
|
+
if (M) {
|
|
1770
|
+
const f = (y) => {
|
|
1771
|
+
y.preventDefault(), r.current && !M.contains(y.relatedTarget) && (l(v), m(v, y.clientX), p.removeEventListener("mousemove", h), r.current = !1);
|
|
1775
1772
|
};
|
|
1776
|
-
return
|
|
1777
|
-
|
|
1773
|
+
return M.addEventListener("mouseup", f), M.addEventListener("mouseout", f), () => {
|
|
1774
|
+
M.removeEventListener("mouseup", f), M.removeEventListener("mouseout", f), p.removeEventListener("mousemove", h), h.cancel();
|
|
1778
1775
|
};
|
|
1779
1776
|
}
|
|
1780
1777
|
}
|
|
1781
1778
|
}, [h, t, l, m]), { handleMouseUp: u, handleMouseDown: A };
|
|
1782
|
-
},
|
|
1779
|
+
}, Ln = (t) => /* @__PURE__ */ a(X, { component: () => /* @__PURE__ */ O(
|
|
1783
1780
|
"svg",
|
|
1784
1781
|
{
|
|
1785
1782
|
className: "flag-icon",
|
|
@@ -1805,8 +1802,8 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1805
1802
|
)
|
|
1806
1803
|
]
|
|
1807
1804
|
}
|
|
1808
|
-
), ...t }),
|
|
1809
|
-
const e = k(null), n = k(null), s = t.schedulantApi.isEditable(), i = t.milestoneApi.getStatus(), o = t.schedulantApi.getScheduleView().getTimelineView().calculateLaneHeight(t.milestoneApi.getResourceApi()), l = o * $t * -1, { isPast: c, isFuture: d, isProcess: m } =
|
|
1805
|
+
), ...t }), Nn = ae((t) => {
|
|
1806
|
+
const e = k(null), n = k(null), s = t.schedulantApi.isEditable(), i = t.milestoneApi.getStatus(), o = t.schedulantApi.getScheduleView().getTimelineView().calculateLaneHeight(t.milestoneApi.getResourceApi()), l = o * $t * -1, { isPast: c, isFuture: d, isProcess: m } = Pn(e, t.schedulantApi, t.milestoneApi), g = t.milestoneApi.getColor().getOrElse(
|
|
1810
1807
|
d ? "#1677ff" : m ? i === "Success" ? "#1677ff" : i === "Failure" ? "#f5222d" : "#faad14" : i === "Success" ? "#52c41a" : i === "Failure" ? "#f5222d" : "#faad14"
|
|
1811
1808
|
), { handleMouseUp: h, handleMouseDown: u } = yt({
|
|
1812
1809
|
markerRef: n,
|
|
@@ -1829,11 +1826,11 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1829
1826
|
menu: {
|
|
1830
1827
|
items: t.schedulantApi.getMilestoneContextMenuItems(),
|
|
1831
1828
|
onClick: (A) => {
|
|
1832
|
-
const { key: p, keyPath:
|
|
1829
|
+
const { key: p, keyPath: v, domEvent: M } = A;
|
|
1833
1830
|
t.schedulantApi.onMilestoneContextMenuClick({
|
|
1834
1831
|
key: p,
|
|
1835
|
-
keyPath:
|
|
1836
|
-
domEvent:
|
|
1832
|
+
keyPath: v,
|
|
1833
|
+
domEvent: M,
|
|
1837
1834
|
isPast: c,
|
|
1838
1835
|
isFuture: d,
|
|
1839
1836
|
isProcess: m,
|
|
@@ -1846,14 +1843,14 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1846
1843
|
"div",
|
|
1847
1844
|
{
|
|
1848
1845
|
className: `schedulant-timeline-milestone${m ? " schedulant-milestone-today" : ""}`,
|
|
1849
|
-
style: m ? { "--milestone-glow-color":
|
|
1846
|
+
style: m ? { "--milestone-glow-color": g } : void 0,
|
|
1850
1847
|
ref: e,
|
|
1851
|
-
children: /* @__PURE__ */ a("div", { className: "schedulant-milestone-main", children: /* @__PURE__ */ a(
|
|
1848
|
+
children: /* @__PURE__ */ a("div", { className: "schedulant-milestone-main", children: /* @__PURE__ */ a(Ln, { width: o * He, height: o * He, color: g }) })
|
|
1852
1849
|
}
|
|
1853
1850
|
)
|
|
1854
1851
|
}
|
|
1855
1852
|
) });
|
|
1856
|
-
}),
|
|
1853
|
+
}), Yn = (t, e, n) => {
|
|
1857
1854
|
const s = n.getTime(), i = s.isBefore(E(), "day"), r = s.isAfter(E(), "day"), o = s.isSame(E(), "day");
|
|
1858
1855
|
return N(() => {
|
|
1859
1856
|
const l = t.current;
|
|
@@ -1876,7 +1873,7 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1876
1873
|
});
|
|
1877
1874
|
};
|
|
1878
1875
|
}, [e, n, t, i, r, o]), { isPast: i, isFuture: r, isProcess: o };
|
|
1879
|
-
},
|
|
1876
|
+
}, _n = (t) => /* @__PURE__ */ a(X, { component: () => /* @__PURE__ */ O(
|
|
1880
1877
|
"svg",
|
|
1881
1878
|
{
|
|
1882
1879
|
className: "droplet-icon",
|
|
@@ -1903,12 +1900,12 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1903
1900
|
/* @__PURE__ */ a("path", { d: "M 517,116 A 154,154 0 1 1 517,424 A 154,154 0 1 1 517,116 Z", fill: t.color })
|
|
1904
1901
|
]
|
|
1905
1902
|
}
|
|
1906
|
-
), ...t }),
|
|
1903
|
+
), ...t }), Wn = ae((t) => {
|
|
1907
1904
|
const e = k(null), n = k(null), s = t.schedulantApi.isEditable(), i = t.checkpointApi.getColor().getOrElse("black"), r = t.schedulantApi.getScheduleView().getTimelineView(), o = r.calculateLaneHeight(t.checkpointApi.getResourceApi()), l = r.calculateEventHeight(), c = (o - l) / 2 + 2, {
|
|
1908
1905
|
isPast: d,
|
|
1909
1906
|
isFuture: m,
|
|
1910
|
-
isProcess:
|
|
1911
|
-
} =
|
|
1907
|
+
isProcess: g
|
|
1908
|
+
} = Yn(e, t.schedulantApi, t.checkpointApi), { handleMouseUp: h, handleMouseDown: u } = yt({
|
|
1912
1909
|
markerRef: n,
|
|
1913
1910
|
timelineWidth: t.timelineWidth,
|
|
1914
1911
|
schedulantApi: t.schedulantApi,
|
|
@@ -1937,20 +1934,20 @@ const pt = /* @__PURE__ */ vn(On), In = (t) => {
|
|
|
1937
1934
|
menu: {
|
|
1938
1935
|
items: t.schedulantApi.getCheckpointContextMenuItems(),
|
|
1939
1936
|
onClick: (A) => {
|
|
1940
|
-
const { key: p, keyPath:
|
|
1937
|
+
const { key: p, keyPath: v, domEvent: M } = A;
|
|
1941
1938
|
t.schedulantApi.onCheckpointContextMenuClick({
|
|
1942
1939
|
key: p,
|
|
1943
|
-
keyPath:
|
|
1944
|
-
domEvent:
|
|
1940
|
+
keyPath: v,
|
|
1941
|
+
domEvent: M,
|
|
1945
1942
|
isPast: d,
|
|
1946
1943
|
isFuture: m,
|
|
1947
|
-
isProcess:
|
|
1944
|
+
isProcess: g,
|
|
1948
1945
|
checkpointApi: t.checkpointApi,
|
|
1949
1946
|
schedulantApi: t.schedulantApi
|
|
1950
1947
|
});
|
|
1951
1948
|
}
|
|
1952
1949
|
},
|
|
1953
|
-
children: /* @__PURE__ */ a("div", { className: "schedulant-timeline-checkpoint", ref: e, children: /* @__PURE__ */ a("div", { className: "schedulant-checkpoint-main", children: /* @__PURE__ */ a(
|
|
1950
|
+
children: /* @__PURE__ */ a("div", { className: "schedulant-timeline-checkpoint", ref: e, children: /* @__PURE__ */ a("div", { className: "schedulant-checkpoint-main", children: /* @__PURE__ */ a(_n, { width: l, height: l, color: i }) }) })
|
|
1954
1951
|
}
|
|
1955
1952
|
)
|
|
1956
1953
|
}
|
|
@@ -1967,15 +1964,12 @@ class J {
|
|
|
1967
1964
|
getTimelineApi() {
|
|
1968
1965
|
return this.schedulantApi.getTimelineApi();
|
|
1969
1966
|
}
|
|
1970
|
-
renderLane() {
|
|
1971
|
-
return /* @__PURE__ */ a(pn, {});
|
|
1972
|
-
}
|
|
1973
1967
|
renderEvents(e, n) {
|
|
1974
1968
|
const s = this.schedulantApi.getTimelineApi(), i = e.getEventApis();
|
|
1975
1969
|
return /* @__PURE__ */ a("div", { className: "schedulant-timeline-events schedulant-scrollgrid-sync-inner", children: i.filter((r) => !r.getStart().isAfter(s.getEnd()) && !r.getEnd().isBefore(s.getStart())).map((r) => {
|
|
1976
1970
|
const o = this.calculatePosition(n, r.getStart(), r.getEnd());
|
|
1977
1971
|
return /* @__PURE__ */ a(
|
|
1978
|
-
|
|
1972
|
+
In,
|
|
1979
1973
|
{
|
|
1980
1974
|
eventApi: r,
|
|
1981
1975
|
position: o,
|
|
@@ -1992,7 +1986,7 @@ class J {
|
|
|
1992
1986
|
return /* @__PURE__ */ a("div", { className: "schedulant-timeline-milestones schedulant-scrollgrid-sync-inner", children: i.filter((r) => (r.getTime().isAfter(s.getStart(), "day") || r.getTime().isSame(s.getStart(), "day")) && r.getTime().isSameOrBefore(s.getEnd(), "day")).map((r) => {
|
|
1993
1987
|
const o = this.calculatePosition(n, r.getTime(), r.getTime());
|
|
1994
1988
|
return /* @__PURE__ */ a(
|
|
1995
|
-
|
|
1989
|
+
Nn,
|
|
1996
1990
|
{
|
|
1997
1991
|
position: o,
|
|
1998
1992
|
milestoneApi: r,
|
|
@@ -2008,7 +2002,7 @@ class J {
|
|
|
2008
2002
|
return /* @__PURE__ */ a("div", { className: "schedulant-timeline-checkpoints schedulant-scrollgrid-sync-inner", children: i.filter((r) => (r.getTime().isAfter(s.getStart(), "day") || r.getTime().isSame(s.getStart(), "day")) && r.getTime().isSameOrBefore(s.getEnd(), "day")).map((r) => {
|
|
2009
2003
|
const o = this.calculatePosition(n, r.getTime(), r.getTime());
|
|
2010
2004
|
return /* @__PURE__ */ a(
|
|
2011
|
-
|
|
2005
|
+
Wn,
|
|
2012
2006
|
{
|
|
2013
2007
|
position: o,
|
|
2014
2008
|
timelineWidth: n,
|
|
@@ -2066,7 +2060,7 @@ const ee = (t) => {
|
|
|
2066
2060
|
},
|
|
2067
2061
|
t.date.format("YYYY-MM-DD")
|
|
2068
2062
|
);
|
|
2069
|
-
}),
|
|
2063
|
+
}), Hn = (t, e, n, s, i) => {
|
|
2070
2064
|
const r = n.isBefore(E(), "day"), o = n.isAfter(E(), "day"), l = n.isSame(E(), "day");
|
|
2071
2065
|
N(() => {
|
|
2072
2066
|
const c = t.current;
|
|
@@ -2097,7 +2091,7 @@ const ee = (t) => {
|
|
|
2097
2091
|
}, [n, o, r, l, s, e, i, t]);
|
|
2098
2092
|
}, B = (t) => {
|
|
2099
2093
|
const e = k(null);
|
|
2100
|
-
return
|
|
2094
|
+
return Hn(e, t.schedulantApi, t.date, t.level, t.timeText), /* @__PURE__ */ a(
|
|
2101
2095
|
"th",
|
|
2102
2096
|
{
|
|
2103
2097
|
ref: e,
|
|
@@ -2116,7 +2110,7 @@ const ee = (t) => {
|
|
|
2116
2110
|
t.date.format("YYYY-MM-DD")
|
|
2117
2111
|
);
|
|
2118
2112
|
};
|
|
2119
|
-
class
|
|
2113
|
+
class Vn extends J {
|
|
2120
2114
|
renderColgroup() {
|
|
2121
2115
|
const e = this.getSchedulantApi(), s = this.getTimelineApi().getDays(), i = e.getSlotMinWidth();
|
|
2122
2116
|
return /* @__PURE__ */ a(ee, { dates: s, minWidth: i });
|
|
@@ -2199,7 +2193,7 @@ class Fn extends J {
|
|
|
2199
2193
|
return { left: o, right: l };
|
|
2200
2194
|
}
|
|
2201
2195
|
}
|
|
2202
|
-
class
|
|
2196
|
+
class Fn extends J {
|
|
2203
2197
|
getTotalSlots() {
|
|
2204
2198
|
return this.getTimelineApi().getMonths().length;
|
|
2205
2199
|
}
|
|
@@ -2252,11 +2246,11 @@ class Bn extends J {
|
|
|
2252
2246
|
] });
|
|
2253
2247
|
}
|
|
2254
2248
|
calculatePosition(e, n, s) {
|
|
2255
|
-
const i = this.getTimelineApi(), r = i.getMonths(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.date() - 1, m = o / l.daysInMonth(),
|
|
2256
|
-
return { left: h, right:
|
|
2249
|
+
const i = this.getTimelineApi(), r = i.getMonths(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.date() - 1, m = o / l.daysInMonth(), g = i.getMonthPosition(l) * o, h = n.isSameOrBefore(i.getStart(), "day") ? g : g + d * m, u = c.daysInMonth() - c.date(), A = o / c.daysInMonth(), p = (i.getMonthPosition(c) + 1) * o * -1, v = s.isBefore(i.getEnd(), "day") ? p + u * A : p;
|
|
2250
|
+
return { left: h, right: v };
|
|
2257
2251
|
}
|
|
2258
2252
|
}
|
|
2259
|
-
class
|
|
2253
|
+
class Bn extends J {
|
|
2260
2254
|
getTotalSlots() {
|
|
2261
2255
|
return this.getTimelineApi().getQuarters().length;
|
|
2262
2256
|
}
|
|
@@ -2309,11 +2303,11 @@ class qn extends J {
|
|
|
2309
2303
|
] });
|
|
2310
2304
|
}
|
|
2311
2305
|
calculatePosition(e, n, s) {
|
|
2312
|
-
const i = this.getTimelineApi(), r = i.getQuarters(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.endOf("quarter").diff(l.startOf("quarter"), "day") + 1, m = n.diff(l.startOf("quarter"), "day"),
|
|
2313
|
-
return { left: A, right:
|
|
2306
|
+
const i = this.getTimelineApi(), r = i.getQuarters(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.endOf("quarter").diff(l.startOf("quarter"), "day") + 1, m = n.diff(l.startOf("quarter"), "day"), g = o / d, h = m * g, u = i.getQuarterPosition(l) * o, A = n.isSameOrBefore(i.getStart(), "day") ? u : u + h, p = c.endOf("quarter").diff(c.startOf("quarter"), "day") + 1, v = c.endOf("quarter").diff(c, "day"), M = o / p, f = v * M, y = (i.getQuarterPosition(c) + 1) * o * -1, S = s.isBefore(i.getEnd(), "day") ? y + f : y;
|
|
2307
|
+
return { left: A, right: S };
|
|
2314
2308
|
}
|
|
2315
2309
|
}
|
|
2316
|
-
class
|
|
2310
|
+
class qn extends J {
|
|
2317
2311
|
getTotalSlots() {
|
|
2318
2312
|
return this.getTimelineApi().getWeeks().length;
|
|
2319
2313
|
}
|
|
@@ -2351,11 +2345,11 @@ class Un extends J {
|
|
|
2351
2345
|
)) }) });
|
|
2352
2346
|
}
|
|
2353
2347
|
calculatePosition(e, n, s) {
|
|
2354
|
-
const i = this.getTimelineApi(), r = i.getWeeks(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = o / 7, m = l.day(),
|
|
2348
|
+
const i = this.getTimelineApi(), r = i.getWeeks(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = o / 7, m = l.day(), g = i.getWeekPosition(l) * o, h = n.isSameOrBefore(i.getStart(), "day") ? g : g + m * d, u = 6 - c.day(), A = (i.getWeekPosition(c) + 1) * o * -1, p = s.isBefore(i.getEnd(), "day") ? A + u * d : A;
|
|
2355
2349
|
return { left: h, right: p };
|
|
2356
2350
|
}
|
|
2357
2351
|
}
|
|
2358
|
-
class
|
|
2352
|
+
class Un extends J {
|
|
2359
2353
|
getTotalSlots() {
|
|
2360
2354
|
return this.getTimelineApi().getYears().length;
|
|
2361
2355
|
}
|
|
@@ -2393,30 +2387,30 @@ class jn extends J {
|
|
|
2393
2387
|
)) }) });
|
|
2394
2388
|
}
|
|
2395
2389
|
calculatePosition(e, n, s) {
|
|
2396
|
-
const i = this.getTimelineApi(), r = i.getYears(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.endOf("year").diff(l.startOf("year"), "day") + 1, m = l.diff(l.startOf("year"), "day"),
|
|
2397
|
-
return { left: A, right:
|
|
2390
|
+
const i = this.getTimelineApi(), r = i.getYears(), o = e / r.length, l = n.isBefore(i.getStart()) ? i.getStart() : n, c = s.isAfter(i.getEnd()) ? i.getEnd() : s, d = l.endOf("year").diff(l.startOf("year"), "day") + 1, m = l.diff(l.startOf("year"), "day"), g = o / d, h = m * g, u = i.getYearPosition(l) * o, A = n.isSameOrBefore(i.getStart(), "day") ? u : u + h, p = c.endOf("year").diff(c.startOf("year"), "day") + 1, v = c.endOf("year").diff(c, "day"), M = o / p, f = v * M, y = (i.getYearPosition(c) + 1) * o * -1, S = s.isBefore(i.getEnd(), "day") ? y + f : y;
|
|
2391
|
+
return { left: A, right: S };
|
|
2398
2392
|
}
|
|
2399
2393
|
}
|
|
2400
|
-
class
|
|
2394
|
+
class jn {
|
|
2401
2395
|
schedulantApi;
|
|
2402
2396
|
timelineView;
|
|
2403
2397
|
schedulantElRef;
|
|
2404
2398
|
constructor(e, n) {
|
|
2405
2399
|
switch (this.schedulantElRef = n, this.schedulantApi = new rn(this, e), this.schedulantApi.getSchedulantViewType()) {
|
|
2406
2400
|
case "Day":
|
|
2407
|
-
this.timelineView = new
|
|
2401
|
+
this.timelineView = new Vn(this.schedulantApi);
|
|
2408
2402
|
break;
|
|
2409
2403
|
case "Week":
|
|
2410
|
-
this.timelineView = new
|
|
2404
|
+
this.timelineView = new qn(this.schedulantApi);
|
|
2411
2405
|
break;
|
|
2412
2406
|
case "Month":
|
|
2413
|
-
this.timelineView = new
|
|
2407
|
+
this.timelineView = new Fn(this.schedulantApi);
|
|
2414
2408
|
break;
|
|
2415
2409
|
case "Quarter":
|
|
2416
|
-
this.timelineView = new
|
|
2410
|
+
this.timelineView = new Bn(this.schedulantApi);
|
|
2417
2411
|
break;
|
|
2418
2412
|
case "Year":
|
|
2419
|
-
this.timelineView = new
|
|
2413
|
+
this.timelineView = new Un(this.schedulantApi);
|
|
2420
2414
|
break;
|
|
2421
2415
|
}
|
|
2422
2416
|
}
|
|
@@ -2436,10 +2430,8 @@ class $n {
|
|
|
2436
2430
|
"td",
|
|
2437
2431
|
{
|
|
2438
2432
|
"data-resource-id": c.getId(),
|
|
2439
|
-
className: "schedulant-
|
|
2440
|
-
children: /* @__PURE__ */ O("div", { className: "schedulant-timeline-lane
|
|
2441
|
-
this.timelineView.renderLane(),
|
|
2442
|
-
/* @__PURE__ */ a("div", { className: "schedulant-timeline-lane-bg" }),
|
|
2433
|
+
className: "schedulant-resource",
|
|
2434
|
+
children: /* @__PURE__ */ O("div", { className: "schedulant-timeline-lane", style: { height: d }, children: [
|
|
2443
2435
|
this.timelineView.renderEvents(c, i),
|
|
2444
2436
|
this.timelineView.renderMilestones(c, i),
|
|
2445
2437
|
this.timelineView.renderCheckpoints(c, i)
|
|
@@ -2498,14 +2490,14 @@ class $n {
|
|
|
2498
2490
|
},
|
|
2499
2491
|
u.field
|
|
2500
2492
|
);
|
|
2501
|
-
}), m = n.length > 0 ? n[0].start : 0,
|
|
2493
|
+
}), m = n.length > 0 ? n[0].start : 0, g = n.length > 0 ? s - n[n.length - 1].end : 0;
|
|
2502
2494
|
return /* @__PURE__ */ O("tbody", { children: [
|
|
2503
2495
|
m > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: c.length, style: { height: m, padding: 0, border: "none" } }) }),
|
|
2504
2496
|
n.map((h) => {
|
|
2505
2497
|
const u = e[h.index];
|
|
2506
2498
|
return /* @__PURE__ */ a("tr", { role: "row", children: d(u) }, u.getId());
|
|
2507
2499
|
}),
|
|
2508
|
-
|
|
2500
|
+
g > 0 && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: c.length, style: { height: g, padding: 0, border: "none" } }) })
|
|
2509
2501
|
] });
|
|
2510
2502
|
}
|
|
2511
2503
|
getTimelineView() {
|
|
@@ -2518,21 +2510,21 @@ class $n {
|
|
|
2518
2510
|
return this.schedulantElRef;
|
|
2519
2511
|
}
|
|
2520
2512
|
}
|
|
2521
|
-
const
|
|
2513
|
+
const $n = (t) => {
|
|
2522
2514
|
const { schedulantView: e, cellResizerMouseUp: n, cellResizerMouseDownFunc: s } = t;
|
|
2523
2515
|
return /* @__PURE__ */ O("table", { role: "presentation", className: "schedulant-datagrid-head schedulant-scrollgrid-sync-table", children: [
|
|
2524
2516
|
e.renderResourceTableColgroup(),
|
|
2525
2517
|
e.renderResourceLabel(n, s)
|
|
2526
2518
|
] });
|
|
2527
|
-
},
|
|
2519
|
+
}, Gn = (t) => /* @__PURE__ */ O("table", { "aria-hidden": !0, className: "schedulant-scrollgrid-sync-table", children: [
|
|
2528
2520
|
t.schedulantView.renderTimelineTableColgroup(),
|
|
2529
2521
|
t.schedulantView.renderTimelineHeaderTableSlots()
|
|
2530
2522
|
] });
|
|
2531
|
-
function
|
|
2523
|
+
function Xn(t, e) {
|
|
2532
2524
|
const n = t - e.top, s = e.height;
|
|
2533
2525
|
return n < s * Gt ? "before" : n > s * Xt ? "after" : "child";
|
|
2534
2526
|
}
|
|
2535
|
-
function
|
|
2527
|
+
function Qn(t, e) {
|
|
2536
2528
|
let n = e;
|
|
2537
2529
|
for (; n; ) {
|
|
2538
2530
|
if (n.getId() === t) return !0;
|
|
@@ -2541,49 +2533,49 @@ function Kn(t, e) {
|
|
|
2541
2533
|
}
|
|
2542
2534
|
return !1;
|
|
2543
2535
|
}
|
|
2544
|
-
const
|
|
2536
|
+
const Kn = (t, e) => {
|
|
2545
2537
|
const [n, s] = re({
|
|
2546
2538
|
activeId: null,
|
|
2547
2539
|
overId: null,
|
|
2548
2540
|
dropPosition: null
|
|
2549
2541
|
}), i = k(null), r = k(null), o = k(
|
|
2550
|
-
new Map(t.map((
|
|
2542
|
+
new Map(t.map((g) => [g.getId(), g]))
|
|
2551
2543
|
);
|
|
2552
|
-
o.current = new Map(t.map((
|
|
2553
|
-
const l = C((
|
|
2554
|
-
i.current = null, r.current = null, un(String(
|
|
2555
|
-
activeId:
|
|
2544
|
+
o.current = new Map(t.map((g) => [g.getId(), g]));
|
|
2545
|
+
const l = C((g) => {
|
|
2546
|
+
i.current = null, r.current = null, un(String(g.active.id)), s({
|
|
2547
|
+
activeId: g.active.id,
|
|
2556
2548
|
overId: null,
|
|
2557
2549
|
dropPosition: null
|
|
2558
2550
|
});
|
|
2559
|
-
}, []), c = C((
|
|
2560
|
-
const { active: h, over: u, activatorEvent: A, delta: p } =
|
|
2551
|
+
}, []), c = C((g) => {
|
|
2552
|
+
const { active: h, over: u, activatorEvent: A, delta: p } = g;
|
|
2561
2553
|
if (!u || h.id === u.id) {
|
|
2562
2554
|
r.current !== null && (r.current = null, i.current = null, s((y) => ({ ...y, overId: null, dropPosition: null })));
|
|
2563
2555
|
return;
|
|
2564
2556
|
}
|
|
2565
|
-
const
|
|
2566
|
-
if (!
|
|
2557
|
+
const v = o.current.get(String(u.id));
|
|
2558
|
+
if (!v || Qn(String(h.id), v)) {
|
|
2567
2559
|
r.current !== null && (r.current = null, i.current = null, s((y) => ({ ...y, overId: null, dropPosition: null })));
|
|
2568
2560
|
return;
|
|
2569
2561
|
}
|
|
2570
|
-
const
|
|
2562
|
+
const M = A.clientY + p.y, f = Xn(M, {
|
|
2571
2563
|
top: u.rect.top,
|
|
2572
2564
|
height: u.rect.height
|
|
2573
2565
|
});
|
|
2574
|
-
(r.current !== u.id || i.current !==
|
|
2566
|
+
(r.current !== u.id || i.current !== f) && (r.current = u.id, i.current = f, s((y) => ({
|
|
2575
2567
|
...y,
|
|
2576
2568
|
overId: u.id,
|
|
2577
|
-
dropPosition:
|
|
2569
|
+
dropPosition: f
|
|
2578
2570
|
})));
|
|
2579
|
-
}, []), d = C((
|
|
2580
|
-
const { active: h, over: u } =
|
|
2571
|
+
}, []), d = C((g) => {
|
|
2572
|
+
const { active: h, over: u } = g, A = i.current, p = r.current;
|
|
2581
2573
|
if (u && h.id !== u.id && A && p) {
|
|
2582
|
-
const
|
|
2574
|
+
const v = document.querySelector(
|
|
2583
2575
|
`[data-resource-id="${String(p)}"]`
|
|
2584
2576
|
);
|
|
2585
2577
|
e(
|
|
2586
|
-
|
|
2578
|
+
v || document.body,
|
|
2587
2579
|
String(h.id),
|
|
2588
2580
|
String(p),
|
|
2589
2581
|
A
|
|
@@ -2600,40 +2592,40 @@ const Zn = (t, e) => {
|
|
|
2600
2592
|
handleDragEnd: d,
|
|
2601
2593
|
handleDragCancel: m
|
|
2602
2594
|
};
|
|
2603
|
-
},
|
|
2595
|
+
}, Zn = ({ transform: t, activatorEvent: e }) => e ? {
|
|
2604
2596
|
...t,
|
|
2605
2597
|
x: t.x + 20,
|
|
2606
2598
|
y: t.y + 20
|
|
2607
|
-
} : t,
|
|
2608
|
-
const { schedulantView: e, virtualizer: n, visibleResources: s, collapseIds: i, cellResizerMouseUp: r, cellResizerMouseDownFunc: o } = t, l = e.getScheduleApi(), c = l.getFlatMapResourceApis(), d = C(async (
|
|
2609
|
-
const P = c.find((
|
|
2599
|
+
} : t, Jn = (t) => {
|
|
2600
|
+
const { schedulantView: e, virtualizer: n, visibleResources: s, collapseIds: i, cellResizerMouseUp: r, cellResizerMouseDownFunc: o } = t, l = e.getScheduleApi(), c = l.getFlatMapResourceApis(), d = C(async (b, D, T, I) => {
|
|
2601
|
+
const P = c.find((H) => H.getId() === D), Y = c.find((H) => H.getId() === T);
|
|
2610
2602
|
if (P && Y) {
|
|
2611
|
-
const
|
|
2603
|
+
const H = P.getParent();
|
|
2612
2604
|
l.resourceLaneMove({
|
|
2613
|
-
el:
|
|
2605
|
+
el: b,
|
|
2614
2606
|
schedulantApi: l,
|
|
2615
2607
|
draggedResourceApi: P,
|
|
2616
2608
|
targetResourceApi: Y,
|
|
2617
2609
|
position: I,
|
|
2618
|
-
oldParentResourceApi:
|
|
2610
|
+
oldParentResourceApi: H.isDefined() ? H.get() : void 0
|
|
2619
2611
|
});
|
|
2620
2612
|
}
|
|
2621
|
-
}, [l, c]), { dragState: m, handleDragStart:
|
|
2613
|
+
}, [l, c]), { dragState: m, handleDragStart: g, handleDragMove: h, handleDragEnd: u, handleDragCancel: A } = Kn(c, d), p = Nt(
|
|
2622
2614
|
_e(Yt, { activationConstraint: { delay: 300, tolerance: 5 } }),
|
|
2623
2615
|
_e(_t)
|
|
2624
|
-
),
|
|
2616
|
+
), v = s.map((b) => b.getId()), M = l.isEditable(), f = n.getVirtualItems(), y = n.getTotalSize(), S = F(() => m.activeId ? c.find((b) => b.getId() === String(m.activeId)) ?? null : null, [m.activeId, c]);
|
|
2625
2617
|
return /* @__PURE__ */ O(
|
|
2626
2618
|
Wt,
|
|
2627
2619
|
{
|
|
2628
2620
|
sensors: p,
|
|
2629
|
-
collisionDetection:
|
|
2621
|
+
collisionDetection: zt,
|
|
2630
2622
|
modifiers: [Vt],
|
|
2631
|
-
onDragStart:
|
|
2623
|
+
onDragStart: g,
|
|
2632
2624
|
onDragMove: h,
|
|
2633
2625
|
onDragEnd: u,
|
|
2634
2626
|
onDragCancel: A,
|
|
2635
2627
|
children: [
|
|
2636
|
-
/* @__PURE__ */ a(Pt, { items:
|
|
2628
|
+
/* @__PURE__ */ a(Pt, { items: v, strategy: Lt, children: /* @__PURE__ */ O(
|
|
2637
2629
|
"table",
|
|
2638
2630
|
{
|
|
2639
2631
|
role: "presentation",
|
|
@@ -2641,48 +2633,39 @@ const Zn = (t, e) => {
|
|
|
2641
2633
|
className: "schedulant-datagrid-body schedulant-scrollgrid-sync-table",
|
|
2642
2634
|
children: [
|
|
2643
2635
|
e.renderResourceTableColgroup(),
|
|
2644
|
-
e.renderResourceLane(s,
|
|
2645
|
-
isDraggable:
|
|
2636
|
+
e.renderResourceLane(s, f, y, i, r, o, {
|
|
2637
|
+
isDraggable: M,
|
|
2646
2638
|
dragState: m
|
|
2647
2639
|
})
|
|
2648
2640
|
]
|
|
2649
2641
|
}
|
|
2650
2642
|
) }),
|
|
2651
|
-
/* @__PURE__ */ a(
|
|
2643
|
+
/* @__PURE__ */ a(Ht, { dropAnimation: null, modifiers: [Zn], children: S ? /* @__PURE__ */ a("div", { className: "schedulant-drag-overlay", children: S.getTitle() }) : null })
|
|
2652
2644
|
]
|
|
2653
2645
|
}
|
|
2654
2646
|
);
|
|
2655
|
-
},
|
|
2647
|
+
}, es = (t) => /* @__PURE__ */ a("div", { id: "schedulant-timeline-slots", className: "schedulant-timeline-slots", children: /* @__PURE__ */ O("table", { "aria-hidden": !0, children: [
|
|
2656
2648
|
t.schedulantView.renderTimelineTableColgroup(),
|
|
2657
2649
|
t.schedulantView.renderTimelineBodyTableSlots()
|
|
2658
|
-
] }) }),
|
|
2659
|
-
const t =
|
|
2660
|
-
const l = document.getElementsByClassName("schedulant-timeline-head").item(0).getElementsByTagName("table").item(0)?.offsetWidth;
|
|
2661
|
-
return l || 0;
|
|
2662
|
-
}, []), [e, n] = re(0), { state: s } = Te();
|
|
2650
|
+
] }) }), ts = () => {
|
|
2651
|
+
const [t, e] = re(0), { state: n } = Te();
|
|
2663
2652
|
return Et(() => {
|
|
2664
|
-
const
|
|
2665
|
-
|
|
2666
|
-
|
|
2653
|
+
const r = document.getElementsByClassName("schedulant-timeline-head").item(0)?.getElementsByTagName("table").item(0);
|
|
2654
|
+
if (!r) return;
|
|
2655
|
+
const o = () => {
|
|
2656
|
+
const c = r.offsetWidth;
|
|
2657
|
+
e((d) => d !== c ? c : d);
|
|
2667
2658
|
};
|
|
2668
|
-
|
|
2669
|
-
const
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
requestAnimationFrame(i);
|
|
2675
|
-
}), c.observe(l, {
|
|
2676
|
-
childList: !0,
|
|
2677
|
-
subtree: !0,
|
|
2678
|
-
attributes: !0,
|
|
2679
|
-
attributeFilter: ["style", "class"]
|
|
2680
|
-
})), () => {
|
|
2681
|
-
window.removeEventListener("resize", r), c?.disconnect();
|
|
2659
|
+
o();
|
|
2660
|
+
const l = new ResizeObserver(() => {
|
|
2661
|
+
o();
|
|
2662
|
+
});
|
|
2663
|
+
return l.observe(r), window.addEventListener("resize", o), () => {
|
|
2664
|
+
l.disconnect(), window.removeEventListener("resize", o);
|
|
2682
2665
|
};
|
|
2683
|
-
}, [
|
|
2684
|
-
},
|
|
2685
|
-
const e =
|
|
2666
|
+
}, [n.resourceAreaWidth]), t;
|
|
2667
|
+
}, ns = (t) => {
|
|
2668
|
+
const e = ts(), n = t.virtualizer.getVirtualItems(), s = t.virtualizer.getTotalSize();
|
|
2686
2669
|
return /* @__PURE__ */ a(
|
|
2687
2670
|
"table",
|
|
2688
2671
|
{
|
|
@@ -2692,7 +2675,7 @@ const Zn = (t, e) => {
|
|
|
2692
2675
|
children: t.schedulantView.renderTimelineDrawingBoardTable(t.visibleResources, n, s, e)
|
|
2693
2676
|
}
|
|
2694
2677
|
);
|
|
2695
|
-
},
|
|
2678
|
+
}, ss = (t, e) => {
|
|
2696
2679
|
N(() => {
|
|
2697
2680
|
const n = t.current, s = e.getScheduleApi();
|
|
2698
2681
|
if (n)
|
|
@@ -2713,25 +2696,25 @@ function $(t, e, n) {
|
|
|
2713
2696
|
var l, c, d;
|
|
2714
2697
|
let m;
|
|
2715
2698
|
n.key && ((l = n.debug) != null && l.call(n)) && (m = Date.now());
|
|
2716
|
-
const
|
|
2717
|
-
if (!(
|
|
2699
|
+
const g = t();
|
|
2700
|
+
if (!(g.length !== s.length || g.some((A, p) => s[p] !== A)))
|
|
2718
2701
|
return i;
|
|
2719
|
-
s =
|
|
2702
|
+
s = g;
|
|
2720
2703
|
let u;
|
|
2721
|
-
if (n.key && ((c = n.debug) != null && c.call(n)) && (u = Date.now()), i = e(...
|
|
2722
|
-
const A = Math.round((Date.now() - m) * 100) / 100, p = Math.round((Date.now() - u) * 100) / 100,
|
|
2723
|
-
for (
|
|
2724
|
-
|
|
2725
|
-
return
|
|
2704
|
+
if (n.key && ((c = n.debug) != null && c.call(n)) && (u = Date.now()), i = e(...g), n.key && ((d = n.debug) != null && d.call(n))) {
|
|
2705
|
+
const A = Math.round((Date.now() - m) * 100) / 100, p = Math.round((Date.now() - u) * 100) / 100, v = p / 16, M = (f, y) => {
|
|
2706
|
+
for (f = String(f); f.length < y; )
|
|
2707
|
+
f = " " + f;
|
|
2708
|
+
return f;
|
|
2726
2709
|
};
|
|
2727
2710
|
console.info(
|
|
2728
|
-
`%c⏱ ${
|
|
2711
|
+
`%c⏱ ${M(p, 5)} /${M(A, 5)} ms`,
|
|
2729
2712
|
`
|
|
2730
2713
|
font-size: .6rem;
|
|
2731
2714
|
font-weight: bold;
|
|
2732
2715
|
color: hsl(${Math.max(
|
|
2733
2716
|
0,
|
|
2734
|
-
Math.min(120 - 120 *
|
|
2717
|
+
Math.min(120 - 120 * v, 120)
|
|
2735
2718
|
)}deg 100% 31%);`,
|
|
2736
2719
|
n?.key
|
|
2737
2720
|
);
|
|
@@ -2747,7 +2730,7 @@ function rt(t, e) {
|
|
|
2747
2730
|
throw new Error("Unexpected undefined");
|
|
2748
2731
|
return t;
|
|
2749
2732
|
}
|
|
2750
|
-
const
|
|
2733
|
+
const is = (t, e) => Math.abs(t - e) < 1.01, rs = (t, e, n) => {
|
|
2751
2734
|
let s;
|
|
2752
2735
|
return function(...i) {
|
|
2753
2736
|
t.clearTimeout(s), s = t.setTimeout(() => e.apply(this, i), n);
|
|
@@ -2755,12 +2738,12 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
|
|
|
2755
2738
|
}, ot = (t) => {
|
|
2756
2739
|
const { offsetWidth: e, offsetHeight: n } = t;
|
|
2757
2740
|
return { width: e, height: n };
|
|
2758
|
-
},
|
|
2741
|
+
}, os = (t) => t, ls = (t) => {
|
|
2759
2742
|
const e = Math.max(t.startIndex - t.overscan, 0), n = Math.min(t.endIndex + t.overscan, t.count - 1), s = [];
|
|
2760
2743
|
for (let i = e; i <= n; i++)
|
|
2761
2744
|
s.push(i);
|
|
2762
2745
|
return s;
|
|
2763
|
-
},
|
|
2746
|
+
}, as = (t, e) => {
|
|
2764
2747
|
const n = t.scrollElement;
|
|
2765
2748
|
if (!n)
|
|
2766
2749
|
return;
|
|
@@ -2793,7 +2776,7 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
|
|
|
2793
2776
|
};
|
|
2794
2777
|
}, lt = {
|
|
2795
2778
|
passive: !0
|
|
2796
|
-
}, at = typeof window > "u" ? !0 : "onscrollend" in window,
|
|
2779
|
+
}, at = typeof window > "u" ? !0 : "onscrollend" in window, cs = (t, e) => {
|
|
2797
2780
|
const n = t.scrollElement;
|
|
2798
2781
|
if (!n)
|
|
2799
2782
|
return;
|
|
@@ -2802,22 +2785,22 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
|
|
|
2802
2785
|
return;
|
|
2803
2786
|
let i = 0;
|
|
2804
2787
|
const r = t.options.useScrollendEvent && at ? () => {
|
|
2805
|
-
} :
|
|
2788
|
+
} : rs(
|
|
2806
2789
|
s,
|
|
2807
2790
|
() => {
|
|
2808
2791
|
e(i, !1);
|
|
2809
2792
|
},
|
|
2810
2793
|
t.options.isScrollingResetDelay
|
|
2811
2794
|
), o = (m) => () => {
|
|
2812
|
-
const { horizontal:
|
|
2813
|
-
i =
|
|
2795
|
+
const { horizontal: g, isRtl: h } = t.options;
|
|
2796
|
+
i = g ? n.scrollLeft * (h && -1 || 1) : n.scrollTop, r(), e(i, m);
|
|
2814
2797
|
}, l = o(!0), c = o(!1);
|
|
2815
2798
|
n.addEventListener("scroll", l, lt);
|
|
2816
2799
|
const d = t.options.useScrollendEvent && at;
|
|
2817
2800
|
return d && n.addEventListener("scrollend", c, lt), () => {
|
|
2818
2801
|
n.removeEventListener("scroll", l), d && n.removeEventListener("scrollend", c);
|
|
2819
2802
|
};
|
|
2820
|
-
},
|
|
2803
|
+
}, ds = (t, e, n) => {
|
|
2821
2804
|
if (e?.borderBoxSize) {
|
|
2822
2805
|
const s = e.borderBoxSize[0];
|
|
2823
2806
|
if (s)
|
|
@@ -2826,7 +2809,7 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
|
|
|
2826
2809
|
);
|
|
2827
2810
|
}
|
|
2828
2811
|
return t[n.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
2829
|
-
},
|
|
2812
|
+
}, us = (t, {
|
|
2830
2813
|
adjustments: e = 0,
|
|
2831
2814
|
behavior: n
|
|
2832
2815
|
}, s) => {
|
|
@@ -2837,7 +2820,7 @@ const rs = (t, e) => Math.abs(t - e) < 1.01, os = (t, e, n) => {
|
|
|
2837
2820
|
behavior: n
|
|
2838
2821
|
});
|
|
2839
2822
|
};
|
|
2840
|
-
class
|
|
2823
|
+
class hs {
|
|
2841
2824
|
constructor(e) {
|
|
2842
2825
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
2843
2826
|
var n, s, i;
|
|
@@ -2878,11 +2861,11 @@ class ms {
|
|
|
2878
2861
|
scrollPaddingStart: 0,
|
|
2879
2862
|
scrollPaddingEnd: 0,
|
|
2880
2863
|
horizontal: !1,
|
|
2881
|
-
getItemKey:
|
|
2882
|
-
rangeExtractor:
|
|
2864
|
+
getItemKey: os,
|
|
2865
|
+
rangeExtractor: ls,
|
|
2883
2866
|
onChange: () => {
|
|
2884
2867
|
},
|
|
2885
|
-
measureElement:
|
|
2868
|
+
measureElement: ds,
|
|
2886
2869
|
initialRect: { width: 0, height: 0 },
|
|
2887
2870
|
scrollMargin: 0,
|
|
2888
2871
|
gap: 0,
|
|
@@ -2990,33 +2973,33 @@ class ms {
|
|
|
2990
2973
|
}));
|
|
2991
2974
|
const d = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
2992
2975
|
this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === n && (this.lanesSettling = !1);
|
|
2993
|
-
const m = this.measurementsCache.slice(0, d),
|
|
2976
|
+
const m = this.measurementsCache.slice(0, d), g = new Array(l).fill(
|
|
2994
2977
|
void 0
|
|
2995
2978
|
);
|
|
2996
2979
|
for (let h = 0; h < d; h++) {
|
|
2997
2980
|
const u = m[h];
|
|
2998
|
-
u && (
|
|
2981
|
+
u && (g[u.lane] = h);
|
|
2999
2982
|
}
|
|
3000
2983
|
for (let h = d; h < n; h++) {
|
|
3001
2984
|
const u = r(h), A = this.laneAssignments.get(h);
|
|
3002
|
-
let p,
|
|
2985
|
+
let p, v;
|
|
3003
2986
|
if (A !== void 0 && this.options.lanes > 1) {
|
|
3004
2987
|
p = A;
|
|
3005
|
-
const
|
|
3006
|
-
|
|
2988
|
+
const S = g[p], b = S !== void 0 ? m[S] : void 0;
|
|
2989
|
+
v = b ? b.end + this.options.gap : s + i;
|
|
3007
2990
|
} else {
|
|
3008
|
-
const
|
|
3009
|
-
|
|
2991
|
+
const S = this.options.lanes === 1 ? m[h - 1] : this.getFurthestMeasurement(m, h);
|
|
2992
|
+
v = S ? S.end + this.options.gap : s + i, p = S ? S.lane : h % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(h, p);
|
|
3010
2993
|
}
|
|
3011
|
-
const
|
|
2994
|
+
const M = c.get(u), f = typeof M == "number" ? M : this.options.estimateSize(h), y = v + f;
|
|
3012
2995
|
m[h] = {
|
|
3013
2996
|
index: h,
|
|
3014
|
-
start:
|
|
3015
|
-
size:
|
|
2997
|
+
start: v,
|
|
2998
|
+
size: f,
|
|
3016
2999
|
end: y,
|
|
3017
3000
|
key: u,
|
|
3018
3001
|
lane: p
|
|
3019
|
-
},
|
|
3002
|
+
}, g[p] = h;
|
|
3020
3003
|
}
|
|
3021
3004
|
return this.measurementsCache = m, m;
|
|
3022
3005
|
},
|
|
@@ -3031,7 +3014,7 @@ class ms {
|
|
|
3031
3014
|
this.getScrollOffset(),
|
|
3032
3015
|
this.options.lanes
|
|
3033
3016
|
],
|
|
3034
|
-
(n, s, i, r) => this.range = n.length > 0 && s > 0 ?
|
|
3017
|
+
(n, s, i, r) => this.range = n.length > 0 && s > 0 ? ms({
|
|
3035
3018
|
measurements: n,
|
|
3036
3019
|
outerSize: s,
|
|
3037
3020
|
scrollOffset: i,
|
|
@@ -3252,7 +3235,7 @@ class ms {
|
|
|
3252
3235
|
return;
|
|
3253
3236
|
}
|
|
3254
3237
|
const s = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, i = s ? s[0] : this.scrollState.lastTargetOffset, r = 1, o = i !== this.scrollState.lastTargetOffset;
|
|
3255
|
-
if (!o &&
|
|
3238
|
+
if (!o && is(i, this.getScrollOffset())) {
|
|
3256
3239
|
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= r) {
|
|
3257
3240
|
this.scrollState = null;
|
|
3258
3241
|
return;
|
|
@@ -3277,7 +3260,7 @@ const vt = (t, e, n, s) => {
|
|
|
3277
3260
|
}
|
|
3278
3261
|
return t > 0 ? t - 1 : 0;
|
|
3279
3262
|
};
|
|
3280
|
-
function
|
|
3263
|
+
function ms({
|
|
3281
3264
|
measurements: t,
|
|
3282
3265
|
outerSize: e,
|
|
3283
3266
|
scrollOffset: n,
|
|
@@ -3314,7 +3297,7 @@ function gs({
|
|
|
3314
3297
|
return { startIndex: o, endIndex: l };
|
|
3315
3298
|
}
|
|
3316
3299
|
const ct = typeof document < "u" ? ie.useLayoutEffect : ie.useEffect;
|
|
3317
|
-
function
|
|
3300
|
+
function gs({
|
|
3318
3301
|
useFlushSync: t = !0,
|
|
3319
3302
|
...e
|
|
3320
3303
|
}) {
|
|
@@ -3325,79 +3308,79 @@ function fs({
|
|
|
3325
3308
|
t && o ? Ft(n) : n(), (l = e.onChange) == null || l.call(e, r, o);
|
|
3326
3309
|
}
|
|
3327
3310
|
}, [i] = ie.useState(
|
|
3328
|
-
() => new
|
|
3311
|
+
() => new hs(s)
|
|
3329
3312
|
);
|
|
3330
3313
|
return i.setOptions(s), ct(() => i._didMount(), []), ct(() => i._willUpdate()), i;
|
|
3331
3314
|
}
|
|
3332
|
-
function
|
|
3333
|
-
return
|
|
3334
|
-
observeElementRect:
|
|
3335
|
-
observeElementOffset:
|
|
3336
|
-
scrollToFn:
|
|
3315
|
+
function fs(t) {
|
|
3316
|
+
return gs({
|
|
3317
|
+
observeElementRect: as,
|
|
3318
|
+
observeElementOffset: cs,
|
|
3319
|
+
scrollToFn: us,
|
|
3337
3320
|
...t
|
|
3338
3321
|
});
|
|
3339
3322
|
}
|
|
3340
|
-
function
|
|
3323
|
+
function ps(t, e) {
|
|
3341
3324
|
const n = [], s = (i) => {
|
|
3342
3325
|
n.push(i), !e.some((o) => o === i.getId()) && i.getChildren().length > 0 && i.getChildren().forEach((o) => s(o));
|
|
3343
3326
|
};
|
|
3344
3327
|
return t.forEach((i) => s(i)), n;
|
|
3345
3328
|
}
|
|
3346
|
-
const
|
|
3329
|
+
const ys = (t, e, n, s) => {
|
|
3347
3330
|
const i = F(
|
|
3348
|
-
() =>
|
|
3331
|
+
() => ps(e, n),
|
|
3349
3332
|
[e, n]
|
|
3350
3333
|
), r = C(() => s, [s]);
|
|
3351
|
-
return { virtualizer:
|
|
3334
|
+
return { virtualizer: fs({
|
|
3352
3335
|
count: i.length,
|
|
3353
3336
|
getScrollElement: () => t.current,
|
|
3354
3337
|
estimateSize: r,
|
|
3355
3338
|
overscan: 5
|
|
3356
3339
|
}), visibleResources: i };
|
|
3357
|
-
},
|
|
3340
|
+
}, Ps = (t) => /* @__PURE__ */ a(Ut, { children: /* @__PURE__ */ a(vs, { ...t }) }), vs = (t) => {
|
|
3358
3341
|
const { state: e, dispatch: n } = Te(), s = k(null), i = k(null), r = k(null), o = k(null), l = k(null), c = k(null), {
|
|
3359
3342
|
start: d,
|
|
3360
3343
|
end: m,
|
|
3361
|
-
editable:
|
|
3344
|
+
editable: g,
|
|
3362
3345
|
selectable: h,
|
|
3363
3346
|
lineHeight: u,
|
|
3364
3347
|
slotMinWidth: A,
|
|
3365
3348
|
schedulantMaxHeight: p,
|
|
3366
|
-
schedulantViewType:
|
|
3367
|
-
events:
|
|
3368
|
-
resources:
|
|
3349
|
+
schedulantViewType: v,
|
|
3350
|
+
events: M,
|
|
3351
|
+
resources: f,
|
|
3369
3352
|
milestones: y,
|
|
3370
|
-
checkpoints:
|
|
3371
|
-
resourceAreaColumns:
|
|
3353
|
+
checkpoints: S,
|
|
3354
|
+
resourceAreaColumns: b,
|
|
3372
3355
|
resourceAreaWidth: D,
|
|
3373
3356
|
companyHolidays: T,
|
|
3374
3357
|
specialWorkdays: I,
|
|
3375
3358
|
nationalHolidays: P,
|
|
3376
3359
|
dragHintColor: Y,
|
|
3377
|
-
selectionColor:
|
|
3360
|
+
selectionColor: H
|
|
3378
3361
|
} = t, _ = F(
|
|
3379
|
-
() => new
|
|
3362
|
+
() => new jn(t, s),
|
|
3380
3363
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3381
3364
|
[
|
|
3382
3365
|
d,
|
|
3383
3366
|
m,
|
|
3384
|
-
|
|
3367
|
+
g,
|
|
3385
3368
|
h,
|
|
3386
3369
|
u,
|
|
3387
3370
|
A,
|
|
3388
3371
|
p,
|
|
3389
|
-
S,
|
|
3390
|
-
b,
|
|
3391
|
-
g,
|
|
3392
|
-
y,
|
|
3393
3372
|
v,
|
|
3394
3373
|
M,
|
|
3374
|
+
f,
|
|
3375
|
+
y,
|
|
3376
|
+
S,
|
|
3377
|
+
b,
|
|
3395
3378
|
D,
|
|
3396
3379
|
T,
|
|
3397
3380
|
I,
|
|
3398
3381
|
P,
|
|
3399
3382
|
Y,
|
|
3400
|
-
|
|
3383
|
+
H
|
|
3401
3384
|
]
|
|
3402
3385
|
), R = F(() => _.getScheduleApi(), [_]);
|
|
3403
3386
|
R.updateProps(t);
|
|
@@ -3409,13 +3392,13 @@ const vs = (t, e, n, s) => {
|
|
|
3409
3392
|
datagridResizerMouseDown: Q,
|
|
3410
3393
|
datagridCellResizerMouseUp: Oe,
|
|
3411
3394
|
datagridCellResizerMouseDownFunc: Ie
|
|
3412
|
-
} = ln(n, s, c), { virtualizer: Pe, visibleResources: ne } =
|
|
3395
|
+
} = ln(n, s, c), { virtualizer: Pe, visibleResources: ne } = ys(
|
|
3413
3396
|
o,
|
|
3414
3397
|
R.getResourceApis(),
|
|
3415
3398
|
e.collapseIds,
|
|
3416
3399
|
R.getLineHeight()
|
|
3417
3400
|
);
|
|
3418
|
-
Kt(t.schedulantMaxHeight),
|
|
3401
|
+
Kt(t.schedulantMaxHeight), ss(s, _), Jt(c, t.resourceAreaWidth), Zt(l, o, i, r);
|
|
3419
3402
|
const ce = k(R.onResourceSelect());
|
|
3420
3403
|
ce.current = R.onResourceSelect();
|
|
3421
3404
|
const Le = C((U) => {
|
|
@@ -3444,7 +3427,7 @@ const vs = (t, e, n, s) => {
|
|
|
3444
3427
|
className: "schedulant-scrollgrid-section schedulant-scrollgrid-section-head",
|
|
3445
3428
|
children: [
|
|
3446
3429
|
/* @__PURE__ */ a("th", { role: "presentation", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-harness", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-head-left", ref: i, children: /* @__PURE__ */ a(
|
|
3447
|
-
|
|
3430
|
+
$n,
|
|
3448
3431
|
{
|
|
3449
3432
|
schedulantView: _,
|
|
3450
3433
|
cellResizerMouseUp: Oe,
|
|
@@ -3465,7 +3448,7 @@ const vs = (t, e, n, s) => {
|
|
|
3465
3448
|
{
|
|
3466
3449
|
id: "schedulant-timeline-head",
|
|
3467
3450
|
className: "schedulant-timeline-head",
|
|
3468
|
-
children: /* @__PURE__ */ a(
|
|
3451
|
+
children: /* @__PURE__ */ a(Gn, { schedulantView: _ })
|
|
3469
3452
|
}
|
|
3470
3453
|
) }) }) })
|
|
3471
3454
|
]
|
|
@@ -3478,7 +3461,7 @@ const vs = (t, e, n, s) => {
|
|
|
3478
3461
|
className: "schedulant-scrollgrid-section schedulant-scrollgrid-section-body",
|
|
3479
3462
|
children: [
|
|
3480
3463
|
/* @__PURE__ */ a("td", { role: "presentation", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-harness", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-body-left", ref: l, children: /* @__PURE__ */ a(
|
|
3481
|
-
|
|
3464
|
+
Jn,
|
|
3482
3465
|
{
|
|
3483
3466
|
schedulantView: _,
|
|
3484
3467
|
virtualizer: Pe,
|
|
@@ -3498,9 +3481,9 @@ const vs = (t, e, n, s) => {
|
|
|
3498
3481
|
}
|
|
3499
3482
|
),
|
|
3500
3483
|
/* @__PURE__ */ a("td", { role: "presentation", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-harness", children: /* @__PURE__ */ a("div", { className: "schedulant-scroller-body-right", ref: o, children: /* @__PURE__ */ O("div", { className: "schedulant-timeline-body", children: [
|
|
3501
|
-
/* @__PURE__ */ a(
|
|
3484
|
+
/* @__PURE__ */ a(es, { schedulantView: _ }),
|
|
3502
3485
|
/* @__PURE__ */ a(
|
|
3503
|
-
|
|
3486
|
+
ns,
|
|
3504
3487
|
{
|
|
3505
3488
|
schedulantView: _,
|
|
3506
3489
|
virtualizer: Pe,
|
|
@@ -3514,5 +3497,5 @@ const vs = (t, e, n, s) => {
|
|
|
3514
3497
|
] }) }) }) });
|
|
3515
3498
|
};
|
|
3516
3499
|
export {
|
|
3517
|
-
|
|
3500
|
+
Ps as Schedulant
|
|
3518
3501
|
};
|