react-resizable-panels 4.0.0-alpha.4 → 4.0.0-alpha.5
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.
|
@@ -5,7 +5,7 @@ function S(e, t = "Assertion error") {
|
|
|
5
5
|
if (!e)
|
|
6
6
|
throw Error(t);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function re(e, t) {
|
|
9
9
|
return t.sort(
|
|
10
10
|
e === "horizontal" ? He : je
|
|
11
11
|
);
|
|
@@ -19,54 +19,54 @@ function je(e, t) {
|
|
|
19
19
|
return n !== 0 ? n : e.element.offsetHeight - t.element.offsetHeight;
|
|
20
20
|
}
|
|
21
21
|
function be(e) {
|
|
22
|
-
const { element: t, orientation: n, panels: o, separators:
|
|
22
|
+
const { element: t, orientation: n, panels: o, separators: r } = e, s = re(
|
|
23
23
|
n,
|
|
24
24
|
Array.from(t.children).filter((l) => l instanceof HTMLElement).map((l) => ({ element: l }))
|
|
25
|
-
).map(({ element: l }) => l),
|
|
25
|
+
).map(({ element: l }) => l), u = [];
|
|
26
26
|
let i, a;
|
|
27
|
-
for (const l of
|
|
27
|
+
for (const l of s) {
|
|
28
28
|
const f = o.find(
|
|
29
|
-
(
|
|
29
|
+
(c) => c.element === l
|
|
30
30
|
);
|
|
31
31
|
if (f) {
|
|
32
32
|
if (i) {
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const c = i.element.getBoundingClientRect(), m = l.getBoundingClientRect();
|
|
34
|
+
u.push({
|
|
35
35
|
group: e,
|
|
36
36
|
panels: [i, f],
|
|
37
37
|
separator: a,
|
|
38
38
|
rect: n === "horizontal" ? new DOMRect(
|
|
39
|
-
|
|
39
|
+
c.right,
|
|
40
40
|
m.top,
|
|
41
|
-
m.left -
|
|
41
|
+
m.left - c.right,
|
|
42
42
|
m.height
|
|
43
43
|
) : new DOMRect(
|
|
44
44
|
m.left,
|
|
45
|
-
|
|
45
|
+
c.bottom,
|
|
46
46
|
m.width,
|
|
47
|
-
m.top -
|
|
47
|
+
m.top - c.bottom
|
|
48
48
|
)
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
i = f, a = void 0;
|
|
52
52
|
} else {
|
|
53
|
-
const
|
|
53
|
+
const c = r.find(
|
|
54
54
|
(m) => m.element === l
|
|
55
55
|
);
|
|
56
|
-
|
|
56
|
+
c ? a = c : (i = void 0, a = void 0);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return u;
|
|
60
60
|
}
|
|
61
61
|
function We(e, t) {
|
|
62
62
|
const n = getComputedStyle(e), o = parseFloat(n.fontSize);
|
|
63
63
|
return t * o;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Be(e, t) {
|
|
66
66
|
const n = getComputedStyle(e.ownerDocument.body), o = parseFloat(n.fontSize);
|
|
67
67
|
return t * o;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Ue(e) {
|
|
70
70
|
return e / 100 * window.innerHeight;
|
|
71
71
|
}
|
|
72
72
|
function Ke(e) {
|
|
@@ -88,30 +88,30 @@ function J({
|
|
|
88
88
|
styleProp: n
|
|
89
89
|
}) {
|
|
90
90
|
let o;
|
|
91
|
-
const [
|
|
92
|
-
switch (
|
|
91
|
+
const [r, s] = Ve(n);
|
|
92
|
+
switch (s) {
|
|
93
93
|
case "%": {
|
|
94
|
-
o =
|
|
94
|
+
o = r / 100 * e;
|
|
95
95
|
break;
|
|
96
96
|
}
|
|
97
97
|
case "px": {
|
|
98
|
-
o =
|
|
98
|
+
o = r;
|
|
99
99
|
break;
|
|
100
100
|
}
|
|
101
101
|
case "rem": {
|
|
102
|
-
o =
|
|
102
|
+
o = Be(t, r);
|
|
103
103
|
break;
|
|
104
104
|
}
|
|
105
105
|
case "em": {
|
|
106
|
-
o = We(t,
|
|
106
|
+
o = We(t, r);
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
case "vh": {
|
|
110
|
-
o =
|
|
110
|
+
o = Ue(r);
|
|
111
111
|
break;
|
|
112
112
|
}
|
|
113
113
|
case "vw": {
|
|
114
|
-
o = Ke(
|
|
114
|
+
o = Ke(r);
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
@@ -120,55 +120,55 @@ function J({
|
|
|
120
120
|
function I(e) {
|
|
121
121
|
return parseFloat(e.toFixed(3));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function ue({
|
|
124
124
|
group: e
|
|
125
125
|
}) {
|
|
126
126
|
const { orientation: t, panels: n } = e;
|
|
127
|
-
return n.reduce((o,
|
|
127
|
+
return n.reduce((o, r) => (o += t === "horizontal" ? r.element.offsetWidth : r.element.offsetHeight, o), 0);
|
|
128
128
|
}
|
|
129
129
|
function me(e) {
|
|
130
|
-
const { panels: t } = e, n =
|
|
130
|
+
const { panels: t } = e, n = ue({ group: e });
|
|
131
131
|
return t.map((o) => {
|
|
132
|
-
const { element:
|
|
133
|
-
let
|
|
134
|
-
if (
|
|
132
|
+
const { element: r, panelConstraints: s } = o;
|
|
133
|
+
let u = 0;
|
|
134
|
+
if (s.collapsedSize) {
|
|
135
135
|
const f = J({
|
|
136
136
|
groupSize: n,
|
|
137
|
-
panelElement:
|
|
138
|
-
styleProp:
|
|
137
|
+
panelElement: r,
|
|
138
|
+
styleProp: s.collapsedSize
|
|
139
139
|
});
|
|
140
|
-
|
|
140
|
+
u = I(f / n * 100);
|
|
141
141
|
}
|
|
142
142
|
let i;
|
|
143
|
-
if (
|
|
143
|
+
if (s.defaultSize) {
|
|
144
144
|
const f = J({
|
|
145
145
|
groupSize: n,
|
|
146
|
-
panelElement:
|
|
147
|
-
styleProp:
|
|
146
|
+
panelElement: r,
|
|
147
|
+
styleProp: s.defaultSize
|
|
148
148
|
});
|
|
149
149
|
i = I(f / n * 100);
|
|
150
150
|
}
|
|
151
151
|
let a = 0;
|
|
152
|
-
if (
|
|
152
|
+
if (s.minSize) {
|
|
153
153
|
const f = J({
|
|
154
154
|
groupSize: n,
|
|
155
|
-
panelElement:
|
|
156
|
-
styleProp:
|
|
155
|
+
panelElement: r,
|
|
156
|
+
styleProp: s.minSize
|
|
157
157
|
});
|
|
158
158
|
a = I(f / n * 100);
|
|
159
159
|
}
|
|
160
160
|
let l = 100;
|
|
161
|
-
if (
|
|
161
|
+
if (s.maxSize) {
|
|
162
162
|
const f = J({
|
|
163
163
|
groupSize: n,
|
|
164
|
-
panelElement:
|
|
165
|
-
styleProp:
|
|
164
|
+
panelElement: r,
|
|
165
|
+
styleProp: s.maxSize
|
|
166
166
|
});
|
|
167
167
|
l = I(f / n * 100);
|
|
168
168
|
}
|
|
169
169
|
return {
|
|
170
|
-
collapsedSize:
|
|
171
|
-
collapsible:
|
|
170
|
+
collapsedSize: u,
|
|
171
|
+
collapsible: s.collapsible === !0,
|
|
172
172
|
defaultSize: i,
|
|
173
173
|
minSize: a,
|
|
174
174
|
maxSize: l,
|
|
@@ -190,18 +190,18 @@ class qe {
|
|
|
190
190
|
if (o.length === 1)
|
|
191
191
|
o[0].call(null, n);
|
|
192
192
|
else {
|
|
193
|
-
let
|
|
194
|
-
const
|
|
195
|
-
for (let i = 0; i <
|
|
196
|
-
const a =
|
|
193
|
+
let r = !1, s = null;
|
|
194
|
+
const u = Array.from(o);
|
|
195
|
+
for (let i = 0; i < u.length; i++) {
|
|
196
|
+
const a = u[i];
|
|
197
197
|
try {
|
|
198
198
|
a.call(null, n);
|
|
199
199
|
} catch (l) {
|
|
200
|
-
|
|
200
|
+
s === null && (r = !0, s = l);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
if (
|
|
204
|
-
throw
|
|
203
|
+
if (r)
|
|
204
|
+
throw s;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
removeAllListeners() {
|
|
@@ -210,8 +210,8 @@ class qe {
|
|
|
210
210
|
removeListener(t, n) {
|
|
211
211
|
const o = this.#e[t];
|
|
212
212
|
if (o !== void 0) {
|
|
213
|
-
const
|
|
214
|
-
|
|
213
|
+
const r = o.indexOf(n);
|
|
214
|
+
r >= 0 && o.splice(r, 1);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -229,7 +229,7 @@ const A = new qe();
|
|
|
229
229
|
function O() {
|
|
230
230
|
return C;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function R(e) {
|
|
233
233
|
const t = typeof e == "function" ? e(C) : e;
|
|
234
234
|
if (C === t)
|
|
235
235
|
return C;
|
|
@@ -237,19 +237,19 @@ function M(e) {
|
|
|
237
237
|
return C = {
|
|
238
238
|
...C,
|
|
239
239
|
...t
|
|
240
|
-
}, t.cursorFlags !== void 0 && A.emit("cursorFlagsChange", C.cursorFlags), t.interactionState !== void 0 && A.emit("interactionStateChange", C.interactionState), t.mountedGroups !== void 0 && (C.mountedGroups.forEach((o,
|
|
241
|
-
o.derivedPanelConstraints.forEach((
|
|
242
|
-
if (
|
|
243
|
-
const { layout:
|
|
244
|
-
if (
|
|
240
|
+
}, t.cursorFlags !== void 0 && A.emit("cursorFlagsChange", C.cursorFlags), t.interactionState !== void 0 && A.emit("interactionStateChange", C.interactionState), t.mountedGroups !== void 0 && (C.mountedGroups.forEach((o, r) => {
|
|
241
|
+
o.derivedPanelConstraints.forEach((s) => {
|
|
242
|
+
if (s.collapsible) {
|
|
243
|
+
const { layout: u } = n.mountedGroups.get(r) ?? {};
|
|
244
|
+
if (u) {
|
|
245
245
|
const i = w(
|
|
246
|
-
|
|
247
|
-
o.layout[
|
|
246
|
+
s.collapsedSize,
|
|
247
|
+
o.layout[s.panelId]
|
|
248
248
|
), a = w(
|
|
249
|
-
|
|
250
|
-
|
|
249
|
+
s.collapsedSize,
|
|
250
|
+
u[s.panelId]
|
|
251
251
|
);
|
|
252
|
-
i && !a && (
|
|
252
|
+
i && !a && (r.inMemoryLastExpandedPanelSizes[s.panelId] = u[s.panelId]);
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
});
|
|
@@ -273,31 +273,31 @@ function F({
|
|
|
273
273
|
const {
|
|
274
274
|
collapsedSize: n = 0,
|
|
275
275
|
collapsible: o,
|
|
276
|
-
maxSize:
|
|
277
|
-
minSize:
|
|
276
|
+
maxSize: r = 100,
|
|
277
|
+
minSize: s = 0
|
|
278
278
|
} = e;
|
|
279
|
-
if (W(t,
|
|
279
|
+
if (W(t, s) < 0)
|
|
280
280
|
if (o) {
|
|
281
|
-
const
|
|
282
|
-
W(t,
|
|
281
|
+
const u = (n + s) / 2;
|
|
282
|
+
W(t, u) < 0 ? t = n : t = s;
|
|
283
283
|
} else
|
|
284
|
-
t =
|
|
285
|
-
return t = Math.min(
|
|
284
|
+
t = s;
|
|
285
|
+
return t = Math.min(r, t), t = I(t), t;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function B({
|
|
288
288
|
delta: e,
|
|
289
289
|
initialLayout: t,
|
|
290
290
|
panelConstraints: n,
|
|
291
291
|
pivotIndices: o,
|
|
292
|
-
prevLayout:
|
|
293
|
-
trigger:
|
|
292
|
+
prevLayout: r,
|
|
293
|
+
trigger: s
|
|
294
294
|
}) {
|
|
295
295
|
if (w(e, 0))
|
|
296
296
|
return t;
|
|
297
|
-
const
|
|
297
|
+
const u = Object.values(t), i = Object.values(r), a = [...u], [l, f] = o;
|
|
298
298
|
S(l != null, "Invalid first pivot index"), S(f != null, "Invalid second pivot index");
|
|
299
|
-
let
|
|
300
|
-
if (
|
|
299
|
+
let c = 0;
|
|
300
|
+
if (s === "keyboard") {
|
|
301
301
|
{
|
|
302
302
|
const d = e < 0 ? f : l, p = n[d];
|
|
303
303
|
S(
|
|
@@ -310,13 +310,13 @@ function U({
|
|
|
310
310
|
minSize: z = 0
|
|
311
311
|
} = p;
|
|
312
312
|
if (v) {
|
|
313
|
-
const x =
|
|
313
|
+
const x = u[d];
|
|
314
314
|
if (S(
|
|
315
315
|
x != null,
|
|
316
316
|
`Previous layout not found for panel index ${d}`
|
|
317
317
|
), w(x, h)) {
|
|
318
|
-
const
|
|
319
|
-
W(
|
|
318
|
+
const y = z - x;
|
|
319
|
+
W(y, Math.abs(e)) > 0 && (e = e < 0 ? 0 - y : y);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -332,13 +332,13 @@ function U({
|
|
|
332
332
|
minSize: z = 0
|
|
333
333
|
} = p;
|
|
334
334
|
if (v) {
|
|
335
|
-
const x =
|
|
335
|
+
const x = u[d];
|
|
336
336
|
if (S(
|
|
337
337
|
x != null,
|
|
338
338
|
`Previous layout not found for panel index ${d}`
|
|
339
339
|
), w(x, z)) {
|
|
340
|
-
const
|
|
341
|
-
W(
|
|
340
|
+
const y = x - h;
|
|
341
|
+
W(y, Math.abs(e)) > 0 && (e = e < 0 ? 0 - y : y);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -347,16 +347,16 @@ function U({
|
|
|
347
347
|
const d = e < 0 ? 1 : -1;
|
|
348
348
|
let p = e < 0 ? f : l, h = 0;
|
|
349
349
|
for (; ; ) {
|
|
350
|
-
const z =
|
|
350
|
+
const z = u[p];
|
|
351
351
|
S(
|
|
352
352
|
z != null,
|
|
353
353
|
`Previous layout not found for panel index ${p}`
|
|
354
354
|
);
|
|
355
|
-
const
|
|
355
|
+
const y = F({
|
|
356
356
|
panelConstraints: n[p],
|
|
357
357
|
size: 100
|
|
358
358
|
}) - z;
|
|
359
|
-
if (h +=
|
|
359
|
+
if (h += y, p += d, p < 0 || p >= n.length)
|
|
360
360
|
break;
|
|
361
361
|
}
|
|
362
362
|
const v = Math.min(Math.abs(e), Math.abs(h));
|
|
@@ -365,7 +365,7 @@ function U({
|
|
|
365
365
|
{
|
|
366
366
|
let p = e < 0 ? l : f;
|
|
367
367
|
for (; p >= 0 && p < n.length; ) {
|
|
368
|
-
const h = Math.abs(e) - Math.abs(
|
|
368
|
+
const h = Math.abs(e) - Math.abs(c), v = u[p];
|
|
369
369
|
S(
|
|
370
370
|
v != null,
|
|
371
371
|
`Previous layout not found for panel index ${p}`
|
|
@@ -374,7 +374,7 @@ function U({
|
|
|
374
374
|
panelConstraints: n[p],
|
|
375
375
|
size: z
|
|
376
376
|
});
|
|
377
|
-
if (!w(v, x) && (
|
|
377
|
+
if (!w(v, x) && (c += v - x, a[p] = x, c.toFixed(3).localeCompare(Math.abs(e).toFixed(3), void 0, {
|
|
378
378
|
numeric: !0
|
|
379
379
|
}) >= 0))
|
|
380
380
|
break;
|
|
@@ -382,32 +382,32 @@ function U({
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
if (Xe(i, a))
|
|
385
|
-
return
|
|
385
|
+
return r;
|
|
386
386
|
{
|
|
387
|
-
const d = e < 0 ? f : l, p =
|
|
387
|
+
const d = e < 0 ? f : l, p = u[d];
|
|
388
388
|
S(
|
|
389
389
|
p != null,
|
|
390
390
|
`Previous layout not found for panel index ${d}`
|
|
391
391
|
);
|
|
392
|
-
const h = p +
|
|
392
|
+
const h = p + c, v = F({
|
|
393
393
|
panelConstraints: n[d],
|
|
394
394
|
size: h
|
|
395
395
|
});
|
|
396
396
|
if (a[d] = v, !w(v, h)) {
|
|
397
|
-
let z = h - v,
|
|
398
|
-
for (;
|
|
399
|
-
const
|
|
397
|
+
let z = h - v, y = e < 0 ? f : l;
|
|
398
|
+
for (; y >= 0 && y < n.length; ) {
|
|
399
|
+
const P = a[y];
|
|
400
400
|
S(
|
|
401
|
-
|
|
402
|
-
`Previous layout not found for panel index ${
|
|
401
|
+
P != null,
|
|
402
|
+
`Previous layout not found for panel index ${y}`
|
|
403
403
|
);
|
|
404
|
-
const
|
|
405
|
-
panelConstraints: n[
|
|
406
|
-
size:
|
|
404
|
+
const L = P + z, E = F({
|
|
405
|
+
panelConstraints: n[y],
|
|
406
|
+
size: L
|
|
407
407
|
});
|
|
408
|
-
if (w(
|
|
408
|
+
if (w(P, E) || (z -= E - P, a[y] = E), w(z, 0))
|
|
409
409
|
break;
|
|
410
|
-
e > 0 ?
|
|
410
|
+
e > 0 ? y-- : y++;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
}
|
|
@@ -416,9 +416,9 @@ function U({
|
|
|
416
416
|
0
|
|
417
417
|
);
|
|
418
418
|
if (!w(m, 100, 0.1))
|
|
419
|
-
return
|
|
420
|
-
const
|
|
421
|
-
return a.reduce((d, p, h) => (d[
|
|
419
|
+
return r;
|
|
420
|
+
const g = Object.keys(r);
|
|
421
|
+
return a.reduce((d, p, h) => (d[g[h]] = p, d), {});
|
|
422
422
|
}
|
|
423
423
|
function te(e) {
|
|
424
424
|
const t = e.parentElement;
|
|
@@ -429,7 +429,7 @@ function te(e) {
|
|
|
429
429
|
return o;
|
|
430
430
|
throw Error("Could not find parent Group for separator element");
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function U(e, t) {
|
|
433
433
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
434
434
|
return !1;
|
|
435
435
|
for (const n in e)
|
|
@@ -441,7 +441,7 @@ function $({
|
|
|
441
441
|
layout: e,
|
|
442
442
|
panelConstraints: t
|
|
443
443
|
}) {
|
|
444
|
-
const o = [...Object.values(e)],
|
|
444
|
+
const o = [...Object.values(e)], r = o.reduce(
|
|
445
445
|
(i, a) => i + a,
|
|
446
446
|
0
|
|
447
447
|
);
|
|
@@ -449,14 +449,14 @@ function $({
|
|
|
449
449
|
throw Error(
|
|
450
450
|
`Invalid ${t.length} panel layout: ${o.map((i) => `${i}%`).join(", ")}`
|
|
451
451
|
);
|
|
452
|
-
if (!w(
|
|
452
|
+
if (!w(r, 100) && o.length > 0)
|
|
453
453
|
for (let i = 0; i < t.length; i++) {
|
|
454
454
|
const a = o[i];
|
|
455
455
|
S(a != null, `No layout data found for index ${i}`);
|
|
456
|
-
const l = 100 /
|
|
456
|
+
const l = 100 / r * a;
|
|
457
457
|
o[i] = l;
|
|
458
458
|
}
|
|
459
|
-
let
|
|
459
|
+
let s = 0;
|
|
460
460
|
for (let i = 0; i < t.length; i++) {
|
|
461
461
|
const a = o[i];
|
|
462
462
|
S(a != null, `No layout data found for index ${i}`);
|
|
@@ -464,30 +464,30 @@ function $({
|
|
|
464
464
|
panelConstraints: t[i],
|
|
465
465
|
size: a
|
|
466
466
|
});
|
|
467
|
-
a != l && (
|
|
467
|
+
a != l && (s += a - l, o[i] = l);
|
|
468
468
|
}
|
|
469
|
-
if (!w(
|
|
469
|
+
if (!w(s, 0))
|
|
470
470
|
for (let i = 0; i < t.length; i++) {
|
|
471
471
|
const a = o[i];
|
|
472
472
|
S(a != null, `No layout data found for index ${i}`);
|
|
473
|
-
const l = a +
|
|
473
|
+
const l = a + s, f = F({
|
|
474
474
|
panelConstraints: t[i],
|
|
475
475
|
size: l
|
|
476
476
|
});
|
|
477
|
-
if (a !== f && (
|
|
477
|
+
if (a !== f && (s -= f - a, o[i] = f, w(s, 0)))
|
|
478
478
|
break;
|
|
479
479
|
}
|
|
480
|
-
const
|
|
481
|
-
return o.reduce((i, a, l) => (i[
|
|
480
|
+
const u = Object.keys(e);
|
|
481
|
+
return o.reduce((i, a, l) => (i[u[l]] = a, i), {});
|
|
482
482
|
}
|
|
483
483
|
function we({
|
|
484
484
|
groupId: e
|
|
485
485
|
}) {
|
|
486
486
|
const t = () => {
|
|
487
487
|
const { mountedGroups: n } = O();
|
|
488
|
-
for (const [o,
|
|
488
|
+
for (const [o, r] of n)
|
|
489
489
|
if (o.id === e)
|
|
490
|
-
return { group: o, ...
|
|
490
|
+
return { group: o, ...r };
|
|
491
491
|
throw Error(`Group ${e} not found`);
|
|
492
492
|
};
|
|
493
493
|
return {
|
|
@@ -498,47 +498,47 @@ function we({
|
|
|
498
498
|
setLayout(n) {
|
|
499
499
|
const {
|
|
500
500
|
derivedPanelConstraints: o,
|
|
501
|
-
group:
|
|
502
|
-
layout:
|
|
503
|
-
separatorToPanels:
|
|
501
|
+
group: r,
|
|
502
|
+
layout: s,
|
|
503
|
+
separatorToPanels: u
|
|
504
504
|
} = t(), i = $({
|
|
505
505
|
layout: n,
|
|
506
506
|
panelConstraints: o
|
|
507
507
|
});
|
|
508
|
-
return
|
|
509
|
-
mountedGroups: new Map(a.mountedGroups).set(
|
|
508
|
+
return U(s, i) || R((a) => ({
|
|
509
|
+
mountedGroups: new Map(a.mountedGroups).set(r, {
|
|
510
510
|
derivedPanelConstraints: o,
|
|
511
511
|
layout: i,
|
|
512
|
-
separatorToPanels:
|
|
512
|
+
separatorToPanels: u
|
|
513
513
|
})
|
|
514
514
|
})), i;
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function Pe(e) {
|
|
519
519
|
const { mountedGroups: t } = O(), n = t.get(e);
|
|
520
520
|
return S(n, `Mounted Group ${e.id} not found`), n;
|
|
521
521
|
}
|
|
522
522
|
function D(e, t) {
|
|
523
|
-
const n = te(e), o =
|
|
524
|
-
(
|
|
523
|
+
const n = te(e), o = Pe(n), r = n.separators.find(
|
|
524
|
+
(c) => c.element === e
|
|
525
525
|
);
|
|
526
|
-
S(
|
|
527
|
-
const
|
|
528
|
-
S(
|
|
529
|
-
const
|
|
526
|
+
S(r, "Matching separator not found");
|
|
527
|
+
const s = o.separatorToPanels.get(r);
|
|
528
|
+
S(s, "Matching panels not found");
|
|
529
|
+
const u = s.map((c) => n.panels.indexOf(c)), a = we({ groupId: n.id }).getLayout(), l = B({
|
|
530
530
|
delta: t,
|
|
531
531
|
initialLayout: a,
|
|
532
532
|
panelConstraints: o.derivedPanelConstraints,
|
|
533
|
-
pivotIndices:
|
|
533
|
+
pivotIndices: u,
|
|
534
534
|
prevLayout: a,
|
|
535
535
|
trigger: "keyboard"
|
|
536
536
|
}), f = $({
|
|
537
537
|
layout: l,
|
|
538
538
|
panelConstraints: o.derivedPanelConstraints
|
|
539
539
|
});
|
|
540
|
-
|
|
541
|
-
mountedGroups: new Map(
|
|
540
|
+
U(a, f) || R((c) => ({
|
|
541
|
+
mountedGroups: new Map(c.mountedGroups).set(n, {
|
|
542
542
|
derivedPanelConstraints: o.derivedPanelConstraints,
|
|
543
543
|
layout: f,
|
|
544
544
|
separatorToPanels: o.separatorToPanels
|
|
@@ -573,31 +573,31 @@ function he(e) {
|
|
|
573
573
|
}
|
|
574
574
|
case "Enter": {
|
|
575
575
|
e.preventDefault();
|
|
576
|
-
const o = te(t), { derivedPanelConstraints:
|
|
577
|
-
(
|
|
576
|
+
const o = te(t), { derivedPanelConstraints: r, layout: s, separatorToPanels: u } = Pe(o), i = o.separators.find(
|
|
577
|
+
(c) => c.element === t
|
|
578
578
|
);
|
|
579
579
|
S(i, "Matching separator not found");
|
|
580
|
-
const a =
|
|
580
|
+
const a = u.get(i);
|
|
581
581
|
S(a, "Matching panels not found");
|
|
582
|
-
const l = a[0], f =
|
|
583
|
-
(
|
|
582
|
+
const l = a[0], f = r.find(
|
|
583
|
+
(c) => c.panelId === l.id
|
|
584
584
|
);
|
|
585
585
|
if (S(f, "Panel metadata not found"), f.collapsible) {
|
|
586
|
-
const
|
|
587
|
-
D(t, m -
|
|
586
|
+
const c = s[l.id], m = f.collapsedSize === c ? o.inMemoryLastExpandedPanelSizes[l.id] ?? f.minSize : f.collapsedSize;
|
|
587
|
+
D(t, m - c);
|
|
588
588
|
}
|
|
589
589
|
break;
|
|
590
590
|
}
|
|
591
591
|
case "F6": {
|
|
592
592
|
e.preventDefault();
|
|
593
|
-
const
|
|
593
|
+
const r = te(t).separators.map(
|
|
594
594
|
(a) => a.element
|
|
595
|
-
),
|
|
595
|
+
), s = Array.from(r).findIndex(
|
|
596
596
|
(a) => a === e.currentTarget
|
|
597
597
|
);
|
|
598
|
-
S(
|
|
599
|
-
const
|
|
600
|
-
|
|
598
|
+
S(s !== null, "Index not found");
|
|
599
|
+
const u = e.shiftKey ? s > 0 ? s - 1 : r.length - 1 : s + 1 < r.length ? s + 1 : 0;
|
|
600
|
+
r[u].focus();
|
|
601
601
|
break;
|
|
602
602
|
}
|
|
603
603
|
case "Home": {
|
|
@@ -607,7 +607,7 @@ function he(e) {
|
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
const Ye = (e) => e, ie = () => {
|
|
610
|
-
},
|
|
610
|
+
}, Le = 1, Ee = 2, Ce = 4, Re = 8, ve = {
|
|
611
611
|
coarse: 10,
|
|
612
612
|
precise: 5
|
|
613
613
|
};
|
|
@@ -624,25 +624,25 @@ function Ze(e, t) {
|
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
function Je(e, t, n) {
|
|
627
|
-
let o,
|
|
627
|
+
let o, r = {
|
|
628
628
|
x: 1 / 0,
|
|
629
629
|
y: 1 / 0
|
|
630
630
|
};
|
|
631
|
-
for (const
|
|
632
|
-
const
|
|
631
|
+
for (const s of t) {
|
|
632
|
+
const u = Ze(n, s.rect);
|
|
633
633
|
switch (e) {
|
|
634
634
|
case "horizontal": {
|
|
635
|
-
|
|
635
|
+
u.x <= r.x && (o = s, r = u);
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
638
|
case "vertical": {
|
|
639
|
-
|
|
639
|
+
u.y <= r.y && (o = s, r = u);
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
return o ? {
|
|
645
|
-
distance:
|
|
645
|
+
distance: r,
|
|
646
646
|
hitRegion: o
|
|
647
647
|
} : void 0;
|
|
648
648
|
}
|
|
@@ -650,32 +650,32 @@ let Q;
|
|
|
650
650
|
function Qe() {
|
|
651
651
|
return Q === void 0 && (typeof matchMedia == "function" ? Q = !!matchMedia("(pointer:coarse)").matches : Q = !1), Q;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function Me(e, t) {
|
|
654
654
|
const n = [];
|
|
655
|
-
return t.forEach((o,
|
|
656
|
-
if (
|
|
655
|
+
return t.forEach((o, r) => {
|
|
656
|
+
if (r.disabled)
|
|
657
657
|
return;
|
|
658
|
-
const
|
|
658
|
+
const s = Qe() ? ve.coarse : ve.precise, u = be(r), i = Je(r.orientation, u, {
|
|
659
659
|
x: e.clientX,
|
|
660
660
|
y: e.clientY
|
|
661
661
|
});
|
|
662
|
-
i && i.distance.x <=
|
|
662
|
+
i && i.distance.x <= s && i.distance.y <= s && n.push(i.hitRegion);
|
|
663
663
|
}), n;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function ge(e) {
|
|
666
666
|
if (e.defaultPrevented)
|
|
667
667
|
return;
|
|
668
|
-
const { mountedGroups: t } = O(), n =
|
|
668
|
+
const { mountedGroups: t } = O(), n = Me(e, t), o = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
669
669
|
n.forEach((i) => {
|
|
670
670
|
o.add(i.group), i.panels.forEach((l) => {
|
|
671
|
-
|
|
672
|
-
}), i.separator &&
|
|
671
|
+
r.add(l);
|
|
672
|
+
}), i.separator && s.add(i.separator);
|
|
673
673
|
const a = t.get(i.group);
|
|
674
|
-
a &&
|
|
675
|
-
}),
|
|
674
|
+
a && u.set(i.group, a.layout);
|
|
675
|
+
}), R({
|
|
676
676
|
interactionState: {
|
|
677
677
|
hitRegions: n,
|
|
678
|
-
initialLayoutMap:
|
|
678
|
+
initialLayoutMap: u,
|
|
679
679
|
pointerDownAtPoint: { x: e.clientX, y: e.clientY },
|
|
680
680
|
state: "active"
|
|
681
681
|
}
|
|
@@ -686,33 +686,33 @@ function et({
|
|
|
686
686
|
groups: t,
|
|
687
687
|
state: n
|
|
688
688
|
}) {
|
|
689
|
-
let o = 0,
|
|
689
|
+
let o = 0, r = 0;
|
|
690
690
|
switch (n) {
|
|
691
691
|
case "active":
|
|
692
692
|
case "hover":
|
|
693
|
-
t.forEach((
|
|
694
|
-
if (!
|
|
695
|
-
switch (
|
|
693
|
+
t.forEach((s) => {
|
|
694
|
+
if (!s.disableCursor)
|
|
695
|
+
switch (s.orientation) {
|
|
696
696
|
case "horizontal": {
|
|
697
697
|
o++;
|
|
698
698
|
break;
|
|
699
699
|
}
|
|
700
700
|
case "vertical": {
|
|
701
|
-
|
|
701
|
+
r++;
|
|
702
702
|
break;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
|
-
if (o === 0 &&
|
|
707
|
+
if (o === 0 && r === 0)
|
|
708
708
|
return null;
|
|
709
709
|
switch (n) {
|
|
710
710
|
case "active": {
|
|
711
|
-
const
|
|
711
|
+
const s = (e & Le) !== 0, u = (e & Ee) !== 0, i = (e & Ce) !== 0, a = (e & Re) !== 0;
|
|
712
712
|
if (e) {
|
|
713
|
-
if (
|
|
713
|
+
if (s)
|
|
714
714
|
return i ? "se-resize" : a ? "ne-resize" : "e-resize";
|
|
715
|
-
if (
|
|
715
|
+
if (u)
|
|
716
716
|
return i ? "sw-resize" : a ? "nw-resize" : "w-resize";
|
|
717
717
|
if (i)
|
|
718
718
|
return "s-resize";
|
|
@@ -722,9 +722,9 @@ function et({
|
|
|
722
722
|
break;
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
return o > 0 &&
|
|
725
|
+
return o > 0 && r > 0 ? "move" : o > 0 ? "ew-resize" : "ns-resize";
|
|
726
726
|
}
|
|
727
|
-
let
|
|
727
|
+
let se = null, k;
|
|
728
728
|
function ae() {
|
|
729
729
|
k === void 0 && (k = new CSSStyleSheet(), document.adoptedStyleSheets = [k]);
|
|
730
730
|
const { cursorFlags: e, interactionState: t } = O();
|
|
@@ -736,13 +736,13 @@ function ae() {
|
|
|
736
736
|
groups: t.hitRegions.map((o) => o.group),
|
|
737
737
|
state: t.state
|
|
738
738
|
});
|
|
739
|
-
if (
|
|
739
|
+
if (se === n)
|
|
740
740
|
return;
|
|
741
|
-
|
|
741
|
+
se = n, n ? k.cssRules.length === 0 ? k.insertRule(`*{cursor: ${n} !important;}`) : k.replaceSync(`*{cursor: ${n} !important;}`) : k.cssRules.length === 1 && k.deleteRule(0);
|
|
742
742
|
break;
|
|
743
743
|
}
|
|
744
744
|
case "inactive": {
|
|
745
|
-
|
|
745
|
+
se = null, k.cssRules.length === 1 && k.deleteRule(0);
|
|
746
746
|
break;
|
|
747
747
|
}
|
|
748
748
|
}
|
|
@@ -757,8 +757,8 @@ function ee(e) {
|
|
|
757
757
|
// Skip this check for "pointerleave" events, else Firefox triggers a false positive (see #514)
|
|
758
758
|
e.type !== "pointerleave" && e.buttons === 0
|
|
759
759
|
) {
|
|
760
|
-
|
|
761
|
-
(
|
|
760
|
+
R(
|
|
761
|
+
(s) => s.interactionState.state === "inactive" ? s : {
|
|
762
762
|
cursorFlags: 0,
|
|
763
763
|
interactionState: {
|
|
764
764
|
state: "inactive"
|
|
@@ -768,60 +768,60 @@ function ee(e) {
|
|
|
768
768
|
return;
|
|
769
769
|
}
|
|
770
770
|
let o = 0;
|
|
771
|
-
const
|
|
772
|
-
t.hitRegions.forEach((
|
|
773
|
-
const { disableCursor:
|
|
771
|
+
const r = new Map(n);
|
|
772
|
+
t.hitRegions.forEach((s) => {
|
|
773
|
+
const { disableCursor: u, element: i, orientation: a, panels: l } = s.group;
|
|
774
774
|
let f = 0;
|
|
775
775
|
t.state === "active" && (a === "horizontal" ? f = (e.clientX - t.pointerDownAtPoint.x) / i.offsetWidth * 100 : f = (e.clientY - t.pointerDownAtPoint.y) / i.offsetHeight * 100);
|
|
776
|
-
const
|
|
777
|
-
|
|
776
|
+
const c = t.initialLayoutMap.get(
|
|
777
|
+
s.group
|
|
778
778
|
), {
|
|
779
779
|
derivedPanelConstraints: m,
|
|
780
|
-
layout:
|
|
780
|
+
layout: g,
|
|
781
781
|
separatorToPanels: d
|
|
782
|
-
} = n.get(
|
|
783
|
-
if (m &&
|
|
784
|
-
const p =
|
|
782
|
+
} = n.get(s.group) ?? {};
|
|
783
|
+
if (m && c && g && d) {
|
|
784
|
+
const p = B({
|
|
785
785
|
delta: f,
|
|
786
|
-
initialLayout:
|
|
786
|
+
initialLayout: c,
|
|
787
787
|
panelConstraints: m,
|
|
788
|
-
pivotIndices:
|
|
789
|
-
prevLayout:
|
|
788
|
+
pivotIndices: s.panels.map((h) => l.indexOf(h)),
|
|
789
|
+
prevLayout: g,
|
|
790
790
|
trigger: "mouse-or-touch"
|
|
791
791
|
});
|
|
792
|
-
if (
|
|
793
|
-
if (f !== 0 && !
|
|
792
|
+
if (U(p, g)) {
|
|
793
|
+
if (f !== 0 && !u)
|
|
794
794
|
switch (a) {
|
|
795
795
|
case "horizontal": {
|
|
796
|
-
o |= f < 0 ?
|
|
796
|
+
o |= f < 0 ? Le : Ee;
|
|
797
797
|
break;
|
|
798
798
|
}
|
|
799
799
|
case "vertical": {
|
|
800
|
-
o |= f < 0 ? Ce :
|
|
800
|
+
o |= f < 0 ? Ce : Re;
|
|
801
801
|
break;
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
} else {
|
|
805
|
-
|
|
805
|
+
r.set(s.group, {
|
|
806
806
|
derivedPanelConstraints: m,
|
|
807
807
|
layout: p,
|
|
808
808
|
separatorToPanels: d
|
|
809
809
|
});
|
|
810
|
-
const h =
|
|
811
|
-
|
|
810
|
+
const h = s.group.panels.map(({ id: v }) => v).join(",");
|
|
811
|
+
s.group.inMemoryLayouts[h] = p;
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
|
-
}),
|
|
814
|
+
}), R({
|
|
815
815
|
cursorFlags: o,
|
|
816
|
-
mountedGroups:
|
|
816
|
+
mountedGroups: r
|
|
817
817
|
}), ae();
|
|
818
818
|
break;
|
|
819
819
|
}
|
|
820
820
|
default: {
|
|
821
|
-
const o =
|
|
822
|
-
o.length === 0 ? t.state !== "inactive" &&
|
|
821
|
+
const o = Me(e, n);
|
|
822
|
+
o.length === 0 ? t.state !== "inactive" && R({
|
|
823
823
|
interactionState: { state: "inactive" }
|
|
824
|
-
}) :
|
|
824
|
+
}) : R({
|
|
825
825
|
interactionState: {
|
|
826
826
|
hitRegions: o,
|
|
827
827
|
state: "hover"
|
|
@@ -831,14 +831,14 @@ function ee(e) {
|
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function ye(e) {
|
|
835
835
|
if (e.defaultPrevented)
|
|
836
836
|
return;
|
|
837
837
|
e.preventDefault();
|
|
838
838
|
const { interactionState: t } = O();
|
|
839
839
|
switch (t.state) {
|
|
840
840
|
case "active":
|
|
841
|
-
|
|
841
|
+
R({
|
|
842
842
|
cursorFlags: 0,
|
|
843
843
|
interactionState: {
|
|
844
844
|
state: "inactive"
|
|
@@ -849,18 +849,18 @@ function ge(e) {
|
|
|
849
849
|
function tt(e) {
|
|
850
850
|
let t = 0, n = 0;
|
|
851
851
|
const o = {};
|
|
852
|
-
for (const
|
|
853
|
-
if (
|
|
852
|
+
for (const s of e)
|
|
853
|
+
if (s.defaultSize !== void 0) {
|
|
854
854
|
t++;
|
|
855
|
-
const
|
|
856
|
-
n +=
|
|
855
|
+
const u = I(s.defaultSize);
|
|
856
|
+
n += u, o[s.panelId] = u;
|
|
857
857
|
} else
|
|
858
|
-
o[
|
|
859
|
-
const
|
|
860
|
-
if (
|
|
861
|
-
const
|
|
862
|
-
for (const
|
|
863
|
-
|
|
858
|
+
o[s.panelId] = void 0;
|
|
859
|
+
const r = e.length - t;
|
|
860
|
+
if (r !== 0) {
|
|
861
|
+
const s = I((100 - n) / r);
|
|
862
|
+
for (const u of e)
|
|
863
|
+
u.defaultSize === void 0 && (o[u.panelId] = s);
|
|
864
864
|
}
|
|
865
865
|
return o;
|
|
866
866
|
}
|
|
@@ -868,18 +868,18 @@ function nt(e, t, n) {
|
|
|
868
868
|
const o = n[0];
|
|
869
869
|
if (!o)
|
|
870
870
|
return;
|
|
871
|
-
const
|
|
872
|
-
if (!
|
|
871
|
+
const r = e.panels.find((u) => u.element === t);
|
|
872
|
+
if (!r || !r.onResize)
|
|
873
873
|
return;
|
|
874
|
-
const
|
|
875
|
-
|
|
874
|
+
const s = ue({ group: e });
|
|
875
|
+
r.onResize(
|
|
876
876
|
{
|
|
877
877
|
asPercentage: I(
|
|
878
|
-
o.inlineSize /
|
|
878
|
+
o.inlineSize / s * 100
|
|
879
879
|
),
|
|
880
880
|
inPixels: o.inlineSize
|
|
881
881
|
},
|
|
882
|
-
|
|
882
|
+
r.id
|
|
883
883
|
);
|
|
884
884
|
}
|
|
885
885
|
function ot(e) {
|
|
@@ -888,10 +888,10 @@ function ot(e) {
|
|
|
888
888
|
e.separators.length === 0 || e.separators.length < e.panels.length,
|
|
889
889
|
"Invalid Group configuration; too many Separator components"
|
|
890
890
|
);
|
|
891
|
-
const n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(),
|
|
892
|
-
for (const m of
|
|
893
|
-
const { borderBoxSize:
|
|
894
|
-
d === e.element ? t &&
|
|
891
|
+
const n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), r = new ResizeObserver((c) => {
|
|
892
|
+
for (const m of c) {
|
|
893
|
+
const { borderBoxSize: g, target: d } = m;
|
|
894
|
+
d === e.element ? t && R((p) => {
|
|
895
895
|
const h = p.mountedGroups.get(e);
|
|
896
896
|
if (h) {
|
|
897
897
|
const v = me(e), z = h.layout, x = $({
|
|
@@ -907,44 +907,44 @@ function ot(e) {
|
|
|
907
907
|
};
|
|
908
908
|
}
|
|
909
909
|
return p;
|
|
910
|
-
}) : nt(e, d,
|
|
910
|
+
}) : nt(e, d, g);
|
|
911
911
|
}
|
|
912
912
|
});
|
|
913
|
-
|
|
913
|
+
r.observe(e.element), e.panels.forEach((c) => {
|
|
914
914
|
S(
|
|
915
|
-
!n.has(
|
|
916
|
-
`Panel ids must be unique; id "${
|
|
917
|
-
), n.add(
|
|
915
|
+
!n.has(c.id),
|
|
916
|
+
`Panel ids must be unique; id "${c.id}" was used more than once`
|
|
917
|
+
), n.add(c.id), c.onResize && r.observe(c.element);
|
|
918
918
|
});
|
|
919
|
-
const
|
|
919
|
+
const s = me(e), u = e.panels.map(({ id: c }) => c).join(","), i = e.inMemoryLayouts[u] ?? e.defaultLayout ?? tt(s), a = $({
|
|
920
920
|
layout: i,
|
|
921
|
-
panelConstraints:
|
|
922
|
-
}), l = be(e), f =
|
|
923
|
-
mountedGroups: new Map(
|
|
924
|
-
derivedPanelConstraints:
|
|
921
|
+
panelConstraints: s
|
|
922
|
+
}), l = be(e), f = R((c) => ({
|
|
923
|
+
mountedGroups: new Map(c.mountedGroups).set(e, {
|
|
924
|
+
derivedPanelConstraints: s,
|
|
925
925
|
layout: a,
|
|
926
926
|
separatorToPanels: new Map(
|
|
927
927
|
l.filter((m) => m.separator).map((m) => [m.separator, m.panels])
|
|
928
928
|
)
|
|
929
929
|
})
|
|
930
930
|
}));
|
|
931
|
-
return e.separators.forEach((
|
|
931
|
+
return e.separators.forEach((c) => {
|
|
932
932
|
S(
|
|
933
|
-
!o.has(
|
|
934
|
-
`Separator ids must be unique; id "${
|
|
935
|
-
), o.add(
|
|
936
|
-
}), f.mountedGroups.size === 1 && (window.addEventListener("pointerdown",
|
|
933
|
+
!o.has(c.id),
|
|
934
|
+
`Separator ids must be unique; id "${c.id}" was used more than once`
|
|
935
|
+
), o.add(c.id), c.element.addEventListener("keydown", he);
|
|
936
|
+
}), f.mountedGroups.size === 1 && (window.addEventListener("pointerdown", ge), window.addEventListener("pointerleave", ee), window.addEventListener("pointermove", ee), window.addEventListener("pointerup", ye)), function() {
|
|
937
937
|
t = !1;
|
|
938
|
-
const m =
|
|
939
|
-
const d = new Map(
|
|
938
|
+
const m = R((g) => {
|
|
939
|
+
const d = new Map(g.mountedGroups);
|
|
940
940
|
return d.delete(e), { mountedGroups: d };
|
|
941
941
|
});
|
|
942
|
-
e.separators.forEach((
|
|
943
|
-
|
|
944
|
-
}), m.mountedGroups.size === 0 && (window.removeEventListener("pointerdown",
|
|
942
|
+
e.separators.forEach((g) => {
|
|
943
|
+
g.element.removeEventListener("keydown", he);
|
|
944
|
+
}), m.mountedGroups.size === 0 && (window.removeEventListener("pointerdown", ge), window.removeEventListener("pointerleave", ee), window.removeEventListener("pointermove", ee), window.removeEventListener("pointerup", ye)), r.disconnect();
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function ce(e) {
|
|
948
948
|
const t = De();
|
|
949
949
|
return `${e ?? t}`;
|
|
950
950
|
}
|
|
@@ -990,56 +990,56 @@ function it(e, t) {
|
|
|
990
990
|
);
|
|
991
991
|
});
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function pt({
|
|
994
994
|
children: e,
|
|
995
995
|
className: t,
|
|
996
996
|
defaultLayout: n,
|
|
997
997
|
disableCursor: o,
|
|
998
|
-
disabled:
|
|
999
|
-
elementRef:
|
|
1000
|
-
groupRef:
|
|
998
|
+
disabled: r,
|
|
999
|
+
elementRef: s,
|
|
1000
|
+
groupRef: u,
|
|
1001
1001
|
id: i,
|
|
1002
1002
|
onLayoutChange: a,
|
|
1003
1003
|
orientation: l = "horizontal",
|
|
1004
1004
|
style: f,
|
|
1005
|
-
...
|
|
1005
|
+
...c
|
|
1006
1006
|
}) {
|
|
1007
|
-
const m = T({}),
|
|
1008
|
-
|
|
1009
|
-
}), d =
|
|
1010
|
-
it(d,
|
|
1007
|
+
const m = T({}), g = fe((b) => {
|
|
1008
|
+
U(m.current, b) || (m.current = b, a?.(b));
|
|
1009
|
+
}), d = ce(i), [p, h] = G(!1), [v, z] = G(null), [x, y] = G(n ?? {}), [P, L] = G([]), [E, K] = G([]), ne = T({}), V = T({}), q = de(z, s);
|
|
1010
|
+
it(d, u);
|
|
1011
1011
|
const X = ze(
|
|
1012
1012
|
() => ({
|
|
1013
1013
|
id: d,
|
|
1014
1014
|
orientation: l,
|
|
1015
|
-
registerPanel: (b) => (
|
|
1016
|
-
|
|
1015
|
+
registerPanel: (b) => (L((M) => re(l, [...M, b])), () => {
|
|
1016
|
+
L((M) => M.filter((N) => N !== b));
|
|
1017
1017
|
}),
|
|
1018
1018
|
registerSeparator: (b) => (K(
|
|
1019
|
-
(
|
|
1019
|
+
(M) => re(l, [...M, b])
|
|
1020
1020
|
), () => {
|
|
1021
1021
|
K(
|
|
1022
|
-
(
|
|
1022
|
+
(M) => M.filter((N) => N !== b)
|
|
1023
1023
|
);
|
|
1024
1024
|
})
|
|
1025
1025
|
}),
|
|
1026
1026
|
[d, l]
|
|
1027
1027
|
);
|
|
1028
1028
|
H(() => {
|
|
1029
|
-
if (v !== null &&
|
|
1029
|
+
if (v !== null && P.length > 0) {
|
|
1030
1030
|
const b = {
|
|
1031
1031
|
defaultLayout: n,
|
|
1032
1032
|
disableCursor: !!o,
|
|
1033
|
-
disabled: !!
|
|
1033
|
+
disabled: !!r,
|
|
1034
1034
|
element: v,
|
|
1035
1035
|
id: d,
|
|
1036
1036
|
inMemoryLastExpandedPanelSizes: ne.current,
|
|
1037
1037
|
inMemoryLayouts: V.current,
|
|
1038
1038
|
orientation: l,
|
|
1039
|
-
panels:
|
|
1039
|
+
panels: P,
|
|
1040
1040
|
separators: E
|
|
1041
|
-
},
|
|
1042
|
-
oe && (
|
|
1041
|
+
}, M = ot(b), oe = O().mountedGroups.get(b);
|
|
1042
|
+
oe && (y(oe.layout), g?.(oe.layout));
|
|
1043
1043
|
const Oe = A.addListener(
|
|
1044
1044
|
"interactionStateChange",
|
|
1045
1045
|
(Z) => {
|
|
@@ -1059,35 +1059,35 @@ function dt({
|
|
|
1059
1059
|
"mountedGroupsChange",
|
|
1060
1060
|
(Z) => {
|
|
1061
1061
|
const _ = Z.get(b);
|
|
1062
|
-
_ && _.derivedPanelConstraints.length > 0 && (
|
|
1062
|
+
_ && _.derivedPanelConstraints.length > 0 && (y(_.layout), g?.(_.layout));
|
|
1063
1063
|
}
|
|
1064
1064
|
);
|
|
1065
1065
|
return () => {
|
|
1066
|
-
|
|
1066
|
+
M(), Oe(), Te();
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
1069
|
}, [
|
|
1070
1070
|
n,
|
|
1071
1071
|
o,
|
|
1072
|
-
|
|
1072
|
+
r,
|
|
1073
1073
|
v,
|
|
1074
1074
|
d,
|
|
1075
|
-
|
|
1075
|
+
g,
|
|
1076
1076
|
l,
|
|
1077
|
-
|
|
1077
|
+
P,
|
|
1078
1078
|
E
|
|
1079
1079
|
]);
|
|
1080
1080
|
const Y = {
|
|
1081
1081
|
[Ge]: p ? "none" : void 0
|
|
1082
1082
|
};
|
|
1083
1083
|
for (const b in x) {
|
|
1084
|
-
const
|
|
1085
|
-
Y[
|
|
1084
|
+
const M = Ie(d, b), N = x[b];
|
|
1085
|
+
Y[M] = N;
|
|
1086
1086
|
}
|
|
1087
1087
|
return /* @__PURE__ */ j(ke.Provider, { value: X, children: /* @__PURE__ */ j(
|
|
1088
1088
|
"div",
|
|
1089
1089
|
{
|
|
1090
|
-
...
|
|
1090
|
+
...c,
|
|
1091
1091
|
"aria-orientation": l,
|
|
1092
1092
|
className: t,
|
|
1093
1093
|
"data-group": !0,
|
|
@@ -1108,7 +1108,7 @@ function dt({
|
|
|
1108
1108
|
function le(e) {
|
|
1109
1109
|
return `react-resizable-panels:${e}`;
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function st({
|
|
1112
1112
|
id: e,
|
|
1113
1113
|
layout: t,
|
|
1114
1114
|
storage: n
|
|
@@ -1120,38 +1120,38 @@ function rt({
|
|
|
1120
1120
|
console.error(o);
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function mt({
|
|
1124
1124
|
groupId: e,
|
|
1125
1125
|
storage: t
|
|
1126
1126
|
}) {
|
|
1127
1127
|
const n = _e(
|
|
1128
|
-
|
|
1128
|
+
rt,
|
|
1129
1129
|
() => t.getItem(le(e)),
|
|
1130
1130
|
() => t.getItem(le(e))
|
|
1131
1131
|
), o = ze(
|
|
1132
1132
|
() => n ? JSON.parse(n) : null,
|
|
1133
1133
|
[n]
|
|
1134
|
-
),
|
|
1135
|
-
(
|
|
1134
|
+
), r = Se(
|
|
1135
|
+
(s) => st({
|
|
1136
1136
|
id: e,
|
|
1137
|
-
layout:
|
|
1137
|
+
layout: s,
|
|
1138
1138
|
storage: t
|
|
1139
1139
|
}),
|
|
1140
1140
|
[e, t]
|
|
1141
1141
|
);
|
|
1142
1142
|
return {
|
|
1143
1143
|
defaultLayout: o,
|
|
1144
|
-
onLayoutChange:
|
|
1144
|
+
onLayoutChange: r
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1147
|
+
function rt() {
|
|
1148
1148
|
return function() {
|
|
1149
1149
|
};
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function ht() {
|
|
1152
1152
|
return G(null);
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function vt() {
|
|
1155
1155
|
return T(null);
|
|
1156
1156
|
}
|
|
1157
1157
|
function pe() {
|
|
@@ -1169,10 +1169,10 @@ function at({
|
|
|
1169
1169
|
const { mountedGroups: i } = O();
|
|
1170
1170
|
for (const [
|
|
1171
1171
|
a,
|
|
1172
|
-
{ derivedPanelConstraints: l, layout: f, separatorToPanels:
|
|
1172
|
+
{ derivedPanelConstraints: l, layout: f, separatorToPanels: c }
|
|
1173
1173
|
] of i)
|
|
1174
1174
|
if (a.id === e)
|
|
1175
|
-
return { derivedPanelConstraints: l, group: a, layout: f, separatorToPanels:
|
|
1175
|
+
return { derivedPanelConstraints: l, group: a, layout: f, separatorToPanels: c };
|
|
1176
1176
|
throw Error(`Group ${e} not found`);
|
|
1177
1177
|
}, o = () => {
|
|
1178
1178
|
const i = n().derivedPanelConstraints.find(
|
|
@@ -1181,37 +1181,37 @@ function at({
|
|
|
1181
1181
|
if (i !== void 0)
|
|
1182
1182
|
return i;
|
|
1183
1183
|
throw Error(`Panel constraints not found for Panel ${t}`);
|
|
1184
|
-
},
|
|
1184
|
+
}, r = () => {
|
|
1185
1185
|
const i = n().group.panels.find((a) => a.id === t);
|
|
1186
1186
|
if (i !== void 0)
|
|
1187
1187
|
return i;
|
|
1188
1188
|
throw Error(`Layout not found for Panel ${t}`);
|
|
1189
|
-
},
|
|
1189
|
+
}, s = () => {
|
|
1190
1190
|
const i = n().layout[t];
|
|
1191
1191
|
if (i !== void 0)
|
|
1192
1192
|
return i;
|
|
1193
1193
|
throw Error(`Layout not found for Panel ${t}`);
|
|
1194
|
-
},
|
|
1195
|
-
const a =
|
|
1194
|
+
}, u = (i) => {
|
|
1195
|
+
const a = s();
|
|
1196
1196
|
if (i === a)
|
|
1197
1197
|
return;
|
|
1198
1198
|
const {
|
|
1199
1199
|
derivedPanelConstraints: l,
|
|
1200
1200
|
group: f,
|
|
1201
|
-
layout:
|
|
1201
|
+
layout: c,
|
|
1202
1202
|
separatorToPanels: m
|
|
1203
|
-
} = n(),
|
|
1203
|
+
} = n(), g = f.panels.findIndex((v) => v.id === t), d = g === f.panels.length - 1, p = B({
|
|
1204
1204
|
delta: d ? a - i : i - a,
|
|
1205
|
-
initialLayout:
|
|
1205
|
+
initialLayout: c,
|
|
1206
1206
|
panelConstraints: l,
|
|
1207
|
-
pivotIndices: d ? [
|
|
1208
|
-
prevLayout:
|
|
1207
|
+
pivotIndices: d ? [g - 1, g] : [g, g + 1],
|
|
1208
|
+
prevLayout: c,
|
|
1209
1209
|
trigger: "imperative-api"
|
|
1210
1210
|
}), h = $({
|
|
1211
1211
|
layout: p,
|
|
1212
1212
|
panelConstraints: l
|
|
1213
1213
|
});
|
|
1214
|
-
|
|
1214
|
+
U(c, h) || R((v) => ({
|
|
1215
1215
|
mountedGroups: new Map(v.mountedGroups).set(f, {
|
|
1216
1216
|
derivedPanelConstraints: l,
|
|
1217
1217
|
layout: h,
|
|
@@ -1221,31 +1221,31 @@ function at({
|
|
|
1221
1221
|
};
|
|
1222
1222
|
return {
|
|
1223
1223
|
collapse: () => {
|
|
1224
|
-
const { collapsible: i, collapsedSize: a } = o(), l =
|
|
1225
|
-
i && l !== a &&
|
|
1224
|
+
const { collapsible: i, collapsedSize: a } = o(), l = s();
|
|
1225
|
+
i && l !== a && u(a);
|
|
1226
1226
|
},
|
|
1227
1227
|
expand: () => {
|
|
1228
|
-
const { collapsible: i, collapsedSize: a, minSize: l } = o(), f =
|
|
1229
|
-
i && f === a &&
|
|
1228
|
+
const { collapsible: i, collapsedSize: a, minSize: l } = o(), f = s();
|
|
1229
|
+
i && f === a && u(l);
|
|
1230
1230
|
},
|
|
1231
1231
|
getSize: () => {
|
|
1232
|
-
const { group: i } = n(), a =
|
|
1232
|
+
const { group: i } = n(), a = s(), { element: l } = r(), f = i.orientation === "horizontal" ? l.offsetWidth : l.offsetHeight;
|
|
1233
1233
|
return {
|
|
1234
1234
|
asPercentage: a,
|
|
1235
1235
|
inPixels: f
|
|
1236
1236
|
};
|
|
1237
1237
|
},
|
|
1238
1238
|
isCollapsed: () => {
|
|
1239
|
-
const { collapsible: i, collapsedSize: a } = o(), l =
|
|
1239
|
+
const { collapsible: i, collapsedSize: a } = o(), l = s();
|
|
1240
1240
|
return i && w(a, l);
|
|
1241
1241
|
},
|
|
1242
1242
|
resize: (i) => {
|
|
1243
|
-
if (
|
|
1243
|
+
if (s() !== i) {
|
|
1244
1244
|
let l;
|
|
1245
1245
|
switch (typeof i) {
|
|
1246
1246
|
case "number": {
|
|
1247
|
-
const { group: f } = n(),
|
|
1248
|
-
l = I(i /
|
|
1247
|
+
const { group: f } = n(), c = ue({ group: f });
|
|
1248
|
+
l = I(i / c * 100);
|
|
1249
1249
|
break;
|
|
1250
1250
|
}
|
|
1251
1251
|
case "string": {
|
|
@@ -1253,7 +1253,7 @@ function at({
|
|
|
1253
1253
|
break;
|
|
1254
1254
|
}
|
|
1255
1255
|
}
|
|
1256
|
-
|
|
1256
|
+
u(l);
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
};
|
|
@@ -1276,35 +1276,35 @@ function lt(e, t) {
|
|
|
1276
1276
|
);
|
|
1277
1277
|
});
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function gt({
|
|
1280
1280
|
children: e,
|
|
1281
1281
|
className: t,
|
|
1282
1282
|
collapsedSize: n = 0,
|
|
1283
1283
|
collapsible: o = !1,
|
|
1284
|
-
defaultSize:
|
|
1285
|
-
elementRef:
|
|
1286
|
-
id:
|
|
1284
|
+
defaultSize: r,
|
|
1285
|
+
elementRef: s,
|
|
1286
|
+
id: u,
|
|
1287
1287
|
maxSize: i = "100",
|
|
1288
1288
|
minSize: a = "0",
|
|
1289
1289
|
onResize: l,
|
|
1290
1290
|
panelRef: f,
|
|
1291
|
-
style:
|
|
1291
|
+
style: c,
|
|
1292
1292
|
...m
|
|
1293
1293
|
}) {
|
|
1294
|
-
const
|
|
1295
|
-
l?.(E,
|
|
1294
|
+
const g = !!u, d = ce(u), [p, h] = G(null), v = de(h, s), { id: z, registerPanel: x } = pe(), y = l !== null, P = fe((E) => {
|
|
1295
|
+
l?.(E, u);
|
|
1296
1296
|
});
|
|
1297
1297
|
H(() => {
|
|
1298
1298
|
if (p !== null)
|
|
1299
1299
|
return x({
|
|
1300
1300
|
element: p,
|
|
1301
1301
|
id: d,
|
|
1302
|
-
idIsStable:
|
|
1303
|
-
onResize:
|
|
1302
|
+
idIsStable: g,
|
|
1303
|
+
onResize: y ? P : void 0,
|
|
1304
1304
|
panelConstraints: {
|
|
1305
1305
|
collapsedSize: n,
|
|
1306
1306
|
collapsible: o,
|
|
1307
|
-
defaultSize:
|
|
1307
|
+
defaultSize: r,
|
|
1308
1308
|
maxSize: i,
|
|
1309
1309
|
minSize: a
|
|
1310
1310
|
}
|
|
@@ -1312,17 +1312,17 @@ function vt({
|
|
|
1312
1312
|
}, [
|
|
1313
1313
|
n,
|
|
1314
1314
|
o,
|
|
1315
|
-
|
|
1315
|
+
r,
|
|
1316
1316
|
p,
|
|
1317
|
-
g,
|
|
1318
|
-
d,
|
|
1319
1317
|
y,
|
|
1318
|
+
d,
|
|
1319
|
+
g,
|
|
1320
1320
|
i,
|
|
1321
1321
|
a,
|
|
1322
|
-
|
|
1322
|
+
P,
|
|
1323
1323
|
x
|
|
1324
1324
|
]), lt(d, f);
|
|
1325
|
-
const
|
|
1325
|
+
const L = Ie(z, d);
|
|
1326
1326
|
return /* @__PURE__ */ j(
|
|
1327
1327
|
"div",
|
|
1328
1328
|
{
|
|
@@ -1332,8 +1332,9 @@ function vt({
|
|
|
1332
1332
|
id: d,
|
|
1333
1333
|
ref: v,
|
|
1334
1334
|
style: {
|
|
1335
|
+
...ut,
|
|
1335
1336
|
flexBasis: 0,
|
|
1336
|
-
flexGrow: `var(${
|
|
1337
|
+
flexGrow: `var(${L}, 1)`,
|
|
1337
1338
|
flexShrink: 1,
|
|
1338
1339
|
// Prevent Panel content from interfering with panel size
|
|
1339
1340
|
overflow: "hidden",
|
|
@@ -1348,7 +1349,7 @@ function vt({
|
|
|
1348
1349
|
style: {
|
|
1349
1350
|
width: "100%",
|
|
1350
1351
|
height: "100%",
|
|
1351
|
-
...
|
|
1352
|
+
...c
|
|
1352
1353
|
},
|
|
1353
1354
|
children: e
|
|
1354
1355
|
}
|
|
@@ -1356,10 +1357,26 @@ function vt({
|
|
|
1356
1357
|
}
|
|
1357
1358
|
);
|
|
1358
1359
|
}
|
|
1360
|
+
const ut = {
|
|
1361
|
+
minHeight: "unset",
|
|
1362
|
+
maxHeight: "unset",
|
|
1363
|
+
height: "unset",
|
|
1364
|
+
minWidth: "unset",
|
|
1365
|
+
maxWidth: "unset",
|
|
1366
|
+
width: "unset",
|
|
1367
|
+
flex: "unset",
|
|
1368
|
+
flexBasis: "unset",
|
|
1369
|
+
flexShrink: "unset",
|
|
1370
|
+
flexGrow: "unset",
|
|
1371
|
+
border: "unset",
|
|
1372
|
+
borderWidth: "unset",
|
|
1373
|
+
padding: "unset",
|
|
1374
|
+
margin: "unset"
|
|
1375
|
+
};
|
|
1359
1376
|
function yt() {
|
|
1360
1377
|
return G(null);
|
|
1361
1378
|
}
|
|
1362
|
-
function
|
|
1379
|
+
function St() {
|
|
1363
1380
|
return T(null);
|
|
1364
1381
|
}
|
|
1365
1382
|
function ct({
|
|
@@ -1368,15 +1385,15 @@ function ct({
|
|
|
1368
1385
|
panelId: n,
|
|
1369
1386
|
panelIndex: o
|
|
1370
1387
|
}) {
|
|
1371
|
-
let
|
|
1372
|
-
const
|
|
1388
|
+
let r, s;
|
|
1389
|
+
const u = e[n], i = t.find(
|
|
1373
1390
|
(a) => a.panelId === n
|
|
1374
1391
|
);
|
|
1375
1392
|
if (i) {
|
|
1376
|
-
const a = i.maxSize, l =
|
|
1377
|
-
|
|
1378
|
-
layout:
|
|
1379
|
-
delta: l -
|
|
1393
|
+
const a = i.maxSize, l = s = i.collapsible ? i.collapsedSize : i.minSize, f = [o, o + 1];
|
|
1394
|
+
s = $({
|
|
1395
|
+
layout: B({
|
|
1396
|
+
delta: l - u,
|
|
1380
1397
|
initialLayout: e,
|
|
1381
1398
|
panelConstraints: t,
|
|
1382
1399
|
pivotIndices: f,
|
|
@@ -1384,9 +1401,9 @@ function ct({
|
|
|
1384
1401
|
trigger: "keyboard"
|
|
1385
1402
|
}),
|
|
1386
1403
|
panelConstraints: t
|
|
1387
|
-
})[n],
|
|
1388
|
-
layout:
|
|
1389
|
-
delta: a -
|
|
1404
|
+
})[n], r = $({
|
|
1405
|
+
layout: B({
|
|
1406
|
+
delta: a - u,
|
|
1390
1407
|
initialLayout: e,
|
|
1391
1408
|
panelConstraints: t,
|
|
1392
1409
|
pivotIndices: f,
|
|
@@ -1398,42 +1415,42 @@ function ct({
|
|
|
1398
1415
|
}
|
|
1399
1416
|
return {
|
|
1400
1417
|
valueControls: n,
|
|
1401
|
-
valueMax:
|
|
1402
|
-
valueMin:
|
|
1403
|
-
valueNow:
|
|
1418
|
+
valueMax: r,
|
|
1419
|
+
valueMin: s,
|
|
1420
|
+
valueNow: u
|
|
1404
1421
|
};
|
|
1405
1422
|
}
|
|
1406
|
-
function
|
|
1423
|
+
function xt({
|
|
1407
1424
|
children: e,
|
|
1408
1425
|
className: t,
|
|
1409
1426
|
elementRef: n,
|
|
1410
1427
|
id: o,
|
|
1411
|
-
style:
|
|
1412
|
-
...
|
|
1428
|
+
style: r,
|
|
1429
|
+
...s
|
|
1413
1430
|
}) {
|
|
1414
|
-
const
|
|
1431
|
+
const u = ce(o), [i, a] = G({}), [l, f] = G("inactive"), [c, m] = G(null), g = de(m, n), {
|
|
1415
1432
|
id: d,
|
|
1416
1433
|
orientation: p,
|
|
1417
1434
|
registerSeparator: h
|
|
1418
1435
|
} = pe(), v = p === "horizontal" ? "vertical" : "horizontal";
|
|
1419
1436
|
return H(() => {
|
|
1420
|
-
if (
|
|
1437
|
+
if (c !== null) {
|
|
1421
1438
|
const z = {
|
|
1422
|
-
element:
|
|
1423
|
-
id:
|
|
1424
|
-
}, x = h(z),
|
|
1439
|
+
element: c,
|
|
1440
|
+
id: u
|
|
1441
|
+
}, x = h(z), y = A.addListener(
|
|
1425
1442
|
"interactionStateChange",
|
|
1426
|
-
(
|
|
1443
|
+
(L) => {
|
|
1427
1444
|
f(
|
|
1428
|
-
|
|
1445
|
+
L.state !== "inactive" && L.hitRegions.some(
|
|
1429
1446
|
(E) => E.separator === z
|
|
1430
|
-
) ?
|
|
1447
|
+
) ? L.state : "inactive"
|
|
1431
1448
|
);
|
|
1432
1449
|
}
|
|
1433
|
-
),
|
|
1450
|
+
), P = A.addListener(
|
|
1434
1451
|
"mountedGroupsChange",
|
|
1435
|
-
(
|
|
1436
|
-
|
|
1452
|
+
(L) => {
|
|
1453
|
+
L.forEach(
|
|
1437
1454
|
({ derivedPanelConstraints: E, layout: K, separatorToPanels: ne }, V) => {
|
|
1438
1455
|
if (V.id === d) {
|
|
1439
1456
|
const q = ne.get(z);
|
|
@@ -1454,13 +1471,13 @@ function St({
|
|
|
1454
1471
|
}
|
|
1455
1472
|
);
|
|
1456
1473
|
return () => {
|
|
1457
|
-
|
|
1474
|
+
y(), P(), x();
|
|
1458
1475
|
};
|
|
1459
1476
|
}
|
|
1460
|
-
}, [
|
|
1477
|
+
}, [c, d, u, h]), /* @__PURE__ */ j(
|
|
1461
1478
|
"div",
|
|
1462
1479
|
{
|
|
1463
|
-
...
|
|
1480
|
+
...s,
|
|
1464
1481
|
"aria-controls": i.valueControls,
|
|
1465
1482
|
"aria-orientation": v,
|
|
1466
1483
|
"aria-valuemax": i.valueMax,
|
|
@@ -1469,13 +1486,13 @@ function St({
|
|
|
1469
1486
|
children: e,
|
|
1470
1487
|
className: t,
|
|
1471
1488
|
"data-separator": l,
|
|
1472
|
-
"data-testid":
|
|
1473
|
-
id:
|
|
1474
|
-
ref:
|
|
1489
|
+
"data-testid": u,
|
|
1490
|
+
id: u,
|
|
1491
|
+
ref: g,
|
|
1475
1492
|
role: "separator",
|
|
1476
1493
|
style: {
|
|
1477
1494
|
flexBasis: "auto",
|
|
1478
|
-
...
|
|
1495
|
+
...r,
|
|
1479
1496
|
flexGrow: 0,
|
|
1480
1497
|
flexShrink: 0
|
|
1481
1498
|
},
|
|
@@ -1484,13 +1501,13 @@ function St({
|
|
|
1484
1501
|
);
|
|
1485
1502
|
}
|
|
1486
1503
|
export {
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1504
|
+
pt as Group,
|
|
1505
|
+
gt as Panel,
|
|
1506
|
+
xt as Separator,
|
|
1507
|
+
mt as useDefaultLayout,
|
|
1508
|
+
ht as useGroupCallbackRef,
|
|
1509
|
+
vt as useGroupRef,
|
|
1493
1510
|
yt as usePanelCallbackRef,
|
|
1494
|
-
|
|
1511
|
+
St as usePanelRef
|
|
1495
1512
|
};
|
|
1496
1513
|
//# sourceMappingURL=react-resizable-panels.js.map
|