react-resizable-panels 4.9.0 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsx as ae } from "react/jsx-runtime";
|
|
3
|
+
import { useState as Q, useCallback as re, useId as pt, useLayoutEffect as Ue, useEffect as me, useRef as O, createContext as ht, useImperativeHandle as Ke, useMemo as Se, useSyncExternalStore as Xe, useContext as mt } from "react";
|
|
4
4
|
function gt(e, t) {
|
|
5
5
|
const n = getComputedStyle(e), o = parseFloat(n.fontSize);
|
|
6
6
|
return t * o;
|
|
@@ -15,7 +15,7 @@ function St(e) {
|
|
|
15
15
|
function vt(e) {
|
|
16
16
|
return e / 100 * window.innerWidth;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function bt(e) {
|
|
19
19
|
switch (typeof e) {
|
|
20
20
|
case "number":
|
|
21
21
|
return [e, "px"];
|
|
@@ -25,13 +25,13 @@ function zt(e) {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function ie({
|
|
29
29
|
groupSize: e,
|
|
30
30
|
panelElement: t,
|
|
31
31
|
styleProp: n
|
|
32
32
|
}) {
|
|
33
33
|
let o;
|
|
34
|
-
const [i, s] =
|
|
34
|
+
const [i, s] = bt(n);
|
|
35
35
|
switch (s) {
|
|
36
36
|
case "%": {
|
|
37
37
|
o = i / 100 * e;
|
|
@@ -63,14 +63,14 @@ function te({
|
|
|
63
63
|
function T(e) {
|
|
64
64
|
return parseFloat(e.toFixed(3));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ne({
|
|
67
67
|
group: e
|
|
68
68
|
}) {
|
|
69
69
|
const { orientation: t, panels: n } = e;
|
|
70
70
|
return n.reduce((o, i) => (o += t === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, o), 0);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
const { panels: t } = e, n =
|
|
72
|
+
function ve(e) {
|
|
73
|
+
const { panels: t } = e, n = ne({ group: e });
|
|
74
74
|
return n === 0 ? t.map((o) => ({
|
|
75
75
|
groupResizeBehavior: o.panelConstraints.groupResizeBehavior,
|
|
76
76
|
collapsedSize: 0,
|
|
@@ -84,7 +84,7 @@ function Se(e) {
|
|
|
84
84
|
const { element: i, panelConstraints: s } = o;
|
|
85
85
|
let l = 0;
|
|
86
86
|
if (s.collapsedSize !== void 0) {
|
|
87
|
-
const f =
|
|
87
|
+
const f = ie({
|
|
88
88
|
groupSize: n,
|
|
89
89
|
panelElement: i,
|
|
90
90
|
styleProp: s.collapsedSize
|
|
@@ -93,7 +93,7 @@ function Se(e) {
|
|
|
93
93
|
}
|
|
94
94
|
let r;
|
|
95
95
|
if (s.defaultSize !== void 0) {
|
|
96
|
-
const f =
|
|
96
|
+
const f = ie({
|
|
97
97
|
groupSize: n,
|
|
98
98
|
panelElement: i,
|
|
99
99
|
styleProp: s.defaultSize
|
|
@@ -102,7 +102,7 @@ function Se(e) {
|
|
|
102
102
|
}
|
|
103
103
|
let a = 0;
|
|
104
104
|
if (s.minSize !== void 0) {
|
|
105
|
-
const f =
|
|
105
|
+
const f = ie({
|
|
106
106
|
groupSize: n,
|
|
107
107
|
panelElement: i,
|
|
108
108
|
styleProp: s.minSize
|
|
@@ -111,7 +111,7 @@ function Se(e) {
|
|
|
111
111
|
}
|
|
112
112
|
let c = 100;
|
|
113
113
|
if (s.maxSize !== void 0) {
|
|
114
|
-
const f =
|
|
114
|
+
const f = ie({
|
|
115
115
|
groupSize: n,
|
|
116
116
|
panelElement: i,
|
|
117
117
|
styleProp: s.maxSize
|
|
@@ -134,12 +134,12 @@ function C(e, t = "Assertion error") {
|
|
|
134
134
|
if (!e)
|
|
135
135
|
throw Error(t);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function be(e, t) {
|
|
138
138
|
return Array.from(t).sort(
|
|
139
|
-
e === "horizontal" ?
|
|
139
|
+
e === "horizontal" ? zt : xt
|
|
140
140
|
);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function zt(e, t) {
|
|
143
143
|
const n = e.element.offsetLeft - t.element.offsetLeft;
|
|
144
144
|
return n !== 0 ? n : e.element.offsetWidth - t.element.offsetWidth;
|
|
145
145
|
}
|
|
@@ -147,10 +147,10 @@ function xt(e, t) {
|
|
|
147
147
|
const n = e.element.offsetTop - t.element.offsetTop;
|
|
148
148
|
return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function qe(e) {
|
|
151
151
|
return e !== null && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ye(e, t) {
|
|
154
154
|
return {
|
|
155
155
|
x: e.x >= t.left && e.x <= t.right ? 0 : Math.min(
|
|
156
156
|
Math.abs(e.x - t.left),
|
|
@@ -173,31 +173,31 @@ function wt({
|
|
|
173
173
|
};
|
|
174
174
|
let i, s = Number.MAX_VALUE;
|
|
175
175
|
for (const l of t) {
|
|
176
|
-
const { x: r, y: a } =
|
|
176
|
+
const { x: r, y: a } = Ye(o, l), c = e === "horizontal" ? r : a;
|
|
177
177
|
c < s && (s = c, i = l);
|
|
178
178
|
}
|
|
179
179
|
return C(i, "No rect found"), i;
|
|
180
180
|
}
|
|
181
|
-
let
|
|
181
|
+
let fe;
|
|
182
182
|
function Pt() {
|
|
183
|
-
return
|
|
183
|
+
return fe === void 0 && (typeof matchMedia == "function" ? fe = !!matchMedia("(pointer:coarse)").matches : fe = !1), fe;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
const { element: t, orientation: n, panels: o, separators: i } = e, s =
|
|
185
|
+
function Je(e) {
|
|
186
|
+
const { element: t, orientation: n, panels: o, separators: i } = e, s = be(
|
|
187
187
|
n,
|
|
188
|
-
Array.from(t.children).filter(
|
|
189
|
-
).map(({ element:
|
|
190
|
-
let r = !1, a = !1, c = -1, f = -1, g = 0, d,
|
|
188
|
+
Array.from(t.children).filter(qe).map((x) => ({ element: x }))
|
|
189
|
+
).map(({ element: x }) => x), l = [];
|
|
190
|
+
let r = !1, a = !1, c = -1, f = -1, g = 0, d, b = [];
|
|
191
191
|
{
|
|
192
|
-
let
|
|
192
|
+
let x = -1;
|
|
193
193
|
for (const u of s)
|
|
194
|
-
u.hasAttribute("data-panel") && (
|
|
194
|
+
u.hasAttribute("data-panel") && (x++, u.hasAttribute("data-disabled") || (g++, c === -1 && (c = x), f = x));
|
|
195
195
|
}
|
|
196
196
|
if (g > 1) {
|
|
197
|
-
let
|
|
197
|
+
let x = -1;
|
|
198
198
|
for (const u of s)
|
|
199
199
|
if (u.hasAttribute("data-panel")) {
|
|
200
|
-
|
|
200
|
+
x++;
|
|
201
201
|
const p = o.find(
|
|
202
202
|
(m) => m.element === u
|
|
203
203
|
);
|
|
@@ -217,7 +217,7 @@ function Ye(e) {
|
|
|
217
217
|
m.width,
|
|
218
218
|
0
|
|
219
219
|
), h = n === "horizontal" ? new DOMRect(S.left, S.top, 0, S.height) : new DOMRect(S.left, S.top, S.width, 0);
|
|
220
|
-
switch (
|
|
220
|
+
switch (b.length) {
|
|
221
221
|
case 0: {
|
|
222
222
|
v = [
|
|
223
223
|
y,
|
|
@@ -226,24 +226,24 @@ function Ye(e) {
|
|
|
226
226
|
break;
|
|
227
227
|
}
|
|
228
228
|
case 1: {
|
|
229
|
-
const
|
|
229
|
+
const w = b[0], M = wt({
|
|
230
230
|
orientation: n,
|
|
231
231
|
rects: [m, S],
|
|
232
|
-
targetRect:
|
|
232
|
+
targetRect: w.element.getBoundingClientRect()
|
|
233
233
|
});
|
|
234
234
|
v = [
|
|
235
|
-
|
|
235
|
+
w,
|
|
236
236
|
M === m ? h : y
|
|
237
237
|
];
|
|
238
238
|
break;
|
|
239
239
|
}
|
|
240
240
|
default: {
|
|
241
|
-
v =
|
|
241
|
+
v = b;
|
|
242
242
|
break;
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
} else
|
|
246
|
-
|
|
246
|
+
b.length ? v = b : v = [
|
|
247
247
|
n === "horizontal" ? new DOMRect(
|
|
248
248
|
m.right,
|
|
249
249
|
S.top,
|
|
@@ -258,49 +258,49 @@ function Ye(e) {
|
|
|
258
258
|
];
|
|
259
259
|
for (const y of v) {
|
|
260
260
|
let h = "width" in y ? y : y.element.getBoundingClientRect();
|
|
261
|
-
const
|
|
262
|
-
if (h.width <
|
|
263
|
-
const
|
|
261
|
+
const w = Pt() ? e.resizeTargetMinimumSize.coarse : e.resizeTargetMinimumSize.fine;
|
|
262
|
+
if (h.width < w) {
|
|
263
|
+
const P = w - h.width;
|
|
264
264
|
h = new DOMRect(
|
|
265
|
-
h.x -
|
|
265
|
+
h.x - P / 2,
|
|
266
266
|
h.y,
|
|
267
|
-
h.width +
|
|
267
|
+
h.width + P,
|
|
268
268
|
h.height
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
|
-
if (h.height <
|
|
272
|
-
const
|
|
271
|
+
if (h.height < w) {
|
|
272
|
+
const P = w - h.height;
|
|
273
273
|
h = new DOMRect(
|
|
274
274
|
h.x,
|
|
275
|
-
h.y -
|
|
275
|
+
h.y - P / 2,
|
|
276
276
|
h.width,
|
|
277
|
-
h.height +
|
|
277
|
+
h.height + P
|
|
278
278
|
);
|
|
279
279
|
}
|
|
280
|
-
const M =
|
|
280
|
+
const M = x <= c || x > f;
|
|
281
281
|
!r && !M && l.push({
|
|
282
282
|
group: e,
|
|
283
|
-
groupSize:
|
|
283
|
+
groupSize: ne({ group: e }),
|
|
284
284
|
panels: [d, p],
|
|
285
285
|
separator: "width" in y ? void 0 : y,
|
|
286
286
|
rect: h
|
|
287
287
|
}), r = !1;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
a = !1, d = p,
|
|
290
|
+
a = !1, d = p, b = [];
|
|
291
291
|
}
|
|
292
292
|
} else if (u.hasAttribute("data-separator")) {
|
|
293
293
|
u.ariaDisabled !== null && (r = !0);
|
|
294
294
|
const p = i.find(
|
|
295
295
|
(m) => m.element === u
|
|
296
296
|
);
|
|
297
|
-
p ?
|
|
297
|
+
p ? b.push(p) : (d = void 0, b = []);
|
|
298
298
|
} else
|
|
299
299
|
a = !0;
|
|
300
300
|
}
|
|
301
301
|
return l;
|
|
302
302
|
}
|
|
303
|
-
class
|
|
303
|
+
class Ze {
|
|
304
304
|
#e = {};
|
|
305
305
|
addListener(t, n) {
|
|
306
306
|
const o = this.#e[t];
|
|
@@ -339,34 +339,34 @@ class Je {
|
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
-
let
|
|
343
|
-
const
|
|
342
|
+
let F = /* @__PURE__ */ new Map();
|
|
343
|
+
const Qe = new Ze();
|
|
344
344
|
function Lt(e) {
|
|
345
|
-
|
|
345
|
+
F = new Map(F), F.delete(e);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
for (const [n] of
|
|
347
|
+
function ke(e, t) {
|
|
348
|
+
for (const [n] of F)
|
|
349
349
|
if (n.id === e)
|
|
350
350
|
return n;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
for (const [n, o] of
|
|
352
|
+
function H(e, t) {
|
|
353
|
+
for (const [n, o] of F)
|
|
354
354
|
if (n.id === e)
|
|
355
355
|
return o;
|
|
356
356
|
if (t)
|
|
357
357
|
throw Error(`Could not find data for Group with id ${e}`);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
return
|
|
359
|
+
function X() {
|
|
360
|
+
return F;
|
|
361
361
|
}
|
|
362
362
|
function ze(e, t) {
|
|
363
|
-
return
|
|
363
|
+
return Qe.addListener("groupChange", (n) => {
|
|
364
364
|
n.group.id === e && t(n);
|
|
365
365
|
});
|
|
366
366
|
}
|
|
367
|
-
function
|
|
368
|
-
const n =
|
|
369
|
-
|
|
367
|
+
function $(e, t) {
|
|
368
|
+
const n = F.get(e);
|
|
369
|
+
F = new Map(F), F.set(e, t), Qe.emit("groupChange", {
|
|
370
370
|
group: e,
|
|
371
371
|
prev: n,
|
|
372
372
|
next: t
|
|
@@ -378,7 +378,7 @@ function Ct(e, t, n) {
|
|
|
378
378
|
y: 1 / 0
|
|
379
379
|
};
|
|
380
380
|
for (const s of t) {
|
|
381
|
-
const l =
|
|
381
|
+
const l = Ye(n, s.rect);
|
|
382
382
|
switch (e) {
|
|
383
383
|
case "horizontal": {
|
|
384
384
|
l.x <= i.x && (o = s, i = l);
|
|
@@ -401,8 +401,8 @@ function Rt(e) {
|
|
|
401
401
|
function Mt(e, t) {
|
|
402
402
|
if (e === t) throw new Error("Cannot compare node with itself");
|
|
403
403
|
const n = {
|
|
404
|
-
a:
|
|
405
|
-
b:
|
|
404
|
+
a: Te(e),
|
|
405
|
+
b: Te(t)
|
|
406
406
|
};
|
|
407
407
|
let o;
|
|
408
408
|
for (; n.a.at(-1) === n.b.at(-1); )
|
|
@@ -412,8 +412,8 @@ function Mt(e, t) {
|
|
|
412
412
|
"Stacking order can only be calculated for elements with a common ancestor"
|
|
413
413
|
);
|
|
414
414
|
const i = {
|
|
415
|
-
a: Ie(
|
|
416
|
-
b: Ie(
|
|
415
|
+
a: De(Ie(n.a)),
|
|
416
|
+
b: De(Ie(n.b))
|
|
417
417
|
};
|
|
418
418
|
if (i.a === i.b) {
|
|
419
419
|
const s = o.childNodes, l = {
|
|
@@ -431,14 +431,14 @@ function Mt(e, t) {
|
|
|
431
431
|
}
|
|
432
432
|
const Et = /\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;
|
|
433
433
|
function kt(e) {
|
|
434
|
-
const t = getComputedStyle(
|
|
434
|
+
const t = getComputedStyle(et(e) ?? e).display;
|
|
435
435
|
return t === "flex" || t === "inline-flex";
|
|
436
436
|
}
|
|
437
437
|
function It(e) {
|
|
438
438
|
const t = getComputedStyle(e);
|
|
439
439
|
return !!(t.position === "fixed" || t.zIndex !== "auto" && (t.position !== "static" || kt(e)) || +t.opacity < 1 || "transform" in t && t.transform !== "none" || "webkitTransform" in t && t.webkitTransform !== "none" || "mixBlendMode" in t && t.mixBlendMode !== "normal" || "filter" in t && t.filter !== "none" || "webkitFilter" in t && t.webkitFilter !== "none" || "isolation" in t && t.isolation === "isolate" || Et.test(t.willChange) || t.webkitOverflowScrolling === "touch");
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Ie(e) {
|
|
442
442
|
let t = e.length;
|
|
443
443
|
for (; t--; ) {
|
|
444
444
|
const n = e[t];
|
|
@@ -446,16 +446,16 @@ function ke(e) {
|
|
|
446
446
|
}
|
|
447
447
|
return null;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function De(e) {
|
|
450
450
|
return e && Number(getComputedStyle(e).zIndex) || 0;
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Te(e) {
|
|
453
453
|
const t = [];
|
|
454
454
|
for (; e; )
|
|
455
|
-
t.push(e), e =
|
|
455
|
+
t.push(e), e = et(e);
|
|
456
456
|
return t;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function et(e) {
|
|
459
459
|
const { parentNode: t } = e;
|
|
460
460
|
return Rt(t) ? t.host : t;
|
|
461
461
|
}
|
|
@@ -467,7 +467,7 @@ function Tt({
|
|
|
467
467
|
hitRegion: t,
|
|
468
468
|
pointerEventTarget: n
|
|
469
469
|
}) {
|
|
470
|
-
if (!
|
|
470
|
+
if (!qe(n) || n.contains(e) || e.contains(n))
|
|
471
471
|
return !0;
|
|
472
472
|
if (Mt(n, e) > 0) {
|
|
473
473
|
let o = n;
|
|
@@ -481,12 +481,12 @@ function Tt({
|
|
|
481
481
|
}
|
|
482
482
|
return !0;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function xe(e, t) {
|
|
485
485
|
const n = [];
|
|
486
486
|
return t.forEach((o, i) => {
|
|
487
487
|
if (i.disabled)
|
|
488
488
|
return;
|
|
489
|
-
const s =
|
|
489
|
+
const s = Je(i), l = Ct(i.orientation, s, {
|
|
490
490
|
x: e.clientX,
|
|
491
491
|
y: e.clientY
|
|
492
492
|
});
|
|
@@ -508,10 +508,10 @@ function Ot(e, t) {
|
|
|
508
508
|
function D(e, t, n = 0) {
|
|
509
509
|
return Math.abs(T(e) - T(t)) <= n;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function A(e, t) {
|
|
512
512
|
return D(e, t) ? 0 : e > t ? 1 : -1;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Z({
|
|
515
515
|
overrideDisabledPanels: e,
|
|
516
516
|
panelConstraints: t,
|
|
517
517
|
prevSize: n,
|
|
@@ -526,15 +526,15 @@ function Y({
|
|
|
526
526
|
} = t;
|
|
527
527
|
if (l && !e)
|
|
528
528
|
return n;
|
|
529
|
-
if (
|
|
529
|
+
if (A(o, a) < 0)
|
|
530
530
|
if (s) {
|
|
531
531
|
const c = (i + a) / 2;
|
|
532
|
-
|
|
532
|
+
A(o, c) < 0 ? o = i : o = a;
|
|
533
533
|
} else
|
|
534
534
|
o = a;
|
|
535
535
|
return o = Math.min(r, o), o = T(o), o;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function le({
|
|
538
538
|
delta: e,
|
|
539
539
|
initialLayout: t,
|
|
540
540
|
panelConstraints: n,
|
|
@@ -567,7 +567,7 @@ function se({
|
|
|
567
567
|
`Previous layout not found for panel index ${u}`
|
|
568
568
|
), D(y, m)) {
|
|
569
569
|
const h = v - y;
|
|
570
|
-
|
|
570
|
+
A(h, Math.abs(e)) > 0 && (e = e < 0 ? 0 - h : h);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
@@ -589,7 +589,7 @@ function se({
|
|
|
589
589
|
`Previous layout not found for panel index ${u}`
|
|
590
590
|
), D(y, v)) {
|
|
591
591
|
const h = y - m;
|
|
592
|
-
|
|
592
|
+
A(h, Math.abs(e)) > 0 && (e = e < 0 ? 0 - h : h);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
}
|
|
@@ -602,13 +602,13 @@ function se({
|
|
|
602
602
|
`Panel constraints not found for index ${u}`
|
|
603
603
|
);
|
|
604
604
|
const m = r[u], { collapsible: S, collapsedSize: v, minSize: y } = p;
|
|
605
|
-
if (S &&
|
|
605
|
+
if (S && A(m, y) < 0)
|
|
606
606
|
if (e > 0) {
|
|
607
|
-
const h = y - v,
|
|
608
|
-
|
|
607
|
+
const h = y - v, w = h / 2, M = m + e;
|
|
608
|
+
A(M, y) < 0 && (e = A(e, w) <= 0 ? 0 : h);
|
|
609
609
|
} else {
|
|
610
|
-
const h = y - v,
|
|
611
|
-
|
|
610
|
+
const h = y - v, w = 100 - h / 2, M = m - e;
|
|
611
|
+
A(M, y) < 0 && (e = A(100 + e, w) > 0 ? 0 : -h);
|
|
612
612
|
}
|
|
613
613
|
break;
|
|
614
614
|
}
|
|
@@ -622,7 +622,7 @@ function se({
|
|
|
622
622
|
v != null,
|
|
623
623
|
`Previous layout not found for panel index ${p}`
|
|
624
624
|
);
|
|
625
|
-
const h =
|
|
625
|
+
const h = Z({
|
|
626
626
|
overrideDisabledPanels: l,
|
|
627
627
|
panelConstraints: n[p],
|
|
628
628
|
prevSize: v,
|
|
@@ -642,7 +642,7 @@ function se({
|
|
|
642
642
|
S != null,
|
|
643
643
|
`Previous layout not found for panel index ${p}`
|
|
644
644
|
);
|
|
645
|
-
const v = S - m, y =
|
|
645
|
+
const v = S - m, y = Z({
|
|
646
646
|
overrideDisabledPanels: l,
|
|
647
647
|
panelConstraints: n[p],
|
|
648
648
|
prevSize: S,
|
|
@@ -663,7 +663,7 @@ function se({
|
|
|
663
663
|
p != null,
|
|
664
664
|
`Previous layout not found for panel index ${u}`
|
|
665
665
|
);
|
|
666
|
-
const m = p + d, S =
|
|
666
|
+
const m = p + d, S = Z({
|
|
667
667
|
overrideDisabledPanels: l,
|
|
668
668
|
panelConstraints: n[u],
|
|
669
669
|
prevSize: p,
|
|
@@ -672,41 +672,41 @@ function se({
|
|
|
672
672
|
if (c[u] = S, !D(S, m)) {
|
|
673
673
|
let v = m - S, h = e < 0 ? g : f;
|
|
674
674
|
for (; h >= 0 && h < n.length; ) {
|
|
675
|
-
const
|
|
675
|
+
const w = c[h];
|
|
676
676
|
C(
|
|
677
|
-
|
|
677
|
+
w != null,
|
|
678
678
|
`Previous layout not found for panel index ${h}`
|
|
679
679
|
);
|
|
680
|
-
const M =
|
|
680
|
+
const M = w + v, P = Z({
|
|
681
681
|
overrideDisabledPanels: l,
|
|
682
682
|
panelConstraints: n[h],
|
|
683
|
-
prevSize:
|
|
683
|
+
prevSize: w,
|
|
684
684
|
size: M
|
|
685
685
|
});
|
|
686
|
-
if (D(
|
|
686
|
+
if (D(w, P) || (v -= P - w, c[h] = P), D(v, 0))
|
|
687
687
|
break;
|
|
688
688
|
e > 0 ? h-- : h++;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const b = Object.values(c).reduce(
|
|
693
693
|
(u, p) => p + u,
|
|
694
694
|
0
|
|
695
695
|
);
|
|
696
|
-
if (!D(
|
|
696
|
+
if (!D(b, 100, 0.1))
|
|
697
697
|
return i;
|
|
698
|
-
const
|
|
699
|
-
return c.reduce((u, p, m) => (u[
|
|
698
|
+
const x = Object.keys(i);
|
|
699
|
+
return c.reduce((u, p, m) => (u[x[m]] = p, u), {});
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function W(e, t) {
|
|
702
702
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
703
703
|
return !1;
|
|
704
704
|
for (const n in e)
|
|
705
|
-
if (t[n] === void 0 ||
|
|
705
|
+
if (t[n] === void 0 || A(e[n], t[n]) !== 0)
|
|
706
706
|
return !1;
|
|
707
707
|
return !0;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function U({
|
|
710
710
|
layout: e,
|
|
711
711
|
panelConstraints: t
|
|
712
712
|
}) {
|
|
@@ -731,7 +731,7 @@ function B({
|
|
|
731
731
|
C(a != null, `No layout data found for index ${r}`);
|
|
732
732
|
const c = o[r];
|
|
733
733
|
C(c != null, `No layout data found for index ${r}`);
|
|
734
|
-
const f =
|
|
734
|
+
const f = Z({
|
|
735
735
|
overrideDisabledPanels: !0,
|
|
736
736
|
panelConstraints: t[r],
|
|
737
737
|
prevSize: a,
|
|
@@ -743,7 +743,7 @@ function B({
|
|
|
743
743
|
for (let r = 0; r < t.length; r++) {
|
|
744
744
|
const a = o[r];
|
|
745
745
|
C(a != null, `No layout data found for index ${r}`);
|
|
746
|
-
const c = a + s, f =
|
|
746
|
+
const c = a + s, f = Z({
|
|
747
747
|
overrideDisabledPanels: !0,
|
|
748
748
|
panelConstraints: t[r],
|
|
749
749
|
prevSize: a,
|
|
@@ -755,12 +755,12 @@ function B({
|
|
|
755
755
|
const l = Object.keys(e);
|
|
756
756
|
return o.reduce((r, a, c) => (r[l[c]] = a, r), {});
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function tt({
|
|
759
759
|
groupId: e,
|
|
760
760
|
panelId: t
|
|
761
761
|
}) {
|
|
762
762
|
const n = () => {
|
|
763
|
-
const r =
|
|
763
|
+
const r = X();
|
|
764
764
|
for (const [
|
|
765
765
|
a,
|
|
766
766
|
{
|
|
@@ -768,7 +768,7 @@ function et({
|
|
|
768
768
|
derivedPanelConstraints: f,
|
|
769
769
|
layout: g,
|
|
770
770
|
groupSize: d,
|
|
771
|
-
separatorToPanels:
|
|
771
|
+
separatorToPanels: b
|
|
772
772
|
}
|
|
773
773
|
] of r)
|
|
774
774
|
if (a.id === e)
|
|
@@ -778,7 +778,7 @@ function et({
|
|
|
778
778
|
group: a,
|
|
779
779
|
groupSize: d,
|
|
780
780
|
layout: g,
|
|
781
|
-
separatorToPanels:
|
|
781
|
+
separatorToPanels: b
|
|
782
782
|
};
|
|
783
783
|
throw Error(`Group ${e} not found`);
|
|
784
784
|
}, o = () => {
|
|
@@ -807,25 +807,25 @@ function et({
|
|
|
807
807
|
derivedPanelConstraints: f,
|
|
808
808
|
group: g,
|
|
809
809
|
groupSize: d,
|
|
810
|
-
layout:
|
|
811
|
-
separatorToPanels:
|
|
812
|
-
} = n(), u = g.panels.findIndex((v) => v.id === t), p = u === g.panels.length - 1, m =
|
|
810
|
+
layout: b,
|
|
811
|
+
separatorToPanels: x
|
|
812
|
+
} = n(), u = g.panels.findIndex((v) => v.id === t), p = u === g.panels.length - 1, m = le({
|
|
813
813
|
delta: p ? a - r : r - a,
|
|
814
|
-
initialLayout:
|
|
814
|
+
initialLayout: b,
|
|
815
815
|
panelConstraints: f,
|
|
816
816
|
pivotIndices: p ? [u - 1, u] : [u, u + 1],
|
|
817
|
-
prevLayout:
|
|
817
|
+
prevLayout: b,
|
|
818
818
|
trigger: "imperative-api"
|
|
819
|
-
}), S =
|
|
819
|
+
}), S = U({
|
|
820
820
|
layout: m,
|
|
821
821
|
panelConstraints: f
|
|
822
822
|
});
|
|
823
|
-
|
|
823
|
+
W(b, S) || $(g, {
|
|
824
824
|
defaultLayoutDeferred: c,
|
|
825
825
|
derivedPanelConstraints: f,
|
|
826
826
|
groupSize: d,
|
|
827
827
|
layout: S,
|
|
828
|
-
separatorToPanels:
|
|
828
|
+
separatorToPanels: x
|
|
829
829
|
});
|
|
830
830
|
};
|
|
831
831
|
return {
|
|
@@ -852,7 +852,7 @@ function et({
|
|
|
852
852
|
return r && D(a, c);
|
|
853
853
|
},
|
|
854
854
|
resize: (r) => {
|
|
855
|
-
const { group: a } = n(), { element: c } = i(), f =
|
|
855
|
+
const { group: a } = n(), { element: c } = i(), f = ne({ group: a }), g = ie({
|
|
856
856
|
groupSize: f,
|
|
857
857
|
panelElement: c,
|
|
858
858
|
styleProp: r
|
|
@@ -861,17 +861,17 @@ function et({
|
|
|
861
861
|
}
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Oe(e) {
|
|
865
865
|
if (e.defaultPrevented)
|
|
866
866
|
return;
|
|
867
|
-
const t =
|
|
868
|
-
|
|
867
|
+
const t = X();
|
|
868
|
+
xe(e, t).forEach((o) => {
|
|
869
869
|
if (o.separator && !o.separator.disableDoubleClick) {
|
|
870
870
|
const i = o.panels.find(
|
|
871
871
|
(s) => s.panelConstraints.defaultSize !== void 0
|
|
872
872
|
);
|
|
873
873
|
if (i) {
|
|
874
|
-
const s = i.panelConstraints.defaultSize, l =
|
|
874
|
+
const s = i.panelConstraints.defaultSize, l = tt({
|
|
875
875
|
groupId: o.group.id,
|
|
876
876
|
panelId: i.id
|
|
877
877
|
});
|
|
@@ -880,8 +880,8 @@ function Te(e) {
|
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
const t =
|
|
883
|
+
function pe(e) {
|
|
884
|
+
const t = X();
|
|
885
885
|
for (const [n] of t)
|
|
886
886
|
if (n.separators.some(
|
|
887
887
|
(o) => o.element === e
|
|
@@ -889,11 +889,11 @@ function de(e) {
|
|
|
889
889
|
return n;
|
|
890
890
|
throw Error("Could not find parent Group for separator element");
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function nt({
|
|
893
893
|
groupId: e
|
|
894
894
|
}) {
|
|
895
895
|
const t = () => {
|
|
896
|
-
const n =
|
|
896
|
+
const n = X();
|
|
897
897
|
for (const [o, i] of n)
|
|
898
898
|
if (o.id === e)
|
|
899
899
|
return { group: o, ...i };
|
|
@@ -912,11 +912,11 @@ function tt({
|
|
|
912
912
|
groupSize: l,
|
|
913
913
|
layout: r,
|
|
914
914
|
separatorToPanels: a
|
|
915
|
-
} = t(), c =
|
|
915
|
+
} = t(), c = U({
|
|
916
916
|
layout: n,
|
|
917
917
|
panelConstraints: i
|
|
918
918
|
});
|
|
919
|
-
return o ? r : (
|
|
919
|
+
return o ? r : (W(r, c) || $(s, {
|
|
920
920
|
defaultLayoutDeferred: o,
|
|
921
921
|
derivedPanelConstraints: i,
|
|
922
922
|
groupSize: l,
|
|
@@ -926,25 +926,25 @@ function tt({
|
|
|
926
926
|
}
|
|
927
927
|
};
|
|
928
928
|
}
|
|
929
|
-
function
|
|
930
|
-
const n =
|
|
929
|
+
function B(e, t) {
|
|
930
|
+
const n = pe(e), o = H(n.id, !0), i = n.separators.find(
|
|
931
931
|
(g) => g.element === e
|
|
932
932
|
);
|
|
933
933
|
C(i, "Matching separator not found");
|
|
934
934
|
const s = o.separatorToPanels.get(i);
|
|
935
935
|
C(s, "Matching panels not found");
|
|
936
|
-
const l = s.map((g) => n.panels.indexOf(g)), a =
|
|
936
|
+
const l = s.map((g) => n.panels.indexOf(g)), a = nt({ groupId: n.id }).getLayout(), c = le({
|
|
937
937
|
delta: t,
|
|
938
938
|
initialLayout: a,
|
|
939
939
|
panelConstraints: o.derivedPanelConstraints,
|
|
940
940
|
pivotIndices: l,
|
|
941
941
|
prevLayout: a,
|
|
942
942
|
trigger: "keyboard"
|
|
943
|
-
}), f =
|
|
943
|
+
}), f = U({
|
|
944
944
|
layout: c,
|
|
945
945
|
panelConstraints: o.derivedPanelConstraints
|
|
946
946
|
});
|
|
947
|
-
|
|
947
|
+
W(a, f) || $(n, {
|
|
948
948
|
defaultLayoutDeferred: o.defaultLayoutDeferred,
|
|
949
949
|
derivedPanelConstraints: o.derivedPanelConstraints,
|
|
950
950
|
groupSize: o.groupSize,
|
|
@@ -952,35 +952,35 @@ function H(e, t) {
|
|
|
952
952
|
separatorToPanels: o.separatorToPanels
|
|
953
953
|
});
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Ge(e) {
|
|
956
956
|
if (e.defaultPrevented)
|
|
957
957
|
return;
|
|
958
|
-
const t = e.currentTarget, n =
|
|
958
|
+
const t = e.currentTarget, n = pe(t);
|
|
959
959
|
if (!n.disabled)
|
|
960
960
|
switch (e.key) {
|
|
961
961
|
case "ArrowDown": {
|
|
962
|
-
e.preventDefault(), n.orientation === "vertical" &&
|
|
962
|
+
e.preventDefault(), n.orientation === "vertical" && B(t, 5);
|
|
963
963
|
break;
|
|
964
964
|
}
|
|
965
965
|
case "ArrowLeft": {
|
|
966
|
-
e.preventDefault(), n.orientation === "horizontal" &&
|
|
966
|
+
e.preventDefault(), n.orientation === "horizontal" && B(t, -5);
|
|
967
967
|
break;
|
|
968
968
|
}
|
|
969
969
|
case "ArrowRight": {
|
|
970
|
-
e.preventDefault(), n.orientation === "horizontal" &&
|
|
970
|
+
e.preventDefault(), n.orientation === "horizontal" && B(t, 5);
|
|
971
971
|
break;
|
|
972
972
|
}
|
|
973
973
|
case "ArrowUp": {
|
|
974
|
-
e.preventDefault(), n.orientation === "vertical" &&
|
|
974
|
+
e.preventDefault(), n.orientation === "vertical" && B(t, -5);
|
|
975
975
|
break;
|
|
976
976
|
}
|
|
977
977
|
case "End": {
|
|
978
|
-
e.preventDefault(),
|
|
978
|
+
e.preventDefault(), B(t, 100);
|
|
979
979
|
break;
|
|
980
980
|
}
|
|
981
981
|
case "Enter": {
|
|
982
982
|
e.preventDefault();
|
|
983
|
-
const o =
|
|
983
|
+
const o = pe(t), i = H(o.id, !0), { derivedPanelConstraints: s, layout: l, separatorToPanels: r } = i, a = o.separators.find(
|
|
984
984
|
(d) => d.element === t
|
|
985
985
|
);
|
|
986
986
|
C(a, "Matching separator not found");
|
|
@@ -990,14 +990,14 @@ function Oe(e) {
|
|
|
990
990
|
(d) => d.panelId === f.id
|
|
991
991
|
);
|
|
992
992
|
if (C(g, "Panel metadata not found"), g.collapsible) {
|
|
993
|
-
const d = l[f.id],
|
|
994
|
-
|
|
993
|
+
const d = l[f.id], b = g.collapsedSize === d ? o.mutableState.expandedPanelSizes[f.id] ?? g.minSize : g.collapsedSize;
|
|
994
|
+
B(t, b - d);
|
|
995
995
|
}
|
|
996
996
|
break;
|
|
997
997
|
}
|
|
998
998
|
case "F6": {
|
|
999
999
|
e.preventDefault();
|
|
1000
|
-
const i =
|
|
1000
|
+
const i = pe(t).separators.map(
|
|
1001
1001
|
(a) => a.element
|
|
1002
1002
|
), s = Array.from(i).findIndex(
|
|
1003
1003
|
(a) => a === e.currentTarget
|
|
@@ -1010,42 +1010,42 @@ function Oe(e) {
|
|
|
1010
1010
|
break;
|
|
1011
1011
|
}
|
|
1012
1012
|
case "Home": {
|
|
1013
|
-
e.preventDefault(),
|
|
1013
|
+
e.preventDefault(), B(t, -100);
|
|
1014
1014
|
break;
|
|
1015
1015
|
}
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
let
|
|
1018
|
+
let ee = {
|
|
1019
1019
|
cursorFlags: 0,
|
|
1020
1020
|
state: "inactive"
|
|
1021
1021
|
};
|
|
1022
|
-
const
|
|
1023
|
-
function
|
|
1024
|
-
return
|
|
1022
|
+
const we = new Ze();
|
|
1023
|
+
function K() {
|
|
1024
|
+
return ee;
|
|
1025
1025
|
}
|
|
1026
1026
|
function Gt(e) {
|
|
1027
|
-
return
|
|
1027
|
+
return we.addListener("change", e);
|
|
1028
1028
|
}
|
|
1029
1029
|
function At(e) {
|
|
1030
|
-
const t =
|
|
1031
|
-
n.cursorFlags = e,
|
|
1030
|
+
const t = ee, n = { ...ee };
|
|
1031
|
+
n.cursorFlags = e, ee = n, we.emit("change", {
|
|
1032
1032
|
prev: t,
|
|
1033
1033
|
next: n
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const t =
|
|
1038
|
-
|
|
1036
|
+
function te(e) {
|
|
1037
|
+
const t = ee;
|
|
1038
|
+
ee = e, we.emit("change", {
|
|
1039
1039
|
prev: t,
|
|
1040
1040
|
next: e
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1043
|
+
function Ae(e) {
|
|
1044
1044
|
if (e.defaultPrevented)
|
|
1045
1045
|
return;
|
|
1046
1046
|
if (e.pointerType === "mouse" && e.button > 0)
|
|
1047
1047
|
return;
|
|
1048
|
-
const t =
|
|
1048
|
+
const t = X(), n = xe(e, t), o = /* @__PURE__ */ new Map();
|
|
1049
1049
|
let i = !1;
|
|
1050
1050
|
n.forEach((s) => {
|
|
1051
1051
|
s.separator && (i || (i = !0, s.separator.element.focus({
|
|
@@ -1053,7 +1053,7 @@ function Ge(e) {
|
|
|
1053
1053
|
})));
|
|
1054
1054
|
const l = t.get(s.group);
|
|
1055
1055
|
l && o.set(s.group, l.layout);
|
|
1056
|
-
}),
|
|
1056
|
+
}), te({
|
|
1057
1057
|
cursorFlags: 0,
|
|
1058
1058
|
hitRegions: n,
|
|
1059
1059
|
initialLayoutMap: o,
|
|
@@ -1061,13 +1061,13 @@ function Ge(e) {
|
|
|
1061
1061
|
state: "active"
|
|
1062
1062
|
}), n.length && e.preventDefault();
|
|
1063
1063
|
}
|
|
1064
|
-
const
|
|
1065
|
-
},
|
|
1066
|
-
let
|
|
1064
|
+
const Ft = (e) => e, ye = () => {
|
|
1065
|
+
}, ot = 1, it = 2, rt = 4, st = 8, Fe = 3, Ne = 12;
|
|
1066
|
+
let de;
|
|
1067
1067
|
function _e() {
|
|
1068
|
-
return
|
|
1068
|
+
return de === void 0 && (de = !1, typeof window < "u" && (window.navigator.userAgent.includes("Chrome") || window.navigator.userAgent.includes("Firefox")) && (de = !0)), de;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function Nt({
|
|
1071
1071
|
cursorFlags: e,
|
|
1072
1072
|
groups: t,
|
|
1073
1073
|
state: n
|
|
@@ -1094,7 +1094,7 @@ function _t({
|
|
|
1094
1094
|
switch (n) {
|
|
1095
1095
|
case "active": {
|
|
1096
1096
|
if (e && _e()) {
|
|
1097
|
-
const s = (e &
|
|
1097
|
+
const s = (e & ot) !== 0, l = (e & it) !== 0, r = (e & rt) !== 0, a = (e & st) !== 0;
|
|
1098
1098
|
if (s)
|
|
1099
1099
|
return r ? "se-resize" : a ? "ne-resize" : "e-resize";
|
|
1100
1100
|
if (l)
|
|
@@ -1110,17 +1110,17 @@ function _t({
|
|
|
1110
1110
|
return _e() ? o > 0 && i > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize" : o > 0 && i > 0 ? "grab" : o > 0 ? "col-resize" : "row-resize";
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
|
-
const
|
|
1114
|
-
function
|
|
1113
|
+
const $e = /* @__PURE__ */ new WeakMap();
|
|
1114
|
+
function Pe(e) {
|
|
1115
1115
|
if (e.defaultView === null || e.defaultView === void 0)
|
|
1116
1116
|
return;
|
|
1117
|
-
let { prevStyle: t, styleSheet: n } =
|
|
1117
|
+
let { prevStyle: t, styleSheet: n } = $e.get(e) ?? {};
|
|
1118
1118
|
n === void 0 && (n = new e.defaultView.CSSStyleSheet(), e.adoptedStyleSheets && e.adoptedStyleSheets.push(n));
|
|
1119
|
-
const o =
|
|
1119
|
+
const o = K();
|
|
1120
1120
|
switch (o.state) {
|
|
1121
1121
|
case "active":
|
|
1122
1122
|
case "hover": {
|
|
1123
|
-
const i =
|
|
1123
|
+
const i = Nt({
|
|
1124
1124
|
cursorFlags: o.cursorFlags,
|
|
1125
1125
|
groups: o.hitRegions.map((l) => l.group),
|
|
1126
1126
|
state: o.state
|
|
@@ -1135,12 +1135,12 @@ function we(e) {
|
|
|
1135
1135
|
break;
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
|
|
1138
|
+
$e.set(e, {
|
|
1139
1139
|
prevStyle: t,
|
|
1140
1140
|
styleSheet: n
|
|
1141
1141
|
});
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function at({
|
|
1144
1144
|
document: e,
|
|
1145
1145
|
event: t,
|
|
1146
1146
|
hitRegions: n,
|
|
@@ -1151,7 +1151,7 @@ function st({
|
|
|
1151
1151
|
}) {
|
|
1152
1152
|
let r = 0;
|
|
1153
1153
|
n.forEach((c) => {
|
|
1154
|
-
const { group: f, groupSize: g } = c, { orientation: d, panels:
|
|
1154
|
+
const { group: f, groupSize: g } = c, { orientation: d, panels: b } = f, { disableCursor: x } = f.mutableState;
|
|
1155
1155
|
let u = 0;
|
|
1156
1156
|
s ? d === "horizontal" ? u = (t.clientX - s.x) / g * 100 : u = (t.clientY - s.y) / g * 100 : d === "horizontal" ? u = t.clientX < 0 ? -100 : 100 : u = t.clientY < 0 ? -100 : 100;
|
|
1157
1157
|
const p = o.get(f), m = i.get(f);
|
|
@@ -1162,47 +1162,47 @@ function st({
|
|
|
1162
1162
|
derivedPanelConstraints: v,
|
|
1163
1163
|
groupSize: y,
|
|
1164
1164
|
layout: h,
|
|
1165
|
-
separatorToPanels:
|
|
1165
|
+
separatorToPanels: w
|
|
1166
1166
|
} = m;
|
|
1167
|
-
if (v && h &&
|
|
1168
|
-
const M =
|
|
1167
|
+
if (v && h && w) {
|
|
1168
|
+
const M = le({
|
|
1169
1169
|
delta: u,
|
|
1170
1170
|
initialLayout: p,
|
|
1171
1171
|
panelConstraints: v,
|
|
1172
|
-
pivotIndices: c.panels.map((
|
|
1172
|
+
pivotIndices: c.panels.map((P) => b.indexOf(P)),
|
|
1173
1173
|
prevLayout: h,
|
|
1174
1174
|
trigger: "mouse-or-touch"
|
|
1175
1175
|
});
|
|
1176
|
-
if (
|
|
1177
|
-
if (u !== 0 && !
|
|
1176
|
+
if (W(M, h)) {
|
|
1177
|
+
if (u !== 0 && !x)
|
|
1178
1178
|
switch (d) {
|
|
1179
1179
|
case "horizontal": {
|
|
1180
|
-
r |= u < 0 ?
|
|
1180
|
+
r |= u < 0 ? ot : it;
|
|
1181
1181
|
break;
|
|
1182
1182
|
}
|
|
1183
1183
|
case "vertical": {
|
|
1184
|
-
r |= u < 0 ?
|
|
1184
|
+
r |= u < 0 ? rt : st;
|
|
1185
1185
|
break;
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
} else
|
|
1189
|
-
|
|
1189
|
+
$(c.group, {
|
|
1190
1190
|
defaultLayoutDeferred: S,
|
|
1191
1191
|
derivedPanelConstraints: v,
|
|
1192
1192
|
groupSize: y,
|
|
1193
1193
|
layout: M,
|
|
1194
|
-
separatorToPanels:
|
|
1194
|
+
separatorToPanels: w
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
1197
|
});
|
|
1198
1198
|
let a = 0;
|
|
1199
|
-
t.movementX === 0 ? a |= l &
|
|
1199
|
+
t.movementX === 0 ? a |= l & Fe : a |= r & Fe, t.movementY === 0 ? a |= l & Ne : a |= r & Ne, At(a), Pe(e);
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const t =
|
|
1201
|
+
function je(e) {
|
|
1202
|
+
const t = X(), n = K();
|
|
1203
1203
|
switch (n.state) {
|
|
1204
1204
|
case "active":
|
|
1205
|
-
|
|
1205
|
+
at({
|
|
1206
1206
|
document: e.currentTarget,
|
|
1207
1207
|
event: e,
|
|
1208
1208
|
hitRegions: n.hitRegions,
|
|
@@ -1212,22 +1212,22 @@ function $e(e) {
|
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function He(e) {
|
|
1216
1216
|
if (e.defaultPrevented)
|
|
1217
1217
|
return;
|
|
1218
|
-
const t =
|
|
1218
|
+
const t = K(), n = X();
|
|
1219
1219
|
switch (t.state) {
|
|
1220
1220
|
case "active": {
|
|
1221
1221
|
if (
|
|
1222
1222
|
// Skip this check for "pointerleave" events, else Firefox triggers a false positive (see #514)
|
|
1223
1223
|
e.buttons === 0
|
|
1224
1224
|
) {
|
|
1225
|
-
|
|
1225
|
+
te({
|
|
1226
1226
|
cursorFlags: 0,
|
|
1227
1227
|
state: "inactive"
|
|
1228
1228
|
}), t.hitRegions.forEach((o) => {
|
|
1229
|
-
const i =
|
|
1230
|
-
|
|
1229
|
+
const i = H(o.group.id, !0);
|
|
1230
|
+
$(o.group, i);
|
|
1231
1231
|
});
|
|
1232
1232
|
return;
|
|
1233
1233
|
}
|
|
@@ -1236,7 +1236,7 @@ function je(e) {
|
|
|
1236
1236
|
const { element: i } = o.separator;
|
|
1237
1237
|
i.hasPointerCapture?.(e.pointerId) || i.setPointerCapture?.(e.pointerId);
|
|
1238
1238
|
}
|
|
1239
|
-
|
|
1239
|
+
at({
|
|
1240
1240
|
document: e.currentTarget,
|
|
1241
1241
|
event: e,
|
|
1242
1242
|
hitRegions: t.hitRegions,
|
|
@@ -1248,47 +1248,47 @@ function je(e) {
|
|
|
1248
1248
|
break;
|
|
1249
1249
|
}
|
|
1250
1250
|
default: {
|
|
1251
|
-
const o =
|
|
1252
|
-
o.length === 0 ? t.state !== "inactive" &&
|
|
1251
|
+
const o = xe(e, n);
|
|
1252
|
+
o.length === 0 ? t.state !== "inactive" && te({
|
|
1253
1253
|
cursorFlags: 0,
|
|
1254
1254
|
state: "inactive"
|
|
1255
|
-
}) :
|
|
1255
|
+
}) : te({
|
|
1256
1256
|
cursorFlags: 0,
|
|
1257
1257
|
hitRegions: o,
|
|
1258
1258
|
state: "hover"
|
|
1259
|
-
}),
|
|
1259
|
+
}), Pe(e.currentTarget);
|
|
1260
1260
|
break;
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Ve(e) {
|
|
1265
1265
|
if (e.relatedTarget instanceof HTMLIFrameElement)
|
|
1266
|
-
switch (
|
|
1266
|
+
switch (K().state) {
|
|
1267
1267
|
case "hover":
|
|
1268
|
-
|
|
1268
|
+
te({
|
|
1269
1269
|
cursorFlags: 0,
|
|
1270
1270
|
state: "inactive"
|
|
1271
1271
|
});
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Be(e) {
|
|
1275
1275
|
if (e.defaultPrevented)
|
|
1276
1276
|
return;
|
|
1277
1277
|
if (e.pointerType === "mouse" && e.button > 0)
|
|
1278
1278
|
return;
|
|
1279
|
-
const t =
|
|
1279
|
+
const t = K();
|
|
1280
1280
|
switch (t.state) {
|
|
1281
1281
|
case "active":
|
|
1282
|
-
|
|
1282
|
+
te({
|
|
1283
1283
|
cursorFlags: 0,
|
|
1284
1284
|
state: "inactive"
|
|
1285
|
-
}), t.hitRegions.length > 0 && (
|
|
1286
|
-
const o =
|
|
1287
|
-
|
|
1285
|
+
}), t.hitRegions.length > 0 && (Pe(e.currentTarget), t.hitRegions.forEach((n) => {
|
|
1286
|
+
const o = H(n.group.id, !0);
|
|
1287
|
+
$(n.group, o);
|
|
1288
1288
|
}), e.preventDefault());
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function We(e) {
|
|
1292
1292
|
let t = 0, n = 0;
|
|
1293
1293
|
const o = {};
|
|
1294
1294
|
for (const s of e)
|
|
@@ -1306,13 +1306,13 @@ function Be(e) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
return o;
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function _t(e, t, n) {
|
|
1310
1310
|
if (!n[0])
|
|
1311
1311
|
return;
|
|
1312
1312
|
const i = e.panels.find((c) => c.element === t);
|
|
1313
1313
|
if (!i || !i.onResize)
|
|
1314
1314
|
return;
|
|
1315
|
-
const s =
|
|
1315
|
+
const s = ne({ group: e }), l = e.orientation === "horizontal" ? i.element.offsetWidth : i.element.offsetHeight, r = i.mutableValues.prevSize, a = {
|
|
1316
1316
|
asPercentage: T(l / s * 100),
|
|
1317
1317
|
inPixels: l
|
|
1318
1318
|
};
|
|
@@ -1341,10 +1341,10 @@ function jt({
|
|
|
1341
1341
|
switch (g.panelConstraints.groupResizeBehavior) {
|
|
1342
1342
|
case "preserve-pixel-size": {
|
|
1343
1343
|
l = !0;
|
|
1344
|
-
const
|
|
1345
|
-
|
|
1344
|
+
const b = d / 100 * n, x = T(
|
|
1345
|
+
b / t * 100
|
|
1346
1346
|
);
|
|
1347
|
-
r.set(g.id,
|
|
1347
|
+
r.set(g.id, x), i += x;
|
|
1348
1348
|
break;
|
|
1349
1349
|
}
|
|
1350
1350
|
case "preserve-relative-size":
|
|
@@ -1384,7 +1384,7 @@ function Ht(e, t) {
|
|
|
1384
1384
|
return !1;
|
|
1385
1385
|
return !0;
|
|
1386
1386
|
}
|
|
1387
|
-
const
|
|
1387
|
+
const J = /* @__PURE__ */ new Map();
|
|
1388
1388
|
function Vt(e) {
|
|
1389
1389
|
let t = !0;
|
|
1390
1390
|
C(
|
|
@@ -1396,36 +1396,36 @@ function Vt(e) {
|
|
|
1396
1396
|
const { borderBoxSize: m, target: S } = p;
|
|
1397
1397
|
if (S === e.element) {
|
|
1398
1398
|
if (t) {
|
|
1399
|
-
const v =
|
|
1399
|
+
const v = ne({ group: e });
|
|
1400
1400
|
if (v === 0)
|
|
1401
1401
|
return;
|
|
1402
|
-
const y =
|
|
1402
|
+
const y = H(e.id);
|
|
1403
1403
|
if (!y)
|
|
1404
1404
|
return;
|
|
1405
|
-
const h =
|
|
1405
|
+
const h = ve(e), w = y.defaultLayoutDeferred ? We(h) : y.layout, M = jt({
|
|
1406
1406
|
group: e,
|
|
1407
1407
|
nextGroupSize: v,
|
|
1408
1408
|
prevGroupSize: y.groupSize,
|
|
1409
|
-
prevLayout:
|
|
1410
|
-
}),
|
|
1409
|
+
prevLayout: w
|
|
1410
|
+
}), P = U({
|
|
1411
1411
|
layout: M,
|
|
1412
1412
|
panelConstraints: h
|
|
1413
1413
|
});
|
|
1414
|
-
if (!y.defaultLayoutDeferred &&
|
|
1414
|
+
if (!y.defaultLayoutDeferred && W(y.layout, P) && $t(
|
|
1415
1415
|
y.derivedPanelConstraints,
|
|
1416
1416
|
h
|
|
1417
1417
|
) && y.groupSize === v)
|
|
1418
1418
|
return;
|
|
1419
|
-
|
|
1419
|
+
$(e, {
|
|
1420
1420
|
defaultLayoutDeferred: !1,
|
|
1421
1421
|
derivedPanelConstraints: h,
|
|
1422
1422
|
groupSize: v,
|
|
1423
|
-
layout:
|
|
1423
|
+
layout: P,
|
|
1424
1424
|
separatorToPanels: y.separatorToPanels
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
1427
|
} else
|
|
1428
|
-
|
|
1428
|
+
_t(e, S, m);
|
|
1429
1429
|
}
|
|
1430
1430
|
});
|
|
1431
1431
|
s.observe(e.element), e.panels.forEach((u) => {
|
|
@@ -1434,68 +1434,68 @@ function Vt(e) {
|
|
|
1434
1434
|
`Panel ids must be unique; id "${u.id}" was used more than once`
|
|
1435
1435
|
), o.add(u.id), u.onResize && s.observe(u.element);
|
|
1436
1436
|
});
|
|
1437
|
-
const l =
|
|
1437
|
+
const l = ne({ group: e }), r = ve(e), a = e.panels.map(({ id: u }) => u).join(",");
|
|
1438
1438
|
let c = e.mutableState.defaultLayout;
|
|
1439
1439
|
c && (Ht(e.panels, c) || (c = void 0));
|
|
1440
|
-
const f = e.mutableState.layouts[a] ?? c ??
|
|
1440
|
+
const f = e.mutableState.layouts[a] ?? c ?? We(r), g = U({
|
|
1441
1441
|
layout: f,
|
|
1442
1442
|
panelConstraints: r
|
|
1443
1443
|
}), d = e.element.ownerDocument;
|
|
1444
|
-
|
|
1444
|
+
J.set(
|
|
1445
1445
|
d,
|
|
1446
|
-
(
|
|
1446
|
+
(J.get(d) ?? 0) + 1
|
|
1447
1447
|
);
|
|
1448
|
-
const
|
|
1449
|
-
return
|
|
1450
|
-
u.separator &&
|
|
1451
|
-
}),
|
|
1448
|
+
const b = /* @__PURE__ */ new Map();
|
|
1449
|
+
return Je(e).forEach((u) => {
|
|
1450
|
+
u.separator && b.set(u.separator, u.panels);
|
|
1451
|
+
}), $(e, {
|
|
1452
1452
|
defaultLayoutDeferred: l === 0,
|
|
1453
1453
|
derivedPanelConstraints: r,
|
|
1454
1454
|
groupSize: l,
|
|
1455
1455
|
layout: g,
|
|
1456
|
-
separatorToPanels:
|
|
1456
|
+
separatorToPanels: b
|
|
1457
1457
|
}), e.separators.forEach((u) => {
|
|
1458
1458
|
C(
|
|
1459
1459
|
!i.has(u.id),
|
|
1460
1460
|
`Separator ids must be unique; id "${u.id}" was used more than once`
|
|
1461
|
-
), i.add(u.id), u.element.addEventListener("keydown",
|
|
1462
|
-
}),
|
|
1463
|
-
t = !1,
|
|
1461
|
+
), i.add(u.id), u.element.addEventListener("keydown", Ge);
|
|
1462
|
+
}), J.get(d) === 1 && (d.addEventListener("dblclick", Oe, !0), d.addEventListener("pointerdown", Ae, !0), d.addEventListener("pointerleave", je), d.addEventListener("pointermove", He), d.addEventListener("pointerout", Ve), d.addEventListener("pointerup", Be, !0)), function() {
|
|
1463
|
+
t = !1, J.set(
|
|
1464
1464
|
d,
|
|
1465
|
-
Math.max(0, (
|
|
1465
|
+
Math.max(0, (J.get(d) ?? 0) - 1)
|
|
1466
1466
|
), Lt(e), e.separators.forEach((p) => {
|
|
1467
|
-
p.element.removeEventListener("keydown",
|
|
1468
|
-
}),
|
|
1467
|
+
p.element.removeEventListener("keydown", Ge);
|
|
1468
|
+
}), J.get(d) || (d.removeEventListener(
|
|
1469
1469
|
"dblclick",
|
|
1470
|
-
|
|
1470
|
+
Oe,
|
|
1471
1471
|
!0
|
|
1472
1472
|
), d.removeEventListener(
|
|
1473
1473
|
"pointerdown",
|
|
1474
|
-
|
|
1474
|
+
Ae,
|
|
1475
1475
|
!0
|
|
1476
|
-
), d.removeEventListener("pointerleave",
|
|
1476
|
+
), d.removeEventListener("pointerleave", je), d.removeEventListener("pointermove", He), d.removeEventListener("pointerout", Ve), d.removeEventListener("pointerup", Be, !0)), s.disconnect();
|
|
1477
1477
|
};
|
|
1478
1478
|
}
|
|
1479
1479
|
function Bt() {
|
|
1480
|
-
const [e, t] =
|
|
1480
|
+
const [e, t] = Q({}), n = re(() => t({}), []);
|
|
1481
1481
|
return [e, n];
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function Le(e) {
|
|
1484
1484
|
const t = pt();
|
|
1485
1485
|
return `${e ?? t}`;
|
|
1486
1486
|
}
|
|
1487
|
-
const
|
|
1488
|
-
function
|
|
1487
|
+
const q = typeof window < "u" ? Ue : me;
|
|
1488
|
+
function se(e) {
|
|
1489
1489
|
const t = O(e);
|
|
1490
|
-
return
|
|
1490
|
+
return q(() => {
|
|
1491
1491
|
t.current = e;
|
|
1492
|
-
}, [e]),
|
|
1492
|
+
}, [e]), re(
|
|
1493
1493
|
(...n) => t.current?.(...n),
|
|
1494
1494
|
[t]
|
|
1495
1495
|
);
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1498
|
-
return
|
|
1497
|
+
function Ce(...e) {
|
|
1498
|
+
return se((t) => {
|
|
1499
1499
|
e.forEach((n) => {
|
|
1500
1500
|
if (n)
|
|
1501
1501
|
switch (typeof n) {
|
|
@@ -1511,23 +1511,23 @@ function Le(...e) {
|
|
|
1511
1511
|
});
|
|
1512
1512
|
});
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1514
|
+
function Re(e) {
|
|
1515
1515
|
const t = O({ ...e });
|
|
1516
|
-
return
|
|
1516
|
+
return q(() => {
|
|
1517
1517
|
for (const n in e)
|
|
1518
1518
|
t.current[n] = e[n];
|
|
1519
1519
|
}, [e]), t.current;
|
|
1520
1520
|
}
|
|
1521
|
-
const
|
|
1521
|
+
const lt = ht(null);
|
|
1522
1522
|
function Wt(e, t) {
|
|
1523
1523
|
const n = O({
|
|
1524
1524
|
getLayout: () => ({}),
|
|
1525
|
-
setLayout:
|
|
1525
|
+
setLayout: Ft
|
|
1526
1526
|
});
|
|
1527
|
-
|
|
1527
|
+
Ke(t, () => n.current, []), q(() => {
|
|
1528
1528
|
Object.assign(
|
|
1529
1529
|
n.current,
|
|
1530
|
-
|
|
1530
|
+
nt({ groupId: e })
|
|
1531
1531
|
);
|
|
1532
1532
|
});
|
|
1533
1533
|
}
|
|
@@ -1548,158 +1548,158 @@ function Ut({
|
|
|
1548
1548
|
fine: 10
|
|
1549
1549
|
},
|
|
1550
1550
|
style: d,
|
|
1551
|
-
...
|
|
1551
|
+
...b
|
|
1552
1552
|
}) {
|
|
1553
|
-
const
|
|
1553
|
+
const x = O({
|
|
1554
1554
|
onLayoutChange: {},
|
|
1555
1555
|
onLayoutChanged: {}
|
|
1556
|
-
}), u =
|
|
1557
|
-
|
|
1558
|
-
}), p =
|
|
1559
|
-
|
|
1560
|
-
}), m =
|
|
1556
|
+
}), u = se((z) => {
|
|
1557
|
+
W(x.current.onLayoutChange, z) || (x.current.onLayoutChange = z, a?.(z));
|
|
1558
|
+
}), p = se((z) => {
|
|
1559
|
+
W(x.current.onLayoutChanged, z) || (x.current.onLayoutChanged = z, c?.(z));
|
|
1560
|
+
}), m = Le(r), S = O(null), [v, y] = Bt(), h = O({
|
|
1561
1561
|
lastExpandedPanelSizes: {},
|
|
1562
1562
|
layouts: {},
|
|
1563
1563
|
panels: [],
|
|
1564
1564
|
resizeTargetMinimumSize: g,
|
|
1565
1565
|
separators: []
|
|
1566
|
-
}),
|
|
1566
|
+
}), w = Ce(S, s);
|
|
1567
1567
|
Wt(m, l);
|
|
1568
|
-
const M =
|
|
1569
|
-
(
|
|
1570
|
-
const
|
|
1571
|
-
if (
|
|
1568
|
+
const M = se(
|
|
1569
|
+
(z, L) => {
|
|
1570
|
+
const k = K(), R = ke(z), E = H(z);
|
|
1571
|
+
if (E) {
|
|
1572
1572
|
let I = !1;
|
|
1573
|
-
switch (
|
|
1573
|
+
switch (k.state) {
|
|
1574
1574
|
case "active": {
|
|
1575
|
-
I =
|
|
1576
|
-
(
|
|
1575
|
+
I = k.hitRegions.some(
|
|
1576
|
+
(V) => V.group === R
|
|
1577
1577
|
);
|
|
1578
1578
|
break;
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
1581
|
return {
|
|
1582
|
-
flexGrow:
|
|
1582
|
+
flexGrow: E.layout[L] ?? 1,
|
|
1583
1583
|
pointerEvents: I ? "none" : void 0
|
|
1584
1584
|
};
|
|
1585
1585
|
}
|
|
1586
|
-
if (n?.[
|
|
1586
|
+
if (n?.[L])
|
|
1587
1587
|
return {
|
|
1588
|
-
flexGrow: n?.[
|
|
1588
|
+
flexGrow: n?.[L]
|
|
1589
1589
|
};
|
|
1590
1590
|
}
|
|
1591
|
-
),
|
|
1591
|
+
), P = Re({
|
|
1592
1592
|
defaultLayout: n,
|
|
1593
1593
|
disableCursor: o
|
|
1594
|
-
}),
|
|
1594
|
+
}), G = Se(
|
|
1595
1595
|
() => ({
|
|
1596
1596
|
get disableCursor() {
|
|
1597
|
-
return !!
|
|
1597
|
+
return !!P.disableCursor;
|
|
1598
1598
|
},
|
|
1599
1599
|
getPanelStyles: M,
|
|
1600
1600
|
id: m,
|
|
1601
1601
|
orientation: f,
|
|
1602
|
-
registerPanel: (
|
|
1603
|
-
const
|
|
1604
|
-
return
|
|
1605
|
-
...
|
|
1606
|
-
|
|
1602
|
+
registerPanel: (z) => {
|
|
1603
|
+
const L = h.current;
|
|
1604
|
+
return L.panels = be(f, [
|
|
1605
|
+
...L.panels,
|
|
1606
|
+
z
|
|
1607
1607
|
]), y(), () => {
|
|
1608
|
-
|
|
1609
|
-
(
|
|
1608
|
+
L.panels = L.panels.filter(
|
|
1609
|
+
(k) => k !== z
|
|
1610
1610
|
), y();
|
|
1611
1611
|
};
|
|
1612
1612
|
},
|
|
1613
|
-
registerSeparator: (
|
|
1614
|
-
const
|
|
1615
|
-
return
|
|
1616
|
-
...
|
|
1617
|
-
|
|
1613
|
+
registerSeparator: (z) => {
|
|
1614
|
+
const L = h.current;
|
|
1615
|
+
return L.separators = be(f, [
|
|
1616
|
+
...L.separators,
|
|
1617
|
+
z
|
|
1618
1618
|
]), y(), () => {
|
|
1619
|
-
|
|
1620
|
-
(
|
|
1619
|
+
L.separators = L.separators.filter(
|
|
1620
|
+
(k) => k !== z
|
|
1621
1621
|
), y();
|
|
1622
1622
|
};
|
|
1623
1623
|
},
|
|
1624
|
-
updatePanelProps: (
|
|
1624
|
+
updatePanelProps: (z, { disabled: L }) => {
|
|
1625
1625
|
const R = h.current.panels.find(
|
|
1626
|
-
(
|
|
1626
|
+
(V) => V.id === z
|
|
1627
1627
|
);
|
|
1628
|
-
R && (R.panelConstraints.disabled =
|
|
1629
|
-
const
|
|
1630
|
-
|
|
1628
|
+
R && (R.panelConstraints.disabled = L);
|
|
1629
|
+
const E = ke(m), I = H(m);
|
|
1630
|
+
E && I && $(E, {
|
|
1631
1631
|
...I,
|
|
1632
|
-
derivedPanelConstraints:
|
|
1632
|
+
derivedPanelConstraints: ve(E)
|
|
1633
1633
|
});
|
|
1634
1634
|
},
|
|
1635
|
-
updateSeparatorProps: (
|
|
1636
|
-
disabled:
|
|
1637
|
-
disableDoubleClick:
|
|
1635
|
+
updateSeparatorProps: (z, {
|
|
1636
|
+
disabled: L,
|
|
1637
|
+
disableDoubleClick: k
|
|
1638
1638
|
}) => {
|
|
1639
|
-
const
|
|
1640
|
-
(I) => I.id ===
|
|
1639
|
+
const E = h.current.separators.find(
|
|
1640
|
+
(I) => I.id === z
|
|
1641
1641
|
);
|
|
1642
|
-
|
|
1642
|
+
E && (E.disabled = L, E.disableDoubleClick = k);
|
|
1643
1643
|
}
|
|
1644
1644
|
}),
|
|
1645
|
-
[M, m, y, f,
|
|
1646
|
-
),
|
|
1647
|
-
return
|
|
1648
|
-
const
|
|
1649
|
-
if (
|
|
1645
|
+
[M, m, y, f, P]
|
|
1646
|
+
), N = O(null);
|
|
1647
|
+
return q(() => {
|
|
1648
|
+
const z = S.current;
|
|
1649
|
+
if (z === null)
|
|
1650
1650
|
return;
|
|
1651
|
-
const
|
|
1652
|
-
let
|
|
1653
|
-
if (
|
|
1654
|
-
|
|
1655
|
-
for (const
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1651
|
+
const L = h.current;
|
|
1652
|
+
let k;
|
|
1653
|
+
if (P.defaultLayout !== void 0 && Object.keys(P.defaultLayout).length === L.panels.length) {
|
|
1654
|
+
k = {};
|
|
1655
|
+
for (const j of L.panels) {
|
|
1656
|
+
const Y = P.defaultLayout[j.id];
|
|
1657
|
+
Y !== void 0 && (k[j.id] = Y);
|
|
1658
1658
|
}
|
|
1659
1659
|
}
|
|
1660
1660
|
const R = {
|
|
1661
1661
|
disabled: !!i,
|
|
1662
|
-
element:
|
|
1662
|
+
element: z,
|
|
1663
1663
|
id: m,
|
|
1664
1664
|
mutableState: {
|
|
1665
|
-
defaultLayout:
|
|
1666
|
-
disableCursor: !!
|
|
1665
|
+
defaultLayout: k,
|
|
1666
|
+
disableCursor: !!P.disableCursor,
|
|
1667
1667
|
expandedPanelSizes: h.current.lastExpandedPanelSizes,
|
|
1668
1668
|
layouts: h.current.layouts
|
|
1669
1669
|
},
|
|
1670
1670
|
orientation: f,
|
|
1671
|
-
panels:
|
|
1672
|
-
resizeTargetMinimumSize:
|
|
1673
|
-
separators:
|
|
1671
|
+
panels: L.panels,
|
|
1672
|
+
resizeTargetMinimumSize: L.resizeTargetMinimumSize,
|
|
1673
|
+
separators: L.separators
|
|
1674
1674
|
};
|
|
1675
|
-
|
|
1676
|
-
const
|
|
1677
|
-
!I &&
|
|
1678
|
-
const
|
|
1679
|
-
const { defaultLayoutDeferred:
|
|
1680
|
-
if (
|
|
1675
|
+
N.current = R;
|
|
1676
|
+
const E = Vt(R), { defaultLayoutDeferred: I, derivedPanelConstraints: V, layout: ue } = H(R.id, !0);
|
|
1677
|
+
!I && V.length > 0 && (u(ue), p(ue));
|
|
1678
|
+
const oe = ze(m, (j) => {
|
|
1679
|
+
const { defaultLayoutDeferred: Y, derivedPanelConstraints: Ee, layout: ce } = j.next;
|
|
1680
|
+
if (Y || Ee.length === 0)
|
|
1681
1681
|
return;
|
|
1682
|
-
const ut = R.panels.map(({ id:
|
|
1683
|
-
R.mutableState.layouts[ut] =
|
|
1684
|
-
if (
|
|
1685
|
-
const { layout:
|
|
1686
|
-
if (
|
|
1682
|
+
const ut = R.panels.map(({ id: _ }) => _).join(",");
|
|
1683
|
+
R.mutableState.layouts[ut] = ce, Ee.forEach((_) => {
|
|
1684
|
+
if (_.collapsible) {
|
|
1685
|
+
const { layout: ge } = j.prev ?? {};
|
|
1686
|
+
if (ge) {
|
|
1687
1687
|
const ft = D(
|
|
1688
|
-
|
|
1689
|
-
|
|
1688
|
+
_.collapsedSize,
|
|
1689
|
+
ce[_.panelId]
|
|
1690
1690
|
), dt = D(
|
|
1691
|
-
|
|
1692
|
-
|
|
1691
|
+
_.collapsedSize,
|
|
1692
|
+
ge[_.panelId]
|
|
1693
1693
|
);
|
|
1694
|
-
ft && !dt && (R.mutableState.expandedPanelSizes[
|
|
1694
|
+
ft && !dt && (R.mutableState.expandedPanelSizes[_.panelId] = ge[_.panelId]);
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
1697
|
});
|
|
1698
|
-
const ct =
|
|
1699
|
-
u(
|
|
1698
|
+
const ct = K().state !== "active";
|
|
1699
|
+
u(ce), ct && p(ce);
|
|
1700
1700
|
});
|
|
1701
1701
|
return () => {
|
|
1702
|
-
|
|
1702
|
+
N.current = null, E(), oe();
|
|
1703
1703
|
};
|
|
1704
1704
|
}, [
|
|
1705
1705
|
i,
|
|
@@ -1708,19 +1708,19 @@ function Ut({
|
|
|
1708
1708
|
u,
|
|
1709
1709
|
f,
|
|
1710
1710
|
v,
|
|
1711
|
-
|
|
1712
|
-
]),
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1715
|
-
}), /* @__PURE__ */
|
|
1711
|
+
P
|
|
1712
|
+
]), me(() => {
|
|
1713
|
+
const z = N.current;
|
|
1714
|
+
z && (z.mutableState.defaultLayout = n, z.mutableState.disableCursor = !!o);
|
|
1715
|
+
}), /* @__PURE__ */ ae(lt.Provider, { value: G, children: /* @__PURE__ */ ae(
|
|
1716
1716
|
"div",
|
|
1717
1717
|
{
|
|
1718
|
-
...
|
|
1718
|
+
...b,
|
|
1719
1719
|
className: t,
|
|
1720
1720
|
"data-group": !0,
|
|
1721
1721
|
"data-testid": m,
|
|
1722
1722
|
id: m,
|
|
1723
|
-
ref:
|
|
1723
|
+
ref: w,
|
|
1724
1724
|
style: {
|
|
1725
1725
|
height: "100%",
|
|
1726
1726
|
width: "100%",
|
|
@@ -1740,7 +1740,7 @@ function Ut({
|
|
|
1740
1740
|
) });
|
|
1741
1741
|
}
|
|
1742
1742
|
Ut.displayName = "Group";
|
|
1743
|
-
function
|
|
1743
|
+
function he(e, t) {
|
|
1744
1744
|
return `react-resizable-panels:${[e, ...t].join(":")}`;
|
|
1745
1745
|
}
|
|
1746
1746
|
function Kt({
|
|
@@ -1748,7 +1748,7 @@ function Kt({
|
|
|
1748
1748
|
panelIds: t,
|
|
1749
1749
|
storage: n
|
|
1750
1750
|
}) {
|
|
1751
|
-
const o =
|
|
1751
|
+
const o = he(e, []), i = n.getItem(o);
|
|
1752
1752
|
if (i)
|
|
1753
1753
|
try {
|
|
1754
1754
|
const s = JSON.parse(i);
|
|
@@ -1784,35 +1784,35 @@ function on({
|
|
|
1784
1784
|
storage: n = localStorage,
|
|
1785
1785
|
...o
|
|
1786
1786
|
}) {
|
|
1787
|
-
const i = t !== void 0, s = "id" in o ? o.id : o.groupId, l =
|
|
1787
|
+
const i = t !== void 0, s = "id" in o ? o.id : o.groupId, l = he(s, t ?? []), r = Xe(
|
|
1788
1788
|
Xt,
|
|
1789
1789
|
() => n.getItem(l),
|
|
1790
1790
|
() => n.getItem(l)
|
|
1791
|
-
), a =
|
|
1791
|
+
), a = Se(() => {
|
|
1792
1792
|
if (r) {
|
|
1793
1793
|
const u = JSON.parse(r), p = Object.values(u);
|
|
1794
1794
|
if (Array.from(p).every((m) => typeof m == "number"))
|
|
1795
1795
|
return u;
|
|
1796
1796
|
}
|
|
1797
|
-
}, [r]), c =
|
|
1797
|
+
}, [r]), c = Se(() => {
|
|
1798
1798
|
if (!a)
|
|
1799
1799
|
return Kt({
|
|
1800
1800
|
id: s,
|
|
1801
1801
|
panelIds: t,
|
|
1802
1802
|
storage: n
|
|
1803
1803
|
});
|
|
1804
|
-
}, [a, s, t, n]), f = a ?? c, g = O(null), d =
|
|
1804
|
+
}, [a, s, t, n]), f = a ?? c, g = O(null), d = re(() => {
|
|
1805
1805
|
const u = g.current;
|
|
1806
1806
|
u && (g.current = null, clearTimeout(u));
|
|
1807
1807
|
}, []);
|
|
1808
|
-
|
|
1808
|
+
Ue(() => () => {
|
|
1809
1809
|
d();
|
|
1810
1810
|
}, [d]);
|
|
1811
|
-
const
|
|
1811
|
+
const b = re(
|
|
1812
1812
|
(u) => {
|
|
1813
1813
|
d();
|
|
1814
1814
|
let p;
|
|
1815
|
-
i ? p =
|
|
1815
|
+
i ? p = he(s, Object.keys(u)) : p = he(s, []);
|
|
1816
1816
|
try {
|
|
1817
1817
|
n.setItem(p, JSON.stringify(u));
|
|
1818
1818
|
} catch (m) {
|
|
@@ -1820,13 +1820,13 @@ function on({
|
|
|
1820
1820
|
}
|
|
1821
1821
|
},
|
|
1822
1822
|
[d, i, s, n]
|
|
1823
|
-
),
|
|
1823
|
+
), x = re(
|
|
1824
1824
|
(u) => {
|
|
1825
|
-
d(), e === 0 ?
|
|
1826
|
-
|
|
1825
|
+
d(), e === 0 ? b(u) : g.current = setTimeout(() => {
|
|
1826
|
+
b(u);
|
|
1827
1827
|
}, e);
|
|
1828
1828
|
},
|
|
1829
|
-
[d, e,
|
|
1829
|
+
[d, e, b]
|
|
1830
1830
|
);
|
|
1831
1831
|
return {
|
|
1832
1832
|
/**
|
|
@@ -1838,11 +1838,11 @@ function on({
|
|
|
1838
1838
|
*
|
|
1839
1839
|
* @deprecated Use the {@link onLayoutChanged} prop instead.
|
|
1840
1840
|
*/
|
|
1841
|
-
onLayoutChange:
|
|
1841
|
+
onLayoutChange: x,
|
|
1842
1842
|
/**
|
|
1843
1843
|
* Attach this callback on the `Group` as the `onLayoutChanged` prop.
|
|
1844
1844
|
*/
|
|
1845
|
-
onLayoutChanged:
|
|
1845
|
+
onLayoutChanged: b
|
|
1846
1846
|
};
|
|
1847
1847
|
}
|
|
1848
1848
|
function Xt() {
|
|
@@ -1850,33 +1850,33 @@ function Xt() {
|
|
|
1850
1850
|
};
|
|
1851
1851
|
}
|
|
1852
1852
|
function rn() {
|
|
1853
|
-
return
|
|
1853
|
+
return Q(null);
|
|
1854
1854
|
}
|
|
1855
1855
|
function sn() {
|
|
1856
1856
|
return O(null);
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1859
|
-
const e = mt(
|
|
1858
|
+
function Me() {
|
|
1859
|
+
const e = mt(lt);
|
|
1860
1860
|
return C(
|
|
1861
1861
|
e,
|
|
1862
1862
|
"Group Context not found; did you render a Panel or Separator outside of a Group?"
|
|
1863
1863
|
), e;
|
|
1864
1864
|
}
|
|
1865
1865
|
function qt(e, t) {
|
|
1866
|
-
const { id: n } =
|
|
1867
|
-
collapse:
|
|
1868
|
-
expand:
|
|
1866
|
+
const { id: n } = Me(), o = O({
|
|
1867
|
+
collapse: ye,
|
|
1868
|
+
expand: ye,
|
|
1869
1869
|
getSize: () => ({
|
|
1870
1870
|
asPercentage: 0,
|
|
1871
1871
|
inPixels: 0
|
|
1872
1872
|
}),
|
|
1873
1873
|
isCollapsed: () => !1,
|
|
1874
|
-
resize:
|
|
1874
|
+
resize: ye
|
|
1875
1875
|
});
|
|
1876
|
-
|
|
1876
|
+
Ke(t, () => o.current, []), q(() => {
|
|
1877
1877
|
Object.assign(
|
|
1878
1878
|
o.current,
|
|
1879
|
-
|
|
1879
|
+
tt({ groupId: n, panelId: e })
|
|
1880
1880
|
);
|
|
1881
1881
|
});
|
|
1882
1882
|
}
|
|
@@ -1894,26 +1894,26 @@ function Yt({
|
|
|
1894
1894
|
minSize: f = "0%",
|
|
1895
1895
|
onResize: g,
|
|
1896
1896
|
panelRef: d,
|
|
1897
|
-
style:
|
|
1898
|
-
...
|
|
1897
|
+
style: b,
|
|
1898
|
+
...x
|
|
1899
1899
|
}) {
|
|
1900
|
-
const u = !!a, p =
|
|
1900
|
+
const u = !!a, p = Le(a), m = Re({
|
|
1901
1901
|
disabled: s
|
|
1902
|
-
}), S = O(null), v =
|
|
1902
|
+
}), S = O(null), v = Ce(S, l), {
|
|
1903
1903
|
getPanelStyles: y,
|
|
1904
1904
|
id: h,
|
|
1905
|
-
orientation:
|
|
1905
|
+
orientation: w,
|
|
1906
1906
|
registerPanel: M,
|
|
1907
|
-
updatePanelProps:
|
|
1908
|
-
} =
|
|
1909
|
-
(R,
|
|
1907
|
+
updatePanelProps: P
|
|
1908
|
+
} = Me(), G = g !== null, N = se(
|
|
1909
|
+
(R, E, I) => {
|
|
1910
1910
|
g?.(R, a, I);
|
|
1911
1911
|
}
|
|
1912
1912
|
);
|
|
1913
|
-
|
|
1913
|
+
q(() => {
|
|
1914
1914
|
const R = S.current;
|
|
1915
1915
|
if (R !== null) {
|
|
1916
|
-
const
|
|
1916
|
+
const E = {
|
|
1917
1917
|
element: R,
|
|
1918
1918
|
id: p,
|
|
1919
1919
|
idIsStable: u,
|
|
@@ -1921,7 +1921,7 @@ function Yt({
|
|
|
1921
1921
|
expandToSize: void 0,
|
|
1922
1922
|
prevSize: void 0
|
|
1923
1923
|
},
|
|
1924
|
-
onResize:
|
|
1924
|
+
onResize: G ? N : void 0,
|
|
1925
1925
|
panelConstraints: {
|
|
1926
1926
|
groupResizeBehavior: r,
|
|
1927
1927
|
collapsedSize: n,
|
|
@@ -1932,42 +1932,42 @@ function Yt({
|
|
|
1932
1932
|
minSize: f
|
|
1933
1933
|
}
|
|
1934
1934
|
};
|
|
1935
|
-
return M(
|
|
1935
|
+
return M(E);
|
|
1936
1936
|
}
|
|
1937
1937
|
}, [
|
|
1938
1938
|
r,
|
|
1939
1939
|
n,
|
|
1940
1940
|
o,
|
|
1941
1941
|
i,
|
|
1942
|
-
|
|
1942
|
+
G,
|
|
1943
1943
|
p,
|
|
1944
1944
|
u,
|
|
1945
1945
|
c,
|
|
1946
1946
|
f,
|
|
1947
|
-
|
|
1947
|
+
N,
|
|
1948
1948
|
M,
|
|
1949
1949
|
m
|
|
1950
|
-
]),
|
|
1951
|
-
|
|
1952
|
-
}, [s, p,
|
|
1953
|
-
const
|
|
1950
|
+
]), me(() => {
|
|
1951
|
+
P(p, { disabled: s });
|
|
1952
|
+
}, [s, p, P]), qt(p, d);
|
|
1953
|
+
const z = () => {
|
|
1954
1954
|
const R = y(h, p);
|
|
1955
1955
|
if (R)
|
|
1956
1956
|
return JSON.stringify(R);
|
|
1957
|
-
},
|
|
1957
|
+
}, L = Xe(
|
|
1958
1958
|
(R) => ze(h, R),
|
|
1959
|
-
|
|
1960
|
-
|
|
1959
|
+
z,
|
|
1960
|
+
z
|
|
1961
1961
|
);
|
|
1962
|
-
let
|
|
1963
|
-
return
|
|
1962
|
+
let k;
|
|
1963
|
+
return L ? k = JSON.parse(L) : i ? k = {
|
|
1964
1964
|
flexGrow: void 0,
|
|
1965
1965
|
flexShrink: void 0,
|
|
1966
1966
|
flexBasis: i
|
|
1967
|
-
} :
|
|
1967
|
+
} : k = { flexGrow: 1 }, /* @__PURE__ */ ae(
|
|
1968
1968
|
"div",
|
|
1969
1969
|
{
|
|
1970
|
-
...
|
|
1970
|
+
...x,
|
|
1971
1971
|
"data-disabled": s || void 0,
|
|
1972
1972
|
"data-panel": !0,
|
|
1973
1973
|
"data-testid": p,
|
|
@@ -1979,9 +1979,9 @@ function Yt({
|
|
|
1979
1979
|
flexBasis: 0,
|
|
1980
1980
|
flexShrink: 1,
|
|
1981
1981
|
overflow: "visible",
|
|
1982
|
-
...
|
|
1982
|
+
...k
|
|
1983
1983
|
},
|
|
1984
|
-
children: /* @__PURE__ */
|
|
1984
|
+
children: /* @__PURE__ */ ae(
|
|
1985
1985
|
"div",
|
|
1986
1986
|
{
|
|
1987
1987
|
className: t,
|
|
@@ -1990,12 +1990,12 @@ function Yt({
|
|
|
1990
1990
|
maxWidth: "100%",
|
|
1991
1991
|
flexGrow: 1,
|
|
1992
1992
|
overflow: "auto",
|
|
1993
|
-
...
|
|
1993
|
+
...b,
|
|
1994
1994
|
// Inform the browser that the library is handling touch events for this element
|
|
1995
1995
|
// but still allow users to scroll content within panels in the non-resizing direction
|
|
1996
1996
|
// NOTE This is not an inherited style
|
|
1997
1997
|
// See github.com/bvaughn/react-resizable-panels/issues/662
|
|
1998
|
-
touchAction:
|
|
1998
|
+
touchAction: w === "horizontal" ? "pan-y" : "pan-x"
|
|
1999
1999
|
},
|
|
2000
2000
|
children: e
|
|
2001
2001
|
}
|
|
@@ -2017,7 +2017,7 @@ const Jt = {
|
|
|
2017
2017
|
margin: 0
|
|
2018
2018
|
};
|
|
2019
2019
|
function an() {
|
|
2020
|
-
return
|
|
2020
|
+
return Q(null);
|
|
2021
2021
|
}
|
|
2022
2022
|
function ln() {
|
|
2023
2023
|
return O(null);
|
|
@@ -2034,8 +2034,8 @@ function Zt({
|
|
|
2034
2034
|
);
|
|
2035
2035
|
if (r) {
|
|
2036
2036
|
const a = r.maxSize, c = r.collapsible ? r.collapsedSize : r.minSize, f = [o, o + 1];
|
|
2037
|
-
s =
|
|
2038
|
-
layout:
|
|
2037
|
+
s = U({
|
|
2038
|
+
layout: le({
|
|
2039
2039
|
delta: c - l,
|
|
2040
2040
|
initialLayout: e,
|
|
2041
2041
|
panelConstraints: t,
|
|
@@ -2043,8 +2043,8 @@ function Zt({
|
|
|
2043
2043
|
prevLayout: e
|
|
2044
2044
|
}),
|
|
2045
2045
|
panelConstraints: t
|
|
2046
|
-
})[n], i =
|
|
2047
|
-
layout:
|
|
2046
|
+
})[n], i = U({
|
|
2047
|
+
layout: le({
|
|
2048
2048
|
delta: a - l,
|
|
2049
2049
|
initialLayout: e,
|
|
2050
2050
|
panelConstraints: t,
|
|
@@ -2071,73 +2071,88 @@ function Qt({
|
|
|
2071
2071
|
style: l,
|
|
2072
2072
|
...r
|
|
2073
2073
|
}) {
|
|
2074
|
-
const a =
|
|
2074
|
+
const a = Le(s), c = Re({
|
|
2075
2075
|
disabled: n,
|
|
2076
2076
|
disableDoubleClick: o
|
|
2077
|
-
}), [f, g] =
|
|
2078
|
-
disableCursor:
|
|
2079
|
-
id:
|
|
2080
|
-
orientation:
|
|
2081
|
-
registerSeparator:
|
|
2082
|
-
updateSeparatorProps:
|
|
2083
|
-
} =
|
|
2084
|
-
|
|
2085
|
-
const
|
|
2086
|
-
if (
|
|
2087
|
-
const
|
|
2077
|
+
}), [f, g] = Q({}), [d, b] = Q("inactive"), [x, u] = Q(!1), p = O(null), m = Ce(p, i), {
|
|
2078
|
+
disableCursor: S,
|
|
2079
|
+
id: v,
|
|
2080
|
+
orientation: y,
|
|
2081
|
+
registerSeparator: h,
|
|
2082
|
+
updateSeparatorProps: w
|
|
2083
|
+
} = Me(), M = y === "horizontal" ? "vertical" : "horizontal";
|
|
2084
|
+
q(() => {
|
|
2085
|
+
const N = p.current;
|
|
2086
|
+
if (N !== null) {
|
|
2087
|
+
const z = {
|
|
2088
2088
|
disabled: c.disabled,
|
|
2089
2089
|
disableDoubleClick: c.disableDoubleClick,
|
|
2090
|
-
element:
|
|
2090
|
+
element: N,
|
|
2091
2091
|
id: a
|
|
2092
|
-
},
|
|
2093
|
-
(
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
(
|
|
2097
|
-
) ?
|
|
2092
|
+
}, L = h(z), k = Gt(
|
|
2093
|
+
(E) => {
|
|
2094
|
+
b(
|
|
2095
|
+
E.next.state !== "inactive" && E.next.hitRegions.some(
|
|
2096
|
+
(I) => I.separator === z
|
|
2097
|
+
) ? E.next.state : "inactive"
|
|
2098
2098
|
);
|
|
2099
2099
|
}
|
|
2100
|
-
),
|
|
2101
|
-
|
|
2102
|
-
(
|
|
2103
|
-
const { derivedPanelConstraints:
|
|
2104
|
-
if (
|
|
2105
|
-
const
|
|
2100
|
+
), R = ze(
|
|
2101
|
+
v,
|
|
2102
|
+
(E) => {
|
|
2103
|
+
const { derivedPanelConstraints: I, layout: V, separatorToPanels: ue } = E.next, oe = ue.get(z);
|
|
2104
|
+
if (oe) {
|
|
2105
|
+
const j = oe[0], Y = oe.indexOf(j);
|
|
2106
2106
|
g(
|
|
2107
2107
|
Zt({
|
|
2108
|
-
layout:
|
|
2109
|
-
panelConstraints:
|
|
2110
|
-
panelId:
|
|
2111
|
-
panelIndex:
|
|
2108
|
+
layout: V,
|
|
2109
|
+
panelConstraints: I,
|
|
2110
|
+
panelId: j.id,
|
|
2111
|
+
panelIndex: Y
|
|
2112
2112
|
})
|
|
2113
2113
|
);
|
|
2114
2114
|
}
|
|
2115
2115
|
}
|
|
2116
2116
|
);
|
|
2117
2117
|
return () => {
|
|
2118
|
-
|
|
2118
|
+
k(), R(), L();
|
|
2119
2119
|
};
|
|
2120
2120
|
}
|
|
2121
|
-
}, [
|
|
2122
|
-
|
|
2123
|
-
}, [n, o, a,
|
|
2121
|
+
}, [v, a, h, c]), me(() => {
|
|
2122
|
+
w(a, { disabled: n, disableDoubleClick: o });
|
|
2123
|
+
}, [n, o, a, w]);
|
|
2124
2124
|
let P;
|
|
2125
|
-
|
|
2125
|
+
n && !S && (P = "not-allowed");
|
|
2126
|
+
let G;
|
|
2127
|
+
if (n)
|
|
2128
|
+
G = "disabled";
|
|
2129
|
+
else
|
|
2130
|
+
switch (d) {
|
|
2131
|
+
case "active": {
|
|
2132
|
+
G = "active";
|
|
2133
|
+
break;
|
|
2134
|
+
}
|
|
2135
|
+
default:
|
|
2136
|
+
x ? G = "focus" : G = d;
|
|
2137
|
+
}
|
|
2138
|
+
return /* @__PURE__ */ ae(
|
|
2126
2139
|
"div",
|
|
2127
2140
|
{
|
|
2128
2141
|
...r,
|
|
2129
2142
|
"aria-controls": f.valueControls,
|
|
2130
2143
|
"aria-disabled": n || void 0,
|
|
2131
|
-
"aria-orientation":
|
|
2144
|
+
"aria-orientation": M,
|
|
2132
2145
|
"aria-valuemax": f.valueMax,
|
|
2133
2146
|
"aria-valuemin": f.valueMin,
|
|
2134
2147
|
"aria-valuenow": f.valueNow,
|
|
2135
2148
|
children: e,
|
|
2136
2149
|
className: t,
|
|
2137
|
-
"data-separator":
|
|
2150
|
+
"data-separator": G,
|
|
2138
2151
|
"data-testid": a,
|
|
2139
2152
|
id: a,
|
|
2140
|
-
|
|
2153
|
+
onBlur: () => u(!1),
|
|
2154
|
+
onFocus: () => u(!0),
|
|
2155
|
+
ref: m,
|
|
2141
2156
|
role: "separator",
|
|
2142
2157
|
style: {
|
|
2143
2158
|
flexBasis: "auto",
|