@floegence/floe-webapp-core 0.36.21 → 0.36.23
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.
|
@@ -1,66 +1,122 @@
|
|
|
1
|
-
import { spread as
|
|
2
|
-
import { createMemo as
|
|
3
|
-
import { startHotInteraction as
|
|
4
|
-
import { X as
|
|
5
|
-
import { CANVAS_WHEEL_INTERACTIVE_ATTR as
|
|
6
|
-
import { startPointerSession as
|
|
7
|
-
import { createWorkbenchWidgetSurfaceMetrics as
|
|
8
|
-
import { resolveWorkbenchInteractionAdapter as
|
|
9
|
-
var
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
let _, b,
|
|
14
|
-
const
|
|
15
|
-
const
|
|
1
|
+
import { spread as j, mergeProps as ut, insert as c, createComponent as w, memo as ht, template as K, use as ft, delegateEvents as _t } from "solid-js/web";
|
|
2
|
+
import { createMemo as h, createSignal as p, onCleanup as bt, untrack as f } from "solid-js";
|
|
3
|
+
import { startHotInteraction as mt } from "../../utils/hotInteraction.js";
|
|
4
|
+
import { X as N, Minus as V, Maximize as Z, GripVertical as vt } from "../icons/index.js";
|
|
5
|
+
import { CANVAS_WHEEL_INTERACTIVE_ATTR as St, WORKBENCH_WIDGET_SHELL_ATTR as kt, resolveWorkbenchWidgetLocalTypingTarget as $t, shouldActivateWorkbenchWidgetLocalTarget as yt } from "../ui/localInteractionSurface.js";
|
|
6
|
+
import { startPointerSession as G } from "../ui/pointerSession.js";
|
|
7
|
+
import { createWorkbenchWidgetSurfaceMetrics as It } from "./workbenchHelpers.js";
|
|
8
|
+
import { resolveWorkbenchInteractionAdapter as xt } from "./workbenchInteractionAdapter.js";
|
|
9
|
+
var Mt = /* @__PURE__ */ K('<article class=workbench-widget><header class=workbench-widget__header><span class=workbench-widget__traffic role=group aria-label="Window controls"><button type=button class="workbench-widget__traffic-dot workbench-widget__traffic-dot--close"aria-label="Close widget"title="Close widget"data-floe-canvas-interactive=true></button><button type=button class="workbench-widget__traffic-dot workbench-widget__traffic-dot--min"aria-label="Minimize widget to overview"title="Minimize widget to overview"data-floe-canvas-interactive=true></button><button type=button class="workbench-widget__traffic-dot workbench-widget__traffic-dot--max"aria-label="Zoom widget to fit viewport"title="Zoom widget to fit viewport"data-floe-canvas-interactive=true></button></span><span class=workbench-widget__badge aria-hidden=true></span><button type=button class=workbench-widget__drag aria-label="Drag widget"data-floe-canvas-interactive=true></button><div class=workbench-widget__title-area><span class=workbench-widget__title-dot aria-hidden=true></span><span class=workbench-widget__title></span></div><span class=workbench-widget__window-controls role=group aria-label="Window controls"><button type=button class="workbench-widget__window-control workbench-widget__window-control--min"aria-label="Minimize widget to overview"title="Minimize widget to overview"data-floe-canvas-interactive=true></button><button type=button class="workbench-widget__window-control workbench-widget__window-control--max"aria-label="Zoom widget to fit viewport"title="Zoom widget to fit viewport"data-floe-canvas-interactive=true></button><button type=button class="workbench-widget__window-control workbench-widget__window-control--close"aria-label="Remove widget"title="Remove widget"data-floe-canvas-interactive=true></button></span></header><div class=workbench-widget__body data-floe-canvas-interactive=true>'), Tt = /* @__PURE__ */ K('<div class=workbench-widget__resize aria-label="Resize widget"data-floe-canvas-interactive=true><svg class=workbench-widget__resize-glyph viewBox="0 0 12 12"aria-hidden=true><path d="M12 0 L0 12"></path><path d="M12 4 L4 12"></path><path d="M12 8 L8 12">');
|
|
10
|
+
const Ct = 220, Wt = 160;
|
|
11
|
+
function Pt(t) {
|
|
12
|
+
const d = h(() => xt(t.interactionAdapter)), [S, M] = p(null), [k, T] = p(null), [J, Q] = p();
|
|
13
|
+
let _, b, z = 0, m = null, v = null, s;
|
|
14
|
+
const R = (e, i) => {
|
|
15
|
+
const o = mt({
|
|
16
16
|
kind: e,
|
|
17
17
|
cursor: i
|
|
18
18
|
});
|
|
19
|
-
let
|
|
19
|
+
let a = !1;
|
|
20
20
|
return f(() => t.onLayoutInteractionStart?.()), () => {
|
|
21
|
-
|
|
21
|
+
a || (a = !0, o(), f(() => t.onLayoutInteractionEnd?.()));
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
bt(() => {
|
|
25
25
|
_?.stop({
|
|
26
26
|
reason: "manual_stop",
|
|
27
27
|
commit: !1
|
|
28
28
|
}), _ = void 0, b?.stop({
|
|
29
29
|
reason: "manual_stop",
|
|
30
30
|
commit: !1
|
|
31
|
-
}), b = void 0, f(
|
|
31
|
+
}), b = void 0, f(S)?.stopInteraction(), f(k)?.stopInteraction();
|
|
32
32
|
});
|
|
33
|
-
const
|
|
33
|
+
const A = () => S() !== null, D = () => k() !== null, U = h(() => t.filtered ? "cold" : t.selected ? "hot" : "warm"), L = (e) => d().resolveWidgetEventOwnership({
|
|
34
34
|
target: e,
|
|
35
|
-
widgetRoot:
|
|
36
|
-
interactiveSelector:
|
|
37
|
-
panSurfaceSelector:
|
|
38
|
-
}),
|
|
39
|
-
t.onSelect(t.widgetId), t.onCommitFront(t.widgetId),
|
|
35
|
+
widgetRoot: s ?? null,
|
|
36
|
+
interactiveSelector: d().interactiveSelector,
|
|
37
|
+
panSurfaceSelector: d().panSurfaceSelector
|
|
38
|
+
}), tt = () => {
|
|
39
|
+
t.onSelect(t.widgetId), t.onCommitFront(t.widgetId), s?.focus({
|
|
40
40
|
preventScroll: !0
|
|
41
41
|
});
|
|
42
|
-
},
|
|
42
|
+
}, X = (e) => {
|
|
43
|
+
Q((i) => ({
|
|
44
|
+
seq: (i?.seq ?? 0) + 1,
|
|
45
|
+
source: "local_pointer",
|
|
46
|
+
pointerType: e
|
|
47
|
+
}));
|
|
48
|
+
}, et = (e) => {
|
|
49
|
+
if (!(!s || !e.isConnected || !s.contains(e)))
|
|
50
|
+
try {
|
|
51
|
+
e.focus({
|
|
52
|
+
preventScroll: !0
|
|
53
|
+
});
|
|
54
|
+
} catch {
|
|
55
|
+
e.focus();
|
|
56
|
+
}
|
|
57
|
+
}, it = (e, i) => {
|
|
58
|
+
m = {
|
|
59
|
+
token: ++z,
|
|
60
|
+
pointerId: e,
|
|
61
|
+
pointerType: i,
|
|
62
|
+
timestamp: Date.now()
|
|
63
|
+
};
|
|
64
|
+
const o = m;
|
|
65
|
+
queueMicrotask(() => {
|
|
66
|
+
!o || m?.token !== o.token || (X(o.pointerType), m = null);
|
|
67
|
+
});
|
|
68
|
+
}, nt = (e, i) => {
|
|
69
|
+
v = {
|
|
70
|
+
token: ++z,
|
|
71
|
+
pointerId: e,
|
|
72
|
+
target: i,
|
|
73
|
+
timestamp: Date.now()
|
|
74
|
+
};
|
|
75
|
+
const o = v;
|
|
76
|
+
queueMicrotask(() => {
|
|
77
|
+
const a = () => {
|
|
78
|
+
!o || v?.token !== o.token || (et(o.target), v = null);
|
|
79
|
+
};
|
|
80
|
+
if (typeof requestAnimationFrame == "function") {
|
|
81
|
+
requestAnimationFrame(() => a());
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
a();
|
|
85
|
+
});
|
|
86
|
+
}, ot = (e) => {
|
|
43
87
|
if (e.button !== 0) return;
|
|
44
|
-
t.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
88
|
+
const i = t.selected, o = L(e.target), a = o === "widget_local" ? $t({
|
|
89
|
+
target: e.target,
|
|
90
|
+
widgetRoot: s ?? null,
|
|
91
|
+
interactiveSelector: d().interactiveSelector,
|
|
92
|
+
panSurfaceSelector: d().panSurfaceSelector
|
|
93
|
+
}) : null, l = o === "widget_local" && !a && yt({
|
|
94
|
+
target: e.target,
|
|
95
|
+
widgetRoot: s ?? null,
|
|
96
|
+
interactiveSelector: d().interactiveSelector,
|
|
97
|
+
panSurfaceSelector: d().panSurfaceSelector
|
|
98
|
+
});
|
|
99
|
+
if (t.onSelect(t.widgetId), t.onCommitFront(t.widgetId), o === "widget_shell") {
|
|
100
|
+
s?.focus({
|
|
48
101
|
preventScroll: !0
|
|
49
102
|
});
|
|
50
103
|
return;
|
|
51
104
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
105
|
+
if (o === "widget_local") {
|
|
106
|
+
if (a) {
|
|
107
|
+
m = null, i || nt(e.pointerId, a);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (l) {
|
|
111
|
+
if (v = null, i) {
|
|
112
|
+
X(e.pointerType || void 0);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
it(e.pointerId, e.pointerType || void 0);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}, $ = h(() => {
|
|
119
|
+
const e = S();
|
|
64
120
|
return e ? {
|
|
65
121
|
x: e.worldX,
|
|
66
122
|
y: e.worldY
|
|
@@ -68,8 +124,8 @@ function Rt(t) {
|
|
|
68
124
|
x: t.x,
|
|
69
125
|
y: t.y
|
|
70
126
|
};
|
|
71
|
-
}),
|
|
72
|
-
const e =
|
|
127
|
+
}), y = h(() => {
|
|
128
|
+
const e = k();
|
|
73
129
|
return e ? {
|
|
74
130
|
width: e.width,
|
|
75
131
|
height: e.height
|
|
@@ -77,66 +133,64 @@ function Rt(t) {
|
|
|
77
133
|
width: t.width,
|
|
78
134
|
height: t.height
|
|
79
135
|
};
|
|
80
|
-
}), Y =
|
|
136
|
+
}), Y = h(() => {
|
|
81
137
|
if (!(t.layoutMode !== "projected_surface" || !t.projectedViewport))
|
|
82
|
-
return
|
|
138
|
+
return It({
|
|
83
139
|
widgetId: t.widgetId,
|
|
84
140
|
worldX: $().x,
|
|
85
141
|
worldY: $().y,
|
|
86
|
-
worldWidth:
|
|
87
|
-
worldHeight:
|
|
142
|
+
worldWidth: y().width,
|
|
143
|
+
worldHeight: y().height,
|
|
88
144
|
viewport: t.projectedViewport(),
|
|
89
145
|
ready: t.surfaceReady ?? !0
|
|
90
146
|
});
|
|
91
|
-
}),
|
|
147
|
+
}), at = h(() => {
|
|
92
148
|
const e = t.itemSnapshot().z_index, i = Number.isFinite(e) ? Math.max(1, Math.min(99, Math.round(e))) : 1;
|
|
93
149
|
return String(i).padStart(2, "0");
|
|
94
|
-
}),
|
|
150
|
+
}), P = (e) => {
|
|
95
151
|
e.preventDefault(), e.stopPropagation(), t.onRequestOverview(t.itemSnapshot());
|
|
96
|
-
},
|
|
152
|
+
}, E = (e) => {
|
|
97
153
|
e.preventDefault(), e.stopPropagation(), t.onRequestFit(t.itemSnapshot());
|
|
98
|
-
},
|
|
154
|
+
}, F = (e) => {
|
|
99
155
|
e.preventDefault(), e.stopPropagation(), t.onRequestDelete(t.widgetId);
|
|
100
|
-
},
|
|
156
|
+
}, rt = h(() => {
|
|
101
157
|
const e = {
|
|
102
|
-
width: `${
|
|
103
|
-
height: `${
|
|
104
|
-
"z-index":
|
|
158
|
+
width: `${y().width}px`,
|
|
159
|
+
height: `${y().height}px`,
|
|
160
|
+
"z-index": A() || D() || t.optimisticFront ? `${t.topRenderLayer + 1}` : `${t.renderLayer}`
|
|
105
161
|
};
|
|
106
162
|
if (t.layoutMode === "projected_surface") {
|
|
107
163
|
const i = Y()?.rect;
|
|
108
164
|
return {
|
|
109
165
|
...e,
|
|
110
|
-
|
|
111
|
-
top: `${i?.screenY ?? 0}px`,
|
|
112
|
-
"--floe-workbench-projected-scale": `${i?.viewportScale ?? Math.max(t.viewportScale, 1e-3)}`
|
|
166
|
+
transform: `translate3d(${i?.screenX ?? 0}px, ${i?.screenY ?? 0}px, 0) scale(${i?.viewportScale ?? Math.max(t.viewportScale, 1e-3)})`
|
|
113
167
|
};
|
|
114
168
|
}
|
|
115
169
|
return {
|
|
116
170
|
...e,
|
|
117
171
|
transform: `translate(${$().x}px, ${$().y}px)`
|
|
118
172
|
};
|
|
119
|
-
}),
|
|
120
|
-
const i = f(
|
|
173
|
+
}), lt = (e) => {
|
|
174
|
+
const i = f(S);
|
|
121
175
|
if (!i) return;
|
|
122
|
-
const
|
|
176
|
+
const o = {
|
|
123
177
|
x: i.worldX,
|
|
124
178
|
y: i.worldY
|
|
125
|
-
},
|
|
179
|
+
}, a = {
|
|
126
180
|
x: i.startWorldX,
|
|
127
181
|
y: i.startWorldY
|
|
128
|
-
},
|
|
129
|
-
t.onCommitFront(t.widgetId),
|
|
130
|
-
},
|
|
182
|
+
}, l = e && (Math.abs(o.x - a.x) > 1 || Math.abs(o.y - a.y) > 1);
|
|
183
|
+
t.onCommitFront(t.widgetId), l && t.onCommitMove(t.widgetId, o), i.stopInteraction(), M(null), _ = void 0;
|
|
184
|
+
}, H = (e) => {
|
|
131
185
|
if (e.button !== 0 || t.locked) return;
|
|
132
186
|
e.preventDefault(), e.stopPropagation(), _?.stop({
|
|
133
187
|
reason: "manual_stop",
|
|
134
188
|
commit: !1
|
|
135
|
-
}), t.onSelect(t.widgetId),
|
|
189
|
+
}), t.onSelect(t.widgetId), s?.focus({
|
|
136
190
|
preventScroll: !0
|
|
137
191
|
}), t.onStartOptimisticFront(t.widgetId);
|
|
138
|
-
const i =
|
|
139
|
-
|
|
192
|
+
const i = R("drag", "grabbing"), o = Math.max(t.viewportScale, 1e-3);
|
|
193
|
+
M({
|
|
140
194
|
pointerId: e.pointerId,
|
|
141
195
|
startClientX: e.clientX,
|
|
142
196
|
startClientY: e.clientY,
|
|
@@ -145,45 +199,45 @@ function Rt(t) {
|
|
|
145
199
|
worldX: t.x,
|
|
146
200
|
worldY: t.y,
|
|
147
201
|
moved: !1,
|
|
148
|
-
scale:
|
|
202
|
+
scale: o,
|
|
149
203
|
stopInteraction: i
|
|
150
204
|
});
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
if (!n || n.pointerId !==
|
|
154
|
-
const
|
|
205
|
+
const a = (l) => {
|
|
206
|
+
M((n) => {
|
|
207
|
+
if (!n || n.pointerId !== l.pointerId) return n;
|
|
208
|
+
const u = n.startWorldX + (l.clientX - n.startClientX) / n.scale, g = n.startWorldY + (l.clientY - n.startClientY) / n.scale;
|
|
155
209
|
return {
|
|
156
210
|
...n,
|
|
157
|
-
worldX:
|
|
158
|
-
worldY:
|
|
159
|
-
moved: n.moved || Math.abs(
|
|
211
|
+
worldX: u,
|
|
212
|
+
worldY: g,
|
|
213
|
+
moved: n.moved || Math.abs(u - n.startWorldX) > 2 || Math.abs(g - n.startWorldY) > 2
|
|
160
214
|
};
|
|
161
215
|
});
|
|
162
216
|
};
|
|
163
|
-
_ =
|
|
217
|
+
_ = G({
|
|
164
218
|
pointerEvent: e,
|
|
165
219
|
captureEl: e.currentTarget,
|
|
166
|
-
onMove:
|
|
220
|
+
onMove: a,
|
|
167
221
|
onEnd: ({
|
|
168
|
-
commit:
|
|
169
|
-
}) =>
|
|
222
|
+
commit: l
|
|
223
|
+
}) => lt(l)
|
|
170
224
|
});
|
|
171
|
-
},
|
|
172
|
-
const i = f(
|
|
225
|
+
}, ct = (e) => {
|
|
226
|
+
const i = f(k);
|
|
173
227
|
if (!i) return;
|
|
174
|
-
const
|
|
228
|
+
const o = {
|
|
175
229
|
width: i.width,
|
|
176
230
|
height: i.height
|
|
177
|
-
},
|
|
178
|
-
e &&
|
|
179
|
-
},
|
|
231
|
+
}, a = Math.abs(i.width - i.startWidth) > 1 || Math.abs(i.height - i.startHeight) > 1;
|
|
232
|
+
e && a && t.onCommitResize(t.widgetId, o), i.stopInteraction(), T(null), b = void 0;
|
|
233
|
+
}, dt = (e) => {
|
|
180
234
|
if (e.button !== 0 || t.locked) return;
|
|
181
235
|
e.preventDefault(), e.stopPropagation(), b?.stop({
|
|
182
236
|
reason: "manual_stop",
|
|
183
237
|
commit: !1
|
|
184
238
|
}), t.onStartOptimisticFront(t.widgetId);
|
|
185
|
-
const i =
|
|
186
|
-
|
|
239
|
+
const i = R("resize", "nwse-resize"), o = Math.max(t.viewportScale, 1e-3);
|
|
240
|
+
T({
|
|
187
241
|
pointerId: e.pointerId,
|
|
188
242
|
startClientX: e.clientX,
|
|
189
243
|
startClientY: e.clientY,
|
|
@@ -191,52 +245,52 @@ function Rt(t) {
|
|
|
191
245
|
startHeight: t.height,
|
|
192
246
|
width: t.width,
|
|
193
247
|
height: t.height,
|
|
194
|
-
scale:
|
|
248
|
+
scale: o,
|
|
195
249
|
stopInteraction: i
|
|
196
250
|
});
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
if (!n || n.pointerId !==
|
|
200
|
-
const
|
|
251
|
+
const a = (l) => {
|
|
252
|
+
T((n) => {
|
|
253
|
+
if (!n || n.pointerId !== l.pointerId) return n;
|
|
254
|
+
const u = Math.max(Ct, n.startWidth + (l.clientX - n.startClientX) / n.scale), g = Math.max(Wt, n.startHeight + (l.clientY - n.startClientY) / n.scale);
|
|
201
255
|
return {
|
|
202
256
|
...n,
|
|
203
|
-
width:
|
|
204
|
-
height:
|
|
257
|
+
width: u,
|
|
258
|
+
height: g
|
|
205
259
|
};
|
|
206
260
|
});
|
|
207
261
|
};
|
|
208
|
-
b =
|
|
262
|
+
b = G({
|
|
209
263
|
pointerEvent: e,
|
|
210
264
|
captureEl: e.currentTarget,
|
|
211
|
-
onMove:
|
|
265
|
+
onMove: a,
|
|
212
266
|
onEnd: ({
|
|
213
|
-
commit:
|
|
214
|
-
}) =>
|
|
267
|
+
commit: l
|
|
268
|
+
}) => ct(l)
|
|
215
269
|
});
|
|
216
270
|
};
|
|
217
271
|
return (() => {
|
|
218
|
-
var e =
|
|
219
|
-
return typeof
|
|
272
|
+
var e = Mt(), i = e.firstChild, o = i.firstChild, a = o.firstChild, l = a.nextSibling, n = l.nextSibling, u = o.nextSibling, g = u.nextSibling, C = g.nextSibling, st = C.firstChild, q = st.nextSibling, wt = C.nextSibling, I = wt.firstChild, x = I.nextSibling, W = x.nextSibling, gt = i.nextSibling, B = s;
|
|
273
|
+
return typeof B == "function" ? ft(B, e) : s = e, j(e, ut({
|
|
220
274
|
get classList() {
|
|
221
275
|
return {
|
|
222
276
|
"is-selected": t.selected,
|
|
223
|
-
"is-dragging":
|
|
224
|
-
"is-resizing":
|
|
277
|
+
"is-dragging": A(),
|
|
278
|
+
"is-resizing": D(),
|
|
225
279
|
"is-filtered-out": t.filtered,
|
|
226
280
|
"is-projected-surface": t.layoutMode === "projected_surface",
|
|
227
281
|
"is-locked": t.locked
|
|
228
282
|
};
|
|
229
283
|
}
|
|
230
284
|
}, () => ({
|
|
231
|
-
[
|
|
285
|
+
[d().dialogSurfaceHostAttr]: "true"
|
|
232
286
|
}), {
|
|
233
287
|
get "data-floe-workbench-widget-id"() {
|
|
234
288
|
return t.widgetId;
|
|
235
289
|
}
|
|
236
290
|
}, () => ({
|
|
237
|
-
[
|
|
291
|
+
[d().widgetRootAttr]: "true"
|
|
238
292
|
}), () => ({
|
|
239
|
-
[
|
|
293
|
+
[d().widgetIdAttr]: t.widgetId
|
|
240
294
|
}), {
|
|
241
295
|
get "data-workbench-widget-type"() {
|
|
242
296
|
return t.widgetType;
|
|
@@ -245,49 +299,49 @@ function Rt(t) {
|
|
|
245
299
|
return t.layoutMode ?? "canvas_scaled";
|
|
246
300
|
}
|
|
247
301
|
}, () => ({
|
|
248
|
-
[
|
|
302
|
+
[St]: t.selected ? "true" : void 0
|
|
249
303
|
}), {
|
|
250
304
|
tabIndex: 0,
|
|
251
|
-
onPointerDown:
|
|
305
|
+
onPointerDown: ot,
|
|
252
306
|
onFocus: () => {
|
|
253
307
|
t.onSelect(t.widgetId);
|
|
254
308
|
},
|
|
255
|
-
onContextMenu: (
|
|
256
|
-
|
|
309
|
+
onContextMenu: (r) => {
|
|
310
|
+
L(r.target) === "widget_shell" && (r.preventDefault(), r.stopPropagation(), t.onContextMenu(r, t.itemSnapshot()));
|
|
257
311
|
},
|
|
258
312
|
get style() {
|
|
259
|
-
return
|
|
313
|
+
return rt();
|
|
260
314
|
}
|
|
261
|
-
}), !1, !0), i.$$pointerdown =
|
|
262
|
-
[
|
|
263
|
-
}, !1, !0),
|
|
315
|
+
}), !1, !0), i.$$pointerdown = H, j(i, {
|
|
316
|
+
[kt]: "true"
|
|
317
|
+
}, !1, !0), a.$$click = F, a.$$pointerdown = (r) => r.stopPropagation(), c(a, w(N, {
|
|
264
318
|
class: "workbench-widget__traffic-icon",
|
|
265
319
|
"aria-hidden": "true"
|
|
266
|
-
})),
|
|
320
|
+
})), l.$$click = P, l.$$pointerdown = (r) => r.stopPropagation(), c(l, w(V, {
|
|
267
321
|
class: "workbench-widget__traffic-icon",
|
|
268
322
|
"aria-hidden": "true"
|
|
269
|
-
})), n.$$click =
|
|
323
|
+
})), n.$$click = E, n.$$pointerdown = (r) => r.stopPropagation(), c(n, w(Z, {
|
|
270
324
|
class: "workbench-widget__traffic-icon",
|
|
271
325
|
"aria-hidden": "true"
|
|
272
|
-
})),
|
|
326
|
+
})), c(u, at), g.$$pointerdown = H, c(g, w(vt, {
|
|
273
327
|
class: "w-3.5 h-3.5"
|
|
274
|
-
})),
|
|
275
|
-
const
|
|
276
|
-
return
|
|
328
|
+
})), c(C, () => {
|
|
329
|
+
const r = t.definition.icon;
|
|
330
|
+
return w(r, {
|
|
277
331
|
class: "w-3.5 h-3.5"
|
|
278
332
|
});
|
|
279
|
-
},
|
|
333
|
+
}, q), c(q, () => t.widgetTitle), I.$$click = P, I.$$pointerdown = (r) => r.stopPropagation(), c(I, w(V, {
|
|
280
334
|
class: "workbench-widget__window-control-icon",
|
|
281
335
|
"aria-hidden": "true"
|
|
282
|
-
})),
|
|
336
|
+
})), x.$$click = E, x.$$pointerdown = (r) => r.stopPropagation(), c(x, w(Z, {
|
|
283
337
|
class: "workbench-widget__window-control-icon",
|
|
284
338
|
"aria-hidden": "true"
|
|
285
|
-
})),
|
|
339
|
+
})), W.$$click = F, W.$$pointerdown = (r) => r.stopPropagation(), c(W, w(N, {
|
|
286
340
|
class: "workbench-widget__window-control-icon",
|
|
287
341
|
"aria-hidden": "true"
|
|
288
|
-
})),
|
|
289
|
-
const
|
|
290
|
-
return
|
|
342
|
+
})), c(gt, () => {
|
|
343
|
+
const r = t.definition.body;
|
|
344
|
+
return w(r, {
|
|
291
345
|
get widgetId() {
|
|
292
346
|
return t.widgetId;
|
|
293
347
|
},
|
|
@@ -299,10 +353,10 @@ function Rt(t) {
|
|
|
299
353
|
},
|
|
300
354
|
surfaceMetrics: Y,
|
|
301
355
|
get activation() {
|
|
302
|
-
return
|
|
356
|
+
return J();
|
|
303
357
|
},
|
|
304
358
|
get lifecycle() {
|
|
305
|
-
return
|
|
359
|
+
return U();
|
|
306
360
|
},
|
|
307
361
|
get selected() {
|
|
308
362
|
return t.selected;
|
|
@@ -310,18 +364,18 @@ function Rt(t) {
|
|
|
310
364
|
get filtered() {
|
|
311
365
|
return t.filtered;
|
|
312
366
|
},
|
|
313
|
-
requestActivate:
|
|
367
|
+
requestActivate: tt
|
|
314
368
|
});
|
|
315
|
-
}),
|
|
316
|
-
var
|
|
317
|
-
return () =>
|
|
318
|
-
var
|
|
319
|
-
return
|
|
369
|
+
}), c(e, (() => {
|
|
370
|
+
var r = ht(() => !!t.locked);
|
|
371
|
+
return () => r() ? null : (() => {
|
|
372
|
+
var O = Tt();
|
|
373
|
+
return O.$$pointerdown = dt, O;
|
|
320
374
|
})();
|
|
321
375
|
})(), null), e;
|
|
322
376
|
})();
|
|
323
377
|
}
|
|
324
|
-
|
|
378
|
+
_t(["pointerdown", "click"]);
|
|
325
379
|
export {
|
|
326
|
-
|
|
380
|
+
Pt as WorkbenchWidget
|
|
327
381
|
};
|