react-timelane 0.0.2 → 0.0.4
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 +141 -51
- package/dist/components/Timelane.d.ts +4 -2
- package/dist/components/TimelaneAside.d.ts +8 -8
- package/dist/components/TimelaneBodyInner.d.ts +8 -8
- package/dist/components/{core/CoreItem → TimelaneItem}/DragResizeComponent.d.ts +2 -2
- package/dist/components/TimelaneItem/TimelaneItem.d.ts +14 -0
- package/dist/components/{core/CoreSwimlane → TimelaneLane}/AvailableSpaceIndicator.d.ts +4 -4
- package/dist/components/{core/CoreSwimlane → TimelaneLane}/DropTarget.d.ts +1 -1
- package/dist/components/{core/CoreSwimlane → TimelaneLane}/OverlapIndicator.d.ts +1 -1
- package/dist/components/TimelaneLane/TimelaneLane.d.ts +16 -0
- package/dist/components/TimelaneSettingsContext.d.ts +1 -1
- package/dist/components/TimelaneWrapper.d.ts +2 -2
- package/dist/components/utils.d.ts +27 -0
- package/dist/hooks/useScroll.d.ts +3 -3
- package/dist/index.d.ts +3 -4
- package/dist/react-timelane.css +1 -1
- package/dist/react-timelane.js +347 -355
- package/dist/types/Item.d.ts +12 -0
- package/dist/types/Lane.d.ts +5 -0
- package/dist/types/LaneId.d.ts +1 -0
- package/dist/types/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/components/core/CoreItem/CoreItemComponent.d.ts +0 -14
- package/dist/components/core/CoreSwimlane/CoreSwimlane.d.ts +0 -16
- package/dist/components/core/CoreSwimlane/utils.d.ts +0 -13
- package/dist/components/core/utils.d.ts +0 -15
- package/dist/types/CoreItem.d.ts +0 -12
- package/dist/types/SwimlaneId.d.ts +0 -1
- package/dist/types/SwimlaneT.d.ts +0 -5
- /package/dist/components/{core/CoreSwimlane → TimelaneLane}/DropPreview.d.ts +0 -0
- /package/dist/components/{layout → TimelaneLayout}/TimelaneLayout.d.ts +0 -0
package/dist/react-timelane.js
CHANGED
|
@@ -120,7 +120,7 @@ function dr({
|
|
|
120
120
|
return /* @__PURE__ */ y(
|
|
121
121
|
"div",
|
|
122
122
|
{
|
|
123
|
-
className: `timelane-aside-
|
|
123
|
+
className: `timelane-aside-lane-header ${t ? "timelane-aside-lane-header-focused" : ""}`,
|
|
124
124
|
style: { height: `${e}px` },
|
|
125
125
|
onClick: r,
|
|
126
126
|
onDoubleClick: n,
|
|
@@ -133,15 +133,15 @@ function fr(e) {
|
|
|
133
133
|
return /* @__PURE__ */ y("div", { children: e.id });
|
|
134
134
|
}
|
|
135
135
|
const At = 6048e5, hr = 864e5, Qe = Symbol.for("constructDateFrom");
|
|
136
|
-
function
|
|
136
|
+
function C(e, t) {
|
|
137
137
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Qe in e ? e[Qe](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
138
138
|
}
|
|
139
139
|
function N(e, t) {
|
|
140
|
-
return
|
|
140
|
+
return C(t || e, e);
|
|
141
141
|
}
|
|
142
142
|
function de(e, t, r) {
|
|
143
143
|
const n = N(e, r == null ? void 0 : r.in);
|
|
144
|
-
return isNaN(t) ?
|
|
144
|
+
return isNaN(t) ? C(e, NaN) : (t && n.setDate(n.getDate() + t), n);
|
|
145
145
|
}
|
|
146
146
|
function zt(e, t) {
|
|
147
147
|
return N(e, t == null ? void 0 : t.in).getDay() === 0;
|
|
@@ -159,9 +159,9 @@ function De(e, t) {
|
|
|
159
159
|
return B(e, { ...t, weekStartsOn: 1 });
|
|
160
160
|
}
|
|
161
161
|
function _t(e, t) {
|
|
162
|
-
const r = N(e, t == null ? void 0 : t.in), n = r.getFullYear(), i =
|
|
162
|
+
const r = N(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = C(r, 0);
|
|
163
163
|
i.setFullYear(n + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
164
|
-
const a = De(i), u =
|
|
164
|
+
const a = De(i), u = C(r, 0);
|
|
165
165
|
u.setFullYear(n, 0, 4), u.setHours(0, 0, 0, 0);
|
|
166
166
|
const c = De(u);
|
|
167
167
|
return r.getTime() >= a.getTime() ? n + 1 : r.getTime() >= c.getTime() ? n : n - 1;
|
|
@@ -181,7 +181,7 @@ function Je(e) {
|
|
|
181
181
|
return r.setUTCFullYear(t.getFullYear()), +e - +r;
|
|
182
182
|
}
|
|
183
183
|
function je(e, ...t) {
|
|
184
|
-
const r =
|
|
184
|
+
const r = C.bind(
|
|
185
185
|
null,
|
|
186
186
|
e || t.find((n) => typeof n == "object")
|
|
187
187
|
);
|
|
@@ -200,7 +200,7 @@ function q(e, t, r) {
|
|
|
200
200
|
return Math.round((c - s) / hr);
|
|
201
201
|
}
|
|
202
202
|
function pr(e, t) {
|
|
203
|
-
const r = _t(e, t), n =
|
|
203
|
+
const r = _t(e, t), n = C(e, 0);
|
|
204
204
|
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), De(n);
|
|
205
205
|
}
|
|
206
206
|
function mr(e, t, r) {
|
|
@@ -209,18 +209,18 @@ function mr(e, t, r) {
|
|
|
209
209
|
function yr(e, t) {
|
|
210
210
|
let r, n = t == null ? void 0 : t.in;
|
|
211
211
|
return e.forEach((i) => {
|
|
212
|
-
!n && typeof i == "object" && (n =
|
|
212
|
+
!n && typeof i == "object" && (n = C.bind(null, i));
|
|
213
213
|
const a = N(i, n);
|
|
214
214
|
(!r || r < a || isNaN(+a)) && (r = a);
|
|
215
|
-
}),
|
|
215
|
+
}), C(n, r || NaN);
|
|
216
216
|
}
|
|
217
217
|
function vr(e, t) {
|
|
218
218
|
let r, n = t == null ? void 0 : t.in;
|
|
219
219
|
return e.forEach((i) => {
|
|
220
|
-
!n && typeof i == "object" && (n =
|
|
220
|
+
!n && typeof i == "object" && (n = C.bind(null, i));
|
|
221
221
|
const a = N(i, n);
|
|
222
222
|
(!r || r > a || isNaN(+a)) && (r = a);
|
|
223
|
-
}),
|
|
223
|
+
}), C(n, r || NaN);
|
|
224
224
|
}
|
|
225
225
|
function br(e, t, r) {
|
|
226
226
|
const [n, i] = je(
|
|
@@ -240,7 +240,7 @@ function Be(e, t) {
|
|
|
240
240
|
const [r, n] = je(e, t.start, t.end);
|
|
241
241
|
return { start: r, end: n };
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Wt(e, t) {
|
|
244
244
|
const { start: r, end: n } = Be(t == null ? void 0 : t.in, e);
|
|
245
245
|
let i = +r > +n;
|
|
246
246
|
const a = i ? +r : +n, u = i ? n : r;
|
|
@@ -248,7 +248,7 @@ function Ct(e, t) {
|
|
|
248
248
|
let c = 1;
|
|
249
249
|
const s = [];
|
|
250
250
|
for (; +u <= a; )
|
|
251
|
-
s.push(
|
|
251
|
+
s.push(C(r, u)), u.setDate(u.getDate() + c), u.setHours(0, 0, 0, 0);
|
|
252
252
|
return i ? s.reverse() : s;
|
|
253
253
|
}
|
|
254
254
|
function Sr(e, t) {
|
|
@@ -259,7 +259,7 @@ function Sr(e, t) {
|
|
|
259
259
|
let c = 1;
|
|
260
260
|
const s = [];
|
|
261
261
|
for (; +u <= a; )
|
|
262
|
-
s.push(
|
|
262
|
+
s.push(C(r, u)), u.setMonth(u.getMonth() + c);
|
|
263
263
|
return i ? s.reverse() : s;
|
|
264
264
|
}
|
|
265
265
|
function Or(e, t) {
|
|
@@ -273,7 +273,7 @@ function Or(e, t) {
|
|
|
273
273
|
o < 0 && (o = -o, i = !i);
|
|
274
274
|
const f = [];
|
|
275
275
|
for (; +s <= c; )
|
|
276
|
-
s.setHours(0), f.push(
|
|
276
|
+
s.setHours(0), f.push(C(r, s)), s = mr(s, o), s.setHours(15);
|
|
277
277
|
return i ? f.reverse() : f;
|
|
278
278
|
}
|
|
279
279
|
function Dr(e, t) {
|
|
@@ -412,7 +412,7 @@ const zr = {
|
|
|
412
412
|
narrow: ["1", "2", "3", "4"],
|
|
413
413
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
414
414
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
415
|
-
},
|
|
415
|
+
}, Wr = {
|
|
416
416
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
417
417
|
abbreviated: [
|
|
418
418
|
"Jan",
|
|
@@ -442,7 +442,7 @@ const zr = {
|
|
|
442
442
|
"November",
|
|
443
443
|
"December"
|
|
444
444
|
]
|
|
445
|
-
},
|
|
445
|
+
}, Cr = {
|
|
446
446
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
447
447
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
448
448
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -541,11 +541,11 @@ const zr = {
|
|
|
541
541
|
argumentCallback: (e) => e - 1
|
|
542
542
|
}),
|
|
543
543
|
month: ae({
|
|
544
|
-
values:
|
|
544
|
+
values: Wr,
|
|
545
545
|
defaultWidth: "wide"
|
|
546
546
|
}),
|
|
547
547
|
day: ae({
|
|
548
|
-
values:
|
|
548
|
+
values: Cr,
|
|
549
549
|
defaultWidth: "wide"
|
|
550
550
|
}),
|
|
551
551
|
dayPeriod: ae({
|
|
@@ -719,18 +719,18 @@ function on(e, t) {
|
|
|
719
719
|
const r = N(e, t == null ? void 0 : t.in), n = +De(r) - +pr(r);
|
|
720
720
|
return Math.round(n / At) + 1;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Ct(e, t) {
|
|
723
723
|
var f, l, d, h;
|
|
724
|
-
const r = N(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = Me(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((h = (d = i.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, u =
|
|
724
|
+
const r = N(e, t == null ? void 0 : t.in), n = r.getFullYear(), i = Me(), a = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (f = t == null ? void 0 : t.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((h = (d = i.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, u = C((t == null ? void 0 : t.in) || e, 0);
|
|
725
725
|
u.setFullYear(n + 1, 0, a), u.setHours(0, 0, 0, 0);
|
|
726
|
-
const c = B(u, t), s =
|
|
726
|
+
const c = B(u, t), s = C((t == null ? void 0 : t.in) || e, 0);
|
|
727
727
|
s.setFullYear(n, 0, a), s.setHours(0, 0, 0, 0);
|
|
728
728
|
const o = B(s, t);
|
|
729
729
|
return +r >= +c ? n + 1 : +r >= +o ? n : n - 1;
|
|
730
730
|
}
|
|
731
731
|
function sn(e, t) {
|
|
732
732
|
var c, s, o, f;
|
|
733
|
-
const r = Me(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i =
|
|
733
|
+
const r = Me(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((s = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : s.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((f = (o = r.locale) == null ? void 0 : o.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, i = Ct(e, t), a = C((t == null ? void 0 : t.in) || e, 0);
|
|
734
734
|
return a.setFullYear(i, 0, n), a.setHours(0, 0, 0, 0), B(a, t);
|
|
735
735
|
}
|
|
736
736
|
function un(e, t) {
|
|
@@ -831,7 +831,7 @@ const Y = {
|
|
|
831
831
|
},
|
|
832
832
|
// Local week-numbering year
|
|
833
833
|
Y: function(e, t, r, n) {
|
|
834
|
-
const i =
|
|
834
|
+
const i = Ct(e, n), a = i > 0 ? i : 1 - i;
|
|
835
835
|
if (t === "YY") {
|
|
836
836
|
const u = a % 100;
|
|
837
837
|
return T(u, 2);
|
|
@@ -1543,7 +1543,7 @@ function te(e, t) {
|
|
|
1543
1543
|
function It(e, t, r, n, i) {
|
|
1544
1544
|
return {
|
|
1545
1545
|
id: e.id,
|
|
1546
|
-
|
|
1546
|
+
laneId: t.id,
|
|
1547
1547
|
start: _e(
|
|
1548
1548
|
de(i.start, Math.floor(r.x / n.pixelsPerDay)),
|
|
1549
1549
|
12
|
|
@@ -1566,7 +1566,155 @@ function It(e, t, r, n, i) {
|
|
|
1566
1566
|
payload: e.payload
|
|
1567
1567
|
};
|
|
1568
1568
|
}
|
|
1569
|
-
function An(
|
|
1569
|
+
function An(e, t, r, n, i, a, u, c, s) {
|
|
1570
|
+
if (n === null)
|
|
1571
|
+
return null;
|
|
1572
|
+
const o = Ye(
|
|
1573
|
+
e,
|
|
1574
|
+
a,
|
|
1575
|
+
c
|
|
1576
|
+
), f = t.filter((d) => d.id !== r.id).map((d) => Fe(d, e, c, a));
|
|
1577
|
+
let l = null;
|
|
1578
|
+
return l = zn(
|
|
1579
|
+
e,
|
|
1580
|
+
r,
|
|
1581
|
+
i,
|
|
1582
|
+
a,
|
|
1583
|
+
n
|
|
1584
|
+
), l = Wn(l, u), l = _n(
|
|
1585
|
+
l,
|
|
1586
|
+
o
|
|
1587
|
+
), l = Cn(
|
|
1588
|
+
l,
|
|
1589
|
+
f,
|
|
1590
|
+
o,
|
|
1591
|
+
s
|
|
1592
|
+
), l;
|
|
1593
|
+
}
|
|
1594
|
+
function zn(e, t, r, n, i) {
|
|
1595
|
+
const { width: a, height: u } = Ht(t, e, n), c = i.x + a * r.relative.x, s = i.y + u * r.relative.y;
|
|
1596
|
+
return {
|
|
1597
|
+
x: c,
|
|
1598
|
+
y: s,
|
|
1599
|
+
width: a,
|
|
1600
|
+
height: u
|
|
1601
|
+
};
|
|
1602
|
+
}
|
|
1603
|
+
function _n(e, t) {
|
|
1604
|
+
const r = Math.max(
|
|
1605
|
+
0,
|
|
1606
|
+
Math.min(e.x, t.width - e.width)
|
|
1607
|
+
), n = Math.max(
|
|
1608
|
+
0,
|
|
1609
|
+
Math.min(e.y, t.height - e.height)
|
|
1610
|
+
);
|
|
1611
|
+
return {
|
|
1612
|
+
...e,
|
|
1613
|
+
x: r,
|
|
1614
|
+
y: n
|
|
1615
|
+
};
|
|
1616
|
+
}
|
|
1617
|
+
function Wn(e, t) {
|
|
1618
|
+
const r = {
|
|
1619
|
+
...e
|
|
1620
|
+
};
|
|
1621
|
+
return t && t.x && (r.x = nt(r.x, t.x, t.offsetX || 0)), t && t.y && (r.y = nt(r.y, t.y, t.offsetY || 0)), r;
|
|
1622
|
+
}
|
|
1623
|
+
function nt(e, t, r) {
|
|
1624
|
+
return Math.max(
|
|
1625
|
+
r,
|
|
1626
|
+
r + Math.round((e - r) / t) * t
|
|
1627
|
+
);
|
|
1628
|
+
}
|
|
1629
|
+
function Cn(e, t, r, n) {
|
|
1630
|
+
const i = {
|
|
1631
|
+
...e
|
|
1632
|
+
};
|
|
1633
|
+
if (!n) {
|
|
1634
|
+
let a = !0;
|
|
1635
|
+
for (; a; ) {
|
|
1636
|
+
const u = t.find((c) => ue(i, c));
|
|
1637
|
+
u !== void 0 ? i.y = u.y + u.height : a = !1;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
return In(i, r) ? i : null;
|
|
1641
|
+
}
|
|
1642
|
+
function ue(e, t) {
|
|
1643
|
+
return !(e.x >= t.x + t.width || t.x >= e.x + e.width || e.y >= t.y + t.height || t.y >= e.y + e.height);
|
|
1644
|
+
}
|
|
1645
|
+
function Ln(e, t) {
|
|
1646
|
+
const r = Math.max(e.x, t.x), n = Math.max(e.y, t.y), i = Math.min(e.x + e.width, t.x + t.width), a = Math.min(e.y + e.height, t.y + t.height);
|
|
1647
|
+
return r < i && n < a ? {
|
|
1648
|
+
x: r,
|
|
1649
|
+
y: n,
|
|
1650
|
+
width: i - r,
|
|
1651
|
+
height: a - n
|
|
1652
|
+
} : null;
|
|
1653
|
+
}
|
|
1654
|
+
function Hn(e, t) {
|
|
1655
|
+
return !(e.start >= t.end || t.start >= e.end || e.offset >= t.offset + t.size || t.offset >= e.offset + e.size);
|
|
1656
|
+
}
|
|
1657
|
+
function In(e, t) {
|
|
1658
|
+
return e.x >= 0 && e.y >= 0 && e.x + e.width <= t.width && e.y + e.height <= t.height;
|
|
1659
|
+
}
|
|
1660
|
+
function jn(e, t, r, n, i) {
|
|
1661
|
+
const a = Bn(
|
|
1662
|
+
e,
|
|
1663
|
+
t,
|
|
1664
|
+
r.capacity,
|
|
1665
|
+
n
|
|
1666
|
+
);
|
|
1667
|
+
if (a) {
|
|
1668
|
+
const u = Yn(
|
|
1669
|
+
e,
|
|
1670
|
+
i.start,
|
|
1671
|
+
i.end,
|
|
1672
|
+
n,
|
|
1673
|
+
a
|
|
1674
|
+
);
|
|
1675
|
+
if (u)
|
|
1676
|
+
return {
|
|
1677
|
+
start: u.lower,
|
|
1678
|
+
end: u.upper,
|
|
1679
|
+
minOffset: a.lower,
|
|
1680
|
+
maxOffset: a.upper
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1683
|
+
return null;
|
|
1684
|
+
}
|
|
1685
|
+
function Bn(e, t, r, n) {
|
|
1686
|
+
const i = n.filter((f) => f.start <= e && f.end >= e);
|
|
1687
|
+
if (i.find(
|
|
1688
|
+
(f) => f.offset <= t && f.offset + f.size >= t
|
|
1689
|
+
))
|
|
1690
|
+
return null;
|
|
1691
|
+
const u = i.filter((f) => f.offset + f.size <= t), c = i.filter((f) => f.offset >= t), s = u.length > 0 ? Math.max(...u.map((f) => f.offset + f.size)) : 0, o = c.length > 0 ? Math.min(...c.map((f) => f.offset)) : r;
|
|
1692
|
+
return {
|
|
1693
|
+
lower: s,
|
|
1694
|
+
upper: o
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1697
|
+
function Yn(e, t, r, n, i) {
|
|
1698
|
+
const a = {
|
|
1699
|
+
start: t,
|
|
1700
|
+
end: r,
|
|
1701
|
+
offset: i.lower,
|
|
1702
|
+
size: i.upper - i.lower
|
|
1703
|
+
}, u = n.filter(
|
|
1704
|
+
(l) => Hn(l, a)
|
|
1705
|
+
);
|
|
1706
|
+
if (u.length === 0)
|
|
1707
|
+
return {
|
|
1708
|
+
lower: t,
|
|
1709
|
+
upper: r
|
|
1710
|
+
};
|
|
1711
|
+
const c = u.filter((l) => l.end <= e), s = u.filter((l) => l.start >= e), o = c.length > 0 ? yr(c.map((l) => l.end)) : t, f = s.length > 0 ? vr(s.map((l) => l.start)) : r;
|
|
1712
|
+
return {
|
|
1713
|
+
lower: o,
|
|
1714
|
+
upper: f
|
|
1715
|
+
};
|
|
1716
|
+
}
|
|
1717
|
+
function Fn({ focusedDay: e }) {
|
|
1570
1718
|
const { settings: t } = pe();
|
|
1571
1719
|
return /* @__PURE__ */ y(H.Background, { children: /* @__PURE__ */ y("div", { className: "timelane-background", children: /* @__PURE__ */ Q("div", { className: "timelane-background-inner", children: [
|
|
1572
1720
|
e && /* @__PURE__ */ y(
|
|
@@ -1591,7 +1739,7 @@ function An({ focusedDay: e }) {
|
|
|
1591
1739
|
}
|
|
1592
1740
|
}
|
|
1593
1741
|
),
|
|
1594
|
-
|
|
1742
|
+
Wt(t).map((r, n) => /* @__PURE__ */ y(
|
|
1595
1743
|
"div",
|
|
1596
1744
|
{
|
|
1597
1745
|
className: `timelane-background-day-label ${zt(r) ? "timelane-background-day-label-sunday" : ""} `,
|
|
@@ -1602,10 +1750,10 @@ function An({ focusedDay: e }) {
|
|
|
1602
1750
|
))
|
|
1603
1751
|
] }) }) });
|
|
1604
1752
|
}
|
|
1605
|
-
function
|
|
1753
|
+
function $n(e) {
|
|
1606
1754
|
if (Array.isArray(e)) return e;
|
|
1607
1755
|
}
|
|
1608
|
-
function
|
|
1756
|
+
function qn(e, t) {
|
|
1609
1757
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1610
1758
|
if (r != null) {
|
|
1611
1759
|
var n, i, a, u, c = [], s = !0, o = !1;
|
|
@@ -1623,29 +1771,29 @@ function _n(e, t) {
|
|
|
1623
1771
|
return c;
|
|
1624
1772
|
}
|
|
1625
1773
|
}
|
|
1626
|
-
function
|
|
1774
|
+
function We(e, t) {
|
|
1627
1775
|
(t == null || t > e.length) && (t = e.length);
|
|
1628
1776
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
1629
1777
|
return n;
|
|
1630
1778
|
}
|
|
1631
1779
|
function jt(e, t) {
|
|
1632
1780
|
if (e) {
|
|
1633
|
-
if (typeof e == "string") return
|
|
1781
|
+
if (typeof e == "string") return We(e, t);
|
|
1634
1782
|
var r = {}.toString.call(e).slice(8, -1);
|
|
1635
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ?
|
|
1783
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? We(e, t) : void 0;
|
|
1636
1784
|
}
|
|
1637
1785
|
}
|
|
1638
|
-
function
|
|
1786
|
+
function Xn() {
|
|
1639
1787
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1640
1788
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1641
1789
|
}
|
|
1642
1790
|
function Bt(e, t) {
|
|
1643
|
-
return
|
|
1791
|
+
return $n(e) || qn(e, t) || jt(e, t) || Xn();
|
|
1644
1792
|
}
|
|
1645
|
-
var Pe = {}, se = {},
|
|
1793
|
+
var Pe = {}, se = {}, it;
|
|
1646
1794
|
function Yt() {
|
|
1647
|
-
if (
|
|
1648
|
-
|
|
1795
|
+
if (it) return se;
|
|
1796
|
+
it = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.bind = void 0;
|
|
1649
1797
|
function e(t, r) {
|
|
1650
1798
|
var n = r.type, i = r.listener, a = r.options;
|
|
1651
1799
|
return t.addEventListener(n, i, a), function() {
|
|
@@ -1654,10 +1802,10 @@ function Yt() {
|
|
|
1654
1802
|
}
|
|
1655
1803
|
return se.bind = e, se;
|
|
1656
1804
|
}
|
|
1657
|
-
var G = {},
|
|
1658
|
-
function
|
|
1659
|
-
if (
|
|
1660
|
-
|
|
1805
|
+
var G = {}, at;
|
|
1806
|
+
function Un() {
|
|
1807
|
+
if (at) return G;
|
|
1808
|
+
at = 1;
|
|
1661
1809
|
var e = G && G.__assign || function() {
|
|
1662
1810
|
return e = Object.assign || function(a) {
|
|
1663
1811
|
for (var u, c = 1, s = arguments.length; c < s; c++) {
|
|
@@ -1694,21 +1842,21 @@ function Wn() {
|
|
|
1694
1842
|
}
|
|
1695
1843
|
return G.bindAll = i, G;
|
|
1696
1844
|
}
|
|
1697
|
-
var
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1845
|
+
var ot;
|
|
1846
|
+
function Gn() {
|
|
1847
|
+
return ot || (ot = 1, function(e) {
|
|
1700
1848
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.bindAll = e.bind = void 0;
|
|
1701
1849
|
var t = /* @__PURE__ */ Yt();
|
|
1702
1850
|
Object.defineProperty(e, "bind", { enumerable: !0, get: function() {
|
|
1703
1851
|
return t.bind;
|
|
1704
1852
|
} });
|
|
1705
|
-
var r = /* @__PURE__ */
|
|
1853
|
+
var r = /* @__PURE__ */ Un();
|
|
1706
1854
|
Object.defineProperty(e, "bindAll", { enumerable: !0, get: function() {
|
|
1707
1855
|
return r.bindAll;
|
|
1708
1856
|
} });
|
|
1709
1857
|
}(Pe)), Pe;
|
|
1710
1858
|
}
|
|
1711
|
-
var ne = /* @__PURE__ */
|
|
1859
|
+
var ne = /* @__PURE__ */ Gn(), Ft = "data-pdnd-honey-pot";
|
|
1712
1860
|
function $t(e) {
|
|
1713
1861
|
return e instanceof Element && e.hasAttribute(Ft);
|
|
1714
1862
|
}
|
|
@@ -1724,7 +1872,7 @@ function fe(e) {
|
|
|
1724
1872
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1725
1873
|
}, fe(e);
|
|
1726
1874
|
}
|
|
1727
|
-
function
|
|
1875
|
+
function Kn(e, t) {
|
|
1728
1876
|
if (fe(e) != "object" || !e) return e;
|
|
1729
1877
|
var r = e[Symbol.toPrimitive];
|
|
1730
1878
|
if (r !== void 0) {
|
|
@@ -1734,20 +1882,20 @@ function Hn(e, t) {
|
|
|
1734
1882
|
}
|
|
1735
1883
|
return (t === "string" ? String : Number)(e);
|
|
1736
1884
|
}
|
|
1737
|
-
function
|
|
1738
|
-
var t =
|
|
1885
|
+
function Vn(e) {
|
|
1886
|
+
var t = Kn(e, "string");
|
|
1739
1887
|
return fe(t) == "symbol" ? t : t + "";
|
|
1740
1888
|
}
|
|
1741
1889
|
function qe(e, t, r) {
|
|
1742
|
-
return (t =
|
|
1890
|
+
return (t = Vn(t)) in e ? Object.defineProperty(e, t, {
|
|
1743
1891
|
value: r,
|
|
1744
1892
|
enumerable: !0,
|
|
1745
1893
|
configurable: !0,
|
|
1746
1894
|
writable: !0
|
|
1747
1895
|
}) : e[t] = r, e;
|
|
1748
1896
|
}
|
|
1749
|
-
var
|
|
1750
|
-
function
|
|
1897
|
+
var Qn = 2147483647;
|
|
1898
|
+
function st(e, t) {
|
|
1751
1899
|
var r = Object.keys(e);
|
|
1752
1900
|
if (Object.getOwnPropertySymbols) {
|
|
1753
1901
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -1757,44 +1905,44 @@ function ot(e, t) {
|
|
|
1757
1905
|
}
|
|
1758
1906
|
return r;
|
|
1759
1907
|
}
|
|
1760
|
-
function
|
|
1908
|
+
function ut(e) {
|
|
1761
1909
|
for (var t = 1; t < arguments.length; t++) {
|
|
1762
1910
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
1763
|
-
t % 2 ?
|
|
1911
|
+
t % 2 ? st(Object(r), !0).forEach(function(n) {
|
|
1764
1912
|
qe(e, n, r[n]);
|
|
1765
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
1913
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : st(Object(r)).forEach(function(n) {
|
|
1766
1914
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
1767
1915
|
});
|
|
1768
1916
|
}
|
|
1769
1917
|
return e;
|
|
1770
1918
|
}
|
|
1771
|
-
var he = 2,
|
|
1772
|
-
function
|
|
1919
|
+
var he = 2, ct = he / 2;
|
|
1920
|
+
function Jn(e) {
|
|
1773
1921
|
return {
|
|
1774
1922
|
x: Math.floor(e.x),
|
|
1775
1923
|
y: Math.floor(e.y)
|
|
1776
1924
|
};
|
|
1777
1925
|
}
|
|
1778
|
-
function
|
|
1926
|
+
function Zn(e) {
|
|
1779
1927
|
return {
|
|
1780
|
-
x: e.x -
|
|
1781
|
-
y: e.y -
|
|
1928
|
+
x: e.x - ct,
|
|
1929
|
+
y: e.y - ct
|
|
1782
1930
|
};
|
|
1783
1931
|
}
|
|
1784
|
-
function
|
|
1932
|
+
function ei(e) {
|
|
1785
1933
|
return {
|
|
1786
1934
|
x: Math.max(e.x, 0),
|
|
1787
1935
|
y: Math.max(e.y, 0)
|
|
1788
1936
|
};
|
|
1789
1937
|
}
|
|
1790
|
-
function
|
|
1938
|
+
function ti(e) {
|
|
1791
1939
|
return {
|
|
1792
1940
|
x: Math.min(e.x, window.innerWidth - he),
|
|
1793
1941
|
y: Math.min(e.y, window.innerHeight - he)
|
|
1794
1942
|
};
|
|
1795
1943
|
}
|
|
1796
|
-
function
|
|
1797
|
-
var t = e.client, r =
|
|
1944
|
+
function lt(e) {
|
|
1945
|
+
var t = e.client, r = ti(ei(Zn(Jn(t))));
|
|
1798
1946
|
return DOMRect.fromRect({
|
|
1799
1947
|
x: r.x,
|
|
1800
1948
|
y: r.y,
|
|
@@ -1802,7 +1950,7 @@ function ct(e) {
|
|
|
1802
1950
|
height: he
|
|
1803
1951
|
});
|
|
1804
1952
|
}
|
|
1805
|
-
function
|
|
1953
|
+
function dt(e) {
|
|
1806
1954
|
var t = e.clientRect;
|
|
1807
1955
|
return {
|
|
1808
1956
|
left: "".concat(t.left, "px"),
|
|
@@ -1811,7 +1959,7 @@ function lt(e) {
|
|
|
1811
1959
|
height: "".concat(t.height, "px")
|
|
1812
1960
|
};
|
|
1813
1961
|
}
|
|
1814
|
-
function
|
|
1962
|
+
function ri(e) {
|
|
1815
1963
|
var t = e.client, r = e.clientRect;
|
|
1816
1964
|
return (
|
|
1817
1965
|
// is within horizontal bounds
|
|
@@ -1819,13 +1967,13 @@ function qn(e) {
|
|
|
1819
1967
|
t.y >= r.y && t.y <= r.y + r.height
|
|
1820
1968
|
);
|
|
1821
1969
|
}
|
|
1822
|
-
function
|
|
1970
|
+
function ni(e) {
|
|
1823
1971
|
var t = e.initial, r = document.createElement("div");
|
|
1824
1972
|
r.setAttribute(Ft, "true");
|
|
1825
|
-
var n =
|
|
1973
|
+
var n = lt({
|
|
1826
1974
|
client: t
|
|
1827
1975
|
});
|
|
1828
|
-
Object.assign(r.style,
|
|
1976
|
+
Object.assign(r.style, ut(ut({
|
|
1829
1977
|
// Setting a background color explicitly to avoid any inherited styles.
|
|
1830
1978
|
// Looks like this could be `opacity: 0`, but worried that _might_
|
|
1831
1979
|
// cause the element to be ignored on some platforms.
|
|
@@ -1836,7 +1984,7 @@ function Xn(e) {
|
|
|
1836
1984
|
padding: 0,
|
|
1837
1985
|
margin: 0,
|
|
1838
1986
|
boxSizing: "border-box"
|
|
1839
|
-
},
|
|
1987
|
+
}, dt({
|
|
1840
1988
|
clientRect: n
|
|
1841
1989
|
})), {}, {
|
|
1842
1990
|
// We want this element to absorb pointer events,
|
|
@@ -1845,7 +1993,7 @@ function Xn(e) {
|
|
|
1845
1993
|
// Want to make sure the honey pot is top of everything else.
|
|
1846
1994
|
// Don't need to worry about native drag previews, as they will
|
|
1847
1995
|
// have been rendered (and removed) before the honey pot is rendered
|
|
1848
|
-
zIndex:
|
|
1996
|
+
zIndex: Qn
|
|
1849
1997
|
})), document.body.appendChild(r);
|
|
1850
1998
|
var i = ne.bind(window, {
|
|
1851
1999
|
type: "pointermove",
|
|
@@ -1854,9 +2002,9 @@ function Xn(e) {
|
|
|
1854
2002
|
x: u.clientX,
|
|
1855
2003
|
y: u.clientY
|
|
1856
2004
|
};
|
|
1857
|
-
n =
|
|
2005
|
+
n = lt({
|
|
1858
2006
|
client: c
|
|
1859
|
-
}), Object.assign(r.style,
|
|
2007
|
+
}), Object.assign(r.style, dt({
|
|
1860
2008
|
clientRect: n
|
|
1861
2009
|
}));
|
|
1862
2010
|
},
|
|
@@ -1867,7 +2015,7 @@ function Xn(e) {
|
|
|
1867
2015
|
});
|
|
1868
2016
|
return function(u) {
|
|
1869
2017
|
var c = u.current;
|
|
1870
|
-
if (i(),
|
|
2018
|
+
if (i(), ri({
|
|
1871
2019
|
client: c,
|
|
1872
2020
|
clientRect: n
|
|
1873
2021
|
})) {
|
|
@@ -1919,7 +2067,7 @@ function Xn(e) {
|
|
|
1919
2067
|
});
|
|
1920
2068
|
};
|
|
1921
2069
|
}
|
|
1922
|
-
function
|
|
2070
|
+
function ii() {
|
|
1923
2071
|
var e = null;
|
|
1924
2072
|
function t() {
|
|
1925
2073
|
return e = null, ne.bind(window, {
|
|
@@ -1946,7 +2094,7 @@ function Un() {
|
|
|
1946
2094
|
x: s.clientX,
|
|
1947
2095
|
y: s.clientY
|
|
1948
2096
|
};
|
|
1949
|
-
n =
|
|
2097
|
+
n = ni({
|
|
1950
2098
|
initial: o
|
|
1951
2099
|
});
|
|
1952
2100
|
}
|
|
@@ -1966,18 +2114,18 @@ function Un() {
|
|
|
1966
2114
|
getOnPostDispatch: r
|
|
1967
2115
|
};
|
|
1968
2116
|
}
|
|
1969
|
-
function
|
|
1970
|
-
if (Array.isArray(e)) return
|
|
2117
|
+
function ai(e) {
|
|
2118
|
+
if (Array.isArray(e)) return We(e);
|
|
1971
2119
|
}
|
|
1972
|
-
function
|
|
2120
|
+
function oi(e) {
|
|
1973
2121
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1974
2122
|
}
|
|
1975
|
-
function
|
|
2123
|
+
function si() {
|
|
1976
2124
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1977
2125
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1978
2126
|
}
|
|
1979
2127
|
function Xt(e) {
|
|
1980
|
-
return
|
|
2128
|
+
return ai(e) || oi(e) || jt(e) || si();
|
|
1981
2129
|
}
|
|
1982
2130
|
function ie(e) {
|
|
1983
2131
|
var t = null;
|
|
@@ -1993,20 +2141,20 @@ function ie(e) {
|
|
|
1993
2141
|
return t.result;
|
|
1994
2142
|
};
|
|
1995
2143
|
}
|
|
1996
|
-
var
|
|
2144
|
+
var ui = ie(function() {
|
|
1997
2145
|
return process.env.NODE_ENV === "test" ? !1 : navigator.userAgent.includes("Firefox");
|
|
1998
2146
|
}), Xe = ie(function() {
|
|
1999
2147
|
if (process.env.NODE_ENV === "test")
|
|
2000
2148
|
return !1;
|
|
2001
2149
|
var t = navigator, r = t.userAgent;
|
|
2002
2150
|
return r.includes("AppleWebKit") && !r.includes("Chrome");
|
|
2003
|
-
}),
|
|
2151
|
+
}), Ce = {
|
|
2004
2152
|
isLeavingWindow: Symbol("leaving"),
|
|
2005
2153
|
isEnteringWindow: Symbol("entering")
|
|
2006
2154
|
};
|
|
2007
|
-
function
|
|
2155
|
+
function ci(e) {
|
|
2008
2156
|
var t = e.dragLeave;
|
|
2009
|
-
return Xe() ? t.hasOwnProperty(
|
|
2157
|
+
return Xe() ? t.hasOwnProperty(Ce.isLeavingWindow) : !1;
|
|
2010
2158
|
}
|
|
2011
2159
|
(function() {
|
|
2012
2160
|
if (typeof window > "u" || process.env.NODE_ENV === "test" || !Xe())
|
|
@@ -2037,12 +2185,12 @@ function Jn(e) {
|
|
|
2037
2185
|
}, {
|
|
2038
2186
|
type: "dragenter",
|
|
2039
2187
|
listener: function(a) {
|
|
2040
|
-
!r.isOverWindow && r.enterCount === 0 && (a[
|
|
2188
|
+
!r.isOverWindow && r.enterCount === 0 && (a[Ce.isEnteringWindow] = !0), r.isOverWindow = !0, r.enterCount++;
|
|
2041
2189
|
}
|
|
2042
2190
|
}, {
|
|
2043
2191
|
type: "dragleave",
|
|
2044
2192
|
listener: function(a) {
|
|
2045
|
-
r.enterCount--, r.isOverWindow && r.enterCount === 0 && (a[
|
|
2193
|
+
r.enterCount--, r.isOverWindow && r.enterCount === 0 && (a[Ce.isLeavingWindow] = !0, r.isOverWindow = !1);
|
|
2046
2194
|
}
|
|
2047
2195
|
}],
|
|
2048
2196
|
// using `capture: true` so that adding event listeners
|
|
@@ -2052,19 +2200,19 @@ function Jn(e) {
|
|
|
2052
2200
|
}
|
|
2053
2201
|
);
|
|
2054
2202
|
})();
|
|
2055
|
-
function
|
|
2203
|
+
function li(e) {
|
|
2056
2204
|
return "nodeName" in e;
|
|
2057
2205
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
2206
|
+
function di(e) {
|
|
2207
|
+
return li(e) && e.ownerDocument !== document;
|
|
2060
2208
|
}
|
|
2061
|
-
function
|
|
2209
|
+
function fi(e) {
|
|
2062
2210
|
var t = e.dragLeave, r = t.type, n = t.relatedTarget;
|
|
2063
|
-
return r !== "dragleave" ? !1 : Xe() ?
|
|
2211
|
+
return r !== "dragleave" ? !1 : Xe() ? ci({
|
|
2064
2212
|
dragLeave: t
|
|
2065
|
-
}) : n == null ? !0 :
|
|
2213
|
+
}) : n == null ? !0 : ui() ? di(n) : n instanceof HTMLIFrameElement;
|
|
2066
2214
|
}
|
|
2067
|
-
function
|
|
2215
|
+
function hi(e) {
|
|
2068
2216
|
var t = e.onDragEnd;
|
|
2069
2217
|
return [
|
|
2070
2218
|
// ## Detecting drag ending for removed draggables
|
|
@@ -2122,7 +2270,7 @@ function ce(e) {
|
|
|
2122
2270
|
pageY: e.pageY
|
|
2123
2271
|
};
|
|
2124
2272
|
}
|
|
2125
|
-
var
|
|
2273
|
+
var gi = function(t) {
|
|
2126
2274
|
var r = [], n = null, i = function() {
|
|
2127
2275
|
for (var u = arguments.length, c = new Array(u), s = 0; s < u; s++)
|
|
2128
2276
|
c[s] = arguments[s];
|
|
@@ -2133,7 +2281,7 @@ var ni = function(t) {
|
|
|
2133
2281
|
return i.cancel = function() {
|
|
2134
2282
|
n && (cancelAnimationFrame(n), n = null);
|
|
2135
2283
|
}, i;
|
|
2136
|
-
}, Re =
|
|
2284
|
+
}, Re = gi(function(e) {
|
|
2137
2285
|
return e();
|
|
2138
2286
|
}), me = /* @__PURE__ */ function() {
|
|
2139
2287
|
var e = null;
|
|
@@ -2154,7 +2302,7 @@ var ni = function(t) {
|
|
|
2154
2302
|
flush: r
|
|
2155
2303
|
};
|
|
2156
2304
|
}();
|
|
2157
|
-
function
|
|
2305
|
+
function pi(e) {
|
|
2158
2306
|
var t = e.source, r = e.initial, n = e.dispatchEvent, i = {
|
|
2159
2307
|
dropTargets: []
|
|
2160
2308
|
};
|
|
@@ -2242,10 +2390,10 @@ var Le = {
|
|
|
2242
2390
|
function Ut() {
|
|
2243
2391
|
return !Le.isActive;
|
|
2244
2392
|
}
|
|
2245
|
-
function
|
|
2393
|
+
function mi(e) {
|
|
2246
2394
|
return e.dataTransfer ? e.dataTransfer.setDragImage.bind(e.dataTransfer) : null;
|
|
2247
2395
|
}
|
|
2248
|
-
function
|
|
2396
|
+
function yi(e) {
|
|
2249
2397
|
var t = e.current, r = e.next;
|
|
2250
2398
|
if (t.length !== r.length)
|
|
2251
2399
|
return !0;
|
|
@@ -2254,11 +2402,11 @@ function oi(e) {
|
|
|
2254
2402
|
return !0;
|
|
2255
2403
|
return !1;
|
|
2256
2404
|
}
|
|
2257
|
-
function
|
|
2405
|
+
function vi(e) {
|
|
2258
2406
|
var t = e.event, r = e.dragType, n = e.getDropTargetsOver, i = e.dispatchEvent;
|
|
2259
2407
|
if (!Ut())
|
|
2260
2408
|
return;
|
|
2261
|
-
var a =
|
|
2409
|
+
var a = bi({
|
|
2262
2410
|
event: t,
|
|
2263
2411
|
dragType: r,
|
|
2264
2412
|
getDropTargetsOver: n
|
|
@@ -2271,13 +2419,13 @@ function si(e) {
|
|
|
2271
2419
|
event: t,
|
|
2272
2420
|
current: a.dropTargets
|
|
2273
2421
|
});
|
|
2274
|
-
var c =
|
|
2422
|
+
var c = pi({
|
|
2275
2423
|
source: r.payload,
|
|
2276
2424
|
dispatchEvent: i,
|
|
2277
2425
|
initial: a
|
|
2278
2426
|
});
|
|
2279
2427
|
function s(h) {
|
|
2280
|
-
var g =
|
|
2428
|
+
var g = yi({
|
|
2281
2429
|
current: u.current.dropTargets,
|
|
2282
2430
|
next: h.dropTargets
|
|
2283
2431
|
});
|
|
@@ -2336,7 +2484,7 @@ function si(e) {
|
|
|
2336
2484
|
}, {
|
|
2337
2485
|
type: "dragleave",
|
|
2338
2486
|
listener: function(g) {
|
|
2339
|
-
|
|
2487
|
+
fi({
|
|
2340
2488
|
dragLeave: g
|
|
2341
2489
|
}) && (s({
|
|
2342
2490
|
input: u.current.input,
|
|
@@ -2379,7 +2527,7 @@ function si(e) {
|
|
|
2379
2527
|
input: ce(g)
|
|
2380
2528
|
}, f();
|
|
2381
2529
|
}
|
|
2382
|
-
}].concat(Xt(
|
|
2530
|
+
}].concat(Xt(hi({
|
|
2383
2531
|
onDragEnd: f
|
|
2384
2532
|
}))),
|
|
2385
2533
|
// Once we have started a managed drag operation it is important that we see / own all drag events
|
|
@@ -2391,14 +2539,14 @@ function si(e) {
|
|
|
2391
2539
|
}
|
|
2392
2540
|
);
|
|
2393
2541
|
c.start({
|
|
2394
|
-
nativeSetDragImage:
|
|
2542
|
+
nativeSetDragImage: mi(t)
|
|
2395
2543
|
});
|
|
2396
2544
|
}
|
|
2397
2545
|
function ke(e) {
|
|
2398
2546
|
var t, r = e.event, n = e.current, i = (t = n[0]) === null || t === void 0 ? void 0 : t.dropEffect;
|
|
2399
2547
|
i != null && r.dataTransfer && (r.dataTransfer.dropEffect = i);
|
|
2400
2548
|
}
|
|
2401
|
-
function
|
|
2549
|
+
function bi(e) {
|
|
2402
2550
|
var t = e.event, r = e.dragType, n = e.getDropTargetsOver, i = ce(t);
|
|
2403
2551
|
if (r.startedFrom === "external")
|
|
2404
2552
|
return {
|
|
@@ -2416,11 +2564,11 @@ function ui(e) {
|
|
|
2416
2564
|
dropTargets: a
|
|
2417
2565
|
};
|
|
2418
2566
|
}
|
|
2419
|
-
var
|
|
2567
|
+
var ft = {
|
|
2420
2568
|
canStart: Ut,
|
|
2421
|
-
start:
|
|
2569
|
+
start: vi
|
|
2422
2570
|
}, He = /* @__PURE__ */ new Map();
|
|
2423
|
-
function
|
|
2571
|
+
function wi(e) {
|
|
2424
2572
|
var t = e.typeKey, r = e.mount, n = He.get(t);
|
|
2425
2573
|
if (n)
|
|
2426
2574
|
return n.usageCount++, n;
|
|
@@ -2431,8 +2579,8 @@ function ci(e) {
|
|
|
2431
2579
|
};
|
|
2432
2580
|
return He.set(t, i), i;
|
|
2433
2581
|
}
|
|
2434
|
-
function
|
|
2435
|
-
var t =
|
|
2582
|
+
function xi(e) {
|
|
2583
|
+
var t = wi(e);
|
|
2436
2584
|
return function() {
|
|
2437
2585
|
t.usageCount--, !(t.usageCount > 0) && (t.unmount(), He.delete(e.typeKey));
|
|
2438
2586
|
};
|
|
@@ -2452,7 +2600,7 @@ function Gt(e, t) {
|
|
|
2452
2600
|
return e.removeAttribute(r);
|
|
2453
2601
|
};
|
|
2454
2602
|
}
|
|
2455
|
-
function
|
|
2603
|
+
function ht(e, t) {
|
|
2456
2604
|
var r = Object.keys(e);
|
|
2457
2605
|
if (Object.getOwnPropertySymbols) {
|
|
2458
2606
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -2465,9 +2613,9 @@ function ft(e, t) {
|
|
|
2465
2613
|
function F(e) {
|
|
2466
2614
|
for (var t = 1; t < arguments.length; t++) {
|
|
2467
2615
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2468
|
-
t % 2 ?
|
|
2616
|
+
t % 2 ? ht(Object(r), !0).forEach(function(n) {
|
|
2469
2617
|
qe(e, n, r[n]);
|
|
2470
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
2618
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ht(Object(r)).forEach(function(n) {
|
|
2471
2619
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2472
2620
|
});
|
|
2473
2621
|
}
|
|
@@ -2476,7 +2624,7 @@ function F(e) {
|
|
|
2476
2624
|
function Ne(e, t) {
|
|
2477
2625
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2478
2626
|
if (!r) {
|
|
2479
|
-
if (Array.isArray(e) || (r =
|
|
2627
|
+
if (Array.isArray(e) || (r = Si(e)) || t) {
|
|
2480
2628
|
r && (e = r);
|
|
2481
2629
|
var n = 0, i = function() {
|
|
2482
2630
|
};
|
|
@@ -2505,14 +2653,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2505
2653
|
}
|
|
2506
2654
|
} };
|
|
2507
2655
|
}
|
|
2508
|
-
function
|
|
2656
|
+
function Si(e, t) {
|
|
2509
2657
|
if (e) {
|
|
2510
|
-
if (typeof e == "string") return
|
|
2658
|
+
if (typeof e == "string") return gt(e, t);
|
|
2511
2659
|
var r = {}.toString.call(e).slice(8, -1);
|
|
2512
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ?
|
|
2660
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? gt(e, t) : void 0;
|
|
2513
2661
|
}
|
|
2514
2662
|
}
|
|
2515
|
-
function
|
|
2663
|
+
function gt(e, t) {
|
|
2516
2664
|
(t == null || t > e.length) && (t = e.length);
|
|
2517
2665
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2518
2666
|
return n;
|
|
@@ -2520,7 +2668,7 @@ function ht(e, t) {
|
|
|
2520
2668
|
function Ae(e) {
|
|
2521
2669
|
return e.slice(0).reverse();
|
|
2522
2670
|
}
|
|
2523
|
-
function
|
|
2671
|
+
function Oi(e) {
|
|
2524
2672
|
var t = e.typeKey, r = e.defaultDropEffect, n = /* @__PURE__ */ new WeakMap(), i = "data-drop-target-for-".concat(t), a = "[".concat(i, "]");
|
|
2525
2673
|
function u(h) {
|
|
2526
2674
|
return n.set(h.element, h), function() {
|
|
@@ -2697,10 +2845,10 @@ function fi(e) {
|
|
|
2697
2845
|
dispatchEvent: l
|
|
2698
2846
|
};
|
|
2699
2847
|
}
|
|
2700
|
-
function
|
|
2848
|
+
function Di(e, t) {
|
|
2701
2849
|
var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2702
2850
|
if (!r) {
|
|
2703
|
-
if (Array.isArray(e) || (r =
|
|
2851
|
+
if (Array.isArray(e) || (r = Ti(e)) || t) {
|
|
2704
2852
|
r && (e = r);
|
|
2705
2853
|
var n = 0, i = function() {
|
|
2706
2854
|
};
|
|
@@ -2729,19 +2877,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2729
2877
|
}
|
|
2730
2878
|
} };
|
|
2731
2879
|
}
|
|
2732
|
-
function
|
|
2880
|
+
function Ti(e, t) {
|
|
2733
2881
|
if (e) {
|
|
2734
|
-
if (typeof e == "string") return
|
|
2882
|
+
if (typeof e == "string") return pt(e, t);
|
|
2735
2883
|
var r = {}.toString.call(e).slice(8, -1);
|
|
2736
|
-
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ?
|
|
2884
|
+
return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? pt(e, t) : void 0;
|
|
2737
2885
|
}
|
|
2738
2886
|
}
|
|
2739
|
-
function
|
|
2887
|
+
function pt(e, t) {
|
|
2740
2888
|
(t == null || t > e.length) && (t = e.length);
|
|
2741
2889
|
for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
|
|
2742
2890
|
return n;
|
|
2743
2891
|
}
|
|
2744
|
-
function
|
|
2892
|
+
function mt(e, t) {
|
|
2745
2893
|
var r = Object.keys(e);
|
|
2746
2894
|
if (Object.getOwnPropertySymbols) {
|
|
2747
2895
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -2751,24 +2899,24 @@ function pt(e, t) {
|
|
|
2751
2899
|
}
|
|
2752
2900
|
return r;
|
|
2753
2901
|
}
|
|
2754
|
-
function
|
|
2902
|
+
function Mi(e) {
|
|
2755
2903
|
for (var t = 1; t < arguments.length; t++) {
|
|
2756
2904
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
2757
|
-
t % 2 ?
|
|
2905
|
+
t % 2 ? mt(Object(r), !0).forEach(function(n) {
|
|
2758
2906
|
qe(e, n, r[n]);
|
|
2759
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) :
|
|
2907
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : mt(Object(r)).forEach(function(n) {
|
|
2760
2908
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2761
2909
|
});
|
|
2762
2910
|
}
|
|
2763
2911
|
return e;
|
|
2764
2912
|
}
|
|
2765
|
-
function
|
|
2913
|
+
function Ei() {
|
|
2766
2914
|
var e = /* @__PURE__ */ new Set(), t = null;
|
|
2767
2915
|
function r(a) {
|
|
2768
2916
|
t && (!a.canMonitor || a.canMonitor(t.canMonitorArgs)) && t.active.add(a);
|
|
2769
2917
|
}
|
|
2770
2918
|
function n(a) {
|
|
2771
|
-
var u =
|
|
2919
|
+
var u = Mi({}, a);
|
|
2772
2920
|
e.add(u), r(u);
|
|
2773
2921
|
function c() {
|
|
2774
2922
|
e.delete(u), t && t.active.delete(u);
|
|
@@ -2785,7 +2933,7 @@ function mi() {
|
|
|
2785
2933
|
},
|
|
2786
2934
|
active: /* @__PURE__ */ new Set()
|
|
2787
2935
|
};
|
|
2788
|
-
var s =
|
|
2936
|
+
var s = Di(e), o;
|
|
2789
2937
|
try {
|
|
2790
2938
|
for (s.s(); !(o = s.n()).done; ) {
|
|
2791
2939
|
var f = o.value;
|
|
@@ -2813,8 +2961,8 @@ function mi() {
|
|
|
2813
2961
|
monitorForConsumers: n
|
|
2814
2962
|
};
|
|
2815
2963
|
}
|
|
2816
|
-
function
|
|
2817
|
-
var t = e.typeKey, r = e.mount, n = e.dispatchEventToSource, i = e.onPostDispatch, a = e.defaultDropEffect, u =
|
|
2964
|
+
function Pi(e) {
|
|
2965
|
+
var t = e.typeKey, r = e.mount, n = e.dispatchEventToSource, i = e.onPostDispatch, a = e.defaultDropEffect, u = Ei(), c = Oi({
|
|
2818
2966
|
typeKey: t,
|
|
2819
2967
|
defaultDropEffect: a
|
|
2820
2968
|
});
|
|
@@ -2823,7 +2971,7 @@ function yi(e) {
|
|
|
2823
2971
|
}
|
|
2824
2972
|
function o(l) {
|
|
2825
2973
|
var d = l.event, h = l.dragType;
|
|
2826
|
-
|
|
2974
|
+
ft.start({
|
|
2827
2975
|
event: d,
|
|
2828
2976
|
dragType: h,
|
|
2829
2977
|
getDropTargetsOver: c.getIsOver,
|
|
@@ -2833,12 +2981,12 @@ function yi(e) {
|
|
|
2833
2981
|
function f() {
|
|
2834
2982
|
function l() {
|
|
2835
2983
|
var d = {
|
|
2836
|
-
canStart:
|
|
2984
|
+
canStart: ft.canStart,
|
|
2837
2985
|
start: o
|
|
2838
2986
|
};
|
|
2839
2987
|
return r(d);
|
|
2840
2988
|
}
|
|
2841
|
-
return
|
|
2989
|
+
return xi({
|
|
2842
2990
|
typeKey: t,
|
|
2843
2991
|
mount: l
|
|
2844
2992
|
});
|
|
@@ -2849,19 +2997,19 @@ function yi(e) {
|
|
|
2849
2997
|
monitor: u.monitorForConsumers
|
|
2850
2998
|
};
|
|
2851
2999
|
}
|
|
2852
|
-
var
|
|
3000
|
+
var Ri = ie(function() {
|
|
2853
3001
|
return navigator.userAgent.toLocaleLowerCase().includes("android");
|
|
2854
|
-
}),
|
|
2855
|
-
function
|
|
3002
|
+
}), ki = "pdnd:android-fallback", yt = "text/plain", Ni = "text/uri-list", Ai = "application/vnd.pdnd", ge = /* @__PURE__ */ new WeakMap();
|
|
3003
|
+
function zi(e) {
|
|
2856
3004
|
return ge.set(e.element, e), function() {
|
|
2857
3005
|
ge.delete(e.element);
|
|
2858
3006
|
};
|
|
2859
3007
|
}
|
|
2860
|
-
var
|
|
3008
|
+
var vt = ii(), Ge = Pi({
|
|
2861
3009
|
typeKey: "element",
|
|
2862
3010
|
defaultDropEffect: "move",
|
|
2863
3011
|
mount: function(t) {
|
|
2864
|
-
return Ue(
|
|
3012
|
+
return Ue(vt.bindEvents(), ne.bind(document, {
|
|
2865
3013
|
type: "dragstart",
|
|
2866
3014
|
listener: function(n) {
|
|
2867
3015
|
var i, a, u, c, s, o;
|
|
@@ -2905,7 +3053,7 @@ var yt = Un(), Ge = yi({
|
|
|
2905
3053
|
var O = Bt(b[m], 2), x = O[0], w = O[1];
|
|
2906
3054
|
n.dataTransfer.setData(x, w ?? "");
|
|
2907
3055
|
}
|
|
2908
|
-
|
|
3056
|
+
Ri() && !n.dataTransfer.types.includes(yt) && !n.dataTransfer.types.includes(Ni) && n.dataTransfer.setData(yt, ki), n.dataTransfer.setData(Ai, "");
|
|
2909
3057
|
var M = {
|
|
2910
3058
|
element: l.element,
|
|
2911
3059
|
dragHandle: (c = l.dragHandle) !== null && c !== void 0 ? c : null,
|
|
@@ -2933,9 +3081,9 @@ var yt = Un(), Ge = yi({
|
|
|
2933
3081
|
a
|
|
2934
3082
|
);
|
|
2935
3083
|
},
|
|
2936
|
-
onPostDispatch:
|
|
2937
|
-
}),
|
|
2938
|
-
function
|
|
3084
|
+
onPostDispatch: vt.getOnPostDispatch()
|
|
3085
|
+
}), _i = Ge.dropTarget, Wi = Ge.monitor;
|
|
3086
|
+
function Ci(e) {
|
|
2939
3087
|
if (process.env.NODE_ENV !== "production" && e.dragHandle && !e.element.contains(e.dragHandle) && console.warn("Drag handle element must be contained in draggable element", {
|
|
2940
3088
|
element: e.element,
|
|
2941
3089
|
dragHandle: e.dragHandle
|
|
@@ -2952,7 +3100,7 @@ function Ti(e) {
|
|
|
2952
3100
|
// but you _might_ not have any drop targets immediately
|
|
2953
3101
|
// (You might create drop targets async)
|
|
2954
3102
|
Ge.registerUsage(),
|
|
2955
|
-
|
|
3103
|
+
zi(e),
|
|
2956
3104
|
Gt(e.element, {
|
|
2957
3105
|
attribute: "draggable",
|
|
2958
3106
|
value: "true"
|
|
@@ -2960,16 +3108,16 @@ function Ti(e) {
|
|
|
2960
3108
|
);
|
|
2961
3109
|
return ie(r);
|
|
2962
3110
|
}
|
|
2963
|
-
var
|
|
3111
|
+
var Li = process.env.NODE_ENV === "production", bt = "Invariant failed";
|
|
2964
3112
|
function Ie(e, t) {
|
|
2965
3113
|
if (!e) {
|
|
2966
|
-
if (
|
|
2967
|
-
throw new Error(
|
|
2968
|
-
var r =
|
|
3114
|
+
if (Li)
|
|
3115
|
+
throw new Error(bt);
|
|
3116
|
+
var r = bt;
|
|
2969
3117
|
throw new Error(r);
|
|
2970
3118
|
}
|
|
2971
3119
|
}
|
|
2972
|
-
function
|
|
3120
|
+
function Hi({
|
|
2973
3121
|
children: e,
|
|
2974
3122
|
onDragStart: t = () => {
|
|
2975
3123
|
},
|
|
@@ -2985,7 +3133,7 @@ function Ei({
|
|
|
2985
3133
|
const u = le(null);
|
|
2986
3134
|
return re(() => {
|
|
2987
3135
|
const c = u.current;
|
|
2988
|
-
return Ie(c),
|
|
3136
|
+
return Ie(c), _i({
|
|
2989
3137
|
element: c,
|
|
2990
3138
|
getData: () => ({ drop: "drop" }),
|
|
2991
3139
|
onDragStart: ({ source: s, location: o }) => {
|
|
@@ -3018,7 +3166,7 @@ function ye(e) {
|
|
|
3018
3166
|
y: e.current.input.pageY - t.y
|
|
3019
3167
|
};
|
|
3020
3168
|
}
|
|
3021
|
-
function
|
|
3169
|
+
function Ii({
|
|
3022
3170
|
x: e,
|
|
3023
3171
|
y: t,
|
|
3024
3172
|
width: r,
|
|
@@ -3039,154 +3187,6 @@ function Pi({
|
|
|
3039
3187
|
}
|
|
3040
3188
|
);
|
|
3041
3189
|
}
|
|
3042
|
-
function Ri(e, t, r, n, i, a, u, c, s) {
|
|
3043
|
-
if (n === null)
|
|
3044
|
-
return null;
|
|
3045
|
-
const o = Ye(
|
|
3046
|
-
e,
|
|
3047
|
-
a,
|
|
3048
|
-
c
|
|
3049
|
-
), f = t.filter((d) => d.id !== r.id).map((d) => Fe(d, e, c, a));
|
|
3050
|
-
let l = null;
|
|
3051
|
-
return l = ki(
|
|
3052
|
-
e,
|
|
3053
|
-
r,
|
|
3054
|
-
i,
|
|
3055
|
-
a,
|
|
3056
|
-
n
|
|
3057
|
-
), l = Ai(l, u), l = Ni(
|
|
3058
|
-
l,
|
|
3059
|
-
o
|
|
3060
|
-
), l = zi(
|
|
3061
|
-
l,
|
|
3062
|
-
f,
|
|
3063
|
-
o,
|
|
3064
|
-
s
|
|
3065
|
-
), l;
|
|
3066
|
-
}
|
|
3067
|
-
function ki(e, t, r, n, i) {
|
|
3068
|
-
const { width: a, height: u } = Ht(t, e, n), c = i.x + a * r.relative.x, s = i.y + u * r.relative.y;
|
|
3069
|
-
return {
|
|
3070
|
-
x: c,
|
|
3071
|
-
y: s,
|
|
3072
|
-
width: a,
|
|
3073
|
-
height: u
|
|
3074
|
-
};
|
|
3075
|
-
}
|
|
3076
|
-
function Ni(e, t) {
|
|
3077
|
-
const r = Math.max(
|
|
3078
|
-
0,
|
|
3079
|
-
Math.min(e.x, t.width - e.width)
|
|
3080
|
-
), n = Math.max(
|
|
3081
|
-
0,
|
|
3082
|
-
Math.min(e.y, t.height - e.height)
|
|
3083
|
-
);
|
|
3084
|
-
return {
|
|
3085
|
-
...e,
|
|
3086
|
-
x: r,
|
|
3087
|
-
y: n
|
|
3088
|
-
};
|
|
3089
|
-
}
|
|
3090
|
-
function Ai(e, t) {
|
|
3091
|
-
const r = {
|
|
3092
|
-
...e
|
|
3093
|
-
};
|
|
3094
|
-
return t && t.x && (r.x = bt(r.x, t.x, t.offsetX || 0)), t && t.y && (r.y = bt(r.y, t.y, t.offsetY || 0)), r;
|
|
3095
|
-
}
|
|
3096
|
-
function bt(e, t, r) {
|
|
3097
|
-
return Math.max(
|
|
3098
|
-
r,
|
|
3099
|
-
r + Math.round((e - r) / t) * t
|
|
3100
|
-
);
|
|
3101
|
-
}
|
|
3102
|
-
function zi(e, t, r, n) {
|
|
3103
|
-
const i = {
|
|
3104
|
-
...e
|
|
3105
|
-
};
|
|
3106
|
-
if (!n) {
|
|
3107
|
-
let a = !0;
|
|
3108
|
-
for (; a; ) {
|
|
3109
|
-
const u = t.find((c) => ue(i, c));
|
|
3110
|
-
u !== void 0 ? i.y = u.y + u.height : a = !1;
|
|
3111
|
-
}
|
|
3112
|
-
}
|
|
3113
|
-
return Wi(i, r) ? i : null;
|
|
3114
|
-
}
|
|
3115
|
-
function ue(e, t) {
|
|
3116
|
-
return !(e.x >= t.x + t.width || t.x >= e.x + e.width || e.y >= t.y + t.height || t.y >= e.y + e.height);
|
|
3117
|
-
}
|
|
3118
|
-
function _i(e, t) {
|
|
3119
|
-
const r = Math.max(e.x, t.x), n = Math.max(e.y, t.y), i = Math.min(e.x + e.width, t.x + t.width), a = Math.min(e.y + e.height, t.y + t.height);
|
|
3120
|
-
return r < i && n < a ? {
|
|
3121
|
-
x: r,
|
|
3122
|
-
y: n,
|
|
3123
|
-
width: i - r,
|
|
3124
|
-
height: a - n
|
|
3125
|
-
} : null;
|
|
3126
|
-
}
|
|
3127
|
-
function Ci(e, t) {
|
|
3128
|
-
return !(e.start >= t.end || t.start >= e.end || e.offset >= t.offset + t.size || t.offset >= e.offset + e.size);
|
|
3129
|
-
}
|
|
3130
|
-
function Wi(e, t) {
|
|
3131
|
-
return e.x >= 0 && e.y >= 0 && e.x + e.width <= t.width && e.y + e.height <= t.height;
|
|
3132
|
-
}
|
|
3133
|
-
function Li(e, t, r, n, i) {
|
|
3134
|
-
const a = Hi(
|
|
3135
|
-
e,
|
|
3136
|
-
t,
|
|
3137
|
-
r.capacity,
|
|
3138
|
-
n
|
|
3139
|
-
);
|
|
3140
|
-
if (a) {
|
|
3141
|
-
const u = Ii(
|
|
3142
|
-
e,
|
|
3143
|
-
i.start,
|
|
3144
|
-
i.end,
|
|
3145
|
-
n,
|
|
3146
|
-
a
|
|
3147
|
-
);
|
|
3148
|
-
if (u)
|
|
3149
|
-
return {
|
|
3150
|
-
start: u.lower,
|
|
3151
|
-
end: u.upper,
|
|
3152
|
-
minOffset: a.lower,
|
|
3153
|
-
maxOffset: a.upper
|
|
3154
|
-
};
|
|
3155
|
-
}
|
|
3156
|
-
return null;
|
|
3157
|
-
}
|
|
3158
|
-
function Hi(e, t, r, n) {
|
|
3159
|
-
const i = n.filter((f) => f.start <= e && f.end >= e);
|
|
3160
|
-
if (i.find(
|
|
3161
|
-
(f) => f.offset <= t && f.offset + f.size >= t
|
|
3162
|
-
))
|
|
3163
|
-
return null;
|
|
3164
|
-
const u = i.filter((f) => f.offset + f.size <= t), c = i.filter((f) => f.offset >= t), s = u.length > 0 ? Math.max(...u.map((f) => f.offset + f.size)) : 0, o = c.length > 0 ? Math.min(...c.map((f) => f.offset)) : r;
|
|
3165
|
-
return {
|
|
3166
|
-
lower: s,
|
|
3167
|
-
upper: o
|
|
3168
|
-
};
|
|
3169
|
-
}
|
|
3170
|
-
function Ii(e, t, r, n, i) {
|
|
3171
|
-
const a = {
|
|
3172
|
-
start: t,
|
|
3173
|
-
end: r,
|
|
3174
|
-
offset: i.lower,
|
|
3175
|
-
size: i.upper - i.lower
|
|
3176
|
-
}, u = n.filter(
|
|
3177
|
-
(l) => Ci(l, a)
|
|
3178
|
-
);
|
|
3179
|
-
if (u.length === 0)
|
|
3180
|
-
return {
|
|
3181
|
-
lower: t,
|
|
3182
|
-
upper: r
|
|
3183
|
-
};
|
|
3184
|
-
const c = u.filter((l) => l.end <= e), s = u.filter((l) => l.start >= e), o = c.length > 0 ? yr(c.map((l) => l.end)) : t, f = s.length > 0 ? vr(s.map((l) => l.start)) : r;
|
|
3185
|
-
return {
|
|
3186
|
-
lower: o,
|
|
3187
|
-
upper: f
|
|
3188
|
-
};
|
|
3189
|
-
}
|
|
3190
3190
|
var ve = { exports: {} }, _ = {};
|
|
3191
3191
|
/**
|
|
3192
3192
|
* @license React
|
|
@@ -3330,7 +3330,7 @@ function ji() {
|
|
|
3330
3330
|
return u.H.useHostTransitionStatus();
|
|
3331
3331
|
}, _.version = "19.1.0", _;
|
|
3332
3332
|
}
|
|
3333
|
-
var
|
|
3333
|
+
var W = {};
|
|
3334
3334
|
/**
|
|
3335
3335
|
* @license React
|
|
3336
3336
|
* react-dom.development.js
|
|
@@ -3410,12 +3410,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3410
3410
|
}, o = Symbol.for("react.portal"), f = c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
3411
3411
|
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
3412
3412
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
3413
|
-
),
|
|
3413
|
+
), W.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = s, W.createPortal = function(l, d) {
|
|
3414
3414
|
var h = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
3415
3415
|
if (!d || d.nodeType !== 1 && d.nodeType !== 9 && d.nodeType !== 11)
|
|
3416
3416
|
throw Error("Target container is not a DOM element.");
|
|
3417
3417
|
return r(l, d, null, h);
|
|
3418
|
-
},
|
|
3418
|
+
}, W.flushSync = function(l) {
|
|
3419
3419
|
var d = f.T, h = s.p;
|
|
3420
3420
|
try {
|
|
3421
3421
|
if (f.T = null, s.p = 2, l)
|
|
@@ -3425,7 +3425,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3425
3425
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
3426
3426
|
);
|
|
3427
3427
|
}
|
|
3428
|
-
},
|
|
3428
|
+
}, W.preconnect = function(l, d) {
|
|
3429
3429
|
typeof l == "string" && l ? d != null && typeof d != "object" ? console.error(
|
|
3430
3430
|
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
3431
3431
|
a(d)
|
|
@@ -3436,7 +3436,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3436
3436
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
3437
3437
|
i(l)
|
|
3438
3438
|
), typeof l == "string" && (d ? (d = d.crossOrigin, d = typeof d == "string" ? d === "use-credentials" ? d : "" : void 0) : d = null, s.d.C(l, d));
|
|
3439
|
-
},
|
|
3439
|
+
}, W.prefetchDNS = function(l) {
|
|
3440
3440
|
if (typeof l != "string" || !l)
|
|
3441
3441
|
console.error(
|
|
3442
3442
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
@@ -3453,7 +3453,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3453
3453
|
);
|
|
3454
3454
|
}
|
|
3455
3455
|
typeof l == "string" && s.d.D(l);
|
|
3456
|
-
},
|
|
3456
|
+
}, W.preinit = function(l, d) {
|
|
3457
3457
|
if (typeof l == "string" && l ? d == null || typeof d != "object" ? console.error(
|
|
3458
3458
|
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
3459
3459
|
a(d)
|
|
@@ -3480,7 +3480,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3480
3480
|
nonce: typeof d.nonce == "string" ? d.nonce : void 0
|
|
3481
3481
|
});
|
|
3482
3482
|
}
|
|
3483
|
-
},
|
|
3483
|
+
}, W.preinitModule = function(l, d) {
|
|
3484
3484
|
var h = "";
|
|
3485
3485
|
if (typeof l == "string" && l || (h += " The `href` argument encountered was " + i(l) + "."), d !== void 0 && typeof d != "object" ? h += " The `options` argument encountered was " + i(d) + "." : d && "as" in d && d.as !== "script" && (h += " The `as` option encountered was " + a(d.as) + "."), h)
|
|
3486
3486
|
console.error(
|
|
@@ -3506,7 +3506,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3506
3506
|
integrity: typeof d.integrity == "string" ? d.integrity : void 0,
|
|
3507
3507
|
nonce: typeof d.nonce == "string" ? d.nonce : void 0
|
|
3508
3508
|
})) : d == null && s.d.M(l));
|
|
3509
|
-
},
|
|
3509
|
+
}, W.preload = function(l, d) {
|
|
3510
3510
|
var h = "";
|
|
3511
3511
|
if (typeof l == "string" && l || (h += " The `href` argument encountered was " + i(l) + "."), d == null || typeof d != "object" ? h += " The `options` argument encountered was " + i(d) + "." : typeof d.as == "string" && d.as || (h += " The `as` option encountered was " + i(d.as) + "."), h && console.error(
|
|
3512
3512
|
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
@@ -3529,7 +3529,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3529
3529
|
media: typeof d.media == "string" ? d.media : void 0
|
|
3530
3530
|
});
|
|
3531
3531
|
}
|
|
3532
|
-
},
|
|
3532
|
+
}, W.preloadModule = function(l, d) {
|
|
3533
3533
|
var h = "";
|
|
3534
3534
|
typeof l == "string" && l || (h += " The `href` argument encountered was " + i(l) + "."), d !== void 0 && typeof d != "object" ? h += " The `options` argument encountered was " + i(d) + "." : d && "as" in d && typeof d.as != "string" && (h += " The `as` option encountered was " + i(d.as) + "."), h && console.error(
|
|
3535
3535
|
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
@@ -3542,16 +3542,16 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
3542
3542
|
crossOrigin: h,
|
|
3543
3543
|
integrity: typeof d.integrity == "string" ? d.integrity : void 0
|
|
3544
3544
|
})) : s.d.m(l));
|
|
3545
|
-
},
|
|
3545
|
+
}, W.requestFormReset = function(l) {
|
|
3546
3546
|
s.d.r(l);
|
|
3547
|
-
},
|
|
3547
|
+
}, W.unstable_batchedUpdates = function(l, d) {
|
|
3548
3548
|
return l(d);
|
|
3549
|
-
},
|
|
3549
|
+
}, W.useFormState = function(l, d, h) {
|
|
3550
3550
|
return u().useFormState(l, d, h);
|
|
3551
|
-
},
|
|
3551
|
+
}, W.useFormStatus = function() {
|
|
3552
3552
|
return u().useHostTransitionStatus();
|
|
3553
|
-
},
|
|
3554
|
-
}()),
|
|
3553
|
+
}, W.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3554
|
+
}()), W;
|
|
3555
3555
|
}
|
|
3556
3556
|
var St;
|
|
3557
3557
|
function Yi() {
|
|
@@ -4044,7 +4044,7 @@ function Zi({
|
|
|
4044
4044
|
const o = le(null), f = le(null), [l, d] = V(t);
|
|
4045
4045
|
return re(() => {
|
|
4046
4046
|
d(t);
|
|
4047
|
-
}, [t]), re(() => (Ie(o.current), Ie(f.current),
|
|
4047
|
+
}, [t]), re(() => (Ie(o.current), Ie(f.current), Ci({
|
|
4048
4048
|
element: o.current,
|
|
4049
4049
|
dragHandle: f.current,
|
|
4050
4050
|
onDragStart: ({ source: h, location: g }) => {
|
|
@@ -4150,7 +4150,7 @@ function Zi({
|
|
|
4150
4150
|
);
|
|
4151
4151
|
}
|
|
4152
4152
|
function ea({
|
|
4153
|
-
|
|
4153
|
+
lane: e,
|
|
4154
4154
|
item: t,
|
|
4155
4155
|
settings: r,
|
|
4156
4156
|
children: n,
|
|
@@ -4160,11 +4160,7 @@ function ea({
|
|
|
4160
4160
|
onUpdate: c,
|
|
4161
4161
|
onResizeStart: s
|
|
4162
4162
|
}) {
|
|
4163
|
-
const o = Fe(t, e, r, r), f = Ye(
|
|
4164
|
-
e,
|
|
4165
|
-
r,
|
|
4166
|
-
r
|
|
4167
|
-
);
|
|
4163
|
+
const o = Fe(t, e, r, r), f = Ye(e, r, r);
|
|
4168
4164
|
return /* @__PURE__ */ y(
|
|
4169
4165
|
Zi,
|
|
4170
4166
|
{
|
|
@@ -4207,10 +4203,10 @@ function ta({ overlap: e }) {
|
|
|
4207
4203
|
);
|
|
4208
4204
|
}
|
|
4209
4205
|
function Pt(e) {
|
|
4210
|
-
return "id" in e && "
|
|
4206
|
+
return "id" in e && "laneId" in e && "start" in e && "end" in e && "size" in e && "offset" in e;
|
|
4211
4207
|
}
|
|
4212
4208
|
function ra({
|
|
4213
|
-
|
|
4209
|
+
lane: e,
|
|
4214
4210
|
items: t,
|
|
4215
4211
|
focused: r = !1,
|
|
4216
4212
|
onItemUpdate: n = () => {
|
|
@@ -4230,11 +4226,7 @@ function ra({
|
|
|
4230
4226
|
const { settings: f } = pe(), l = {
|
|
4231
4227
|
x: f.pixelsPerDay,
|
|
4232
4228
|
offsetX: f.pixelsPerDay / 2
|
|
4233
|
-
}, d = Ye(
|
|
4234
|
-
e,
|
|
4235
|
-
f,
|
|
4236
|
-
f
|
|
4237
|
-
), [h, g] = V(null), [p, m] = V(
|
|
4229
|
+
}, d = Ye(e, f, f), [h, g] = V(null), [p, m] = V(
|
|
4238
4230
|
null
|
|
4239
4231
|
);
|
|
4240
4232
|
function b(v) {
|
|
@@ -4253,7 +4245,7 @@ function ra({
|
|
|
4253
4245
|
}
|
|
4254
4246
|
function x(v, D, P) {
|
|
4255
4247
|
if (!Pt(P)) return;
|
|
4256
|
-
const R =
|
|
4248
|
+
const R = An(
|
|
4257
4249
|
e,
|
|
4258
4250
|
t,
|
|
4259
4251
|
P,
|
|
@@ -4281,7 +4273,7 @@ function ra({
|
|
|
4281
4273
|
m(null);
|
|
4282
4274
|
}
|
|
4283
4275
|
function S(v, D) {
|
|
4284
|
-
const P = b(v), R = O(v), L =
|
|
4276
|
+
const P = b(v), R = O(v), L = jn(
|
|
4285
4277
|
P,
|
|
4286
4278
|
R,
|
|
4287
4279
|
e,
|
|
@@ -4294,14 +4286,14 @@ function ra({
|
|
|
4294
4286
|
id: v.id,
|
|
4295
4287
|
...Fe(v, e, f, f)
|
|
4296
4288
|
})), E = z.flatMap(
|
|
4297
|
-
(v) => z.map((D) => v.id < D.id ?
|
|
4289
|
+
(v) => z.map((D) => v.id < D.id ? Ln(v, D) : null)
|
|
4298
4290
|
).filter((v) => v !== null);
|
|
4299
4291
|
return /* @__PURE__ */ y(
|
|
4300
4292
|
"div",
|
|
4301
4293
|
{
|
|
4302
|
-
id: `timelane-
|
|
4303
|
-
className: `timelane-
|
|
4304
|
-
"data-timelane-
|
|
4294
|
+
id: `timelane-lane-${e.id}`,
|
|
4295
|
+
className: `timelane-lane ${r ? "timelane-lane-focused" : ""}`,
|
|
4296
|
+
"data-timelane-lane-id": e.id,
|
|
4305
4297
|
style: d,
|
|
4306
4298
|
onMouseUp: i,
|
|
4307
4299
|
onClick: (v) => S(v, "single"),
|
|
@@ -4310,7 +4302,7 @@ function ra({
|
|
|
4310
4302
|
c(b(v), v);
|
|
4311
4303
|
},
|
|
4312
4304
|
children: /* @__PURE__ */ Q(
|
|
4313
|
-
|
|
4305
|
+
Hi,
|
|
4314
4306
|
{
|
|
4315
4307
|
onDrag: x,
|
|
4316
4308
|
onDragLeave: M,
|
|
@@ -4321,7 +4313,7 @@ function ra({
|
|
|
4321
4313
|
{
|
|
4322
4314
|
item: v,
|
|
4323
4315
|
settings: f,
|
|
4324
|
-
|
|
4316
|
+
lane: e,
|
|
4325
4317
|
onDragStart: () => {
|
|
4326
4318
|
g(v);
|
|
4327
4319
|
},
|
|
@@ -4341,7 +4333,7 @@ function ra({
|
|
|
4341
4333
|
},
|
|
4342
4334
|
D
|
|
4343
4335
|
)),
|
|
4344
|
-
p && /* @__PURE__ */ y(
|
|
4336
|
+
p && /* @__PURE__ */ y(Ii, { ...p }),
|
|
4345
4337
|
E.map((v, D) => /* @__PURE__ */ y(ta, { overlap: v }, D))
|
|
4346
4338
|
]
|
|
4347
4339
|
}
|
|
@@ -4366,7 +4358,7 @@ function ia({
|
|
|
4366
4358
|
onSelect: t
|
|
4367
4359
|
}) {
|
|
4368
4360
|
const [r, n] = V([]), i = le(null), [a, u] = V(null), [c, s] = V(null);
|
|
4369
|
-
re(() =>
|
|
4361
|
+
re(() => Wi({
|
|
4370
4362
|
onDragStart: (d) => {
|
|
4371
4363
|
n([d.source.data.id]);
|
|
4372
4364
|
}
|
|
@@ -4545,7 +4537,7 @@ function fa({
|
|
|
4545
4537
|
onDayClick: a = () => {
|
|
4546
4538
|
}
|
|
4547
4539
|
}) {
|
|
4548
|
-
return /* @__PURE__ */ y("div", { className: "timelane-header-days", children:
|
|
4540
|
+
return /* @__PURE__ */ y("div", { className: "timelane-header-days", children: Wt(e).map((u, c) => /* @__PURE__ */ y(
|
|
4549
4541
|
"div",
|
|
4550
4542
|
{
|
|
4551
4543
|
className: `timelane-header-day-label ${r && br(r, u) ? "timelane-header-day-label-focused" : ""}`,
|
|
@@ -4610,7 +4602,7 @@ function $({ children: e }) {
|
|
|
4610
4602
|
$.Container = $;
|
|
4611
4603
|
$.Header = ha;
|
|
4612
4604
|
$.Body = oa;
|
|
4613
|
-
$.Background =
|
|
4605
|
+
$.Background = Fn;
|
|
4614
4606
|
$.Aside = lr;
|
|
4615
4607
|
$.Lane = ra;
|
|
4616
4608
|
$.Layout = H;
|
|
@@ -4645,7 +4637,7 @@ const ya = ({
|
|
|
4645
4637
|
function n(a) {
|
|
4646
4638
|
window.requestAnimationFrame(() => {
|
|
4647
4639
|
const u = document.getElementById(
|
|
4648
|
-
`timelane-
|
|
4640
|
+
`timelane-lane-${a}`
|
|
4649
4641
|
);
|
|
4650
4642
|
u && u.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
4651
4643
|
});
|
|
@@ -4665,21 +4657,21 @@ const ya = ({
|
|
|
4665
4657
|
return { scrollTo: t, scrollToDate: r, scrollToItem: i, scrollToLane: n };
|
|
4666
4658
|
};
|
|
4667
4659
|
export {
|
|
4668
|
-
ra as CoreSwimlane,
|
|
4669
4660
|
fa as DaysHeader,
|
|
4670
4661
|
la as MonthsHeader,
|
|
4671
4662
|
$ as Timelane,
|
|
4672
4663
|
lr as TimelaneAside,
|
|
4673
|
-
|
|
4664
|
+
Fn as TimelaneBackground,
|
|
4674
4665
|
oa as TimelaneBody,
|
|
4675
4666
|
ha as TimelaneHeader,
|
|
4667
|
+
ra as TimelaneLane,
|
|
4676
4668
|
H as TimelaneLayout,
|
|
4677
4669
|
ya as TimelaneSettingsProvider,
|
|
4678
4670
|
da as WeeksHeader,
|
|
4679
4671
|
$e as dateToPixel,
|
|
4680
4672
|
ue as doOverlap,
|
|
4681
|
-
|
|
4682
|
-
|
|
4673
|
+
jn as getAvailableSpace,
|
|
4674
|
+
An as getDropPreviewRectangle,
|
|
4683
4675
|
Ye as getDropTargetDimensions,
|
|
4684
4676
|
Pn as getDropTargetHeight,
|
|
4685
4677
|
Rn as getDropTargetWidth,
|
|
@@ -4687,11 +4679,11 @@ export {
|
|
|
4687
4679
|
Ht as getItemDimensions,
|
|
4688
4680
|
Nn as getItemPosition,
|
|
4689
4681
|
Fe as getItemRectangle,
|
|
4690
|
-
|
|
4682
|
+
Ln as getOverlap,
|
|
4691
4683
|
It as getUpdatedItem,
|
|
4692
|
-
Pt as
|
|
4693
|
-
|
|
4694
|
-
|
|
4684
|
+
Pt as isItem,
|
|
4685
|
+
In as isWithinTargetDimensions,
|
|
4686
|
+
Hn as itemsDoOverlap,
|
|
4695
4687
|
kn as offsetToPixel,
|
|
4696
4688
|
ca as renderDayHeader,
|
|
4697
4689
|
sa as renderMonthHeader,
|