@floegence/floe-webapp-core 0.36.74 → 0.36.75
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/app/ActivityAppsMain.d.ts +2 -0
- package/dist/app/ActivityAppsMain.js +15 -12
- package/dist/components/layout/ActivityBar.js +1 -1
- package/dist/components/layout/KeepAliveStack.d.ts +2 -0
- package/dist/components/layout/KeepAliveStack.js +109 -96
- package/dist/components/layout/Shell.d.ts +2 -0
- package/dist/components/layout/Shell.js +167 -139
- package/dist/components/ui/Tabs.js +102 -103
- package/dist/full.js +59 -57
- package/dist/index.js +58 -56
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/uiFirstSelection.d.ts +29 -0
- package/dist/utils/uiFirstSelection.js +66 -0
- package/package.json +1 -1
|
@@ -1,113 +1,129 @@
|
|
|
1
|
-
import { createComponent as
|
|
2
|
-
import { createSignal as
|
|
3
|
-
import { useLayout as
|
|
4
|
-
import { useResolvedFloeConfig as
|
|
5
|
-
import { useMediaQuery as
|
|
6
|
-
import { useOverlayMask as
|
|
1
|
+
import { createComponent as a, Dynamic as L, insert as c, memo as O, effect as z, className as S, setAttribute as $, setStyleProperty as ae, template as k, use as le, delegateEvents as se } from "solid-js/web";
|
|
2
|
+
import { createSignal as Q, batch as de, createEffect as I, createMemo as M, For as W, Show as y } from "solid-js";
|
|
3
|
+
import { useLayout as ce } from "../../context/LayoutContext.js";
|
|
4
|
+
import { useResolvedFloeConfig as be } from "../../context/FloeConfigContext.js";
|
|
5
|
+
import { useMediaQuery as ue } from "../../hooks/useMediaQuery.js";
|
|
6
|
+
import { useOverlayMask as me } from "../../hooks/useOverlayMask.js";
|
|
7
7
|
import { cn as C } from "../../utils/cn.js";
|
|
8
|
-
import { deferAfterPaint as
|
|
9
|
-
import { useComponentRegistry as
|
|
10
|
-
import { Sidebar as
|
|
11
|
-
import { TopBar as
|
|
12
|
-
import { TopBarIconButton as
|
|
13
|
-
import { BottomBar as
|
|
14
|
-
import { MobileTabBar as
|
|
15
|
-
import { ActivityBar as
|
|
16
|
-
import { ResizeHandle as
|
|
17
|
-
import { resolveMobileTabActiveId as
|
|
18
|
-
import { KeepAliveStack as
|
|
19
|
-
import { resolveShellSidebarActiveTabChange as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
import { deferAfterPaint as fe, deferNonBlocking as ve } from "../../utils/defer.js";
|
|
9
|
+
import { useComponentRegistry as ge } from "../../context/ComponentRegistry.js";
|
|
10
|
+
import { Sidebar as he } from "./Sidebar.js";
|
|
11
|
+
import { TopBar as Se } from "./TopBar.js";
|
|
12
|
+
import { TopBarIconButton as ye } from "./TopBarIconButton.js";
|
|
13
|
+
import { BottomBar as Ce } from "./BottomBar.js";
|
|
14
|
+
import { MobileTabBar as Ie } from "./MobileTabBar.js";
|
|
15
|
+
import { ActivityBar as Me } from "./ActivityBar.js";
|
|
16
|
+
import { ResizeHandle as K } from "./ResizeHandle.js";
|
|
17
|
+
import { resolveMobileTabActiveId as we, resolveMobileTabSelect as Be } from "./mobileTabs.js";
|
|
18
|
+
import { KeepAliveStack as Ae } from "./KeepAliveStack.js";
|
|
19
|
+
import { resolveShellSidebarActiveTabChange as ke } from "./sidebarVisibilityMotion.js";
|
|
20
|
+
import { createUIFirstSelection as xe } from "../../utils/uiFirstSelection.js";
|
|
21
|
+
var U = /* @__PURE__ */ k('<div class="flex items-center gap-2">'), Te = /* @__PURE__ */ k("<div data-floe-shell-slot=mobile-sidebar-backdrop>"), pe = /* @__PURE__ */ k('<div data-floe-shell-slot=mobile-sidebar-drawer tabindex=-1 role=dialog aria-modal=true><div class="h-full overflow-auto overscroll-contain">'), Ne = /* @__PURE__ */ k("<div data-floe-shell-slot=terminal-panel style=border-top-color:var(--terminal-panel-border)>"), Le = /* @__PURE__ */ k('<div data-floe-shell><a></a><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>');
|
|
22
|
+
function Ye(r) {
|
|
23
|
+
const i = ce(), H = be(), d = ue(H.config.layout.mobileQuery), [x, h] = Q(!1), [V, R] = Q(null);
|
|
24
|
+
let F;
|
|
25
|
+
const b = () => r.sidebarMode === "hidden", s = (() => {
|
|
25
26
|
try {
|
|
26
|
-
return
|
|
27
|
+
return ge();
|
|
27
28
|
} catch {
|
|
28
29
|
return null;
|
|
29
30
|
}
|
|
30
|
-
})(),
|
|
31
|
-
const l =
|
|
31
|
+
})(), T = (e, o) => {
|
|
32
|
+
const l = s?.getComponent(e)?.sidebar?.fullScreen ?? !1, {
|
|
32
33
|
openSidebar: n,
|
|
33
34
|
visibilityMotion: u
|
|
34
|
-
} =
|
|
35
|
+
} = ke({
|
|
35
36
|
currentActiveId: i.sidebarActiveTab(),
|
|
36
37
|
nextActiveId: e,
|
|
37
|
-
requestedOpenSidebar:
|
|
38
|
+
requestedOpenSidebar: o?.openSidebar,
|
|
38
39
|
sidebarHidden: b(),
|
|
39
40
|
nextActiveFullScreen: l,
|
|
40
|
-
isMobile:
|
|
41
|
+
isMobile: d(),
|
|
41
42
|
resolveSidebarVisibilityMotion: r.resolveSidebarVisibilityMotion
|
|
42
43
|
});
|
|
43
44
|
i.setSidebarActiveTab(e, {
|
|
44
45
|
openSidebar: n,
|
|
45
46
|
visibilityMotion: u
|
|
46
47
|
});
|
|
48
|
+
}, p = xe({
|
|
49
|
+
committed: i.sidebarActiveTab,
|
|
50
|
+
commit: (e, o) => {
|
|
51
|
+
de(() => {
|
|
52
|
+
T(e, o?.opts), typeof o?.mobileSidebarOpen == "boolean" && h(o.mobileSidebarOpen);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}), N = () => r.activitySelectionMode === "ui-first" ? p.visual() : i.sidebarActiveTab(), j = (e, o) => {
|
|
56
|
+
if (r.activitySelectionMode === "ui-first") {
|
|
57
|
+
p.request(e, {
|
|
58
|
+
opts: o
|
|
59
|
+
});
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
T(e, o);
|
|
47
63
|
};
|
|
48
64
|
I(() => {
|
|
49
|
-
b() &&
|
|
65
|
+
b() && h(!1);
|
|
50
66
|
}), I(() => {
|
|
51
|
-
const e =
|
|
67
|
+
const e = d();
|
|
52
68
|
i.isMobile() !== e && i.setIsMobile(e);
|
|
53
69
|
}), I(() => {
|
|
54
|
-
|
|
70
|
+
d() || h(!1);
|
|
55
71
|
}), I(() => {
|
|
56
|
-
const e = i.sidebarVisibilityMotion(),
|
|
57
|
-
e === "instant" &&
|
|
72
|
+
const e = i.sidebarVisibilityMotion(), o = i.sidebarVisibilityMotionRevision();
|
|
73
|
+
e === "instant" && fe(() => i.clearSidebarVisibilityMotion(o));
|
|
58
74
|
});
|
|
59
|
-
const
|
|
75
|
+
const w = M(() => r.activityItems ? r.activityItems : s ? s.sidebarItems().filter((e) => !!e.icon).filter((e) => !(d() && e.sidebar?.hiddenOnMobile)).map((e) => ({
|
|
60
76
|
id: e.id,
|
|
61
77
|
icon: e.icon,
|
|
62
78
|
label: e.name,
|
|
63
79
|
badge: e.sidebar?.badge,
|
|
64
80
|
collapseBehavior: e.sidebar?.collapseBehavior ?? (e.sidebar?.fullScreen ? "preserve" : "toggle")
|
|
65
|
-
})) : []),
|
|
81
|
+
})) : []), G = M(() => b() ? [] : r.sidebarContent ? [] : s ? s.sidebarItems().filter((e) => !(d() && e.sidebar?.hiddenOnMobile)).filter((e) => e.sidebar?.fullScreen !== !0 && e.sidebar?.renderIn !== "main").map((e) => ({
|
|
66
82
|
id: e.id,
|
|
67
|
-
render: () =>
|
|
83
|
+
render: () => a(L, {
|
|
68
84
|
get component() {
|
|
69
85
|
return e.component;
|
|
70
86
|
}
|
|
71
87
|
})
|
|
72
|
-
})) : []),
|
|
88
|
+
})) : []), E = (e) => {
|
|
73
89
|
if (!b()) {
|
|
74
90
|
if (r.sidebarContent) return r.sidebarContent(e);
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
91
|
+
if (s)
|
|
92
|
+
return a(Ae, {
|
|
77
93
|
get views() {
|
|
78
|
-
return
|
|
94
|
+
return G();
|
|
79
95
|
},
|
|
80
96
|
activeId: e
|
|
81
97
|
});
|
|
82
98
|
}
|
|
83
|
-
},
|
|
99
|
+
}, P = M(() => b() ? !0 : s ? s.getComponent(i.sidebarActiveTab())?.sidebar?.fullScreen ?? !1 : !1), J = M(() => {
|
|
84
100
|
if (b()) return !0;
|
|
85
|
-
if (!
|
|
86
|
-
const e =
|
|
101
|
+
if (!s) return !1;
|
|
102
|
+
const e = s.getComponent(i.sidebarActiveTab());
|
|
87
103
|
return e?.sidebar ? e.sidebar.fullScreen === !0 || e.sidebar.renderIn === "main" : !1;
|
|
88
104
|
});
|
|
89
105
|
I(() => {
|
|
90
|
-
|
|
106
|
+
d() && P() && h(!1);
|
|
91
107
|
});
|
|
92
|
-
const
|
|
108
|
+
const X = M(() => {
|
|
93
109
|
if (r.bottomBarItems) return r.bottomBarItems;
|
|
94
|
-
if (!
|
|
95
|
-
const e = [...
|
|
110
|
+
if (!s) return;
|
|
111
|
+
const e = [...s.statusBarItems()].sort((n, u) => (n.order ?? 100) - (u.order ?? 100)), o = e.filter((n) => n.position === "left"), l = e.filter((n) => n.position === "right");
|
|
96
112
|
return [(() => {
|
|
97
|
-
var n =
|
|
98
|
-
return c(n,
|
|
99
|
-
each:
|
|
100
|
-
children: (u) =>
|
|
113
|
+
var n = U();
|
|
114
|
+
return c(n, a(W, {
|
|
115
|
+
each: o,
|
|
116
|
+
children: (u) => a(L, {
|
|
101
117
|
get component() {
|
|
102
118
|
return u.component;
|
|
103
119
|
}
|
|
104
120
|
})
|
|
105
121
|
})), n;
|
|
106
122
|
})(), (() => {
|
|
107
|
-
var n =
|
|
108
|
-
return c(n,
|
|
123
|
+
var n = U();
|
|
124
|
+
return c(n, a(W, {
|
|
109
125
|
each: l,
|
|
110
|
-
children: (u) =>
|
|
126
|
+
children: (u) => a(L, {
|
|
111
127
|
get component() {
|
|
112
128
|
return u.component;
|
|
113
129
|
}
|
|
@@ -116,44 +132,53 @@ function Ke(r) {
|
|
|
116
132
|
})()];
|
|
117
133
|
});
|
|
118
134
|
I(() => {
|
|
119
|
-
const e =
|
|
135
|
+
const e = w();
|
|
120
136
|
if (!e.length) return;
|
|
121
137
|
if (!i.sidebarActiveTab()) {
|
|
122
138
|
const l = e.find((n) => !n.onClick);
|
|
123
139
|
if (!l) return;
|
|
124
|
-
|
|
140
|
+
T(l.id);
|
|
125
141
|
}
|
|
126
142
|
});
|
|
127
|
-
const
|
|
128
|
-
const
|
|
143
|
+
const _ = (e) => {
|
|
144
|
+
const o = b() ? !0 : s?.getComponent(e)?.sidebar?.fullScreen ?? !1, {
|
|
129
145
|
nextActiveId: l,
|
|
130
146
|
nextMobileSidebarOpen: n
|
|
131
|
-
} =
|
|
147
|
+
} = Be({
|
|
132
148
|
clickedId: e,
|
|
133
149
|
activeId: i.sidebarActiveTab(),
|
|
134
|
-
mobileSidebarOpen:
|
|
135
|
-
clickedIsFullScreen:
|
|
150
|
+
mobileSidebarOpen: x(),
|
|
151
|
+
clickedIsFullScreen: o
|
|
136
152
|
});
|
|
137
|
-
i.sidebarActiveTab() !== l
|
|
138
|
-
|
|
153
|
+
if (i.sidebarActiveTab() !== l) {
|
|
154
|
+
if (r.activitySelectionMode === "ui-first") {
|
|
155
|
+
p.request(l, {
|
|
156
|
+
mobileSidebarOpen: n
|
|
157
|
+
});
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
T(l);
|
|
161
|
+
}
|
|
162
|
+
h(n);
|
|
163
|
+
}, Y = (e) => {
|
|
139
164
|
if (e.onClick) {
|
|
140
|
-
|
|
165
|
+
ve(() => e.onClick());
|
|
141
166
|
return;
|
|
142
167
|
}
|
|
143
|
-
|
|
144
|
-
},
|
|
168
|
+
_(e.id);
|
|
169
|
+
}, Z = M(() => {
|
|
145
170
|
const e = r.topBarActions;
|
|
146
|
-
if (!
|
|
171
|
+
if (!d() || (r.activityBottomItemsMobileMode ?? "hidden") !== "topBar") return e;
|
|
147
172
|
const l = r.activityBottomItems ?? [];
|
|
148
|
-
return l.length ? [
|
|
173
|
+
return l.length ? [a(W, {
|
|
149
174
|
each: l,
|
|
150
|
-
children: (n) =>
|
|
175
|
+
children: (n) => a(ye, {
|
|
151
176
|
get label() {
|
|
152
177
|
return n.label;
|
|
153
178
|
},
|
|
154
|
-
onClick: () =>
|
|
179
|
+
onClick: () => Y(n),
|
|
155
180
|
get children() {
|
|
156
|
-
return
|
|
181
|
+
return a(L, {
|
|
157
182
|
get component() {
|
|
158
183
|
return n.icon;
|
|
159
184
|
},
|
|
@@ -162,18 +187,18 @@ function Ke(r) {
|
|
|
162
187
|
}
|
|
163
188
|
})
|
|
164
189
|
}), e] : e;
|
|
165
|
-
}),
|
|
166
|
-
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
const e =
|
|
171
|
-
e !== null && (i.setSidebarWidth(e),
|
|
190
|
+
}), ee = () => b() ? !0 : i.sidebarCollapsed(), te = () => V() ?? i.sidebarWidth(), v = () => H.config.accessibility, re = () => {
|
|
191
|
+
R(i.sidebarWidth());
|
|
192
|
+
}, ie = (e) => {
|
|
193
|
+
R((o) => i.clampSidebarWidth((o ?? i.sidebarWidth()) + e));
|
|
194
|
+
}, ne = () => {
|
|
195
|
+
const e = V();
|
|
196
|
+
e !== null && (i.setSidebarWidth(e), R(null));
|
|
172
197
|
};
|
|
173
|
-
|
|
174
|
-
open: () =>
|
|
175
|
-
root: () =>
|
|
176
|
-
onClose: () =>
|
|
198
|
+
me({
|
|
199
|
+
open: () => d() && x() && !b(),
|
|
200
|
+
root: () => F,
|
|
201
|
+
onClose: () => h(!1),
|
|
177
202
|
lockBodyScroll: !0,
|
|
178
203
|
trapFocus: !0,
|
|
179
204
|
closeOnEscape: !0,
|
|
@@ -183,7 +208,7 @@ function Ke(r) {
|
|
|
183
208
|
autoFocus: !1,
|
|
184
209
|
restoreFocus: !0
|
|
185
210
|
});
|
|
186
|
-
const
|
|
211
|
+
const oe = () => {
|
|
187
212
|
if (typeof document > "u") return;
|
|
188
213
|
const e = document.getElementById(v().mainContentId);
|
|
189
214
|
if (!(!e || !(e instanceof HTMLElement)))
|
|
@@ -193,13 +218,13 @@ function Ke(r) {
|
|
|
193
218
|
}
|
|
194
219
|
};
|
|
195
220
|
return (() => {
|
|
196
|
-
var e =
|
|
197
|
-
return
|
|
221
|
+
var e = Le(), o = e.firstChild, l = o.nextSibling, n = l.firstChild, u = n.firstChild;
|
|
222
|
+
return o.$$click = () => oe(), c(o, () => v().skipLinkLabel), c(e, a(Se, {
|
|
198
223
|
get logo() {
|
|
199
224
|
return r.logo;
|
|
200
225
|
},
|
|
201
226
|
get actions() {
|
|
202
|
-
return
|
|
227
|
+
return Z();
|
|
203
228
|
},
|
|
204
229
|
get ariaLabel() {
|
|
205
230
|
return v().topBarLabel;
|
|
@@ -207,32 +232,32 @@ function Ke(r) {
|
|
|
207
232
|
get class() {
|
|
208
233
|
return r.slotClassNames?.topBar;
|
|
209
234
|
}
|
|
210
|
-
}), l), c(l,
|
|
235
|
+
}), l), c(l, a(y, {
|
|
211
236
|
get when() {
|
|
212
|
-
return !
|
|
237
|
+
return !d();
|
|
213
238
|
},
|
|
214
239
|
get children() {
|
|
215
|
-
return [
|
|
240
|
+
return [a(y, {
|
|
216
241
|
get when() {
|
|
217
|
-
return
|
|
242
|
+
return w().length > 0;
|
|
218
243
|
},
|
|
219
244
|
get children() {
|
|
220
|
-
return
|
|
245
|
+
return a(Me, {
|
|
221
246
|
get items() {
|
|
222
|
-
return
|
|
247
|
+
return w();
|
|
223
248
|
},
|
|
224
249
|
get bottomItems() {
|
|
225
250
|
return r.activityBottomItems;
|
|
226
251
|
},
|
|
227
252
|
get activeId() {
|
|
228
|
-
return
|
|
253
|
+
return N();
|
|
229
254
|
},
|
|
230
|
-
onActiveChange:
|
|
255
|
+
onActiveChange: j,
|
|
231
256
|
get collapsed() {
|
|
232
|
-
return
|
|
257
|
+
return ee();
|
|
233
258
|
},
|
|
234
259
|
get onCollapsedChange() {
|
|
235
|
-
return
|
|
260
|
+
return O(() => !!b())() ? void 0 : i.setSidebarCollapsed;
|
|
236
261
|
},
|
|
237
262
|
get ariaLabel() {
|
|
238
263
|
return v().primaryNavigationLabel;
|
|
@@ -242,17 +267,17 @@ function Ke(r) {
|
|
|
242
267
|
}
|
|
243
268
|
});
|
|
244
269
|
}
|
|
245
|
-
}),
|
|
270
|
+
}), a(y, {
|
|
246
271
|
get when() {
|
|
247
272
|
return !b();
|
|
248
273
|
},
|
|
249
274
|
get children() {
|
|
250
|
-
return
|
|
275
|
+
return a(he, {
|
|
251
276
|
get width() {
|
|
252
|
-
return
|
|
277
|
+
return te();
|
|
253
278
|
},
|
|
254
279
|
get collapsed() {
|
|
255
|
-
return i.sidebarCollapsed() ||
|
|
280
|
+
return i.sidebarCollapsed() || P();
|
|
256
281
|
},
|
|
257
282
|
get visibilityMotion() {
|
|
258
283
|
return i.sidebarVisibilityMotion();
|
|
@@ -261,65 +286,65 @@ function Ke(r) {
|
|
|
261
286
|
return v().sidebarLabel;
|
|
262
287
|
},
|
|
263
288
|
get resizer() {
|
|
264
|
-
return
|
|
289
|
+
return a(K, {
|
|
265
290
|
direction: "horizontal",
|
|
266
|
-
onResize:
|
|
267
|
-
onResizeStart:
|
|
268
|
-
onResizeEnd:
|
|
291
|
+
onResize: ie,
|
|
292
|
+
onResizeStart: re,
|
|
293
|
+
onResizeEnd: ne
|
|
269
294
|
});
|
|
270
295
|
},
|
|
271
296
|
get class() {
|
|
272
297
|
return r.slotClassNames?.sidebar;
|
|
273
298
|
},
|
|
274
299
|
get children() {
|
|
275
|
-
return
|
|
300
|
+
return E(i.sidebarActiveTab());
|
|
276
301
|
}
|
|
277
302
|
});
|
|
278
303
|
}
|
|
279
304
|
})];
|
|
280
305
|
}
|
|
281
|
-
}), n), c(l,
|
|
306
|
+
}), n), c(l, a(y, {
|
|
282
307
|
get when() {
|
|
283
|
-
return
|
|
308
|
+
return O(() => !!(d() && x()))() && !b();
|
|
284
309
|
},
|
|
285
310
|
get children() {
|
|
286
311
|
return [(() => {
|
|
287
|
-
var t =
|
|
288
|
-
return t.$$click = () =>
|
|
312
|
+
var t = Te();
|
|
313
|
+
return t.$$click = () => h(!1), z(() => S(t, C("absolute inset-0 z-40 bg-black/30 cursor-pointer", r.slotClassNames?.mobileSidebarBackdrop))), t;
|
|
289
314
|
})(), (() => {
|
|
290
|
-
var t =
|
|
291
|
-
return typeof g == "function" ?
|
|
292
|
-
var
|
|
293
|
-
return
|
|
315
|
+
var t = pe(), m = t.firstChild, g = F;
|
|
316
|
+
return typeof g == "function" ? le(g, t) : F = t, c(m, () => E(i.sidebarActiveTab())), z((f) => {
|
|
317
|
+
var B = C("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", r.slotClassNames?.mobileSidebarDrawer), A = v().sidebarLabel;
|
|
318
|
+
return B !== f.e && S(t, f.e = B), A !== f.t && $(t, "aria-label", f.t = A), f;
|
|
294
319
|
}, {
|
|
295
320
|
e: void 0,
|
|
296
321
|
t: void 0
|
|
297
322
|
}), t;
|
|
298
323
|
})()];
|
|
299
324
|
}
|
|
300
|
-
}), n), c(u, () => r.children), c(n,
|
|
325
|
+
}), n), c(u, () => r.children), c(n, a(y, {
|
|
301
326
|
get when() {
|
|
302
|
-
return
|
|
327
|
+
return O(() => !!(!d() && i.terminalOpened()))() && r.terminalPanel;
|
|
303
328
|
},
|
|
304
329
|
get children() {
|
|
305
|
-
var t =
|
|
306
|
-
return c(t,
|
|
330
|
+
var t = Ne();
|
|
331
|
+
return c(t, a(K, {
|
|
307
332
|
direction: "vertical",
|
|
308
333
|
onResize: (m) => i.setTerminalHeight(i.terminalHeight() - m)
|
|
309
|
-
}), null), c(t, () => r.terminalPanel, null),
|
|
334
|
+
}), null), c(t, () => r.terminalPanel, null), z((m) => {
|
|
310
335
|
var g = C("relative shrink-0 border-t border-border bg-terminal-background overflow-hidden", r.slotClassNames?.terminalPanel), f = `${i.terminalHeight()}px`;
|
|
311
|
-
return g !== m.e &&
|
|
336
|
+
return g !== m.e && S(t, m.e = g), f !== m.t && ae(t, "height", m.t = f), m;
|
|
312
337
|
}, {
|
|
313
338
|
e: void 0,
|
|
314
339
|
t: void 0
|
|
315
340
|
}), t;
|
|
316
341
|
}
|
|
317
|
-
}), null), c(e,
|
|
342
|
+
}), null), c(e, a(y, {
|
|
318
343
|
get when() {
|
|
319
|
-
return !
|
|
344
|
+
return !d();
|
|
320
345
|
},
|
|
321
346
|
get children() {
|
|
322
|
-
return
|
|
347
|
+
return a(Ce, {
|
|
323
348
|
get class() {
|
|
324
349
|
return r.slotClassNames?.bottomBar;
|
|
325
350
|
},
|
|
@@ -327,28 +352,31 @@ function Ke(r) {
|
|
|
327
352
|
return r.slotClassNames?.bottomBarHeight;
|
|
328
353
|
},
|
|
329
354
|
get children() {
|
|
330
|
-
return
|
|
355
|
+
return X();
|
|
331
356
|
}
|
|
332
357
|
});
|
|
333
358
|
}
|
|
334
|
-
}), null), c(e,
|
|
359
|
+
}), null), c(e, a(y, {
|
|
335
360
|
get when() {
|
|
336
|
-
return
|
|
361
|
+
return O(() => !!d())() && w().length > 0;
|
|
337
362
|
},
|
|
338
363
|
get children() {
|
|
339
|
-
return
|
|
364
|
+
return a(Ie, {
|
|
340
365
|
get items() {
|
|
341
|
-
return
|
|
366
|
+
return w();
|
|
342
367
|
},
|
|
343
368
|
get activeId() {
|
|
344
|
-
return
|
|
345
|
-
activeId:
|
|
346
|
-
mobileSidebarOpen:
|
|
347
|
-
activeIsFullScreen:
|
|
348
|
-
activeIsPage:
|
|
369
|
+
return we({
|
|
370
|
+
activeId: N(),
|
|
371
|
+
mobileSidebarOpen: p.pending() ? !0 : x(),
|
|
372
|
+
activeIsFullScreen: s?.getComponent(N())?.sidebar?.fullScreen ?? P(),
|
|
373
|
+
activeIsPage: (() => {
|
|
374
|
+
const t = s?.getComponent(N())?.sidebar;
|
|
375
|
+
return t ? t.fullScreen === !0 || t.renderIn === "main" : J();
|
|
376
|
+
})()
|
|
349
377
|
});
|
|
350
378
|
},
|
|
351
|
-
onSelect:
|
|
379
|
+
onSelect: _,
|
|
352
380
|
get ariaLabel() {
|
|
353
381
|
return v().mobileNavigationLabel;
|
|
354
382
|
},
|
|
@@ -357,7 +385,7 @@ function Ke(r) {
|
|
|
357
385
|
}
|
|
358
386
|
});
|
|
359
387
|
}
|
|
360
|
-
}), null),
|
|
388
|
+
}), null), z((t) => {
|
|
361
389
|
var m = C(
|
|
362
390
|
// Use dvh when supported to avoid mobile browser UI causing layout jumps.
|
|
363
391
|
"h-screen h-[100dvh] w-full flex flex-col overflow-hidden",
|
|
@@ -366,8 +394,8 @@ function Ke(r) {
|
|
|
366
394
|
"overscroll-none",
|
|
367
395
|
r.slotClassNames?.root,
|
|
368
396
|
r.class
|
|
369
|
-
), g = `#${v().mainContentId}`, f = C("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"),
|
|
370
|
-
return m !== t.e &&
|
|
397
|
+
), g = `#${v().mainContentId}`, f = C("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"), B = C("flex-1 min-w-0 flex flex-col overflow-hidden", r.slotClassNames?.contentArea), A = C("flex-1 min-h-0 overflow-auto overscroll-contain", r.slotClassNames?.main), q = v().mainContentId, D = v().mainLabel;
|
|
398
|
+
return m !== t.e && S(e, t.e = m), g !== t.t && $(o, "href", t.t = g), f !== t.a && S(o, t.a = f), B !== t.o && S(n, t.o = B), A !== t.i && S(u, t.i = A), q !== t.n && $(u, "id", t.n = q), D !== t.s && $(u, "aria-label", t.s = D), t;
|
|
371
399
|
}, {
|
|
372
400
|
e: void 0,
|
|
373
401
|
t: void 0,
|
|
@@ -379,7 +407,7 @@ function Ke(r) {
|
|
|
379
407
|
}), e;
|
|
380
408
|
})();
|
|
381
409
|
}
|
|
382
|
-
|
|
410
|
+
se(["click"]);
|
|
383
411
|
export {
|
|
384
|
-
|
|
412
|
+
Ye as Shell
|
|
385
413
|
};
|