@byeolnaerim/flex-layout 0.0.9 → 0.0.12
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 +1 -110
- package/dist/flex-layout/components/FlexLayout.d.ts +2 -1
- package/dist/flex-layout/components/FlexLayout.js +1 -85
- package/dist/flex-layout/components/FlexLayoutContainer.cjs +1 -262
- package/dist/flex-layout/components/FlexLayoutContainer.d.ts +1 -1
- package/dist/flex-layout/components/FlexLayoutContainer.js +1 -232
- package/dist/flex-layout/components/FlexLayoutDynamicHeight.cjs +1 -0
- package/dist/flex-layout/components/FlexLayoutDynamicHeight.d.ts +6 -0
- package/dist/flex-layout/components/FlexLayoutDynamicHeight.js +1 -0
- package/dist/flex-layout/components/FlexLayoutIFramePane.cjs +1 -68
- package/dist/flex-layout/components/FlexLayoutIFramePane.js +1 -44
- package/dist/flex-layout/components/FlexLayoutResizePanel.cjs +1 -246
- package/dist/flex-layout/components/FlexLayoutResizePanel.js +1 -216
- package/dist/flex-layout/components/FlexLayoutSplitScreen.cjs +1 -1252
- package/dist/flex-layout/components/FlexLayoutSplitScreen.d.ts +14 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreen.js +1 -1236
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.cjs +1 -532
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.js +1 -509
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxContainer.cjs +1 -55
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxContainer.js +1 -25
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxItem.cjs +1 -63
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxItem.js +1 -33
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxTitleMore.cjs +1 -53
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxTitleMore.js +1 -23
- package/dist/flex-layout/components/FlexLayoutSplitScreenScrollBox.cjs +1 -133
- package/dist/flex-layout/components/FlexLayoutSplitScreenScrollBox.js +1 -107
- package/dist/flex-layout/components/FlexLayoutStickyBox.cjs +1 -245
- package/dist/flex-layout/components/FlexLayoutStickyBox.js +1 -229
- package/dist/flex-layout/components/index.cjs +1 -57
- package/dist/flex-layout/components/index.d.ts +1 -0
- package/dist/flex-layout/components/index.js +1 -17
- package/dist/flex-layout/hooks/index.cjs +1 -25
- package/dist/flex-layout/hooks/index.js +1 -3
- package/dist/flex-layout/hooks/useDrag.cjs +1 -289
- package/dist/flex-layout/hooks/useDrag.d.ts +15 -0
- package/dist/flex-layout/hooks/useDrag.js +1 -258
- package/dist/flex-layout/hooks/useFlexLayoutSplitScreen.cjs +1 -139
- package/dist/flex-layout/hooks/useFlexLayoutSplitScreen.js +1 -118
- package/dist/flex-layout/hooks/useListPaging.cjs +1 -212
- package/dist/flex-layout/hooks/useListPaging.js +1 -191
- package/dist/flex-layout/hooks/useSizes.cjs +1 -126
- package/dist/flex-layout/hooks/useSizes.d.ts +6 -3
- package/dist/flex-layout/hooks/useSizes.js +1 -101
- package/dist/flex-layout/index.cjs +1 -31
- package/dist/flex-layout/index.js +1 -6
- package/dist/flex-layout/providers/FlexLayoutContext.cjs +1 -49
- package/dist/flex-layout/providers/FlexLayoutContext.js +1 -24
- package/dist/flex-layout/providers/FlexLayoutHooks.cjs +1 -276
- package/dist/flex-layout/providers/FlexLayoutHooks.d.ts +5 -1
- package/dist/flex-layout/providers/FlexLayoutHooks.js +1 -263
- package/dist/flex-layout/providers/index.cjs +1 -23
- package/dist/flex-layout/providers/index.js +1 -2
- package/dist/flex-layout/store/FlexLayoutContainerStore.cjs +1 -257
- package/dist/flex-layout/store/FlexLayoutContainerStore.js +1 -206
- package/dist/flex-layout/store/index.cjs +1 -23
- package/dist/flex-layout/store/index.js +1 -2
- package/dist/flex-layout/styles/FlexLayout.module.css +499 -416
- package/dist/flex-layout/styles/sentinelStyle.module.css +11 -0
- package/dist/flex-layout/types/FlexDirectionTypes.cjs +1 -17
- package/dist/flex-layout/types/FlexDirectionTypes.js +0 -1
- package/dist/flex-layout/types/FlexLayoutTypes.cjs +1 -17
- package/dist/flex-layout/types/FlexLayoutTypes.d.ts +38 -2
- package/dist/flex-layout/types/FlexLayoutTypes.js +0 -1
- package/dist/flex-layout/utils/FlexLayoutUtils.cjs +1 -245
- package/dist/flex-layout/utils/FlexLayoutUtils.js +1 -211
- package/dist/flex-layout/utils/index.cjs +1 -23
- package/dist/flex-layout/utils/index.js +1 -2
- package/dist/index.cjs +1 -23
- package/dist/index.js +1 -2
- package/dist/types/css.d.cjs +0 -1
- package/dist/types/css.d.js +0 -1
- package/package.json +116 -113
- package/dist/flex-layout/components/FlexLayout.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayout.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutContainer.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutContainer.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutIFramePane.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutIFramePane.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutResizePanel.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutResizePanel.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreen.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreen.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBox.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxContainer.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxContainer.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxItem.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxItem.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxTitleMore.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenDragBoxTitleMore.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenScrollBox.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutSplitScreenScrollBox.js.map +0 -1
- package/dist/flex-layout/components/FlexLayoutStickyBox.cjs.map +0 -1
- package/dist/flex-layout/components/FlexLayoutStickyBox.js.map +0 -1
- package/dist/flex-layout/components/index.cjs.map +0 -1
- package/dist/flex-layout/components/index.js.map +0 -1
- package/dist/flex-layout/hooks/index.cjs.map +0 -1
- package/dist/flex-layout/hooks/index.js.map +0 -1
- package/dist/flex-layout/hooks/useDrag.cjs.map +0 -1
- package/dist/flex-layout/hooks/useDrag.js.map +0 -1
- package/dist/flex-layout/hooks/useFlexLayoutSplitScreen.cjs.map +0 -1
- package/dist/flex-layout/hooks/useFlexLayoutSplitScreen.js.map +0 -1
- package/dist/flex-layout/hooks/useListPaging.cjs.map +0 -1
- package/dist/flex-layout/hooks/useListPaging.js.map +0 -1
- package/dist/flex-layout/hooks/useSizes.cjs.map +0 -1
- package/dist/flex-layout/hooks/useSizes.js.map +0 -1
- package/dist/flex-layout/index.cjs.map +0 -1
- package/dist/flex-layout/index.js.map +0 -1
- package/dist/flex-layout/providers/FlexLayoutContext.cjs.map +0 -1
- package/dist/flex-layout/providers/FlexLayoutContext.js.map +0 -1
- package/dist/flex-layout/providers/FlexLayoutHooks.cjs.map +0 -1
- package/dist/flex-layout/providers/FlexLayoutHooks.js.map +0 -1
- package/dist/flex-layout/providers/index.cjs.map +0 -1
- package/dist/flex-layout/providers/index.js.map +0 -1
- package/dist/flex-layout/store/FlexLayoutContainerStore.cjs.map +0 -1
- package/dist/flex-layout/store/FlexLayoutContainerStore.js.map +0 -1
- package/dist/flex-layout/store/index.cjs.map +0 -1
- package/dist/flex-layout/store/index.js.map +0 -1
- package/dist/flex-layout/types/FlexDirectionTypes.cjs.map +0 -1
- package/dist/flex-layout/types/FlexDirectionTypes.js.map +0 -1
- package/dist/flex-layout/types/FlexLayoutTypes.cjs.map +0 -1
- package/dist/flex-layout/types/FlexLayoutTypes.js.map +0 -1
- package/dist/flex-layout/utils/FlexLayoutUtils.cjs.map +0 -1
- package/dist/flex-layout/utils/FlexLayoutUtils.js.map +0 -1
- package/dist/flex-layout/utils/index.cjs.map +0 -1
- package/dist/flex-layout/utils/index.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/metafile-cjs.json +0 -1
- package/dist/metafile-esm.json +0 -1
- package/dist/types/css.d.cjs.map +0 -1
- package/dist/types/css.d.js.map +0 -1
|
@@ -1,206 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import equal from "fast-deep-equal";
|
|
3
|
-
import { BehaviorSubject, combineLatest } from "rxjs";
|
|
4
|
-
import { distinctUntilChanged, filter, map } from "rxjs/operators";
|
|
5
|
-
function updateScrollStore(subject, newValue) {
|
|
6
|
-
const currentValue = subject.getValue();
|
|
7
|
-
if (!equal(currentValue, newValue)) {
|
|
8
|
-
subject.next(newValue);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
function updateSplitScreenStore(newValue) {
|
|
12
|
-
layoutSplitScreenStore.next(newValue);
|
|
13
|
-
}
|
|
14
|
-
const scrollPositions = {};
|
|
15
|
-
const scrollPositionsSubject = new BehaviorSubject(scrollPositions);
|
|
16
|
-
const setScrollPosition = (layoutName, position) => {
|
|
17
|
-
const current = scrollPositionsSubject.getValue();
|
|
18
|
-
const prevPos = current[layoutName];
|
|
19
|
-
if (prevPos && prevPos.x === position.x && prevPos.y === position.y) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const newPositions = {
|
|
23
|
-
...current,
|
|
24
|
-
[layoutName]: position
|
|
25
|
-
};
|
|
26
|
-
updateScrollStore(scrollPositionsSubject, newPositions);
|
|
27
|
-
};
|
|
28
|
-
const getScrollPosition = (layoutName) => {
|
|
29
|
-
return scrollPositionsSubject.pipe(
|
|
30
|
-
// 해당 layoutName이 정의되지 않았을 때는 제외
|
|
31
|
-
filter((e) => e[layoutName] !== void 0),
|
|
32
|
-
map((positions) => positions[layoutName]),
|
|
33
|
-
distinctUntilChanged(
|
|
34
|
-
(prev, curr) => prev?.x === curr?.x && prev?.y === curr?.y
|
|
35
|
-
)
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
const removeScrollPosition = (layoutName) => {
|
|
39
|
-
const current = scrollPositionsSubject.getValue();
|
|
40
|
-
const { [layoutName]: _, ...rest } = current;
|
|
41
|
-
updateScrollStore(scrollPositionsSubject, rest);
|
|
42
|
-
};
|
|
43
|
-
const layoutSplitScreenStore = new BehaviorSubject({});
|
|
44
|
-
const setSplitScreen = (rootName, layoutName, newComponents) => {
|
|
45
|
-
const current = layoutSplitScreenStore.getValue();
|
|
46
|
-
const updatedLayout = { ...current[rootName] || {} };
|
|
47
|
-
updatedLayout[layoutName] = newComponents;
|
|
48
|
-
const newStoreValue = {
|
|
49
|
-
...current,
|
|
50
|
-
[rootName]: updatedLayout
|
|
51
|
-
};
|
|
52
|
-
updateSplitScreenStore(newStoreValue);
|
|
53
|
-
};
|
|
54
|
-
const resetRootSplitScreen = (rootName) => {
|
|
55
|
-
const current = layoutSplitScreenStore.getValue();
|
|
56
|
-
const newStoreValue = {
|
|
57
|
-
...current,
|
|
58
|
-
[rootName]: {}
|
|
59
|
-
};
|
|
60
|
-
updateSplitScreenStore(newStoreValue);
|
|
61
|
-
};
|
|
62
|
-
const removeRootSplitScreen = (rootName) => {
|
|
63
|
-
const current = layoutSplitScreenStore.getValue();
|
|
64
|
-
if (!current[rootName]) return;
|
|
65
|
-
const { [rootName]: _, ...rest } = current;
|
|
66
|
-
updateSplitScreenStore(rest);
|
|
67
|
-
};
|
|
68
|
-
const removeSplitScreenChild = (rootName, layoutName) => {
|
|
69
|
-
const current = layoutSplitScreenStore.getValue();
|
|
70
|
-
if (!current[rootName]) return;
|
|
71
|
-
const updatedLayout = { ...current[rootName] };
|
|
72
|
-
delete updatedLayout[layoutName];
|
|
73
|
-
const newStoreValue = {
|
|
74
|
-
...current,
|
|
75
|
-
[rootName]: updatedLayout
|
|
76
|
-
};
|
|
77
|
-
updateSplitScreenStore(newStoreValue);
|
|
78
|
-
};
|
|
79
|
-
const getCurrentSplitScreenComponents = (rootName, layoutName) => {
|
|
80
|
-
const current = layoutSplitScreenStore.getValue();
|
|
81
|
-
if (!current[rootName]) return;
|
|
82
|
-
return current[rootName][layoutName];
|
|
83
|
-
};
|
|
84
|
-
const getSplitScreen = (rootName, layoutName) => {
|
|
85
|
-
return layoutSplitScreenStore.pipe(
|
|
86
|
-
map((splitScreen) => splitScreen[rootName]?.[layoutName]),
|
|
87
|
-
distinctUntilChanged((prev, curr) => {
|
|
88
|
-
const filterChildren = (obj) => {
|
|
89
|
-
const { children, component, targetComponent, x, y, ...rest } = obj || {};
|
|
90
|
-
return rest;
|
|
91
|
-
};
|
|
92
|
-
return equal(filterChildren(prev), filterChildren(curr));
|
|
93
|
-
})
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
const flexContainerStore = new BehaviorSubject({});
|
|
97
|
-
const flexResizePanelStore = new BehaviorSubject({});
|
|
98
|
-
const setContainerRef = (layoutName, containerName, ref) => {
|
|
99
|
-
const currentRefs = flexContainerStore.getValue();
|
|
100
|
-
const layoutRefs = currentRefs[layoutName] || {};
|
|
101
|
-
if (ref === null) {
|
|
102
|
-
if (!(containerName in layoutRefs)) return;
|
|
103
|
-
const { [containerName]: _, ...restLayout } = layoutRefs;
|
|
104
|
-
const next = Object.keys(restLayout).length === 0 ? (() => {
|
|
105
|
-
const { [layoutName]: __, ...rest } = currentRefs;
|
|
106
|
-
return rest;
|
|
107
|
-
})() : { ...currentRefs, [layoutName]: restLayout };
|
|
108
|
-
flexContainerStore.next(next);
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
if (layoutRefs[containerName] === ref) return;
|
|
112
|
-
flexContainerStore.next({
|
|
113
|
-
...currentRefs,
|
|
114
|
-
[layoutName]: { ...layoutRefs, [containerName]: ref }
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
const setResizePanelRef = (layoutName, containerName, ref) => {
|
|
118
|
-
const currentRefs = flexResizePanelStore.getValue();
|
|
119
|
-
const layoutRefs = currentRefs[layoutName] || {};
|
|
120
|
-
if (ref === null) {
|
|
121
|
-
if (!(containerName in layoutRefs)) return;
|
|
122
|
-
const { [containerName]: _, ...restLayout } = layoutRefs;
|
|
123
|
-
const next = Object.keys(restLayout).length === 0 ? (() => {
|
|
124
|
-
const { [layoutName]: __, ...rest } = currentRefs;
|
|
125
|
-
return rest;
|
|
126
|
-
})() : { ...currentRefs, [layoutName]: restLayout };
|
|
127
|
-
flexResizePanelStore.next(next);
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
if (layoutRefs[containerName] === ref) return;
|
|
131
|
-
flexResizePanelStore.next({
|
|
132
|
-
...currentRefs,
|
|
133
|
-
[layoutName]: { ...layoutRefs, [containerName]: ref }
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
const getLayoutInfos = (layoutName) => {
|
|
137
|
-
return combineLatest([flexContainerStore, flexResizePanelStore]).pipe(
|
|
138
|
-
map(([containerRefs, resizePanelRefs]) => {
|
|
139
|
-
const containerData = containerRefs[layoutName] || {};
|
|
140
|
-
const resizePanelData = resizePanelRefs[layoutName] || {};
|
|
141
|
-
return {
|
|
142
|
-
container: containerData,
|
|
143
|
-
resizePanel: resizePanelData
|
|
144
|
-
};
|
|
145
|
-
}),
|
|
146
|
-
filter(
|
|
147
|
-
(result) => result.container !== null && Object.keys(result.container).length > 0
|
|
148
|
-
)
|
|
149
|
-
// 빈 객체 제외
|
|
150
|
-
);
|
|
151
|
-
};
|
|
152
|
-
const getContainerRef = ({
|
|
153
|
-
containerName,
|
|
154
|
-
layoutName
|
|
155
|
-
}) => {
|
|
156
|
-
return flexContainerStore.pipe(
|
|
157
|
-
map((refs) => {
|
|
158
|
-
if (layoutName) {
|
|
159
|
-
return refs[layoutName]?.[containerName] || null;
|
|
160
|
-
} else {
|
|
161
|
-
return Object.entries(refs).find(
|
|
162
|
-
([key, value]) => refs[key][containerName]
|
|
163
|
-
)?.[1][containerName];
|
|
164
|
-
}
|
|
165
|
-
}),
|
|
166
|
-
filter((ref) => ref !== null)
|
|
167
|
-
);
|
|
168
|
-
};
|
|
169
|
-
const getResizePanelRef = ({
|
|
170
|
-
containerName,
|
|
171
|
-
layoutName
|
|
172
|
-
}) => {
|
|
173
|
-
return flexResizePanelStore.pipe(
|
|
174
|
-
map((refs) => {
|
|
175
|
-
if (layoutName) {
|
|
176
|
-
return refs[layoutName]?.[containerName] || null;
|
|
177
|
-
} else {
|
|
178
|
-
return Object.entries(refs).find(
|
|
179
|
-
([key, value]) => refs[key][containerName]
|
|
180
|
-
)?.[1][containerName];
|
|
181
|
-
}
|
|
182
|
-
}),
|
|
183
|
-
filter((ref) => ref !== null)
|
|
184
|
-
);
|
|
185
|
-
};
|
|
186
|
-
export {
|
|
187
|
-
flexContainerStore,
|
|
188
|
-
flexResizePanelStore,
|
|
189
|
-
getContainerRef,
|
|
190
|
-
getCurrentSplitScreenComponents,
|
|
191
|
-
getLayoutInfos,
|
|
192
|
-
getResizePanelRef,
|
|
193
|
-
getScrollPosition,
|
|
194
|
-
getSplitScreen,
|
|
195
|
-
layoutSplitScreenStore,
|
|
196
|
-
removeRootSplitScreen,
|
|
197
|
-
removeScrollPosition,
|
|
198
|
-
removeSplitScreenChild,
|
|
199
|
-
resetRootSplitScreen,
|
|
200
|
-
scrollPositions,
|
|
201
|
-
setContainerRef,
|
|
202
|
-
setResizePanelRef,
|
|
203
|
-
setScrollPosition,
|
|
204
|
-
setSplitScreen
|
|
205
|
-
};
|
|
206
|
-
//# sourceMappingURL=FlexLayoutContainerStore.js.map
|
|
1
|
+
"use client";import y from"fast-deep-equal/react";import{BehaviorSubject as x,combineLatest as P}from"rxjs";import{distinctUntilChanged as C,filter as a,map as l}from"rxjs/operators";function T(t,e){t.next(e)}function R(t){s.next(t)}const m={},u=new x(m),v=(t,e)=>{const n=u.getValue(),r=n[t];if(r&&r.x===e.x&&r.y===e.y)return;const o={...n,[t]:e};T(u,o)},z=t=>u.pipe(a(e=>e[t]!==void 0),l(e=>e[t]),C((e,n)=>e?.x===n?.x&&e?.y===n?.y)),k=t=>{const e=u.getValue(),{[t]:n,...r}=e;T(u,r)},s=new x({}),E=(t,e,n)=>{const r=s.getValue(),o={...r[t]||{}};o[e]=n;const c={...r,[t]:o};R(c)},H=t=>{const n={...s.getValue(),[t]:{}};R(n)},M=t=>{const e=s.getValue();if(!e[t])return;const{[t]:n,...r}=e;R(r)},B=(t,e)=>{const n=s.getValue();if(!n[t])return;const r={...n[t]};delete r[e];const o={...n,[t]:r};R(o)},q=(t,e)=>{const n=s.getValue();if(n[t])return n[t][e]},I=(t,e)=>s.pipe(l(n=>n[t]?.[e]),C((n,r)=>{const o=c=>{const{children:i,component:S,targetComponent:d,x:f,y:j,...b}=c||{};return b};return y(o(n),o(r))})),p=new x({}),g=new x({}),U=(t,e,n)=>{const r=p.getValue(),o=r[t]||{};if(n===null){if(!(e in o))return;const{[e]:c,...i}=o,S=Object.keys(i).length===0?(()=>{const{[t]:d,...f}=r;return f})():{...r,[t]:i};p.next(S);return}o[e]!==n&&p.next({...r,[t]:{...o,[e]:n}})},A=(t,e,n)=>{const r=g.getValue(),o=r[t]||{};if(n===null){if(!(e in o))return;const{[e]:c,...i}=o,S=Object.keys(i).length===0?(()=>{const{[t]:d,...f}=r;return f})():{...r,[t]:i};g.next(S);return}o[e]!==n&&g.next({...r,[t]:{...o,[e]:n}})},F=t=>P([p,g]).pipe(l(([e,n])=>{const r=e[t]||{},o=n[t]||{};return{container:r,resizePanel:o}}),a(e=>e.container!==null&&Object.keys(e.container).length>0)),G=({containerName:t,layoutName:e})=>p.pipe(l(n=>e?n[e]?.[t]||null:Object.entries(n).find(([r,o])=>n[r][t])?.[1][t]),a(n=>n!==null)),J=({containerName:t,layoutName:e})=>g.pipe(l(n=>e?n[e]?.[t]||null:Object.entries(n).find(([r,o])=>n[r][t])?.[1][t]),a(n=>n!==null));export{p as flexContainerStore,g as flexResizePanelStore,G as getContainerRef,q as getCurrentSplitScreenComponents,F as getLayoutInfos,J as getResizePanelRef,z as getScrollPosition,I as getSplitScreen,s as layoutSplitScreenStore,M as removeRootSplitScreen,k as removeScrollPosition,B as removeSplitScreenChild,H as resetRootSplitScreen,m as scrollPositions,U as setContainerRef,A as setResizePanelRef,v as setScrollPosition,E as setSplitScreen};
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var store_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(store_exports);
|
|
18
|
-
__reExport(store_exports, require("./FlexLayoutContainerStore"), module.exports);
|
|
19
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
-
0 && (module.exports = {
|
|
21
|
-
...require("./FlexLayoutContainerStore")
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./FlexLayoutContainerStore"),module.exports);0&&(module.exports={...require("./FlexLayoutContainerStore")});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export*from"./FlexLayoutContainerStore";
|