@floegence/floe-webapp-core 0.79.0 → 0.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat.css +12 -5
- package/dist/components/chat/blocks/MarkdownMedia.js +51 -51
- package/dist/components/layout/Shell.js +143 -137
- package/dist/components/ui/Button.js +40 -33
- package/dist/components/ui/StableText.d.ts +9 -0
- package/dist/components/ui/StableText.js +32 -0
- package/dist/components/ui/StatusRegion.d.ts +8 -0
- package/dist/components/ui/StatusRegion.js +24 -0
- package/dist/components/ui/index.d.ts +2 -0
- package/dist/full.js +240 -234
- package/dist/hooks/createRetainedContent.d.ts +7 -0
- package/dist/hooks/createRetainedContent.js +15 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.js +66 -64
- package/dist/styles.css +1 -1
- package/dist/ui.js +61 -57
- package/package.json +1 -1
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { createComponent as
|
|
2
|
-
import { createSignal as M, onMount as He, onCleanup as Ee, createEffect as A, batch as Ve, createMemo as x, For as J, Show as
|
|
1
|
+
import { createComponent as r, Dynamic as V, insert as d, use as j, effect as B, setStyleProperty as G, memo as P, className as k, setAttribute as w, mergeProps as ze, template as h, delegateEvents as Fe } from "solid-js/web";
|
|
2
|
+
import { createSignal as M, onMount as He, onCleanup as Ee, createEffect as A, batch as Ve, createMemo as x, For as J, Show as g } from "solid-js";
|
|
3
3
|
import { observeViewport as _e } from "../../viewport.js";
|
|
4
4
|
import { useLayout as De } from "../../context/LayoutContext.js";
|
|
5
5
|
import { useResolvedFloeConfig as qe } from "../../context/FloeConfigContext.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { createRetainedContent as Ke } from "../../hooks/createRetainedContent.js";
|
|
7
|
+
import { createAdaptiveSidebar as Ue } from "../../hooks/createAdaptiveSidebar.js";
|
|
8
|
+
import { useResizeObserver as je } from "../../hooks/useResizeObserver.js";
|
|
9
|
+
import { Dialog as Ge } from "../ui/Dialog.js";
|
|
10
|
+
import { DialogPlacementProvider as Je } from "../ui/DialogPlacementContext.js";
|
|
11
|
+
import { useOverlayMask as Qe } from "../../hooks/useOverlayMask.js";
|
|
11
12
|
import { cn as I } from "../../utils/cn.js";
|
|
12
|
-
import { deferAfterPaint as
|
|
13
|
-
import { useComponentRegistry as
|
|
14
|
-
import { Sidebar as
|
|
15
|
-
import { TopBar as
|
|
16
|
-
import { TopBarIconButton as
|
|
17
|
-
import { BottomBar as
|
|
18
|
-
import { MobileTabBar as
|
|
19
|
-
import { MobileNavigationPanel as
|
|
20
|
-
import { ActivityBar as
|
|
13
|
+
import { deferAfterPaint as Xe, deferNonBlocking as Ye } from "../../utils/defer.js";
|
|
14
|
+
import { useComponentRegistry as Ze } from "../../context/ComponentRegistry.js";
|
|
15
|
+
import { Sidebar as et } from "./Sidebar.js";
|
|
16
|
+
import { TopBar as tt } from "./TopBar.js";
|
|
17
|
+
import { TopBarIconButton as it } from "./TopBarIconButton.js";
|
|
18
|
+
import { BottomBar as rt } from "./BottomBar.js";
|
|
19
|
+
import { MobileTabBar as nt } from "./MobileTabBar.js";
|
|
20
|
+
import { MobileNavigationPanel as ot } from "./MobileNavigationPanel.js";
|
|
21
|
+
import { ActivityBar as at } from "./ActivityBar.js";
|
|
21
22
|
import { ResizeHandle as se } from "./ResizeHandle.js";
|
|
22
|
-
import { resolveMobileTabActiveId as
|
|
23
|
-
import { KeepAliveStack as
|
|
24
|
-
import { resolveShellSidebarActiveTabChange as
|
|
25
|
-
import { createUIFirstSelection as
|
|
26
|
-
var de = /* @__PURE__ */
|
|
27
|
-
function
|
|
23
|
+
import { resolveMobileTabActiveId as lt, resolveMobileTabSelect as st } from "./mobileTabs.js";
|
|
24
|
+
import { KeepAliveStack as dt } from "./KeepAliveStack.js";
|
|
25
|
+
import { resolveShellSidebarActiveTabChange as ct } from "./sidebarVisibilityMotion.js";
|
|
26
|
+
import { createUIFirstSelection as bt } from "../../utils/uiFirstSelection.js";
|
|
27
|
+
var de = /* @__PURE__ */ h('<div class="flex items-center gap-2">'), ut = /* @__PURE__ */ h('<div class="h-full min-h-0 overflow-auto">'), mt = /* @__PURE__ */ h('<div class="flex shrink-0 min-h-0">'), ft = /* @__PURE__ */ h('<div class="h-full min-h-0"style=max-width:100%>'), vt = /* @__PURE__ */ h("<div data-floe-shell-slot=mobile-sidebar-backdrop>"), gt = /* @__PURE__ */ h('<div data-floe-shell-slot=mobile-sidebar-drawer tabindex=-1 role=dialog aria-modal=true><div class="h-full overflow-auto overscroll-contain">'), ht = /* @__PURE__ */ h("<div data-floe-shell-slot=terminal-panel style=border-top-color:var(--terminal-panel-border)>"), St = /* @__PURE__ */ h('<div data-floe-shell-slot=mobile-accessory class="relative shrink-0">'), yt = /* @__PURE__ */ h('<div data-floe-shell><a></a><div class="relative flex min-h-0 flex-1 flex-col overflow-hidden"data-floe-shell-slot=mobile-content-boundary><div data-floe-shell-slot=main-layout class="flex-1 min-h-0 flex overflow-hidden relative"><div data-floe-shell-slot=content-area><main data-floe-shell-slot=main tabindex=-1>');
|
|
28
|
+
function Ut(i) {
|
|
28
29
|
const [ce, be] = M(!1);
|
|
29
30
|
He(() => {
|
|
30
31
|
Ee(_e(window, (e) => be(e.keyboardOpen)));
|
|
31
32
|
});
|
|
32
|
-
const
|
|
33
|
+
const o = De(), ue = qe(), l = o.isMobile, [me, fe] = M(), [ve, ge] = M(), he = je(ve), p = /* @__PURE__ */ new Map(), [_, W] = M(!1), [Se, ye] = M(!1), Ce = Ue({
|
|
33
34
|
container: me,
|
|
34
|
-
sidebarWidth: () => (D() ??
|
|
35
|
+
sidebarWidth: () => (D() ?? o.sidebarWidth()) + (he()?.width ?? 0),
|
|
35
36
|
minContentWidth: () => i.sidebarMinContentWidth ?? 0
|
|
36
37
|
}), S = () => !l() && !!i.sidebarMinContentWidth && !u() && Ce() === "overlay";
|
|
37
38
|
A(() => {
|
|
38
|
-
(!S() || N()) &&
|
|
39
|
+
(!S() || N()) && W(!1);
|
|
39
40
|
});
|
|
40
41
|
const [L, y] = M(!1), [$, we] = M(!1);
|
|
41
42
|
let Q;
|
|
@@ -47,16 +48,16 @@ function qt(i) {
|
|
|
47
48
|
let K;
|
|
48
49
|
const u = () => i.sidebarMode === "hidden", c = (() => {
|
|
49
50
|
try {
|
|
50
|
-
return
|
|
51
|
+
return Ze();
|
|
51
52
|
} catch {
|
|
52
53
|
return null;
|
|
53
54
|
}
|
|
54
55
|
})(), z = (e, a) => {
|
|
55
56
|
const s = c?.getComponent(e)?.sidebar?.fullScreen ?? !1, {
|
|
56
|
-
openSidebar:
|
|
57
|
+
openSidebar: n,
|
|
57
58
|
visibilityMotion: b
|
|
58
|
-
} =
|
|
59
|
-
currentActiveId:
|
|
59
|
+
} = ct({
|
|
60
|
+
currentActiveId: o.sidebarActiveTab(),
|
|
60
61
|
nextActiveId: e,
|
|
61
62
|
requestedOpenSidebar: a?.openSidebar,
|
|
62
63
|
sidebarHidden: u(),
|
|
@@ -64,24 +65,24 @@ function qt(i) {
|
|
|
64
65
|
isMobile: l(),
|
|
65
66
|
resolveSidebarVisibilityMotion: i.resolveSidebarVisibilityMotion
|
|
66
67
|
});
|
|
67
|
-
S() ? (
|
|
68
|
+
S() ? (p.get(e)?.focus({
|
|
68
69
|
preventScroll: !0
|
|
69
|
-
}),
|
|
70
|
+
}), o.setSidebarActiveTab(e, {
|
|
70
71
|
openSidebar: !1,
|
|
71
72
|
visibilityMotion: b
|
|
72
|
-
}),
|
|
73
|
-
openSidebar:
|
|
73
|
+
}), W(!s)) : o.setSidebarActiveTab(e, {
|
|
74
|
+
openSidebar: n,
|
|
74
75
|
visibilityMotion: b
|
|
75
76
|
});
|
|
76
|
-
}, F =
|
|
77
|
-
committed:
|
|
77
|
+
}, F = bt({
|
|
78
|
+
committed: o.sidebarActiveTab,
|
|
78
79
|
commit: (e, a) => {
|
|
79
80
|
Ve(() => {
|
|
80
81
|
z(e, a?.opts), typeof a?.mobileSidebarOpen == "boolean" && y(a.mobileSidebarOpen);
|
|
81
82
|
});
|
|
82
83
|
},
|
|
83
84
|
onEvent: (e) => i.onActivitySelectionEvent?.(e)
|
|
84
|
-
}), H = () => i.activitySelectionMode === "ui-first" ? F.visual() :
|
|
85
|
+
}), H = () => i.activitySelectionMode === "ui-first" ? F.visual() : o.sidebarActiveTab(), ke = (e, a) => {
|
|
85
86
|
if (i.activitySelectionMode === "ui-first") {
|
|
86
87
|
F.request(e, {
|
|
87
88
|
source: "activity-bar",
|
|
@@ -96,8 +97,8 @@ function qt(i) {
|
|
|
96
97
|
}), A(() => {
|
|
97
98
|
l() || y(!1);
|
|
98
99
|
}), A(() => {
|
|
99
|
-
const e =
|
|
100
|
-
e === "instant" &&
|
|
100
|
+
const e = o.sidebarVisibilityMotion(), a = o.sidebarVisibilityMotionRevision();
|
|
101
|
+
e === "instant" && Xe(() => o.clearSidebarVisibilityMotion(a));
|
|
101
102
|
});
|
|
102
103
|
const T = x(() => i.activityItems ? i.activityItems : c ? c.sidebarItems().filter((e) => !!e.icon).filter((e) => !(l() && e.sidebar?.hiddenOnMobile)).map((e) => ({
|
|
103
104
|
id: e.id,
|
|
@@ -108,19 +109,19 @@ function qt(i) {
|
|
|
108
109
|
})) : []), Ae = x(() => T().map((e) => ({
|
|
109
110
|
...e,
|
|
110
111
|
buttonRef: (a) => {
|
|
111
|
-
a ?
|
|
112
|
+
a ? p.set(e.id, a) : p.delete(e.id), e.buttonRef?.(a);
|
|
112
113
|
},
|
|
113
114
|
...S() && !e.onClick ? {
|
|
114
|
-
ariaExpanded: () => _() &&
|
|
115
|
+
ariaExpanded: () => _() && o.sidebarActiveTab() === e.id,
|
|
115
116
|
ariaHasPopup: "dialog"
|
|
116
117
|
} : {}
|
|
117
118
|
}))), xe = (e) => {
|
|
118
|
-
S() ? (e ||
|
|
119
|
+
S() ? (e || p.get(o.sidebarActiveTab())?.focus({
|
|
119
120
|
preventScroll: !0
|
|
120
|
-
}),
|
|
121
|
+
}), W(!e)) : o.setSidebarCollapsed(e);
|
|
121
122
|
}, Ie = x(() => u() ? [] : i.sidebarContent ? [] : c ? c.sidebarItems().filter((e) => !(l() && e.sidebar?.hiddenOnMobile)).filter((e) => e.sidebar?.fullScreen !== !0 && e.sidebar?.renderIn !== "main").map((e) => ({
|
|
122
123
|
id: e.id,
|
|
123
|
-
render: () =>
|
|
124
|
+
render: () => r(V, {
|
|
124
125
|
get component() {
|
|
125
126
|
return e.component;
|
|
126
127
|
}
|
|
@@ -129,17 +130,17 @@ function qt(i) {
|
|
|
129
130
|
if (!u()) {
|
|
130
131
|
if (i.sidebarContent) return i.sidebarContent(e);
|
|
131
132
|
if (c)
|
|
132
|
-
return
|
|
133
|
+
return r(dt, {
|
|
133
134
|
get views() {
|
|
134
135
|
return Ie();
|
|
135
136
|
},
|
|
136
137
|
activeId: e
|
|
137
138
|
});
|
|
138
139
|
}
|
|
139
|
-
}, N = x(() => u() ? !0 : c ? c.getComponent(
|
|
140
|
+
}, N = x(() => u() ? !0 : c ? c.getComponent(o.sidebarActiveTab())?.sidebar?.fullScreen ?? !1 : !1), Pe = x(() => {
|
|
140
141
|
if (u()) return !0;
|
|
141
142
|
if (!c) return !1;
|
|
142
|
-
const e = c.getComponent(
|
|
143
|
+
const e = c.getComponent(o.sidebarActiveTab());
|
|
143
144
|
return e?.sidebar ? e.sidebar.fullScreen === !0 || e.sidebar.renderIn === "main" : !1;
|
|
144
145
|
});
|
|
145
146
|
A(() => {
|
|
@@ -148,34 +149,34 @@ function qt(i) {
|
|
|
148
149
|
const Te = x(() => {
|
|
149
150
|
if (i.bottomBarItems) return i.bottomBarItems;
|
|
150
151
|
if (!c) return;
|
|
151
|
-
const e = [...c.statusBarItems()].sort((
|
|
152
|
+
const e = [...c.statusBarItems()].sort((n, b) => (n.order ?? 100) - (b.order ?? 100)), a = e.filter((n) => n.position === "left"), s = e.filter((n) => n.position === "right");
|
|
152
153
|
return [(() => {
|
|
153
|
-
var
|
|
154
|
-
return d(
|
|
154
|
+
var n = de();
|
|
155
|
+
return d(n, r(J, {
|
|
155
156
|
each: a,
|
|
156
|
-
children: (b) =>
|
|
157
|
+
children: (b) => r(V, {
|
|
157
158
|
get component() {
|
|
158
159
|
return b.component;
|
|
159
160
|
}
|
|
160
161
|
})
|
|
161
|
-
})),
|
|
162
|
+
})), n;
|
|
162
163
|
})(), (() => {
|
|
163
|
-
var
|
|
164
|
-
return d(
|
|
164
|
+
var n = de();
|
|
165
|
+
return d(n, r(J, {
|
|
165
166
|
each: s,
|
|
166
|
-
children: (b) =>
|
|
167
|
+
children: (b) => r(V, {
|
|
167
168
|
get component() {
|
|
168
169
|
return b.component;
|
|
169
170
|
}
|
|
170
171
|
})
|
|
171
|
-
})),
|
|
172
|
+
})), n;
|
|
172
173
|
})()];
|
|
173
174
|
});
|
|
174
175
|
A(() => {
|
|
175
176
|
const e = T();
|
|
176
177
|
if (!e.length) return;
|
|
177
|
-
if (!
|
|
178
|
-
const s = e.find((
|
|
178
|
+
if (!o.sidebarActiveTab()) {
|
|
179
|
+
const s = e.find((n) => !n.onClick);
|
|
179
180
|
if (!s) return;
|
|
180
181
|
z(s.id);
|
|
181
182
|
}
|
|
@@ -183,27 +184,27 @@ function qt(i) {
|
|
|
183
184
|
const X = (e) => {
|
|
184
185
|
const a = u() ? !0 : c?.getComponent(e)?.sidebar?.fullScreen ?? !1, {
|
|
185
186
|
nextActiveId: s,
|
|
186
|
-
nextMobileSidebarOpen:
|
|
187
|
-
} =
|
|
187
|
+
nextMobileSidebarOpen: n
|
|
188
|
+
} = st({
|
|
188
189
|
clickedId: e,
|
|
189
|
-
activeId:
|
|
190
|
+
activeId: o.sidebarActiveTab(),
|
|
190
191
|
mobileSidebarOpen: L(),
|
|
191
192
|
clickedIsFullScreen: a
|
|
192
193
|
});
|
|
193
|
-
if (
|
|
194
|
+
if (o.sidebarActiveTab() !== s) {
|
|
194
195
|
if (i.activitySelectionMode === "ui-first") {
|
|
195
196
|
F.request(s, {
|
|
196
197
|
source: "mobile-tab-bar",
|
|
197
|
-
mobileSidebarOpen:
|
|
198
|
+
mobileSidebarOpen: n
|
|
198
199
|
});
|
|
199
200
|
return;
|
|
200
201
|
}
|
|
201
202
|
z(s);
|
|
202
203
|
}
|
|
203
|
-
y(
|
|
204
|
+
y(n);
|
|
204
205
|
}, Ne = (e) => {
|
|
205
206
|
if (e.onClick) {
|
|
206
|
-
|
|
207
|
+
Ye(() => e.onClick());
|
|
207
208
|
return;
|
|
208
209
|
}
|
|
209
210
|
X(e.id);
|
|
@@ -211,32 +212,32 @@ function qt(i) {
|
|
|
211
212
|
const e = i.topBarActions;
|
|
212
213
|
if (!l() || (i.activityBottomItemsMobileMode ?? "hidden") !== "topBar") return e;
|
|
213
214
|
const s = i.activityBottomItems ?? [];
|
|
214
|
-
return s.length ? [
|
|
215
|
+
return s.length ? [r(J, {
|
|
215
216
|
each: s,
|
|
216
|
-
children: (
|
|
217
|
+
children: (n) => r(it, {
|
|
217
218
|
get label() {
|
|
218
|
-
return
|
|
219
|
+
return n.label;
|
|
219
220
|
},
|
|
220
|
-
onClick: () => Ne(
|
|
221
|
+
onClick: () => Ne(n),
|
|
221
222
|
get children() {
|
|
222
|
-
return
|
|
223
|
+
return r(V, {
|
|
223
224
|
get component() {
|
|
224
|
-
return
|
|
225
|
+
return n.icon;
|
|
225
226
|
},
|
|
226
227
|
class: "w-4 h-4"
|
|
227
228
|
});
|
|
228
229
|
}
|
|
229
230
|
})
|
|
230
231
|
}), e] : e;
|
|
231
|
-
}), Re = () => u() || (S() ? !_() :
|
|
232
|
-
q(
|
|
233
|
-
},
|
|
234
|
-
q((a) =>
|
|
232
|
+
}), Re = () => u() || (S() ? !_() : o.sidebarCollapsed()), Y = () => D() ?? o.sidebarWidth(), f = () => ue.config.accessibility, pe = () => {
|
|
233
|
+
q(o.sidebarWidth());
|
|
234
|
+
}, We = (e) => {
|
|
235
|
+
q((a) => o.clampSidebarWidth((a ?? o.sidebarWidth()) + e));
|
|
235
236
|
}, Le = () => {
|
|
236
237
|
const e = D();
|
|
237
|
-
e !== null && (
|
|
238
|
+
e !== null && (o.setSidebarWidth(e), q(null));
|
|
238
239
|
};
|
|
239
|
-
|
|
240
|
+
Qe({
|
|
240
241
|
open: () => l() && L() && !u(),
|
|
241
242
|
root: () => K,
|
|
242
243
|
onClose: () => y(!1),
|
|
@@ -257,18 +258,18 @@ function qt(i) {
|
|
|
257
258
|
e.focus();
|
|
258
259
|
} catch {
|
|
259
260
|
}
|
|
260
|
-
}, U = (() => {
|
|
261
|
-
var e =
|
|
262
|
-
return d(e, () => Be(
|
|
263
|
-
})();
|
|
261
|
+
}, U = Ke(() => (() => {
|
|
262
|
+
var e = ut();
|
|
263
|
+
return d(e, () => Be(o.sidebarActiveTab())), e;
|
|
264
|
+
})());
|
|
264
265
|
return (() => {
|
|
265
|
-
var e =
|
|
266
|
-
return a.$$click = () => $e(), d(a, () => f().skipLinkLabel), d(e,
|
|
266
|
+
var e = yt(), a = e.firstChild, s = a.nextSibling, n = s.firstChild, b = n.firstChild, E = b.firstChild;
|
|
267
|
+
return a.$$click = () => $e(), d(a, () => f().skipLinkLabel), d(e, r(g, {
|
|
267
268
|
get when() {
|
|
268
269
|
return !l() || i.topBarMobileMode !== "hidden";
|
|
269
270
|
},
|
|
270
271
|
get children() {
|
|
271
|
-
return
|
|
272
|
+
return r(tt, {
|
|
272
273
|
get logo() {
|
|
273
274
|
return i.logo;
|
|
274
275
|
},
|
|
@@ -283,18 +284,18 @@ function qt(i) {
|
|
|
283
284
|
}
|
|
284
285
|
});
|
|
285
286
|
}
|
|
286
|
-
}), s), j(fe,
|
|
287
|
+
}), s), j(fe, n), d(n, r(g, {
|
|
287
288
|
get when() {
|
|
288
289
|
return !l();
|
|
289
290
|
},
|
|
290
291
|
get children() {
|
|
291
|
-
return [
|
|
292
|
+
return [r(g, {
|
|
292
293
|
get when() {
|
|
293
294
|
return T().length > 0;
|
|
294
295
|
},
|
|
295
296
|
get children() {
|
|
296
|
-
var t =
|
|
297
|
-
return j(
|
|
297
|
+
var t = mt();
|
|
298
|
+
return j(ge, t), d(t, r(at, {
|
|
298
299
|
get items() {
|
|
299
300
|
return Ae();
|
|
300
301
|
},
|
|
@@ -319,80 +320,85 @@ function qt(i) {
|
|
|
319
320
|
}
|
|
320
321
|
})), t;
|
|
321
322
|
}
|
|
322
|
-
}),
|
|
323
|
+
}), r(g, {
|
|
323
324
|
get when() {
|
|
324
325
|
return !u();
|
|
325
326
|
},
|
|
326
327
|
get children() {
|
|
327
|
-
return
|
|
328
|
+
return r(g, {
|
|
328
329
|
get when() {
|
|
329
|
-
return
|
|
330
|
+
return S();
|
|
330
331
|
},
|
|
331
|
-
get
|
|
332
|
-
return
|
|
332
|
+
get fallback() {
|
|
333
|
+
return r(et, {
|
|
333
334
|
get width() {
|
|
334
335
|
return Y();
|
|
335
336
|
},
|
|
336
337
|
get collapsed() {
|
|
337
|
-
return
|
|
338
|
+
return o.sidebarCollapsed() || N();
|
|
338
339
|
},
|
|
339
340
|
get visibilityMotion() {
|
|
340
|
-
return
|
|
341
|
+
return o.sidebarVisibilityMotion();
|
|
341
342
|
},
|
|
342
343
|
get ariaLabel() {
|
|
343
344
|
return f().sidebarLabel;
|
|
344
345
|
},
|
|
345
346
|
get resizer() {
|
|
346
|
-
return
|
|
347
|
+
return r(se, {
|
|
347
348
|
direction: "horizontal",
|
|
348
|
-
onResize:
|
|
349
|
-
onResizeStart:
|
|
349
|
+
onResize: We,
|
|
350
|
+
onResizeStart: pe,
|
|
350
351
|
onResizeEnd: Le
|
|
351
352
|
});
|
|
352
353
|
},
|
|
353
354
|
get class() {
|
|
354
355
|
return i.slotClassNames?.sidebar;
|
|
355
356
|
},
|
|
356
|
-
children
|
|
357
|
+
get children() {
|
|
358
|
+
return r(U, {});
|
|
359
|
+
}
|
|
357
360
|
});
|
|
358
|
-
}
|
|
359
|
-
}), o(Ge, {
|
|
360
|
-
mode: "auto",
|
|
361
|
+
},
|
|
361
362
|
get children() {
|
|
362
|
-
return
|
|
363
|
-
|
|
364
|
-
return P(() => !!(S() && _()))() && !N();
|
|
365
|
-
},
|
|
366
|
-
onOpenChange: p,
|
|
367
|
-
onPresenceChange: ye,
|
|
368
|
-
presentation: "side-drawer",
|
|
369
|
-
drawerSide: "left",
|
|
370
|
-
get title() {
|
|
371
|
-
return f().sidebarLabel;
|
|
372
|
-
},
|
|
373
|
-
class: "floe-adaptive-shell-sidebar w-fit max-w-[calc(100%-48px)]",
|
|
374
|
-
contentClass: "flex-1 min-h-0 overflow-hidden p-0",
|
|
363
|
+
return r(Je, {
|
|
364
|
+
mode: "auto",
|
|
375
365
|
get children() {
|
|
376
|
-
|
|
377
|
-
|
|
366
|
+
return r(Ge, {
|
|
367
|
+
get open() {
|
|
368
|
+
return P(() => !!(S() && _()))() && !N();
|
|
369
|
+
},
|
|
370
|
+
onOpenChange: W,
|
|
371
|
+
onPresenceChange: ye,
|
|
372
|
+
presentation: "side-drawer",
|
|
373
|
+
drawerSide: "left",
|
|
374
|
+
get title() {
|
|
375
|
+
return f().sidebarLabel;
|
|
376
|
+
},
|
|
377
|
+
class: "floe-adaptive-shell-sidebar w-fit max-w-[calc(100%-48px)]",
|
|
378
|
+
contentClass: "flex-1 min-h-0 overflow-hidden p-0",
|
|
379
|
+
get children() {
|
|
380
|
+
var t = ft();
|
|
381
|
+
return d(t, r(U, {})), B((m) => G(t, "width", `${Y()}px`)), t;
|
|
382
|
+
}
|
|
383
|
+
});
|
|
378
384
|
}
|
|
379
385
|
});
|
|
380
386
|
}
|
|
381
|
-
})
|
|
387
|
+
});
|
|
382
388
|
}
|
|
383
389
|
})];
|
|
384
390
|
}
|
|
385
|
-
}), b), d(
|
|
391
|
+
}), b), d(n, r(g, {
|
|
386
392
|
get when() {
|
|
387
393
|
return P(() => !!(l() && L()))() && !u();
|
|
388
394
|
},
|
|
389
395
|
get children() {
|
|
390
396
|
return [(() => {
|
|
391
|
-
var t =
|
|
397
|
+
var t = vt();
|
|
392
398
|
return t.$$click = () => y(!1), B(() => k(t, I("absolute inset-0 z-40 bg-black/30 cursor-pointer", i.slotClassNames?.mobileSidebarBackdrop))), t;
|
|
393
399
|
})(), (() => {
|
|
394
|
-
var t =
|
|
395
|
-
return typeof C == "function" ? j(C, t) : K = t, d(m, U), B((v) => {
|
|
400
|
+
var t = gt(), m = t.firstChild, C = K;
|
|
401
|
+
return typeof C == "function" ? j(C, t) : K = t, d(m, r(U, {})), B((v) => {
|
|
396
402
|
var O = I("absolute left-0 top-0 bottom-0 z-50", "w-72 max-w-[80vw]", "bg-sidebar border-r border-sidebar-border", "shadow-xl", "animate-in slide-in-from-left duration-200", i.slotClassNames?.mobileSidebarDrawer), R = f().sidebarLabel;
|
|
397
403
|
return O !== v.e && k(t, v.e = O), R !== v.t && w(t, "aria-label", v.t = R), v;
|
|
398
404
|
}, {
|
|
@@ -401,49 +407,49 @@ function qt(i) {
|
|
|
401
407
|
}), t;
|
|
402
408
|
})()];
|
|
403
409
|
}
|
|
404
|
-
}), b), d(E, () => i.children), d(b,
|
|
410
|
+
}), b), d(E, () => i.children), d(b, r(g, {
|
|
405
411
|
get when() {
|
|
406
|
-
return P(() => !!(!l() &&
|
|
412
|
+
return P(() => !!(!l() && o.terminalOpened()))() && i.terminalPanel;
|
|
407
413
|
},
|
|
408
414
|
get children() {
|
|
409
415
|
var t = ht();
|
|
410
|
-
return d(t,
|
|
416
|
+
return d(t, r(se, {
|
|
411
417
|
direction: "vertical",
|
|
412
|
-
onResize: (m) =>
|
|
418
|
+
onResize: (m) => o.setTerminalHeight(o.terminalHeight() - m)
|
|
413
419
|
}), null), d(t, () => i.terminalPanel, null), B((m) => {
|
|
414
|
-
var C = I("relative shrink-0 border-t border-border bg-terminal-background overflow-hidden", i.slotClassNames?.terminalPanel), v = `${
|
|
420
|
+
var C = I("relative shrink-0 border-t border-border bg-terminal-background overflow-hidden", i.slotClassNames?.terminalPanel), v = `${o.terminalHeight()}px`;
|
|
415
421
|
return C !== m.e && k(t, m.e = C), v !== m.t && G(t, "height", m.t = v), m;
|
|
416
422
|
}, {
|
|
417
423
|
e: void 0,
|
|
418
424
|
t: void 0
|
|
419
425
|
}), t;
|
|
420
426
|
}
|
|
421
|
-
}), null), d(s,
|
|
427
|
+
}), null), d(s, r(g, {
|
|
422
428
|
get when() {
|
|
423
429
|
return P(() => !!l())() && i.mobileAccessory;
|
|
424
430
|
},
|
|
425
431
|
get children() {
|
|
426
|
-
var t =
|
|
432
|
+
var t = St();
|
|
427
433
|
return d(t, () => i.mobileAccessory), B(() => t.inert = $()), t;
|
|
428
434
|
}
|
|
429
|
-
}), null), d(s,
|
|
435
|
+
}), null), d(s, r(g, {
|
|
430
436
|
get when() {
|
|
431
437
|
return P(() => !!l())() && i.mobileNavigationPanel;
|
|
432
438
|
},
|
|
433
439
|
get children() {
|
|
434
|
-
return
|
|
440
|
+
return r(ot, ze(() => i.mobileNavigationPanel, {
|
|
435
441
|
navigation: () => Q,
|
|
436
442
|
onPresenceChange: (t) => {
|
|
437
443
|
we(t), i.mobileNavigationPanel?.onPresenceChange?.(t);
|
|
438
444
|
}
|
|
439
445
|
}));
|
|
440
446
|
}
|
|
441
|
-
}), null), d(e,
|
|
447
|
+
}), null), d(e, r(g, {
|
|
442
448
|
get when() {
|
|
443
449
|
return !l();
|
|
444
450
|
},
|
|
445
451
|
get children() {
|
|
446
|
-
return
|
|
452
|
+
return r(rt, {
|
|
447
453
|
get class() {
|
|
448
454
|
return i.slotClassNames?.bottomBar;
|
|
449
455
|
},
|
|
@@ -455,12 +461,12 @@ function qt(i) {
|
|
|
455
461
|
}
|
|
456
462
|
});
|
|
457
463
|
}
|
|
458
|
-
}), null), d(e,
|
|
464
|
+
}), null), d(e, r(g, {
|
|
459
465
|
get when() {
|
|
460
466
|
return P(() => !!l())() && (T().length > 0 || i.mobileNavigationActions?.length);
|
|
461
467
|
},
|
|
462
468
|
get children() {
|
|
463
|
-
return
|
|
469
|
+
return r(nt, {
|
|
464
470
|
ref: (t) => {
|
|
465
471
|
Q = t;
|
|
466
472
|
},
|
|
@@ -474,7 +480,7 @@ function qt(i) {
|
|
|
474
480
|
return T();
|
|
475
481
|
},
|
|
476
482
|
get activeId() {
|
|
477
|
-
return
|
|
483
|
+
return lt({
|
|
478
484
|
activeId: H(),
|
|
479
485
|
mobileSidebarOpen: F.pending() ? !0 : L(),
|
|
480
486
|
activeIsFullScreen: c?.getComponent(H())?.sidebar?.fullScreen ?? N(),
|
|
@@ -504,7 +510,7 @@ function qt(i) {
|
|
|
504
510
|
i.slotClassNames?.root,
|
|
505
511
|
i.class
|
|
506
512
|
), v = `#${f().mainContentId}`, O = I("fixed left-3 top-3 z-[120] rounded-md bg-primary px-3 py-2 text-xs font-medium text-primary-foreground shadow-md", "transition-transform duration-150 motion-reduce:transition-none", "-translate-y-[200%] focus:translate-y-0"), R = $(), Z = $() ? "true" : void 0, ee = i.sidebarMinContentWidth ? "true" : void 0, te = i.sidebarMinContentWidth ? "true" : void 0, ie = S() ? "overlay" : "inline", re = Se(), ne = I("flex-1 min-w-0 flex flex-col overflow-hidden", i.slotClassNames?.contentArea), oe = I("flex-1 min-h-0 overflow-auto overscroll-contain", i.slotClassNames?.main), ae = f().mainContentId, le = f().mainLabel;
|
|
507
|
-
return m !== t.e && G(e, "height", t.e = m), C !== t.t && k(e, t.t = C), v !== t.a && w(a, "href", t.a = v), O !== t.o && k(a, t.o = O), R !== t.i && (
|
|
513
|
+
return m !== t.e && G(e, "height", t.e = m), C !== t.t && k(e, t.t = C), v !== t.a && w(a, "href", t.a = v), O !== t.o && k(a, t.o = O), R !== t.i && (n.inert = t.i = R), Z !== t.n && w(n, "aria-hidden", t.n = Z), ee !== t.s && w(n, "data-floe-dialog-surface-host", t.s = ee), te !== t.h && w(n, "data-floe-surface-portal-layer", t.h = te), ie !== t.r && w(n, "data-floe-shell-sidebar-presentation", t.r = ie), re !== t.d && (b.inert = t.d = re), ne !== t.l && k(b, t.l = ne), oe !== t.u && k(E, t.u = oe), ae !== t.c && w(E, "id", t.c = ae), le !== t.w && w(E, "aria-label", t.w = le), t;
|
|
508
514
|
}, {
|
|
509
515
|
e: void 0,
|
|
510
516
|
t: void 0,
|
|
@@ -525,5 +531,5 @@ function qt(i) {
|
|
|
525
531
|
}
|
|
526
532
|
Fe(["click"]);
|
|
527
533
|
export {
|
|
528
|
-
|
|
534
|
+
Ut as Shell
|
|
529
535
|
};
|