@byeolnaerim/flex-layout 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/flex-layout/components/FlexLayout.cjs +62 -28
- package/dist/flex-layout/components/FlexLayout.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayout.js +26 -11
- package/dist/flex-layout/components/FlexLayout.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutContainer.cjs +121 -55
- package/dist/flex-layout/components/FlexLayoutContainer.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutContainer.js +68 -25
- package/dist/flex-layout/components/FlexLayoutContainer.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutIFramePane.cjs +68 -0
- package/dist/flex-layout/components/FlexLayoutIFramePane.cjs.map +1 -0
- package/dist/flex-layout/components/FlexLayoutIFramePane.d.ts +4 -0
- package/dist/flex-layout/components/FlexLayoutIFramePane.js +44 -0
- package/dist/flex-layout/components/FlexLayoutIFramePane.js.map +1 -0
- package/dist/flex-layout/components/FlexLayoutResizePanel.cjs +96 -42
- package/dist/flex-layout/components/FlexLayoutResizePanel.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutResizePanel.d.ts +1 -1
- package/dist/flex-layout/components/FlexLayoutResizePanel.js +44 -14
- package/dist/flex-layout/components/FlexLayoutResizePanel.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreen.cjs +184 -143
- package/dist/flex-layout/components/FlexLayoutSplitScreen.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreen.js +71 -32
- package/dist/flex-layout/components/FlexLayoutSplitScreen.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.cjs +253 -60
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.d.ts +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.js +215 -39
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxContainer.cjs +40 -17
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxContainer.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxContainer.js +7 -7
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxContainer.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxItem.cjs +44 -21
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxItem.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxItem.js +7 -8
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxItem.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxTitleMore.cjs +40 -17
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxTitleMore.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxTitleMore.js +5 -6
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxTitleMore.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenScrollBox.cjs +53 -29
- package/dist/flex-layout/components/FlexLayoutSplitScreenScrollBox.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenScrollBox.js +14 -10
- package/dist/flex-layout/components/FlexLayoutSplitScreenScrollBox.js.map +1 -1
- package/dist/flex-layout/components/FlexLayoutStickyBox.cjs +46 -27
- package/dist/flex-layout/components/FlexLayoutStickyBox.cjs.map +1 -1
- package/dist/flex-layout/components/FlexLayoutStickyBox.d.ts +1 -0
- package/dist/flex-layout/components/FlexLayoutStickyBox.js +13 -8
- package/dist/flex-layout/components/FlexLayoutStickyBox.js.map +1 -1
- package/dist/flex-layout/components/index.cjs +54 -49
- package/dist/flex-layout/components/index.cjs.map +1 -1
- package/dist/flex-layout/components/index.js +16 -8
- package/dist/flex-layout/components/index.js.map +1 -1
- package/dist/flex-layout/hooks/index.cjs +23 -19
- package/dist/flex-layout/hooks/index.cjs.map +1 -1
- package/dist/flex-layout/hooks/index.js +2 -3
- package/dist/flex-layout/hooks/index.js.map +1 -1
- package/dist/flex-layout/hooks/useDrag.cjs +136 -79
- package/dist/flex-layout/hooks/useDrag.cjs.map +1 -1
- package/dist/flex-layout/hooks/useDrag.d.ts +5 -0
- package/dist/flex-layout/hooks/useDrag.js +86 -47
- package/dist/flex-layout/hooks/useDrag.js.map +1 -1
- package/dist/flex-layout/hooks/useFlexLayoutSplitScreen.cjs +40 -19
- package/dist/flex-layout/hooks/useFlexLayoutSplitScreen.cjs.map +1 -1
- package/dist/flex-layout/hooks/useFlexLayoutSplitScreen.js +9 -7
- package/dist/flex-layout/hooks/useFlexLayoutSplitScreen.js.map +1 -1
- package/dist/flex-layout/hooks/useListPaging.cjs +68 -35
- package/dist/flex-layout/hooks/useListPaging.cjs.map +1 -1
- package/dist/flex-layout/hooks/useListPaging.js +34 -18
- package/dist/flex-layout/hooks/useListPaging.js.map +1 -1
- package/dist/flex-layout/hooks/useSizes.cjs +45 -23
- package/dist/flex-layout/hooks/useSizes.cjs.map +1 -1
- package/dist/flex-layout/hooks/useSizes.js +6 -6
- package/dist/flex-layout/hooks/useSizes.js.map +1 -1
- package/dist/flex-layout/index.cjs +29 -40
- package/dist/flex-layout/index.cjs.map +1 -1
- package/dist/flex-layout/index.js +5 -6
- package/dist/flex-layout/index.js.map +1 -1
- package/dist/flex-layout/providers/FlexLayoutContext.cjs +35 -12
- package/dist/flex-layout/providers/FlexLayoutContext.cjs.map +1 -1
- package/dist/flex-layout/providers/FlexLayoutContext.js +7 -6
- package/dist/flex-layout/providers/FlexLayoutContext.js.map +1 -1
- package/dist/flex-layout/providers/FlexLayoutHooks.cjs +82 -53
- package/dist/flex-layout/providers/FlexLayoutHooks.cjs.map +1 -1
- package/dist/flex-layout/providers/FlexLayoutHooks.js +33 -8
- package/dist/flex-layout/providers/FlexLayoutHooks.js.map +1 -1
- package/dist/flex-layout/providers/index.cjs +21 -12
- package/dist/flex-layout/providers/index.cjs.map +1 -1
- package/dist/flex-layout/providers/index.js +1 -2
- package/dist/flex-layout/providers/index.js.map +1 -1
- package/dist/flex-layout/store/FlexLayoutContainerStore.cjs +130 -76
- package/dist/flex-layout/store/FlexLayoutContainerStore.cjs.map +1 -1
- package/dist/flex-layout/store/FlexLayoutContainerStore.d.ts +1 -0
- package/dist/flex-layout/store/FlexLayoutContainerStore.js +63 -38
- package/dist/flex-layout/store/FlexLayoutContainerStore.js.map +1 -1
- package/dist/flex-layout/store/index.cjs +21 -12
- package/dist/flex-layout/store/index.cjs.map +1 -1
- package/dist/flex-layout/store/index.js +1 -2
- package/dist/flex-layout/store/index.js.map +1 -1
- package/dist/flex-layout/types/FlexDirectionTypes.cjs +16 -3
- package/dist/flex-layout/types/FlexDirectionTypes.cjs.map +1 -1
- package/dist/flex-layout/types/FlexDirectionTypes.js +0 -2
- package/dist/flex-layout/types/FlexDirectionTypes.js.map +1 -1
- package/dist/flex-layout/types/FlexLayoutTypes.cjs +16 -3
- package/dist/flex-layout/types/FlexLayoutTypes.cjs.map +1 -1
- package/dist/flex-layout/types/FlexLayoutTypes.d.ts +1 -3
- package/dist/flex-layout/types/FlexLayoutTypes.js +0 -2
- package/dist/flex-layout/types/FlexLayoutTypes.js.map +1 -1
- package/dist/flex-layout/utils/FlexLayoutUtils.cjs +57 -20
- package/dist/flex-layout/utils/FlexLayoutUtils.cjs.map +1 -1
- package/dist/flex-layout/utils/FlexLayoutUtils.d.ts +4 -4
- package/dist/flex-layout/utils/FlexLayoutUtils.js +23 -8
- package/dist/flex-layout/utils/FlexLayoutUtils.js.map +1 -1
- package/dist/flex-layout/utils/index.cjs +21 -12
- package/dist/flex-layout/utils/index.cjs.map +1 -1
- package/dist/flex-layout/utils/index.js +1 -2
- package/dist/flex-layout/utils/index.js.map +1 -1
- package/dist/index.cjs +21 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/types/css.d.cjs +1 -3
- package/dist/types/css.d.cjs.map +1 -1
- package/dist/types/css.d.js +0 -2
- package/dist/types/css.d.js.map +1 -1
- package/package.json +5 -1
|
@@ -1,33 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var FlexLayoutSplitScreen_exports = {};
|
|
31
|
+
__export(FlexLayoutSplitScreen_exports, {
|
|
32
|
+
default: () => FlexLayoutSplitScreen
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(FlexLayoutSplitScreen_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var import_react = require("react");
|
|
37
|
+
var import_useDrag = require("../hooks/useDrag");
|
|
38
|
+
var import_useFlexLayoutSplitScreen = require("../hooks/useFlexLayoutSplitScreen");
|
|
39
|
+
var import_FlexLayoutContainerStore = require("../store/FlexLayoutContainerStore");
|
|
40
|
+
var import_FlexLayout = __toESM(require("../styles/FlexLayout.module.css"), 1);
|
|
41
|
+
var import_FlexLayout2 = __toESM(require("./FlexLayout"), 1);
|
|
42
|
+
var import_FlexLayoutContainer = __toESM(require("./FlexLayoutContainer"), 1);
|
|
43
|
+
var import_FlexLayoutSplitScreenDragBox = __toESM(require("./FlexLayoutSplitScreenDragBox"), 1);
|
|
44
|
+
var import_fast_deep_equal = __toESM(require("fast-deep-equal"), 1);
|
|
45
|
+
var import_rxjs = require("rxjs");
|
|
46
|
+
var import_FlexLayoutSplitScreenDragBoxContainer = __toESM(require("./FlexLayoutSplitScreenDragBoxContainer"), 1);
|
|
47
|
+
var import_FlexLayoutSplitScreenDragBoxItem = __toESM(require("./FlexLayoutSplitScreenDragBoxItem"), 1);
|
|
48
|
+
var import_FlexLayoutSplitScreenDragBoxTitleMore = __toESM(require("./FlexLayoutSplitScreenDragBoxTitleMore"), 1);
|
|
49
|
+
var import_FlexLayoutSplitScreenScrollBox = __toESM(require("./FlexLayoutSplitScreenScrollBox"), 1);
|
|
31
50
|
function isOverDrop({
|
|
32
51
|
x,
|
|
33
52
|
y,
|
|
@@ -95,7 +114,7 @@ const handleUpdateDropTargetComponents = ({
|
|
|
95
114
|
list = entries[1];
|
|
96
115
|
const newComponent = {
|
|
97
116
|
containerName: `${containerName + "_" + layoutName}${isUsePrefix ? "_" + orderName + "-" + list.length : ""}`,
|
|
98
|
-
component:
|
|
117
|
+
component: (0, import_react.cloneElement)(
|
|
99
118
|
dropComponent,
|
|
100
119
|
{ key: screenKey, screenKey }
|
|
101
120
|
),
|
|
@@ -175,7 +194,7 @@ const handleUpdateDropTargetComponents = ({
|
|
|
175
194
|
seen.add(item.containerName);
|
|
176
195
|
return true;
|
|
177
196
|
});
|
|
178
|
-
|
|
197
|
+
import_useDrag.dropMovementEventSubject.next({
|
|
179
198
|
state: "append",
|
|
180
199
|
targetParentLayoutName: parentLayoutName,
|
|
181
200
|
targetLayoutName: layoutName,
|
|
@@ -233,16 +252,16 @@ function FlexLayoutSplitScreen({
|
|
|
233
252
|
layoutRef,
|
|
234
253
|
setIsSplit,
|
|
235
254
|
setDirection
|
|
236
|
-
} =
|
|
255
|
+
} = (0, import_useFlexLayoutSplitScreen.useFlexLayoutSplitScreen)({
|
|
237
256
|
isSplitInitial: false,
|
|
238
257
|
directionInitial: "row",
|
|
239
258
|
selfContainerName: containerName,
|
|
240
259
|
parentLayoutName: "",
|
|
241
260
|
layoutName
|
|
242
261
|
});
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
const subscribe =
|
|
262
|
+
(0, import_react.useEffect)(() => {
|
|
263
|
+
(0, import_FlexLayoutContainerStore.resetRootSplitScreen)(layoutName);
|
|
264
|
+
const subscribe = (0, import_FlexLayoutContainerStore.getSplitScreen)(layoutName, layoutName).subscribe((layoutInfo) => {
|
|
246
265
|
if (layoutInfo) {
|
|
247
266
|
setBeforeDropTargetComponent([
|
|
248
267
|
...layoutInfo.beforeDropTargetComponent
|
|
@@ -258,7 +277,7 @@ function FlexLayoutSplitScreen({
|
|
|
258
277
|
setIsSplit(true);
|
|
259
278
|
}
|
|
260
279
|
} else {
|
|
261
|
-
|
|
280
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(layoutName, layoutName, {
|
|
262
281
|
afterDropTargetComponent: [],
|
|
263
282
|
beforeDropTargetComponent: [],
|
|
264
283
|
centerDropTargetComponent: [
|
|
@@ -281,12 +300,12 @@ function FlexLayoutSplitScreen({
|
|
|
281
300
|
});
|
|
282
301
|
return () => {
|
|
283
302
|
subscribe.unsubscribe();
|
|
284
|
-
|
|
303
|
+
(0, import_FlexLayoutContainerStore.removeRootSplitScreen)(layoutName);
|
|
285
304
|
};
|
|
286
|
-
}, [layoutName]);
|
|
287
|
-
|
|
288
|
-
const subscribe =
|
|
289
|
-
|
|
305
|
+
}, [layoutName, screenKey, navigationTitle, children, direction]);
|
|
306
|
+
(0, import_react.useEffect)(() => {
|
|
307
|
+
const subscribe = import_useDrag.dropMovementEventSubject.pipe(
|
|
308
|
+
(0, import_rxjs.distinctUntilChanged)((prev, curr) => {
|
|
290
309
|
const filterChildren = (obj) => {
|
|
291
310
|
const {
|
|
292
311
|
children: children2,
|
|
@@ -298,7 +317,7 @@ function FlexLayoutSplitScreen({
|
|
|
298
317
|
} = obj || {};
|
|
299
318
|
return rest;
|
|
300
319
|
};
|
|
301
|
-
return
|
|
320
|
+
return (0, import_fast_deep_equal.default)(filterChildren(prev), filterChildren(curr));
|
|
302
321
|
})
|
|
303
322
|
).subscribe((event) => {
|
|
304
323
|
if (event.state === "remove") {
|
|
@@ -320,8 +339,8 @@ function FlexLayoutSplitScreen({
|
|
|
320
339
|
dropDocumentOutsideOption,
|
|
321
340
|
screenKey: event.dropTargetComponentEvent.screenKey
|
|
322
341
|
});
|
|
323
|
-
|
|
324
|
-
...
|
|
342
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(layoutName, layoutName, {
|
|
343
|
+
...(0, import_FlexLayoutContainerStore.getCurrentSplitScreenComponents)(
|
|
325
344
|
layoutName,
|
|
326
345
|
layoutName
|
|
327
346
|
) || {
|
|
@@ -341,7 +360,7 @@ function FlexLayoutSplitScreen({
|
|
|
341
360
|
);
|
|
342
361
|
}
|
|
343
362
|
};
|
|
344
|
-
const currentComponents =
|
|
363
|
+
const currentComponents = (0, import_FlexLayoutContainerStore.getCurrentSplitScreenComponents)(
|
|
345
364
|
layoutName,
|
|
346
365
|
layoutName
|
|
347
366
|
);
|
|
@@ -360,7 +379,7 @@ function FlexLayoutSplitScreen({
|
|
|
360
379
|
event.targetContainerName,
|
|
361
380
|
() => removeCallback("center")
|
|
362
381
|
);
|
|
363
|
-
|
|
382
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(layoutName, layoutName, {
|
|
364
383
|
afterDropTargetComponent: afterList,
|
|
365
384
|
beforeDropTargetComponent: beforList,
|
|
366
385
|
centerDropTargetComponent: centerList,
|
|
@@ -409,7 +428,7 @@ function FlexLayoutSplitScreen({
|
|
|
409
428
|
centerDropTargetComponent,
|
|
410
429
|
dropDocumentOutsideOption: dropDocumentOutsideOption2
|
|
411
430
|
});
|
|
412
|
-
|
|
431
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(layoutName, layoutName, {
|
|
413
432
|
...{
|
|
414
433
|
afterDropTargetComponent,
|
|
415
434
|
beforeDropTargetComponent,
|
|
@@ -427,7 +446,7 @@ function FlexLayoutSplitScreen({
|
|
|
427
446
|
})
|
|
428
447
|
);
|
|
429
448
|
} else {
|
|
430
|
-
const childScreenInfo =
|
|
449
|
+
const childScreenInfo = (0, import_FlexLayoutContainerStore.getCurrentSplitScreenComponents)(
|
|
431
450
|
layoutName,
|
|
432
451
|
`${layoutName}_center=${centerDropTargetComponent[0].screenKey}`
|
|
433
452
|
) || {
|
|
@@ -436,7 +455,7 @@ function FlexLayoutSplitScreen({
|
|
|
436
455
|
centerDropTargetComponent: [],
|
|
437
456
|
direction
|
|
438
457
|
};
|
|
439
|
-
|
|
458
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(
|
|
440
459
|
layoutName,
|
|
441
460
|
`${layoutName}_center=${centerDropTargetComponent[0].screenKey}`,
|
|
442
461
|
{
|
|
@@ -448,7 +467,7 @@ function FlexLayoutSplitScreen({
|
|
|
448
467
|
containerName: `${targetContainerName}_${layoutName}_${orderName}`,
|
|
449
468
|
component: targetComponent,
|
|
450
469
|
dropDocumentOutsideOption: dropDocumentOutsideOption2,
|
|
451
|
-
screenKey:
|
|
470
|
+
screenKey: dropTargetComponentEvent.screenKey,
|
|
452
471
|
navigationTitle: navigationTitle2
|
|
453
472
|
}
|
|
454
473
|
]
|
|
@@ -471,29 +490,29 @@ function FlexLayoutSplitScreen({
|
|
|
471
490
|
afterDropTargetComponent,
|
|
472
491
|
centerDropTargetComponent
|
|
473
492
|
]);
|
|
474
|
-
return /* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
|
|
493
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${import_FlexLayout.default["flex-split-screen"]}`, ref: layoutRef, children: [
|
|
494
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
495
|
+
import_FlexLayout2.default,
|
|
477
496
|
{
|
|
478
497
|
direction,
|
|
479
498
|
layoutName,
|
|
480
499
|
"data-is_split": isSplit,
|
|
481
500
|
panelMovementMode: "bulldozer",
|
|
482
501
|
children: [
|
|
483
|
-
beforeDropTargetComponent.length != 0 ? /* @__PURE__ */
|
|
502
|
+
beforeDropTargetComponent.length != 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: beforeDropTargetComponent.map(
|
|
484
503
|
({
|
|
485
504
|
containerName: cName,
|
|
486
505
|
component,
|
|
487
506
|
navigationTitle: navigationTitle2,
|
|
488
507
|
dropDocumentOutsideOption: dropDocumentOutsideOption2,
|
|
489
508
|
screenKey: screenKey2
|
|
490
|
-
}, i) => /* @__PURE__ */
|
|
491
|
-
|
|
509
|
+
}, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
510
|
+
import_FlexLayoutContainer.default,
|
|
492
511
|
{
|
|
493
512
|
containerName: cName,
|
|
494
513
|
isInitialResizable: true,
|
|
495
514
|
isResizePanel: true,
|
|
496
|
-
children: /* @__PURE__ */
|
|
515
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
497
516
|
FlexLayoutSplitScreenChild,
|
|
498
517
|
{
|
|
499
518
|
parentDirection: direction,
|
|
@@ -518,14 +537,14 @@ function FlexLayoutSplitScreen({
|
|
|
518
537
|
},
|
|
519
538
|
cName
|
|
520
539
|
)
|
|
521
|
-
) }) : /* @__PURE__ */
|
|
522
|
-
centerDropTargetComponent.length === 0 ? /* @__PURE__ */
|
|
523
|
-
|
|
540
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
|
|
541
|
+
centerDropTargetComponent.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
542
|
+
import_FlexLayoutContainer.default,
|
|
524
543
|
{
|
|
525
544
|
containerName: `${centerDropTargetComponent[0].containerName}`,
|
|
526
545
|
isInitialResizable: true,
|
|
527
546
|
isResizePanel: isSplit,
|
|
528
|
-
children: isSplit ? /* @__PURE__ */
|
|
547
|
+
children: isSplit ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
529
548
|
FlexLayoutSplitScreenChild,
|
|
530
549
|
{
|
|
531
550
|
parentDirection: direction,
|
|
@@ -546,8 +565,8 @@ function FlexLayoutSplitScreen({
|
|
|
546
565
|
],
|
|
547
566
|
rootName: layoutName
|
|
548
567
|
}
|
|
549
|
-
) : /* @__PURE__ */
|
|
550
|
-
|
|
568
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
569
|
+
import_FlexLayoutSplitScreenScrollBox.default,
|
|
551
570
|
{
|
|
552
571
|
keyName: centerDropTargetComponent[0].containerName,
|
|
553
572
|
isDefaultScrollStyle: true,
|
|
@@ -556,20 +575,20 @@ function FlexLayoutSplitScreen({
|
|
|
556
575
|
)
|
|
557
576
|
}
|
|
558
577
|
),
|
|
559
|
-
afterDropTargetComponent.length != 0 ? /* @__PURE__ */
|
|
578
|
+
afterDropTargetComponent.length != 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: afterDropTargetComponent.map(
|
|
560
579
|
({
|
|
561
580
|
containerName: cName,
|
|
562
581
|
component,
|
|
563
582
|
navigationTitle: navigationTitle2,
|
|
564
583
|
dropDocumentOutsideOption: dropDocumentOutsideOption2,
|
|
565
584
|
screenKey: screenKey2
|
|
566
|
-
}, i) => /* @__PURE__ */
|
|
567
|
-
|
|
585
|
+
}, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
586
|
+
import_FlexLayoutContainer.default,
|
|
568
587
|
{
|
|
569
588
|
containerName: cName,
|
|
570
589
|
isInitialResizable: true,
|
|
571
590
|
isResizePanel: afterDropTargetComponent.length - 1 !== i,
|
|
572
|
-
children: /* @__PURE__ */
|
|
591
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
573
592
|
FlexLayoutSplitScreenChild,
|
|
574
593
|
{
|
|
575
594
|
parentDirection: direction,
|
|
@@ -594,14 +613,14 @@ function FlexLayoutSplitScreen({
|
|
|
594
613
|
},
|
|
595
614
|
cName
|
|
596
615
|
)
|
|
597
|
-
) }) : /* @__PURE__ */
|
|
616
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
|
|
598
617
|
]
|
|
599
618
|
}
|
|
600
619
|
),
|
|
601
|
-
boundaryContainerSize && /* @__PURE__ */
|
|
620
|
+
boundaryContainerSize && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
602
621
|
"div",
|
|
603
622
|
{
|
|
604
|
-
className: `${
|
|
623
|
+
className: `${import_FlexLayout.default["flex-split-screen-boundary-container"]}`,
|
|
605
624
|
style: { ...boundaryContainerSize },
|
|
606
625
|
children: "\u2B07\uFE0F\uB4DC\uB86D\uD558\uBA74 \uD654\uBA74\uC774 \uBD84\uD560\uB429\uB2C8\uB2E4."
|
|
607
626
|
}
|
|
@@ -633,7 +652,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
633
652
|
layoutRef,
|
|
634
653
|
setIsSplit,
|
|
635
654
|
setDirection
|
|
636
|
-
} =
|
|
655
|
+
} = (0, import_useFlexLayoutSplitScreen.useFlexLayoutSplitScreen)({
|
|
637
656
|
isSplitInitial: false,
|
|
638
657
|
directionInitial: "row",
|
|
639
658
|
parentDirection,
|
|
@@ -641,26 +660,31 @@ function FlexLayoutSplitScreenChild({
|
|
|
641
660
|
parentLayoutName,
|
|
642
661
|
layoutName
|
|
643
662
|
});
|
|
644
|
-
const [isEmptyContent, setIsEmptyContent] =
|
|
645
|
-
const [activeIndex, setActiveIndex] =
|
|
646
|
-
const centerDropTargetComponentRef =
|
|
647
|
-
const
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
663
|
+
const [isEmptyContent, setIsEmptyContent] = (0, import_react.useState)(false);
|
|
664
|
+
const [activeIndex, setActiveIndex] = (0, import_react.useState)(0);
|
|
665
|
+
const centerDropTargetComponentRef = (0, import_react.useRef)(centerDropTargetComponent);
|
|
666
|
+
const initialCenterRef = (0, import_react.useRef)(
|
|
667
|
+
initialCenterComponents ?? []
|
|
668
|
+
);
|
|
669
|
+
const activeIndexRef = (0, import_react.useRef)(activeIndex);
|
|
670
|
+
(0, import_react.useEffect)(() => {
|
|
671
|
+
const storeKey = `${layoutName}=${screenKey}`;
|
|
672
|
+
const subscribe = (0, import_FlexLayoutContainerStore.getSplitScreen)(rootName, storeKey).pipe((0, import_rxjs.take)(1)).subscribe((layoutInfo) => {
|
|
673
|
+
if (layoutInfo) return;
|
|
674
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(rootName, storeKey, {
|
|
675
|
+
afterDropTargetComponent: [],
|
|
676
|
+
beforeDropTargetComponent: [],
|
|
677
|
+
centerDropTargetComponent: initialCenterRef.current,
|
|
678
|
+
direction
|
|
655
679
|
});
|
|
656
680
|
});
|
|
657
681
|
return () => {
|
|
658
|
-
|
|
682
|
+
(0, import_FlexLayoutContainerStore.removeSplitScreenChild)(rootName, `${layoutName}=${screenKey}`);
|
|
659
683
|
subscribe.unsubscribe();
|
|
660
684
|
};
|
|
661
|
-
}, [rootName, layoutName,
|
|
662
|
-
|
|
663
|
-
const subscribe =
|
|
685
|
+
}, [rootName, layoutName, screenKey]);
|
|
686
|
+
(0, import_react.useEffect)(() => {
|
|
687
|
+
const subscribe = (0, import_FlexLayoutContainerStore.getSplitScreen)(rootName, `${layoutName}=${screenKey}`).subscribe((layoutInfo) => {
|
|
664
688
|
if (layoutInfo) {
|
|
665
689
|
setBeforeDropTargetComponent([
|
|
666
690
|
...layoutInfo.beforeDropTargetComponent
|
|
@@ -675,7 +699,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
675
699
|
if (layoutInfo.beforeDropTargetComponent.length !== 0 || layoutInfo.afterDropTargetComponent.length !== 0) {
|
|
676
700
|
setIsSplit(true);
|
|
677
701
|
} else if (layoutInfo.beforeDropTargetComponent.length === 0 && layoutInfo.centerDropTargetComponent.length === 0 && layoutInfo.afterDropTargetComponent.length === 0) {
|
|
678
|
-
|
|
702
|
+
import_useDrag.dropMovementEventSubject.next({
|
|
679
703
|
state: "remove",
|
|
680
704
|
targetContainerName: containerName,
|
|
681
705
|
targetParentLayoutName: "",
|
|
@@ -687,11 +711,12 @@ function FlexLayoutSplitScreenChild({
|
|
|
687
711
|
});
|
|
688
712
|
return () => {
|
|
689
713
|
subscribe.unsubscribe();
|
|
714
|
+
(0, import_FlexLayoutContainerStore.removeRootSplitScreen)(layoutName);
|
|
690
715
|
};
|
|
691
716
|
}, [rootName, layoutName]);
|
|
692
|
-
|
|
693
|
-
const subscribe =
|
|
694
|
-
|
|
717
|
+
(0, import_react.useEffect)(() => {
|
|
718
|
+
const subscribe = import_useDrag.dropMovementEventSubject.pipe(
|
|
719
|
+
(0, import_rxjs.distinctUntilChanged)((prev, curr) => {
|
|
695
720
|
const filterChildren = (obj) => {
|
|
696
721
|
const {
|
|
697
722
|
children,
|
|
@@ -703,7 +728,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
703
728
|
} = obj || {};
|
|
704
729
|
return rest;
|
|
705
730
|
};
|
|
706
|
-
return
|
|
731
|
+
return (0, import_fast_deep_equal.default)(filterChildren(prev), filterChildren(curr));
|
|
707
732
|
})
|
|
708
733
|
).subscribe((event) => {
|
|
709
734
|
if (event.state === "remove") {
|
|
@@ -725,11 +750,11 @@ function FlexLayoutSplitScreenChild({
|
|
|
725
750
|
dropDocumentOutsideOption: event.dropTargetComponentEvent?.dropDocumentOutsideOption,
|
|
726
751
|
screenKey: event.dropTargetComponentEvent.screenKey
|
|
727
752
|
});
|
|
728
|
-
|
|
753
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(
|
|
729
754
|
rootName,
|
|
730
755
|
`${layoutName}=${screenKey}`,
|
|
731
756
|
{
|
|
732
|
-
...
|
|
757
|
+
...(0, import_FlexLayoutContainerStore.getCurrentSplitScreenComponents)(
|
|
733
758
|
rootName,
|
|
734
759
|
`${layoutName}=${screenKey}`
|
|
735
760
|
) || {
|
|
@@ -750,7 +775,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
750
775
|
);
|
|
751
776
|
}
|
|
752
777
|
};
|
|
753
|
-
const currentComponents =
|
|
778
|
+
const currentComponents = (0, import_FlexLayoutContainerStore.getCurrentSplitScreenComponents)(
|
|
754
779
|
rootName,
|
|
755
780
|
`${layoutName}=${screenKey}`
|
|
756
781
|
);
|
|
@@ -769,7 +794,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
769
794
|
event.targetContainerName,
|
|
770
795
|
() => removeCallback("center")
|
|
771
796
|
);
|
|
772
|
-
|
|
797
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(
|
|
773
798
|
rootName,
|
|
774
799
|
`${layoutName}=${screenKey}`,
|
|
775
800
|
{
|
|
@@ -807,7 +832,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
807
832
|
targetLayoutName === layoutName && targetComponent
|
|
808
833
|
) {
|
|
809
834
|
if (dropDirection === parentDirection && orderName !== "center") {
|
|
810
|
-
|
|
835
|
+
import_useDrag.dropMovementEventSubject.next({
|
|
811
836
|
state: "append",
|
|
812
837
|
targetContainerName,
|
|
813
838
|
targetParentLayoutName: "",
|
|
@@ -846,11 +871,11 @@ function FlexLayoutSplitScreenChild({
|
|
|
846
871
|
centerDropTargetComponent,
|
|
847
872
|
dropDocumentOutsideOption
|
|
848
873
|
});
|
|
849
|
-
|
|
874
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(
|
|
850
875
|
rootName,
|
|
851
876
|
`${layoutName}=${screenKey}`,
|
|
852
877
|
{
|
|
853
|
-
...
|
|
878
|
+
...(0, import_FlexLayoutContainerStore.getCurrentSplitScreenComponents)(
|
|
854
879
|
rootName,
|
|
855
880
|
`${layoutName}=${screenKey}`
|
|
856
881
|
) || {
|
|
@@ -887,40 +912,40 @@ function FlexLayoutSplitScreenChild({
|
|
|
887
912
|
afterDropTargetComponent,
|
|
888
913
|
centerDropTargetComponent
|
|
889
914
|
]);
|
|
890
|
-
|
|
915
|
+
(0, import_react.useEffect)(() => {
|
|
891
916
|
centerDropTargetComponentRef.current = centerDropTargetComponent;
|
|
892
917
|
}, [centerDropTargetComponent]);
|
|
893
|
-
|
|
918
|
+
(0, import_react.useEffect)(() => {
|
|
894
919
|
activeIndexRef.current = activeIndex;
|
|
895
920
|
}, [activeIndex]);
|
|
896
|
-
const [isOnlyOneScreen, setIsOnlyOneScreen] =
|
|
897
|
-
return /* @__PURE__ */
|
|
921
|
+
const [isOnlyOneScreen, setIsOnlyOneScreen] = (0, import_react.useState)(false);
|
|
922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: !isEmptyContent && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
898
923
|
"div",
|
|
899
924
|
{
|
|
900
|
-
className: `${
|
|
925
|
+
className: `${import_FlexLayout.default["flex-split-screen"]}`,
|
|
901
926
|
ref: layoutRef,
|
|
902
927
|
children: [
|
|
903
|
-
/* @__PURE__ */
|
|
904
|
-
|
|
928
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
929
|
+
import_FlexLayout2.default,
|
|
905
930
|
{
|
|
906
931
|
direction,
|
|
907
932
|
layoutName: `${layoutName}`,
|
|
908
933
|
panelMovementMode: "bulldozer",
|
|
909
934
|
children: [
|
|
910
|
-
beforeDropTargetComponent.length != 0 ? /* @__PURE__ */
|
|
935
|
+
beforeDropTargetComponent.length != 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: beforeDropTargetComponent.map(
|
|
911
936
|
({
|
|
912
937
|
containerName: cName,
|
|
913
938
|
component,
|
|
914
939
|
navigationTitle,
|
|
915
940
|
dropDocumentOutsideOption,
|
|
916
941
|
screenKey: screenKey2
|
|
917
|
-
}, i) => /* @__PURE__ */
|
|
918
|
-
|
|
942
|
+
}, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
943
|
+
import_FlexLayoutContainer.default,
|
|
919
944
|
{
|
|
920
945
|
containerName: cName,
|
|
921
946
|
isInitialResizable: true,
|
|
922
947
|
isResizePanel: true,
|
|
923
|
-
children: /* @__PURE__ */
|
|
948
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
924
949
|
FlexLayoutSplitScreenChild,
|
|
925
950
|
{
|
|
926
951
|
parentDirection: direction,
|
|
@@ -945,14 +970,14 @@ function FlexLayoutSplitScreenChild({
|
|
|
945
970
|
},
|
|
946
971
|
cName
|
|
947
972
|
)
|
|
948
|
-
) }) : /* @__PURE__ */
|
|
949
|
-
centerDropTargetComponent.length != 0 ? /* @__PURE__ */
|
|
950
|
-
|
|
973
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
|
|
974
|
+
centerDropTargetComponent.length != 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
975
|
+
import_FlexLayoutContainer.default,
|
|
951
976
|
{
|
|
952
977
|
containerName: `${(centerDropTargetComponent[activeIndex] || centerDropTargetComponent[0]).containerName}`,
|
|
953
978
|
isInitialResizable: true,
|
|
954
979
|
isResizePanel: isSplit,
|
|
955
|
-
children: isSplit ? /* @__PURE__ */
|
|
980
|
+
children: isSplit ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "data-key": screenKey, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
956
981
|
FlexLayoutSplitScreenChild,
|
|
957
982
|
{
|
|
958
983
|
parentDirection: direction,
|
|
@@ -979,37 +1004,37 @@ function FlexLayoutSplitScreenChild({
|
|
|
979
1004
|
screenKey,
|
|
980
1005
|
rootName
|
|
981
1006
|
}
|
|
982
|
-
) }) : /* @__PURE__ */
|
|
983
|
-
|
|
1007
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
1008
|
+
import_FlexLayoutSplitScreenScrollBox.default,
|
|
984
1009
|
{
|
|
985
1010
|
keyName: (centerDropTargetComponent[activeIndex] || centerDropTargetComponent[0]).containerName,
|
|
986
1011
|
isDefaultScrollStyle: true,
|
|
987
1012
|
children: [
|
|
988
|
-
!isOnlyOneScreen && /* @__PURE__ */
|
|
1013
|
+
!isOnlyOneScreen && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
989
1014
|
"div",
|
|
990
1015
|
{
|
|
991
|
-
className: `${
|
|
992
|
-
children: /* @__PURE__ */
|
|
1016
|
+
className: `${import_FlexLayout.default["flex-split-screen-drag-box-title-wrapper-sticky"]}`,
|
|
1017
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
993
1018
|
"div",
|
|
994
1019
|
{
|
|
995
1020
|
"data-is_split": isSplit,
|
|
996
1021
|
"data-layout_name": layoutName,
|
|
997
1022
|
"data-parent_layout_name": parentLayoutName,
|
|
998
1023
|
"data-container_name": `${(centerDropTargetComponent[activeIndex] || centerDropTargetComponent[0]).containerName}`,
|
|
999
|
-
className: `${
|
|
1024
|
+
className: `${import_FlexLayout.default["flex-split-screen-drag-box-title-wrapper"]}`,
|
|
1000
1025
|
children: [
|
|
1001
|
-
/* @__PURE__ */
|
|
1002
|
-
|
|
1026
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1027
|
+
import_FlexLayoutSplitScreenDragBoxContainer.default,
|
|
1003
1028
|
{
|
|
1004
1029
|
"data-layout_name": layoutName,
|
|
1005
1030
|
layoutName,
|
|
1006
1031
|
children: centerDropTargetComponent.map(
|
|
1007
|
-
(item, index) => /* @__PURE__ */
|
|
1008
|
-
|
|
1032
|
+
(item, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1033
|
+
import_FlexLayoutSplitScreenDragBoxItem.default,
|
|
1009
1034
|
{
|
|
1010
1035
|
onClose: (ev) => {
|
|
1011
1036
|
if (activeIndexRef.current === index && centerDropTargetComponent.length === 1) {
|
|
1012
|
-
|
|
1037
|
+
import_useDrag.dropMovementEventSubject.next(
|
|
1013
1038
|
{
|
|
1014
1039
|
state: "remove",
|
|
1015
1040
|
targetContainerName: containerName,
|
|
@@ -1025,21 +1050,40 @@ function FlexLayoutSplitScreenChild({
|
|
|
1025
1050
|
}
|
|
1026
1051
|
setCenterDropTargetComponent(
|
|
1027
1052
|
(prev) => {
|
|
1028
|
-
const
|
|
1053
|
+
const next = handleRemove(
|
|
1029
1054
|
prev,
|
|
1030
1055
|
item.containerName,
|
|
1031
1056
|
() => {
|
|
1032
1057
|
}
|
|
1033
1058
|
);
|
|
1034
|
-
|
|
1059
|
+
const key = `${layoutName}=${screenKey}`;
|
|
1060
|
+
const current = (0, import_FlexLayoutContainerStore.getCurrentSplitScreenComponents)(
|
|
1061
|
+
rootName,
|
|
1062
|
+
key
|
|
1063
|
+
) || {
|
|
1064
|
+
afterDropTargetComponent,
|
|
1065
|
+
beforeDropTargetComponent,
|
|
1066
|
+
centerDropTargetComponent: prev,
|
|
1067
|
+
direction
|
|
1068
|
+
};
|
|
1069
|
+
(0, import_FlexLayoutContainerStore.setSplitScreen)(
|
|
1070
|
+
rootName,
|
|
1071
|
+
key,
|
|
1072
|
+
{
|
|
1073
|
+
...current,
|
|
1074
|
+
centerDropTargetComponent: next
|
|
1075
|
+
}
|
|
1076
|
+
);
|
|
1077
|
+
return next;
|
|
1035
1078
|
}
|
|
1036
1079
|
);
|
|
1037
1080
|
}
|
|
1038
1081
|
},
|
|
1039
1082
|
isActive: activeIndex === index,
|
|
1040
|
-
children: /* @__PURE__ */
|
|
1041
|
-
|
|
1083
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1084
|
+
import_FlexLayoutSplitScreenDragBox.default,
|
|
1042
1085
|
{
|
|
1086
|
+
screenKey: item.screenKey,
|
|
1043
1087
|
onClick: () => {
|
|
1044
1088
|
setActiveIndex(
|
|
1045
1089
|
index
|
|
@@ -1103,7 +1147,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
1103
1147
|
}
|
|
1104
1148
|
}
|
|
1105
1149
|
if (index === 0) {
|
|
1106
|
-
|
|
1150
|
+
import_useDrag.dropMovementEventSubject.next(
|
|
1107
1151
|
{
|
|
1108
1152
|
state: "remove",
|
|
1109
1153
|
targetContainerName: item.containerName,
|
|
@@ -1113,7 +1157,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
1113
1157
|
}
|
|
1114
1158
|
);
|
|
1115
1159
|
} else {
|
|
1116
|
-
|
|
1160
|
+
import_useDrag.dropMovementEventSubject.next(
|
|
1117
1161
|
{
|
|
1118
1162
|
state: "remove",
|
|
1119
1163
|
targetContainerName: item.containerName,
|
|
@@ -1135,7 +1179,7 @@ function FlexLayoutSplitScreenChild({
|
|
|
1135
1179
|
},
|
|
1136
1180
|
layoutName
|
|
1137
1181
|
),
|
|
1138
|
-
/* @__PURE__ */
|
|
1182
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_FlexLayoutSplitScreenDragBoxTitleMore.default, {})
|
|
1139
1183
|
]
|
|
1140
1184
|
}
|
|
1141
1185
|
)
|
|
@@ -1150,21 +1194,21 @@ function FlexLayoutSplitScreenChild({
|
|
|
1150
1194
|
)
|
|
1151
1195
|
},
|
|
1152
1196
|
(centerDropTargetComponent[activeIndex] || centerDropTargetComponent[0]).containerName
|
|
1153
|
-
) }) : /* @__PURE__ */
|
|
1154
|
-
afterDropTargetComponent.length != 0 ? /* @__PURE__ */
|
|
1197
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {}),
|
|
1198
|
+
afterDropTargetComponent.length != 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: afterDropTargetComponent.map(
|
|
1155
1199
|
({
|
|
1156
1200
|
containerName: cName,
|
|
1157
1201
|
component,
|
|
1158
1202
|
navigationTitle,
|
|
1159
1203
|
dropDocumentOutsideOption,
|
|
1160
1204
|
screenKey: screenKey2
|
|
1161
|
-
}, i) => /* @__PURE__ */
|
|
1162
|
-
|
|
1205
|
+
}, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1206
|
+
import_FlexLayoutContainer.default,
|
|
1163
1207
|
{
|
|
1164
1208
|
containerName: cName,
|
|
1165
1209
|
isInitialResizable: true,
|
|
1166
1210
|
isResizePanel: i !== afterDropTargetComponent.length - 1,
|
|
1167
|
-
children: /* @__PURE__ */
|
|
1211
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1168
1212
|
FlexLayoutSplitScreenChild,
|
|
1169
1213
|
{
|
|
1170
1214
|
parentDirection: direction,
|
|
@@ -1189,14 +1233,14 @@ function FlexLayoutSplitScreenChild({
|
|
|
1189
1233
|
},
|
|
1190
1234
|
cName
|
|
1191
1235
|
)
|
|
1192
|
-
) }) : /* @__PURE__ */
|
|
1236
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {})
|
|
1193
1237
|
]
|
|
1194
1238
|
}
|
|
1195
1239
|
),
|
|
1196
|
-
boundaryContainerSize && /* @__PURE__ */
|
|
1240
|
+
boundaryContainerSize && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
1197
1241
|
"div",
|
|
1198
1242
|
{
|
|
1199
|
-
className: `${
|
|
1243
|
+
className: `${import_FlexLayout.default["flex-split-screen-boundary-container"]}`,
|
|
1200
1244
|
style: { ...boundaryContainerSize },
|
|
1201
1245
|
children: "\u2B07\uFE0F\uB4DC\uB86D\uD558\uBA74 \uD654\uBA74\uC774 \uBD84\uD560\uB429\uB2C8\uB2E4."
|
|
1202
1246
|
}
|
|
@@ -1205,7 +1249,4 @@ function FlexLayoutSplitScreenChild({
|
|
|
1205
1249
|
}
|
|
1206
1250
|
) });
|
|
1207
1251
|
}
|
|
1208
|
-
|
|
1209
|
-
module.exports = FlexLayoutSplitScreen;
|
|
1210
|
-
//# sourceMappingURL=FlexLayoutSplitScreen.cjs.map
|
|
1211
1252
|
//# sourceMappingURL=FlexLayoutSplitScreen.cjs.map
|