@lvce-editor/renderer-process 30.72.0 → 30.72.2
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/rendererProcessMain.js +200 -357
- package/package.json +1 -1
|
@@ -932,7 +932,7 @@ const getErrorResponse = (id, error, preparePrettyError, logError) => {
|
|
|
932
932
|
const errorProperty = getErrorProperty(error, prettyError);
|
|
933
933
|
return create$1$1(id, errorProperty);
|
|
934
934
|
};
|
|
935
|
-
const create$
|
|
935
|
+
const create$I = (message, result) => {
|
|
936
936
|
return {
|
|
937
937
|
id: message.id,
|
|
938
938
|
jsonrpc: Two$1,
|
|
@@ -941,7 +941,7 @@ const create$J = (message, result) => {
|
|
|
941
941
|
};
|
|
942
942
|
const getSuccessResponse = (message, result) => {
|
|
943
943
|
const resultProperty = result ?? null;
|
|
944
|
-
return create$
|
|
944
|
+
return create$I(message, resultProperty);
|
|
945
945
|
};
|
|
946
946
|
const getErrorResponseSimple = (id, error) => {
|
|
947
947
|
return {
|
|
@@ -1040,7 +1040,7 @@ const handleJsonRpcMessage = async (...args) => {
|
|
|
1040
1040
|
|
|
1041
1041
|
const Two = '2.0';
|
|
1042
1042
|
|
|
1043
|
-
const create$
|
|
1043
|
+
const create$H = (method, params) => {
|
|
1044
1044
|
return {
|
|
1045
1045
|
jsonrpc: Two,
|
|
1046
1046
|
method,
|
|
@@ -1048,7 +1048,7 @@ const create$I = (method, params) => {
|
|
|
1048
1048
|
};
|
|
1049
1049
|
};
|
|
1050
1050
|
|
|
1051
|
-
const create$
|
|
1051
|
+
const create$G = (id, method, params) => {
|
|
1052
1052
|
const message = {
|
|
1053
1053
|
id,
|
|
1054
1054
|
jsonrpc: Two,
|
|
@@ -1059,12 +1059,12 @@ const create$H = (id, method, params) => {
|
|
|
1059
1059
|
};
|
|
1060
1060
|
|
|
1061
1061
|
let id = 0;
|
|
1062
|
-
const create$
|
|
1062
|
+
const create$F = () => {
|
|
1063
1063
|
return ++id;
|
|
1064
1064
|
};
|
|
1065
1065
|
|
|
1066
1066
|
const registerPromise = map => {
|
|
1067
|
-
const id = create$
|
|
1067
|
+
const id = create$F();
|
|
1068
1068
|
const {
|
|
1069
1069
|
promise,
|
|
1070
1070
|
resolve
|
|
@@ -1081,7 +1081,7 @@ const invokeHelper = async (callbacks, ipc, method, params, useSendAndTransfer)
|
|
|
1081
1081
|
id,
|
|
1082
1082
|
promise
|
|
1083
1083
|
} = registerPromise(callbacks);
|
|
1084
|
-
const message = create$
|
|
1084
|
+
const message = create$G(id, method, params);
|
|
1085
1085
|
if (useSendAndTransfer && ipc.sendAndTransfer) {
|
|
1086
1086
|
ipc.sendAndTransfer(message);
|
|
1087
1087
|
} else {
|
|
@@ -1117,7 +1117,7 @@ const createRpc = ipc => {
|
|
|
1117
1117
|
* @deprecated
|
|
1118
1118
|
*/
|
|
1119
1119
|
send(method, ...params) {
|
|
1120
|
-
const message = create$
|
|
1120
|
+
const message = create$H(method, params);
|
|
1121
1121
|
ipc.send(message);
|
|
1122
1122
|
}
|
|
1123
1123
|
};
|
|
@@ -1159,7 +1159,7 @@ const unhandleIpc = ipc => {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
};
|
|
1161
1161
|
|
|
1162
|
-
const create$
|
|
1162
|
+
const create$E = async ({
|
|
1163
1163
|
commandMap,
|
|
1164
1164
|
window
|
|
1165
1165
|
}) => {
|
|
@@ -1171,7 +1171,7 @@ const create$F = async ({
|
|
|
1171
1171
|
return rpc;
|
|
1172
1172
|
};
|
|
1173
1173
|
|
|
1174
|
-
const create$
|
|
1174
|
+
const create$D = async ({
|
|
1175
1175
|
commandMap,
|
|
1176
1176
|
isMessagePortOpen = true,
|
|
1177
1177
|
messagePort
|
|
@@ -1193,7 +1193,7 @@ const isWorker = value => {
|
|
|
1193
1193
|
return value instanceof Worker;
|
|
1194
1194
|
};
|
|
1195
1195
|
|
|
1196
|
-
const create$
|
|
1196
|
+
const create$C = async ({
|
|
1197
1197
|
commandMap,
|
|
1198
1198
|
name,
|
|
1199
1199
|
url
|
|
@@ -1213,7 +1213,7 @@ const create$D = async ({
|
|
|
1213
1213
|
return workerRpc;
|
|
1214
1214
|
};
|
|
1215
1215
|
|
|
1216
|
-
const create$
|
|
1216
|
+
const create$B = async ({
|
|
1217
1217
|
commandMap,
|
|
1218
1218
|
name,
|
|
1219
1219
|
port,
|
|
@@ -1236,11 +1236,11 @@ const create$C = async ({
|
|
|
1236
1236
|
return workerRpc;
|
|
1237
1237
|
};
|
|
1238
1238
|
|
|
1239
|
-
const create$
|
|
1239
|
+
const create$A = async ({
|
|
1240
1240
|
commandMap,
|
|
1241
1241
|
messagePort
|
|
1242
1242
|
}) => {
|
|
1243
|
-
return create$
|
|
1243
|
+
return create$D({
|
|
1244
1244
|
commandMap,
|
|
1245
1245
|
messagePort
|
|
1246
1246
|
});
|
|
@@ -1565,7 +1565,7 @@ const launchWorker = async ({
|
|
|
1565
1565
|
const generation = getGeneration();
|
|
1566
1566
|
const trackedWorker = createRuntimeName(name);
|
|
1567
1567
|
try {
|
|
1568
|
-
const rpc = await create$
|
|
1568
|
+
const rpc = await create$C({
|
|
1569
1569
|
commandMap: commandMapRef,
|
|
1570
1570
|
name: trackedWorker.runtimeName,
|
|
1571
1571
|
url
|
|
@@ -1862,7 +1862,7 @@ const configureProxy = async (options, port) => {
|
|
|
1862
1862
|
try {
|
|
1863
1863
|
const id = await client.invoke('start', options, capture(document));
|
|
1864
1864
|
proxyPort = await client.invokeAndTransfer('proxy', port);
|
|
1865
|
-
const rpc = await create$
|
|
1865
|
+
const rpc = await create$A({
|
|
1866
1866
|
commandMap: commandMapRef,
|
|
1867
1867
|
messagePort: proxyPort
|
|
1868
1868
|
});
|
|
@@ -2130,7 +2130,7 @@ const createIdGenerator = () => {
|
|
|
2130
2130
|
return ++id;
|
|
2131
2131
|
};
|
|
2132
2132
|
};
|
|
2133
|
-
const create$
|
|
2133
|
+
const create$z = createIdGenerator();
|
|
2134
2134
|
|
|
2135
2135
|
const state$j = Object.create(null);
|
|
2136
2136
|
const retainString = (item, index) => {
|
|
@@ -2182,7 +2182,7 @@ const retainItems = dataTransfer => {
|
|
|
2182
2182
|
return items;
|
|
2183
2183
|
};
|
|
2184
2184
|
const addItems = items => {
|
|
2185
|
-
const id = create$
|
|
2185
|
+
const id = create$z();
|
|
2186
2186
|
state$j[id] = items;
|
|
2187
2187
|
return id;
|
|
2188
2188
|
};
|
|
@@ -2210,7 +2210,7 @@ const getFileHandles = async ids => {
|
|
|
2210
2210
|
return handles;
|
|
2211
2211
|
};
|
|
2212
2212
|
const add$1 = promise => {
|
|
2213
|
-
const id = create$
|
|
2213
|
+
const id = create$z();
|
|
2214
2214
|
state$i[id] = promise;
|
|
2215
2215
|
return id;
|
|
2216
2216
|
};
|
|
@@ -4118,14 +4118,14 @@ const launchDragAndDropWorker = async () => {
|
|
|
4118
4118
|
port1,
|
|
4119
4119
|
port2
|
|
4120
4120
|
} = new MessageChannel();
|
|
4121
|
-
const workerRpc = await create$
|
|
4121
|
+
const workerRpc = await create$B({
|
|
4122
4122
|
commandMap: {},
|
|
4123
4123
|
name: trackedWorker.runtimeName,
|
|
4124
4124
|
port: port1,
|
|
4125
4125
|
url: dragAndDropWorkerUrl
|
|
4126
4126
|
});
|
|
4127
4127
|
trackRpc(workerRpc, generation, trackedWorker);
|
|
4128
|
-
const rpc = await create$
|
|
4128
|
+
const rpc = await create$D({
|
|
4129
4129
|
commandMap: commandMapRef,
|
|
4130
4130
|
messagePort: port2
|
|
4131
4131
|
});
|
|
@@ -4179,6 +4179,7 @@ const clear$4 = () => {
|
|
|
4179
4179
|
rpcs.clear();
|
|
4180
4180
|
viewRpcIds.clear();
|
|
4181
4181
|
};
|
|
4182
|
+
const getRpcId = uid => viewRpcIds.get(uid);
|
|
4182
4183
|
const get$8 = uid => {
|
|
4183
4184
|
const rpcId = viewRpcIds.get(uid);
|
|
4184
4185
|
return rpcId === undefined ? undefined : rpcs.get(rpcId);
|
|
@@ -4394,7 +4395,7 @@ const getWorkerDisplayName = name => {
|
|
|
4394
4395
|
}
|
|
4395
4396
|
return `${name} worker`;
|
|
4396
4397
|
};
|
|
4397
|
-
const create$
|
|
4398
|
+
const create$y = async ({
|
|
4398
4399
|
name,
|
|
4399
4400
|
url
|
|
4400
4401
|
}) => {
|
|
@@ -4472,7 +4473,7 @@ const wrap = worker => {
|
|
|
4472
4473
|
|
|
4473
4474
|
const IpcParentWithModuleWorker = {
|
|
4474
4475
|
__proto__: null,
|
|
4475
|
-
create: create$
|
|
4476
|
+
create: create$y,
|
|
4476
4477
|
wrap
|
|
4477
4478
|
};
|
|
4478
4479
|
|
|
@@ -4480,7 +4481,7 @@ const isMessagePort = value => {
|
|
|
4480
4481
|
return value instanceof MessagePort;
|
|
4481
4482
|
};
|
|
4482
4483
|
|
|
4483
|
-
const create$
|
|
4484
|
+
const create$x = async ({
|
|
4484
4485
|
url
|
|
4485
4486
|
}) => {
|
|
4486
4487
|
string(url);
|
|
@@ -4509,10 +4510,10 @@ const create$y = async ({
|
|
|
4509
4510
|
|
|
4510
4511
|
const IpcParentWithMessagePort = {
|
|
4511
4512
|
__proto__: null,
|
|
4512
|
-
create: create$
|
|
4513
|
+
create: create$x
|
|
4513
4514
|
};
|
|
4514
4515
|
|
|
4515
|
-
const create$
|
|
4516
|
+
const create$w = async url => {
|
|
4516
4517
|
const {
|
|
4517
4518
|
promise,
|
|
4518
4519
|
resolve
|
|
@@ -4531,7 +4532,7 @@ const create$x = async url => {
|
|
|
4531
4532
|
|
|
4532
4533
|
const IpcParentWithReferencePort = {
|
|
4533
4534
|
__proto__: null,
|
|
4534
|
-
create: create$
|
|
4535
|
+
create: create$w
|
|
4535
4536
|
};
|
|
4536
4537
|
|
|
4537
4538
|
const workers = Object.create(null);
|
|
@@ -4549,7 +4550,7 @@ const clear$2 = () => {
|
|
|
4549
4550
|
}
|
|
4550
4551
|
};
|
|
4551
4552
|
|
|
4552
|
-
const create$
|
|
4553
|
+
const create$v = async ({
|
|
4553
4554
|
id,
|
|
4554
4555
|
name,
|
|
4555
4556
|
parentName,
|
|
@@ -4557,7 +4558,7 @@ const create$w = async ({
|
|
|
4557
4558
|
raw,
|
|
4558
4559
|
rpcId,
|
|
4559
4560
|
url
|
|
4560
|
-
}, createTransferredRpc = create$
|
|
4561
|
+
}, createTransferredRpc = create$B, createNativeRpc = create$C) => {
|
|
4561
4562
|
const generation = getGeneration();
|
|
4562
4563
|
const trackedWorker = createRuntimeName(name || 'Worker', parentName);
|
|
4563
4564
|
let rpc;
|
|
@@ -4594,13 +4595,13 @@ const create$w = async ({
|
|
|
4594
4595
|
|
|
4595
4596
|
const IpcParentWithModuleWorkerWithMessagePort = {
|
|
4596
4597
|
__proto__: null,
|
|
4597
|
-
create: create$
|
|
4598
|
+
create: create$v
|
|
4598
4599
|
};
|
|
4599
4600
|
|
|
4600
4601
|
const isElectron = platform === Electron$1;
|
|
4601
4602
|
|
|
4602
4603
|
// TODO use handleIncomingIpc function
|
|
4603
|
-
const create$
|
|
4604
|
+
const create$u = async ({
|
|
4604
4605
|
ipcId,
|
|
4605
4606
|
port
|
|
4606
4607
|
}) => {
|
|
@@ -4608,7 +4609,7 @@ const create$v = async ({
|
|
|
4608
4609
|
if (!isElectron) {
|
|
4609
4610
|
throw new Error('Electron api was requested but is not available');
|
|
4610
4611
|
}
|
|
4611
|
-
const rpc = await create$
|
|
4612
|
+
const rpc = await create$E({
|
|
4612
4613
|
commandMap: {},
|
|
4613
4614
|
window
|
|
4614
4615
|
});
|
|
@@ -4618,7 +4619,7 @@ const create$v = async ({
|
|
|
4618
4619
|
|
|
4619
4620
|
const IpcParentWithElectron = {
|
|
4620
4621
|
__proto__: null,
|
|
4621
|
-
create: create$
|
|
4622
|
+
create: create$u
|
|
4622
4623
|
};
|
|
4623
4624
|
|
|
4624
4625
|
const getModule = method => {
|
|
@@ -4640,7 +4641,7 @@ const getModule = method => {
|
|
|
4640
4641
|
|
|
4641
4642
|
const shouldLaunchMultipleWorkers = true;
|
|
4642
4643
|
|
|
4643
|
-
const create$
|
|
4644
|
+
const create$t = async ({
|
|
4644
4645
|
method,
|
|
4645
4646
|
...options
|
|
4646
4647
|
}) => {
|
|
@@ -4669,7 +4670,7 @@ const dispose$l = id => {
|
|
|
4669
4670
|
|
|
4670
4671
|
const launchEditorWorker = async port => {
|
|
4671
4672
|
try {
|
|
4672
|
-
await create$
|
|
4673
|
+
await create$t({
|
|
4673
4674
|
method: ModuleWorkerWithMessagePort,
|
|
4674
4675
|
name: 'Editor Worker',
|
|
4675
4676
|
port,
|
|
@@ -4710,7 +4711,7 @@ const syntaxHighlightingWorkerUrl = getConfiguredSyntaxHighlightingWorkerUrl() |
|
|
|
4710
4711
|
|
|
4711
4712
|
const launchSyntaxHighlightingWorker = async port => {
|
|
4712
4713
|
try {
|
|
4713
|
-
await create$
|
|
4714
|
+
await create$t({
|
|
4714
4715
|
method: ModuleWorkerWithMessagePort,
|
|
4715
4716
|
name: 'Syntax Highlighting Worker',
|
|
4716
4717
|
parentName: 'Editor Worker',
|
|
@@ -4933,7 +4934,11 @@ const info = (...args) => {
|
|
|
4933
4934
|
|
|
4934
4935
|
const executeViewletCommand$1 = 'Viewlet.executeViewletCommand';
|
|
4935
4936
|
const send = (method, uid, ...args) => {
|
|
4936
|
-
|
|
4937
|
+
// Editor shortcuts still execute through renderer-worker. Keep their input
|
|
4938
|
+
// events on the same port so typing cannot overtake a preceding shortcut.
|
|
4939
|
+
// Blur uses the direct editor handler, whose delayed render preserves the
|
|
4940
|
+
// focus of the next editor instead of clearing its keyboard context.
|
|
4941
|
+
if (method === executeViewletCommand$1 && (getRpcId(uid) !== 'Editor' || args[0] === 'handleBlur')) {
|
|
4937
4942
|
const rpc = get$8(uid);
|
|
4938
4943
|
if (rpc) {
|
|
4939
4944
|
rpc.send(method, uid, ...args);
|
|
@@ -5294,7 +5299,7 @@ const showError = (message, y, x) => {
|
|
|
5294
5299
|
$ImagePreviewImage
|
|
5295
5300
|
};
|
|
5296
5301
|
};
|
|
5297
|
-
const create$
|
|
5302
|
+
const create$s = (uri, top, left) => {
|
|
5298
5303
|
const $ImagePreviewImage = document.createElement('img');
|
|
5299
5304
|
$ImagePreviewImage.className = 'ImagePreviewImage';
|
|
5300
5305
|
$ImagePreviewImage.src = uri;
|
|
@@ -5325,7 +5330,7 @@ const dispose$h = state => {
|
|
|
5325
5330
|
|
|
5326
5331
|
const ImagePreview$1 = {
|
|
5327
5332
|
__proto__: null,
|
|
5328
|
-
create: create$
|
|
5333
|
+
create: create$s,
|
|
5329
5334
|
dispose: dispose$h,
|
|
5330
5335
|
showError,
|
|
5331
5336
|
update: update$1
|
|
@@ -5374,13 +5379,13 @@ const handleMouseDown$4 = event => {
|
|
|
5374
5379
|
const handleBlur$7 = () => {
|
|
5375
5380
|
return ['handleBlur'];
|
|
5376
5381
|
};
|
|
5377
|
-
const handleFocus$
|
|
5382
|
+
const handleFocus$8 = () => {
|
|
5378
5383
|
return ['handleFocus'];
|
|
5379
5384
|
};
|
|
5380
5385
|
|
|
5381
5386
|
// TODO use context menu events function again
|
|
5382
5387
|
|
|
5383
|
-
const handleContextMenu$
|
|
5388
|
+
const handleContextMenu$6 = event => {
|
|
5384
5389
|
preventDefault(event);
|
|
5385
5390
|
const {
|
|
5386
5391
|
button,
|
|
@@ -5394,8 +5399,8 @@ const returnValue$8 = true;
|
|
|
5394
5399
|
const ViewletActivityBarEvents = {
|
|
5395
5400
|
__proto__: null,
|
|
5396
5401
|
handleBlur: handleBlur$7,
|
|
5397
|
-
handleContextMenu: handleContextMenu$
|
|
5398
|
-
handleFocus: handleFocus$
|
|
5402
|
+
handleContextMenu: handleContextMenu$6,
|
|
5403
|
+
handleFocus: handleFocus$8,
|
|
5399
5404
|
handleMouseDown: handleMouseDown$4,
|
|
5400
5405
|
returnValue: returnValue$8
|
|
5401
5406
|
};
|
|
@@ -5437,8 +5442,8 @@ const handleAudioError$1 = forwardViewletCommand('handleAudioError');
|
|
|
5437
5442
|
forwardViewletCommand('handleBeforeInput');
|
|
5438
5443
|
forwardViewletCommand('handleBeforeInputFromContentEditable');
|
|
5439
5444
|
const handleBlur$6 = forwardViewletCommand('handleBlur');
|
|
5440
|
-
|
|
5441
|
-
const handleClick$
|
|
5445
|
+
forwardViewletCommand('handleButtonClick');
|
|
5446
|
+
const handleClick$4 = forwardViewletCommand('handleClick');
|
|
5442
5447
|
const handleClickAction$2 = forwardViewletCommand('handleClickAction');
|
|
5443
5448
|
forwardViewletCommand('handleClickAdd');
|
|
5444
5449
|
const handleClickAt$3 = forwardViewletCommand('handleClickAt');
|
|
@@ -5451,7 +5456,7 @@ forwardViewletCommand('handleClickOpenFolder');
|
|
|
5451
5456
|
forwardViewletCommand('handleClickRestore');
|
|
5452
5457
|
const handleClickTab$2 = forwardViewletCommand('handleClickTab');
|
|
5453
5458
|
forwardViewletCommand('handleClickToggleMaximize');
|
|
5454
|
-
const handleContextMenu$
|
|
5459
|
+
const handleContextMenu$5 = forwardViewletCommand('handleContextMenu');
|
|
5455
5460
|
forwardViewletCommand('handleDoubleClick');
|
|
5456
5461
|
forwardViewletCommand('handleDragEnd');
|
|
5457
5462
|
forwardViewletCommand('handleDragLeave');
|
|
@@ -5464,11 +5469,11 @@ forwardViewletCommand('handleClickSize');
|
|
|
5464
5469
|
forwardViewletCommand('handleClickDisable');
|
|
5465
5470
|
forwardViewletCommand('handleClickUninstall');
|
|
5466
5471
|
forwardViewletCommand('handleFilterInput');
|
|
5467
|
-
const handleFocus$
|
|
5472
|
+
const handleFocus$7 = forwardViewletCommand('handleFocus');
|
|
5468
5473
|
const handleFocusIn$4 = forwardViewletCommand('handleFocusIn');
|
|
5469
5474
|
forwardViewletCommand('handleIconError');
|
|
5470
5475
|
const handleImageError = forwardViewletCommand('handleImageError');
|
|
5471
|
-
const handleInput$
|
|
5476
|
+
const handleInput$5 = forwardViewletCommand('handleInput');
|
|
5472
5477
|
const handleKeyDown$4 = forwardViewletCommand('handleKeyDown');
|
|
5473
5478
|
const handleLink = forwardViewletCommand('handleLink');
|
|
5474
5479
|
forwardViewletCommand('handleListBlur');
|
|
@@ -5478,8 +5483,8 @@ const handleMenuMouseOver$1 = forwardViewletCommand('handleMenuMouseOver');
|
|
|
5478
5483
|
const handleMenuMouseLeave$1 = forwardViewletCommand('handleMenuMouseLeave');
|
|
5479
5484
|
const handleMouseDown$3 = forwardViewletCommand('handleMouseDown');
|
|
5480
5485
|
forwardViewletCommand('handleMouseMove');
|
|
5481
|
-
const handleMouseOut
|
|
5482
|
-
const handleMouseOver
|
|
5486
|
+
const handleMouseOut = forwardViewletCommand('handleMouseOut');
|
|
5487
|
+
const handleMouseOver = forwardViewletCommand('handleMouseOver');
|
|
5483
5488
|
forwardViewletCommand('handlePointerCaptureLost');
|
|
5484
5489
|
const handlePointerDown$3 = forwardViewletCommand('handlePointerDown');
|
|
5485
5490
|
const handlePointerMove$1 = forwardViewletCommand('handlePointerMove');
|
|
@@ -5555,7 +5560,7 @@ const ViewletAudio = {
|
|
|
5555
5560
|
Events: Events$5
|
|
5556
5561
|
};
|
|
5557
5562
|
|
|
5558
|
-
const create$
|
|
5563
|
+
const create$r = () => {
|
|
5559
5564
|
const $Viewlet = document.createElement('div');
|
|
5560
5565
|
$Viewlet.className = 'Viewlet Clock';
|
|
5561
5566
|
return {
|
|
@@ -5572,7 +5577,7 @@ const setTime = (state, time) => {
|
|
|
5572
5577
|
|
|
5573
5578
|
const ViewletClock = {
|
|
5574
5579
|
__proto__: null,
|
|
5575
|
-
create: create$
|
|
5580
|
+
create: create$r,
|
|
5576
5581
|
dispose: dispose$g,
|
|
5577
5582
|
refresh: refresh$3,
|
|
5578
5583
|
setTime
|
|
@@ -5601,7 +5606,7 @@ const stopTracking$1 = ($Target, pointerId, handlePointerMove, handlePointerUp)
|
|
|
5601
5606
|
// TODO use pointerlost event instead
|
|
5602
5607
|
$Target.removeEventListener(PointerUp, handlePointerUp);
|
|
5603
5608
|
};
|
|
5604
|
-
const create$
|
|
5609
|
+
const create$q = (pointerDown, pointerMove, pointerUp) => {
|
|
5605
5610
|
const shared = (fn, event) => {
|
|
5606
5611
|
const message = fn(event);
|
|
5607
5612
|
if (!message || message.length === 0) {
|
|
@@ -5634,7 +5639,7 @@ const create$r = (pointerDown, pointerMove, pointerUp) => {
|
|
|
5634
5639
|
};
|
|
5635
5640
|
|
|
5636
5641
|
const handleOffset = 20;
|
|
5637
|
-
const handleSliderPointerDown = create$
|
|
5642
|
+
const handleSliderPointerDown = create$q(event => {
|
|
5638
5643
|
const {
|
|
5639
5644
|
clientX,
|
|
5640
5645
|
clientY
|
|
@@ -5695,7 +5700,7 @@ const ViewletColorPicker = {
|
|
|
5695
5700
|
setOffsetX
|
|
5696
5701
|
};
|
|
5697
5702
|
|
|
5698
|
-
const handleInput$
|
|
5703
|
+
const handleInput$4 = event => {
|
|
5699
5704
|
const uid = fromEvent(event);
|
|
5700
5705
|
const {
|
|
5701
5706
|
target
|
|
@@ -5703,27 +5708,27 @@ const handleInput$5 = event => {
|
|
|
5703
5708
|
const {
|
|
5704
5709
|
value
|
|
5705
5710
|
} = target;
|
|
5706
|
-
handleInput$
|
|
5711
|
+
handleInput$5(uid, value);
|
|
5707
5712
|
};
|
|
5708
|
-
const handleFocus$
|
|
5713
|
+
const handleFocus$6 = event => {
|
|
5709
5714
|
const uid = fromEvent(event);
|
|
5710
|
-
handleFocus$
|
|
5715
|
+
handleFocus$7(uid);
|
|
5711
5716
|
};
|
|
5712
5717
|
|
|
5713
5718
|
const ViewletDebugConsoleEvents = {
|
|
5714
5719
|
__proto__: null,
|
|
5715
|
-
handleFocus: handleFocus$
|
|
5716
|
-
handleInput: handleInput$
|
|
5720
|
+
handleFocus: handleFocus$6,
|
|
5721
|
+
handleInput: handleInput$4
|
|
5717
5722
|
};
|
|
5718
5723
|
|
|
5719
|
-
const create$
|
|
5724
|
+
const create$p = () => {
|
|
5720
5725
|
const $Viewlet = document.createElement('div');
|
|
5721
5726
|
$Viewlet.className = 'Viewlet DebugConsole';
|
|
5722
5727
|
return {
|
|
5723
5728
|
$Viewlet
|
|
5724
5729
|
};
|
|
5725
5730
|
};
|
|
5726
|
-
const setDom$
|
|
5731
|
+
const setDom$8 = (state, dom) => {
|
|
5727
5732
|
const {
|
|
5728
5733
|
$Viewlet
|
|
5729
5734
|
} = state;
|
|
@@ -5732,8 +5737,8 @@ const setDom$9 = (state, dom) => {
|
|
|
5732
5737
|
|
|
5733
5738
|
const ViewletDebugConsole = {
|
|
5734
5739
|
__proto__: null,
|
|
5735
|
-
create: create$
|
|
5736
|
-
setDom: setDom$
|
|
5740
|
+
create: create$p,
|
|
5741
|
+
setDom: setDom$8
|
|
5737
5742
|
};
|
|
5738
5743
|
|
|
5739
5744
|
const handleKeyDown$3 = event => {
|
|
@@ -5769,7 +5774,7 @@ const setValue$2 = (state, value) => {
|
|
|
5769
5774
|
const $Input = $Viewlet.querySelector(':scope input');
|
|
5770
5775
|
$Input.value = value;
|
|
5771
5776
|
};
|
|
5772
|
-
const focus$
|
|
5777
|
+
const focus$c = state => {
|
|
5773
5778
|
const {
|
|
5774
5779
|
$Viewlet
|
|
5775
5780
|
} = state;
|
|
@@ -5780,7 +5785,7 @@ const focus$e = state => {
|
|
|
5780
5785
|
const ViewletDefineKeyBinding = {
|
|
5781
5786
|
__proto__: null,
|
|
5782
5787
|
Events: ViewletDefineKeyBindingEvents,
|
|
5783
|
-
focus: focus$
|
|
5788
|
+
focus: focus$c,
|
|
5784
5789
|
setValue: setValue$2
|
|
5785
5790
|
};
|
|
5786
5791
|
|
|
@@ -5800,7 +5805,6 @@ const Log = 'log';
|
|
|
5800
5805
|
const Menu = 'menu';
|
|
5801
5806
|
const MenuItem = 'menuitem';
|
|
5802
5807
|
const None$1 = 'none';
|
|
5803
|
-
const Status = 'status';
|
|
5804
5808
|
const TabList = 'tablist';
|
|
5805
5809
|
const Toolbar = 'toolbar';
|
|
5806
5810
|
|
|
@@ -5813,7 +5817,7 @@ const setMaskImage = ($Element, icon) => {
|
|
|
5813
5817
|
}
|
|
5814
5818
|
};
|
|
5815
5819
|
|
|
5816
|
-
const create$
|
|
5820
|
+
const create$o = icon => {
|
|
5817
5821
|
const $Icon = document.createElement('div');
|
|
5818
5822
|
$Icon.className = 'MaskIcon';
|
|
5819
5823
|
setMaskImage($Icon, icon);
|
|
@@ -5823,7 +5827,7 @@ const create$p = icon => {
|
|
|
5823
5827
|
|
|
5824
5828
|
const create$Button = (label, icon) => {
|
|
5825
5829
|
// TODO icon div might not be needed (unnecessary HTML element)
|
|
5826
|
-
const $Icon = create$
|
|
5830
|
+
const $Icon = create$o(icon);
|
|
5827
5831
|
const $Button = document.createElement('button');
|
|
5828
5832
|
$Button.className = 'IconButton';
|
|
5829
5833
|
$Button.title = label;
|
|
@@ -5832,19 +5836,19 @@ const create$Button = (label, icon) => {
|
|
|
5832
5836
|
return $Button;
|
|
5833
5837
|
};
|
|
5834
5838
|
|
|
5835
|
-
const handleClick$
|
|
5839
|
+
const handleClick$3 = index => {
|
|
5836
5840
|
send$1(/* Dialog.handleClick */'Dialog.handleClick', /* index */index);
|
|
5837
5841
|
};
|
|
5838
5842
|
|
|
5839
|
-
const handleClick$
|
|
5843
|
+
const handleClick$2 = event => {
|
|
5840
5844
|
const {
|
|
5841
5845
|
target
|
|
5842
5846
|
} = event;
|
|
5843
5847
|
const index = getNodeIndex(target);
|
|
5844
|
-
handleClick$
|
|
5848
|
+
handleClick$3(index);
|
|
5845
5849
|
};
|
|
5846
5850
|
|
|
5847
|
-
const create$
|
|
5851
|
+
const create$n = () => {
|
|
5848
5852
|
const $DialogTitle = document.createElement('h2');
|
|
5849
5853
|
$DialogTitle.id = 'DialogTitle';
|
|
5850
5854
|
const $DialogCloseButton = create$Button('Close', 'Close');
|
|
@@ -5871,7 +5875,7 @@ const create$o = () => {
|
|
|
5871
5875
|
$Dialog.setAttribute(AriaLabelledBy, 'DialogTitle');
|
|
5872
5876
|
$Dialog.setAttribute(AriaDescribedBy, 'DialogBodyErrorMessage');
|
|
5873
5877
|
$Dialog.append($DialogHeader, $DialogBody);
|
|
5874
|
-
$Dialog.onclick = handleClick$
|
|
5878
|
+
$Dialog.onclick = handleClick$2;
|
|
5875
5879
|
return {
|
|
5876
5880
|
$DialogBodyErrorCodeFrame,
|
|
5877
5881
|
$DialogBodyErrorMessage,
|
|
@@ -5925,7 +5929,7 @@ const setErrorStack = (state, errorStack) => {
|
|
|
5925
5929
|
|
|
5926
5930
|
const ViewletDialog = {
|
|
5927
5931
|
__proto__: null,
|
|
5928
|
-
create: create$
|
|
5932
|
+
create: create$n,
|
|
5929
5933
|
postAppend,
|
|
5930
5934
|
setButtons,
|
|
5931
5935
|
setCodeFrame,
|
|
@@ -5979,7 +5983,7 @@ const handleClickAt$2 = event => {
|
|
|
5979
5983
|
const handleLoad$3 = event => {
|
|
5980
5984
|
return ['handleLoad'];
|
|
5981
5985
|
};
|
|
5982
|
-
const handleContextMenu$
|
|
5986
|
+
const handleContextMenu$4 = event => {
|
|
5983
5987
|
preventDefault(event);
|
|
5984
5988
|
const {
|
|
5985
5989
|
button,
|
|
@@ -5988,7 +5992,7 @@ const handleContextMenu$5 = event => {
|
|
|
5988
5992
|
} = event;
|
|
5989
5993
|
return ['handleContextMenu', button, clientX, clientY];
|
|
5990
5994
|
};
|
|
5991
|
-
const handleSashCornerPointerDown = create$
|
|
5995
|
+
const handleSashCornerPointerDown = create$q(event => {
|
|
5992
5996
|
const {
|
|
5993
5997
|
clientX,
|
|
5994
5998
|
clientY
|
|
@@ -6012,7 +6016,7 @@ const returnValue$6 = true;
|
|
|
6012
6016
|
const ViewletE2eTestEvents = {
|
|
6013
6017
|
__proto__: null,
|
|
6014
6018
|
handleClickAt: handleClickAt$2,
|
|
6015
|
-
handleContextMenu: handleContextMenu$
|
|
6019
|
+
handleContextMenu: handleContextMenu$4,
|
|
6016
6020
|
handleLoad: handleLoad$3,
|
|
6017
6021
|
handleSashCornerPointerDown,
|
|
6018
6022
|
returnValue: returnValue$6
|
|
@@ -6076,7 +6080,7 @@ const handleClickAt$1 = event => {
|
|
|
6076
6080
|
const handleLoad$2 = event => {
|
|
6077
6081
|
return ['handleLoad'];
|
|
6078
6082
|
};
|
|
6079
|
-
const handleContextMenu$
|
|
6083
|
+
const handleContextMenu$3 = event => {
|
|
6080
6084
|
preventDefault(event);
|
|
6081
6085
|
const {
|
|
6082
6086
|
button,
|
|
@@ -6090,7 +6094,7 @@ const returnValue$5 = true;
|
|
|
6090
6094
|
const ViewletE2eTestsEvents = {
|
|
6091
6095
|
__proto__: null,
|
|
6092
6096
|
handleClickAt: handleClickAt$1,
|
|
6093
|
-
handleContextMenu: handleContextMenu$
|
|
6097
|
+
handleContextMenu: handleContextMenu$3,
|
|
6094
6098
|
handleLoad: handleLoad$2,
|
|
6095
6099
|
returnValue: returnValue$5
|
|
6096
6100
|
};
|
|
@@ -6237,7 +6241,7 @@ const appendWidget$5 = state => {
|
|
|
6237
6241
|
const dispose$f = state => {
|
|
6238
6242
|
remove$1(state.$Viewlet);
|
|
6239
6243
|
};
|
|
6240
|
-
const focus$
|
|
6244
|
+
const focus$b = (state, key, source) => {
|
|
6241
6245
|
if (!key) {
|
|
6242
6246
|
return;
|
|
6243
6247
|
}
|
|
@@ -6261,7 +6265,7 @@ const ViewletEditorCodeGenerator = {
|
|
|
6261
6265
|
Events: ViewletEditorCodeGeneratorEvents,
|
|
6262
6266
|
appendWidget: appendWidget$5,
|
|
6263
6267
|
dispose: dispose$f,
|
|
6264
|
-
focus: focus$
|
|
6268
|
+
focus: focus$b,
|
|
6265
6269
|
setBounds: setBounds$9
|
|
6266
6270
|
};
|
|
6267
6271
|
|
|
@@ -6378,7 +6382,7 @@ const setNegativeMargin = (state, negativeMargin) => {
|
|
|
6378
6382
|
setTop($ListItems, negativeMargin);
|
|
6379
6383
|
};
|
|
6380
6384
|
|
|
6381
|
-
const create$
|
|
6385
|
+
const create$m = () => {
|
|
6382
6386
|
const $ListItems = document.createElement('div');
|
|
6383
6387
|
$ListItems.className = 'ListItems';
|
|
6384
6388
|
$ListItems.role = ListBox;
|
|
@@ -6419,7 +6423,7 @@ const attachEvents$6 = state => {
|
|
|
6419
6423
|
// TODO show should be passed active cursor position
|
|
6420
6424
|
// this would make this function easier to test as it would avoid dependency on globals of other files
|
|
6421
6425
|
|
|
6422
|
-
const setDom$
|
|
6426
|
+
const setDom$7 = (state, dom) => {
|
|
6423
6427
|
const {
|
|
6424
6428
|
$ListItems,
|
|
6425
6429
|
$Viewlet
|
|
@@ -6461,12 +6465,12 @@ const setBounds$8 = (state, x, y, width, height) => {
|
|
|
6461
6465
|
const ViewletEditorCompletion = {
|
|
6462
6466
|
__proto__: null,
|
|
6463
6467
|
attachEvents: attachEvents$6,
|
|
6464
|
-
create: create$
|
|
6468
|
+
create: create$m,
|
|
6465
6469
|
dispose: dispose$e,
|
|
6466
6470
|
handleError: handleError$5,
|
|
6467
6471
|
setBounds: setBounds$8,
|
|
6468
6472
|
setContentHeight,
|
|
6469
|
-
setDom: setDom$
|
|
6473
|
+
setDom: setDom$7,
|
|
6470
6474
|
setNegativeMargin,
|
|
6471
6475
|
setScrollBar,
|
|
6472
6476
|
setSize,
|
|
@@ -6484,7 +6488,7 @@ const ViewletEditorCompletionDetailsEvents = {
|
|
|
6484
6488
|
returnValue: returnValue$4
|
|
6485
6489
|
};
|
|
6486
6490
|
|
|
6487
|
-
const create$
|
|
6491
|
+
const create$l = () => {
|
|
6488
6492
|
const $Viewlet = document.createElement('div');
|
|
6489
6493
|
$Viewlet.className = 'Viewlet EditorCompletionDetails';
|
|
6490
6494
|
$Viewlet.id = 'CompletionsDetails';
|
|
@@ -6495,7 +6499,7 @@ const create$m = () => {
|
|
|
6495
6499
|
const attachEvents$5 = state => {
|
|
6496
6500
|
// TODO
|
|
6497
6501
|
};
|
|
6498
|
-
const setDom$
|
|
6502
|
+
const setDom$6 = (state, dom) => {
|
|
6499
6503
|
const {
|
|
6500
6504
|
$Viewlet
|
|
6501
6505
|
} = state;
|
|
@@ -6524,10 +6528,10 @@ const ViewletEditorCompletionDetails = {
|
|
|
6524
6528
|
Events: ViewletEditorCompletionDetailsEvents,
|
|
6525
6529
|
appendWidget: appendWidget$4,
|
|
6526
6530
|
attachEvents: attachEvents$5,
|
|
6527
|
-
create: create$
|
|
6531
|
+
create: create$l,
|
|
6528
6532
|
dispose: dispose$d,
|
|
6529
6533
|
setBounds: setBounds$7,
|
|
6530
|
-
setDom: setDom$
|
|
6534
|
+
setDom: setDom$6
|
|
6531
6535
|
};
|
|
6532
6536
|
|
|
6533
6537
|
// TODO not sure whether created DOM node
|
|
@@ -6543,14 +6547,14 @@ const ViewletEditorCompletionDetails = {
|
|
|
6543
6547
|
|
|
6544
6548
|
// TODO aria alert
|
|
6545
6549
|
|
|
6546
|
-
const create$
|
|
6550
|
+
const create$k = () => {
|
|
6547
6551
|
const $Viewlet = document.createElement('div');
|
|
6548
6552
|
$Viewlet.className = 'Viewlet EditorError';
|
|
6549
6553
|
return {
|
|
6550
6554
|
$Viewlet
|
|
6551
6555
|
};
|
|
6552
6556
|
};
|
|
6553
|
-
const setDom$
|
|
6557
|
+
const setDom$5 = (state, dom) => {
|
|
6554
6558
|
const {
|
|
6555
6559
|
$Viewlet
|
|
6556
6560
|
} = state;
|
|
@@ -6565,13 +6569,13 @@ const setBounds$6 = (state, x, y, width, height) => {
|
|
|
6565
6569
|
|
|
6566
6570
|
const ViewletEditorError = {
|
|
6567
6571
|
__proto__: null,
|
|
6568
|
-
create: create$
|
|
6572
|
+
create: create$k,
|
|
6569
6573
|
setBounds: setBounds$6,
|
|
6570
|
-
setDom: setDom$
|
|
6574
|
+
setDom: setDom$5
|
|
6571
6575
|
};
|
|
6572
6576
|
|
|
6573
6577
|
const returnValue$3 = true;
|
|
6574
|
-
const handleSashPointerDown$2 = create$
|
|
6578
|
+
const handleSashPointerDown$2 = create$q(event => {
|
|
6575
6579
|
const {
|
|
6576
6580
|
clientX,
|
|
6577
6581
|
clientY
|
|
@@ -6610,7 +6614,7 @@ const appendWidget$3 = state => {
|
|
|
6610
6614
|
} = state;
|
|
6611
6615
|
append$1($Viewlet);
|
|
6612
6616
|
};
|
|
6613
|
-
const setDom$
|
|
6617
|
+
const setDom$4 = (state, dom) => {
|
|
6614
6618
|
const {
|
|
6615
6619
|
$Viewlet
|
|
6616
6620
|
} = state;
|
|
@@ -6622,7 +6626,7 @@ const ViewletEditorHover = {
|
|
|
6622
6626
|
Events: ViewletEditorHoverEvents,
|
|
6623
6627
|
appendWidget: appendWidget$3,
|
|
6624
6628
|
setBounds: setBounds$5,
|
|
6625
|
-
setDom: setDom$
|
|
6629
|
+
setDom: setDom$4
|
|
6626
6630
|
};
|
|
6627
6631
|
|
|
6628
6632
|
const LeftClick = 0;
|
|
@@ -6704,7 +6708,7 @@ const handleWheel = event => {
|
|
|
6704
6708
|
*
|
|
6705
6709
|
* @param {MouseEvent} event
|
|
6706
6710
|
*/
|
|
6707
|
-
const handleContextMenu$
|
|
6711
|
+
const handleContextMenu$2 = event => {
|
|
6708
6712
|
preventDefault(event);
|
|
6709
6713
|
const {
|
|
6710
6714
|
button,
|
|
@@ -6712,18 +6716,18 @@ const handleContextMenu$3 = event => {
|
|
|
6712
6716
|
clientY
|
|
6713
6717
|
} = event;
|
|
6714
6718
|
const uid = fromEvent(event);
|
|
6715
|
-
handleContextMenu$
|
|
6719
|
+
handleContextMenu$5(uid, button, clientX, clientY);
|
|
6716
6720
|
};
|
|
6717
6721
|
const handleError$4 = event => {
|
|
6718
6722
|
const uid = fromEvent(event);
|
|
6719
6723
|
handleImageError(uid);
|
|
6720
6724
|
};
|
|
6721
|
-
const handleFocus$
|
|
6725
|
+
const handleFocus$5 = event => {
|
|
6722
6726
|
const uid = fromEvent(event);
|
|
6723
|
-
handleFocus$
|
|
6727
|
+
handleFocus$7(uid);
|
|
6724
6728
|
};
|
|
6725
6729
|
|
|
6726
|
-
const create$
|
|
6730
|
+
const create$j = () => {
|
|
6727
6731
|
const $Viewlet = document.createElement('div');
|
|
6728
6732
|
$Viewlet.className = 'Viewlet EditorImage';
|
|
6729
6733
|
return {
|
|
@@ -6735,8 +6739,8 @@ const attachEvents$4 = state => {
|
|
|
6735
6739
|
$Viewlet
|
|
6736
6740
|
} = state;
|
|
6737
6741
|
attachEvents$7($Viewlet, {
|
|
6738
|
-
[ContextMenu]: handleContextMenu$
|
|
6739
|
-
[FocusIn]: handleFocus$
|
|
6742
|
+
[ContextMenu]: handleContextMenu$2,
|
|
6743
|
+
[FocusIn]: handleFocus$5,
|
|
6740
6744
|
[PointerDown]: handlePointerDown$1,
|
|
6741
6745
|
[PointerUp]: handlePointerUp
|
|
6742
6746
|
});
|
|
@@ -6756,7 +6760,7 @@ const setDragging = (state, isDragging) => {
|
|
|
6756
6760
|
} = state;
|
|
6757
6761
|
$Viewlet.classList.toggle('Dragging', isDragging);
|
|
6758
6762
|
};
|
|
6759
|
-
const setDom$
|
|
6763
|
+
const setDom$3 = (state, dom) => {
|
|
6760
6764
|
const {
|
|
6761
6765
|
$Viewlet
|
|
6762
6766
|
} = state;
|
|
@@ -6766,13 +6770,13 @@ const setDom$4 = (state, dom) => {
|
|
|
6766
6770
|
const ViewletEditorImage = {
|
|
6767
6771
|
__proto__: null,
|
|
6768
6772
|
attachEvents: attachEvents$4,
|
|
6769
|
-
create: create$
|
|
6770
|
-
setDom: setDom$
|
|
6773
|
+
create: create$j,
|
|
6774
|
+
setDom: setDom$3,
|
|
6771
6775
|
setDragging,
|
|
6772
6776
|
setTransform
|
|
6773
6777
|
};
|
|
6774
6778
|
|
|
6775
|
-
const create$
|
|
6779
|
+
const create$i = () => {
|
|
6776
6780
|
const $Viewlet = document.createElement('div');
|
|
6777
6781
|
$Viewlet.className = 'Viewlet EditorText';
|
|
6778
6782
|
$Viewlet.textContent = 'loading...';
|
|
@@ -6789,7 +6793,7 @@ const refresh$2 = (state, context) => {
|
|
|
6789
6793
|
|
|
6790
6794
|
const ViewletEditorPlainText = {
|
|
6791
6795
|
__proto__: null,
|
|
6792
|
-
create: create$
|
|
6796
|
+
create: create$i,
|
|
6793
6797
|
dispose: dispose$c,
|
|
6794
6798
|
refresh: refresh$2
|
|
6795
6799
|
};
|
|
@@ -6830,7 +6834,7 @@ const ViewletEditorSourceActions = {
|
|
|
6830
6834
|
setBounds: setBounds$4
|
|
6831
6835
|
};
|
|
6832
6836
|
|
|
6833
|
-
const create$
|
|
6837
|
+
const create$h = () => {
|
|
6834
6838
|
const $Viewlet = document.createElement('div');
|
|
6835
6839
|
$Viewlet.className = 'Viewlet EditorTextError';
|
|
6836
6840
|
return {
|
|
@@ -6846,11 +6850,11 @@ const setMessage$3 = (state, message) => {
|
|
|
6846
6850
|
|
|
6847
6851
|
const ViewletEditorTextError = {
|
|
6848
6852
|
__proto__: null,
|
|
6849
|
-
create: create$
|
|
6853
|
+
create: create$h,
|
|
6850
6854
|
setMessage: setMessage$3
|
|
6851
6855
|
};
|
|
6852
6856
|
|
|
6853
|
-
const create$
|
|
6857
|
+
const create$g = () => {
|
|
6854
6858
|
const $Viewlet = document.createElement('div');
|
|
6855
6859
|
$Viewlet.className = 'Viewlet EditorWidgetError EditorOverlayMessage';
|
|
6856
6860
|
return {
|
|
@@ -6873,12 +6877,12 @@ const setBounds$3 = (state, x, y, width, height) => {
|
|
|
6873
6877
|
|
|
6874
6878
|
const ViewletEditorWidgetError = {
|
|
6875
6879
|
__proto__: null,
|
|
6876
|
-
create: create$
|
|
6880
|
+
create: create$g,
|
|
6877
6881
|
setBounds: setBounds$3,
|
|
6878
6882
|
setMessage: setMessage$2
|
|
6879
6883
|
};
|
|
6880
6884
|
|
|
6881
|
-
const create$
|
|
6885
|
+
const create$f = () => {
|
|
6882
6886
|
const $Viewlet = document.createElement('div');
|
|
6883
6887
|
$Viewlet.dataset.viewlet = 'Empty';
|
|
6884
6888
|
$Viewlet.className = 'Viewlet';
|
|
@@ -6887,18 +6891,18 @@ const create$g = () => {
|
|
|
6887
6891
|
};
|
|
6888
6892
|
};
|
|
6889
6893
|
const refresh$1 = (state, context) => {};
|
|
6890
|
-
const focus$
|
|
6894
|
+
const focus$a = state => {};
|
|
6891
6895
|
const dispose$a = state => {};
|
|
6892
6896
|
|
|
6893
6897
|
const ViewletEmpty = {
|
|
6894
6898
|
__proto__: null,
|
|
6895
|
-
create: create$
|
|
6899
|
+
create: create$f,
|
|
6896
6900
|
dispose: dispose$a,
|
|
6897
|
-
focus: focus$
|
|
6901
|
+
focus: focus$a,
|
|
6898
6902
|
refresh: refresh$1
|
|
6899
6903
|
};
|
|
6900
6904
|
|
|
6901
|
-
const create$
|
|
6905
|
+
const create$e = () => {
|
|
6902
6906
|
const $Viewlet = document.createElement('div');
|
|
6903
6907
|
$Viewlet.className = 'Viewlet EmptyEditor';
|
|
6904
6908
|
return {
|
|
@@ -6908,10 +6912,10 @@ const create$f = () => {
|
|
|
6908
6912
|
|
|
6909
6913
|
const ViewletEmptyEditor = {
|
|
6910
6914
|
__proto__: null,
|
|
6911
|
-
create: create$
|
|
6915
|
+
create: create$e
|
|
6912
6916
|
};
|
|
6913
6917
|
|
|
6914
|
-
const create$
|
|
6918
|
+
const create$d = () => {
|
|
6915
6919
|
const $Viewlet = document.createElement('div');
|
|
6916
6920
|
$Viewlet.className = 'Viewlet Error';
|
|
6917
6921
|
return {
|
|
@@ -6927,7 +6931,7 @@ const setMessage$1 = (state, message) => {
|
|
|
6927
6931
|
|
|
6928
6932
|
const ViewletError = {
|
|
6929
6933
|
__proto__: null,
|
|
6930
|
-
create: create$
|
|
6934
|
+
create: create$d,
|
|
6931
6935
|
setMessage: setMessage$1
|
|
6932
6936
|
};
|
|
6933
6937
|
|
|
@@ -6967,7 +6971,7 @@ const setIframeSrc = ($Iframe, src, srcDoc = '') => {
|
|
|
6967
6971
|
}
|
|
6968
6972
|
};
|
|
6969
6973
|
|
|
6970
|
-
const focus$
|
|
6974
|
+
const focus$9 = state => {
|
|
6971
6975
|
state.$Viewlet.focus();
|
|
6972
6976
|
};
|
|
6973
6977
|
const setIframe$1 = (state, src, sandbox = [], srcDoc = '', csp = '', credentialless = true, title = '') => {
|
|
@@ -6991,11 +6995,11 @@ const setIframe$1 = (state, src, sandbox = [], srcDoc = '', csp = '', credential
|
|
|
6991
6995
|
const ViewletExtensionView = {
|
|
6992
6996
|
__proto__: null,
|
|
6993
6997
|
Events: ViewletExtensionViewEvents,
|
|
6994
|
-
focus: focus$
|
|
6998
|
+
focus: focus$9,
|
|
6995
6999
|
setIframe: setIframe$1
|
|
6996
7000
|
};
|
|
6997
7001
|
|
|
6998
|
-
const handleInput$
|
|
7002
|
+
const handleInput$3 = event => {
|
|
6999
7003
|
const {
|
|
7000
7004
|
target
|
|
7001
7005
|
} = event;
|
|
@@ -7043,7 +7047,7 @@ const handleReplaceInput = event => {
|
|
|
7043
7047
|
const handleReplaceFocus = event => {
|
|
7044
7048
|
return ['FindWidget.handleReplaceFocus'];
|
|
7045
7049
|
};
|
|
7046
|
-
const handleFocus$
|
|
7050
|
+
const handleFocus$4 = event => {
|
|
7047
7051
|
return ['FindWidget.handleFocus'];
|
|
7048
7052
|
};
|
|
7049
7053
|
const handleToggleReplaceFocus = event => {
|
|
@@ -7071,12 +7075,12 @@ const ViewletFindWidgetEvents = {
|
|
|
7071
7075
|
handleClickReplace,
|
|
7072
7076
|
handleClickReplaceAll,
|
|
7073
7077
|
handleClickToggleReplace,
|
|
7074
|
-
handleFocus: handleFocus$
|
|
7078
|
+
handleFocus: handleFocus$4,
|
|
7075
7079
|
handleFocusClose,
|
|
7076
7080
|
handleFocusNext,
|
|
7077
7081
|
handleFocusPrevious,
|
|
7078
7082
|
handleFocusReplaceAll,
|
|
7079
|
-
handleInput: handleInput$
|
|
7083
|
+
handleInput: handleInput$3,
|
|
7080
7084
|
handleInputBlur,
|
|
7081
7085
|
handleReplaceFocus,
|
|
7082
7086
|
handleReplaceInput,
|
|
@@ -7084,7 +7088,7 @@ const ViewletFindWidgetEvents = {
|
|
|
7084
7088
|
returnValue: returnValue$2
|
|
7085
7089
|
};
|
|
7086
7090
|
|
|
7087
|
-
const create$
|
|
7091
|
+
const create$c = () => {
|
|
7088
7092
|
const $Viewlet = document.createElement('div');
|
|
7089
7093
|
$Viewlet.className = 'Viewlet FindWidget';
|
|
7090
7094
|
$Viewlet.role = Group;
|
|
@@ -7092,7 +7096,7 @@ const create$d = () => {
|
|
|
7092
7096
|
$Viewlet
|
|
7093
7097
|
};
|
|
7094
7098
|
};
|
|
7095
|
-
const focus$
|
|
7099
|
+
const focus$8 = (state, key, source) => {
|
|
7096
7100
|
if (!key) {
|
|
7097
7101
|
return;
|
|
7098
7102
|
}
|
|
@@ -7126,7 +7130,7 @@ const appendWidget$1 = state => {
|
|
|
7126
7130
|
} = state;
|
|
7127
7131
|
append$1($Viewlet);
|
|
7128
7132
|
};
|
|
7129
|
-
const setDom$
|
|
7133
|
+
const setDom$2 = (state, dom) => {
|
|
7130
7134
|
const {
|
|
7131
7135
|
$Viewlet
|
|
7132
7136
|
} = state;
|
|
@@ -7147,11 +7151,11 @@ const ViewletFindWidget = {
|
|
|
7147
7151
|
__proto__: null,
|
|
7148
7152
|
Events: Events$4,
|
|
7149
7153
|
appendWidget: appendWidget$1,
|
|
7150
|
-
create: create$
|
|
7154
|
+
create: create$c,
|
|
7151
7155
|
dispose: dispose$9,
|
|
7152
|
-
focus: focus$
|
|
7156
|
+
focus: focus$8,
|
|
7153
7157
|
setBounds: setBounds$2,
|
|
7154
|
-
setDom: setDom$
|
|
7158
|
+
setDom: setDom$2,
|
|
7155
7159
|
setValue: setValue$1
|
|
7156
7160
|
};
|
|
7157
7161
|
|
|
@@ -7201,7 +7205,7 @@ const handleError$3 = (state, message) => {
|
|
|
7201
7205
|
} = state;
|
|
7202
7206
|
$Message.textContent = message;
|
|
7203
7207
|
};
|
|
7204
|
-
const focus$
|
|
7208
|
+
const focus$7 = state => {
|
|
7205
7209
|
const {
|
|
7206
7210
|
$Locations
|
|
7207
7211
|
} = state;
|
|
@@ -7213,7 +7217,7 @@ const focus$9 = state => {
|
|
|
7213
7217
|
const ViewletImplementations = {
|
|
7214
7218
|
__proto__: null,
|
|
7215
7219
|
Events: ViewletLocationsEvents,
|
|
7216
|
-
focus: focus$
|
|
7220
|
+
focus: focus$7,
|
|
7217
7221
|
handleError: handleError$3,
|
|
7218
7222
|
setFocusedIndex: setFocusedIndex$1
|
|
7219
7223
|
};
|
|
@@ -7440,7 +7444,7 @@ const handleSashDoubleClick$1 = id => {
|
|
|
7440
7444
|
const handleResize$1 = (width, height) => {
|
|
7441
7445
|
send$1('Layout.handleResize', width, height);
|
|
7442
7446
|
};
|
|
7443
|
-
const handleFocus$
|
|
7447
|
+
const handleFocus$3 = () => {
|
|
7444
7448
|
send$1('Layout.handleFocus');
|
|
7445
7449
|
};
|
|
7446
7450
|
const handleBlur$3 = () => {
|
|
@@ -7489,8 +7493,8 @@ const handleResize = () => {
|
|
|
7489
7493
|
} = window;
|
|
7490
7494
|
handleResize$1(innerWidth, innerHeight);
|
|
7491
7495
|
};
|
|
7492
|
-
const handleFocus$
|
|
7493
|
-
handleFocus$
|
|
7496
|
+
const handleFocus$2 = () => {
|
|
7497
|
+
handleFocus$3();
|
|
7494
7498
|
};
|
|
7495
7499
|
const handleBlur$2 = () => {
|
|
7496
7500
|
handleBlur$3();
|
|
@@ -7498,7 +7502,7 @@ const handleBlur$2 = () => {
|
|
|
7498
7502
|
const handleKeyDown$1 = handleKeyDown$2;
|
|
7499
7503
|
const handleKeyUp = handleKeyUp$1;
|
|
7500
7504
|
|
|
7501
|
-
const create$
|
|
7505
|
+
const create$b = () => {
|
|
7502
7506
|
// TODO use aria role splitter once supported https://github.com/w3c/aria/issues/1348
|
|
7503
7507
|
const $SashSidebar = document.createElement('div');
|
|
7504
7508
|
$SashSidebar.className = 'Viewlet Sash SashVertical';
|
|
@@ -7534,7 +7538,7 @@ const attachEvents$3 = state => {
|
|
|
7534
7538
|
});
|
|
7535
7539
|
attachEvents$7(window, {
|
|
7536
7540
|
[Blur]: handleBlur$2,
|
|
7537
|
-
[Focus]: handleFocus$
|
|
7541
|
+
[Focus]: handleFocus$2,
|
|
7538
7542
|
[KeyDown]: handleKeyDown$1,
|
|
7539
7543
|
[KeyUp]: handleKeyUp,
|
|
7540
7544
|
[Resize]: handleResize
|
|
@@ -7554,7 +7558,7 @@ const setSashes = (state, sashSidebar, sashPanel) => {
|
|
|
7554
7558
|
const ViewletLayout = {
|
|
7555
7559
|
__proto__: null,
|
|
7556
7560
|
attachEvents: attachEvents$3,
|
|
7557
|
-
create: create$
|
|
7561
|
+
create: create$b,
|
|
7558
7562
|
setSashes
|
|
7559
7563
|
};
|
|
7560
7564
|
|
|
@@ -7590,8 +7594,6 @@ const ScreenCapture = 'ScreenCapture';
|
|
|
7590
7594
|
const Sidebar$1 = 'SideBar';
|
|
7591
7595
|
const SimpleBrowser = 'SimpleBrowser';
|
|
7592
7596
|
const SimpleBrowserHistory = 'SimpleBrowserHistory';
|
|
7593
|
-
const SourceControl = 'Source Control';
|
|
7594
|
-
const StatusBar$1 = 'StatusBar';
|
|
7595
7597
|
const Storage = 'Storage';
|
|
7596
7598
|
const Terminal2 = 'Terminal2';
|
|
7597
7599
|
const Terminals = 'Terminals';
|
|
@@ -7622,7 +7624,7 @@ const getElement = () => {
|
|
|
7622
7624
|
return state$8.$PreviousFocusElement;
|
|
7623
7625
|
};
|
|
7624
7626
|
|
|
7625
|
-
const focus$
|
|
7627
|
+
const focus$6 = $Element => {
|
|
7626
7628
|
if ($Element === document.activeElement) {
|
|
7627
7629
|
return;
|
|
7628
7630
|
}
|
|
@@ -7639,7 +7641,7 @@ const focusPrevious = () => {
|
|
|
7639
7641
|
}
|
|
7640
7642
|
};
|
|
7641
7643
|
|
|
7642
|
-
const create$
|
|
7644
|
+
const create$a = () => {
|
|
7643
7645
|
const $ViewletOutputContent = document.createElement('div');
|
|
7644
7646
|
$ViewletOutputContent.className = 'OutputContent';
|
|
7645
7647
|
$ViewletOutputContent.role = Log;
|
|
@@ -7671,9 +7673,9 @@ const handleError$2 = (state, error) => {
|
|
|
7671
7673
|
string(error);
|
|
7672
7674
|
state.content.textContent = error;
|
|
7673
7675
|
};
|
|
7674
|
-
const focus$
|
|
7676
|
+
const focus$5 = state => {
|
|
7675
7677
|
object(state);
|
|
7676
|
-
focus$
|
|
7678
|
+
focus$6(state.$ViewletOutputContent);
|
|
7677
7679
|
send$1('Focus.setFocus', FocusOutput);
|
|
7678
7680
|
};
|
|
7679
7681
|
|
|
@@ -7691,10 +7693,10 @@ const dispose$8 = state => {};
|
|
|
7691
7693
|
const ViewletOutput = {
|
|
7692
7694
|
__proto__: null,
|
|
7693
7695
|
clear: clear$1,
|
|
7694
|
-
create: create$
|
|
7696
|
+
create: create$a,
|
|
7695
7697
|
dispose: dispose$8,
|
|
7696
7698
|
disposeFindWidget,
|
|
7697
|
-
focus: focus$
|
|
7699
|
+
focus: focus$5,
|
|
7698
7700
|
handleError: handleError$2,
|
|
7699
7701
|
openFindWidget,
|
|
7700
7702
|
setText
|
|
@@ -7747,7 +7749,7 @@ const UiStrings = {
|
|
|
7747
7749
|
Close: 'Close',
|
|
7748
7750
|
Maximize: 'Maximize'
|
|
7749
7751
|
};
|
|
7750
|
-
const create$
|
|
7752
|
+
const create$9 = () => {
|
|
7751
7753
|
const $PanelTabs = document.createElement('div');
|
|
7752
7754
|
$PanelTabs.className = 'PanelTabs';
|
|
7753
7755
|
$PanelTabs.role = TabList;
|
|
@@ -7809,7 +7811,7 @@ const setTabsDom$1 = (state, dom) => {
|
|
|
7809
7811
|
};
|
|
7810
7812
|
|
|
7811
7813
|
// TODO add test for focus method
|
|
7812
|
-
const focus$
|
|
7814
|
+
const focus$4 = state => {
|
|
7813
7815
|
object(state);
|
|
7814
7816
|
if (!state.currentViewlet) {
|
|
7815
7817
|
return;
|
|
@@ -7861,9 +7863,9 @@ const setActionsDom$1 = (state, actions, childUid) => {
|
|
|
7861
7863
|
const ViewletPanel = {
|
|
7862
7864
|
__proto__: null,
|
|
7863
7865
|
attachEvents: attachEvents$2,
|
|
7864
|
-
create: create$
|
|
7866
|
+
create: create$9,
|
|
7865
7867
|
dispose: dispose$7,
|
|
7866
|
-
focus: focus$
|
|
7868
|
+
focus: focus$4,
|
|
7867
7869
|
setActionsDom: setActionsDom$1,
|
|
7868
7870
|
setSelectedIndex,
|
|
7869
7871
|
setTabsDom: setTabsDom$1
|
|
@@ -7872,7 +7874,7 @@ const ViewletPanel = {
|
|
|
7872
7874
|
const ViewletReferences = {
|
|
7873
7875
|
__proto__: null,
|
|
7874
7876
|
Events: ViewletLocationsEvents,
|
|
7875
|
-
focus: focus$
|
|
7877
|
+
focus: focus$7,
|
|
7876
7878
|
handleError: handleError$3,
|
|
7877
7879
|
setFocusedIndex: setFocusedIndex$1
|
|
7878
7880
|
};
|
|
@@ -7912,7 +7914,7 @@ const handleLoadedMetadata = event => {
|
|
|
7912
7914
|
target.play();
|
|
7913
7915
|
};
|
|
7914
7916
|
|
|
7915
|
-
const create$
|
|
7917
|
+
const create$8 = () => {
|
|
7916
7918
|
const $Viewlet = document.createElement('div');
|
|
7917
7919
|
$Viewlet.className = 'Viewlet ScreenCapture';
|
|
7918
7920
|
return {
|
|
@@ -7932,12 +7934,11 @@ const setScreenCapture = (state, id) => {
|
|
|
7932
7934
|
|
|
7933
7935
|
const ViewletScreenCapture = {
|
|
7934
7936
|
__proto__: null,
|
|
7935
|
-
create: create$
|
|
7937
|
+
create: create$8,
|
|
7936
7938
|
setScreenCapture
|
|
7937
7939
|
};
|
|
7938
7940
|
|
|
7939
7941
|
const Sidebar = 'Side Bar';
|
|
7940
|
-
const StatusBar = 'Status Bar';
|
|
7941
7942
|
|
|
7942
7943
|
const handleClickAction = (target, uid) => {
|
|
7943
7944
|
const index = getNodeIndex(target);
|
|
@@ -7956,7 +7957,7 @@ const handleHeaderClick = event => {
|
|
|
7956
7957
|
}
|
|
7957
7958
|
};
|
|
7958
7959
|
|
|
7959
|
-
const create$
|
|
7960
|
+
const create$7 = () => {
|
|
7960
7961
|
const $SidebarTitleAreaTitle = document.createElement('h2');
|
|
7961
7962
|
$SidebarTitleAreaTitle.className = 'SideBarTitleAreaTitle';
|
|
7962
7963
|
const $SidebarTitleArea = document.createElement('div');
|
|
@@ -8013,23 +8014,23 @@ const setActionsDom = (state, actions, parentId, eventMap = {}) => {
|
|
|
8013
8014
|
}
|
|
8014
8015
|
state.$Actions = $NewViewlet;
|
|
8015
8016
|
};
|
|
8016
|
-
const focus$
|
|
8017
|
+
const focus$3 = async () => {
|
|
8017
8018
|
// await
|
|
8018
8019
|
};
|
|
8019
8020
|
|
|
8020
8021
|
const ViewletSidebar = {
|
|
8021
8022
|
__proto__: null,
|
|
8022
8023
|
attachEvents: attachEvents$1,
|
|
8023
|
-
create: create$
|
|
8024
|
+
create: create$7,
|
|
8024
8025
|
dispose: dispose$6,
|
|
8025
|
-
focus: focus$
|
|
8026
|
+
focus: focus$3,
|
|
8026
8027
|
setActionsDom,
|
|
8027
8028
|
setTitle
|
|
8028
8029
|
};
|
|
8029
8030
|
|
|
8030
8031
|
const pendingSelections = new WeakMap();
|
|
8031
8032
|
const state$7 = {};
|
|
8032
|
-
const handleFocus$
|
|
8033
|
+
const handleFocus$1 = event => {
|
|
8033
8034
|
const target = event.target;
|
|
8034
8035
|
if (target instanceof HTMLElement && !target.closest('.SimpleBrowser') && target.closest('.Main, .Panel, .Editor, .Terminal')) {
|
|
8035
8036
|
state$7.codingFocus = new WeakRef(target);
|
|
@@ -8055,7 +8056,7 @@ const cancelPendingAddressSelection = event => {
|
|
|
8055
8056
|
pendingSelections.delete(address);
|
|
8056
8057
|
};
|
|
8057
8058
|
const listen = () => {
|
|
8058
|
-
document.addEventListener('focusin', handleFocus$
|
|
8059
|
+
document.addEventListener('focusin', handleFocus$1);
|
|
8059
8060
|
document.addEventListener('focusout', handleFocusOut$2);
|
|
8060
8061
|
document.addEventListener('input', cancelPendingAddressSelection);
|
|
8061
8062
|
document.addEventListener('keydown', cancelPendingAddressSelection);
|
|
@@ -8124,7 +8125,7 @@ const restoreBrowserParent$1 = uid => {
|
|
|
8124
8125
|
if (browser && marker.isConnected) marker.replaceWith(browser);else marker.remove();
|
|
8125
8126
|
};
|
|
8126
8127
|
|
|
8127
|
-
const handleInput$
|
|
8128
|
+
const handleInput$2 = value => {
|
|
8128
8129
|
send$1('SimpleBrowser.handleInput', value);
|
|
8129
8130
|
};
|
|
8130
8131
|
const acceptSuggestion = value => {
|
|
@@ -8150,14 +8151,14 @@ const openExternal = () => {
|
|
|
8150
8151
|
};
|
|
8151
8152
|
|
|
8152
8153
|
const simpleBrowserAddressName = 'simple-browser-address';
|
|
8153
|
-
const handleInput$
|
|
8154
|
+
const handleInput$1 = event => {
|
|
8154
8155
|
const {
|
|
8155
8156
|
target
|
|
8156
8157
|
} = event;
|
|
8157
8158
|
const {
|
|
8158
8159
|
value
|
|
8159
8160
|
} = target;
|
|
8160
|
-
handleInput$
|
|
8161
|
+
handleInput$2(value);
|
|
8161
8162
|
};
|
|
8162
8163
|
const handleClickSuggestion = event => {
|
|
8163
8164
|
const suggestion = event.target.closest?.('.SimpleBrowserSuggestion');
|
|
@@ -8167,7 +8168,7 @@ const handleClickSuggestion = event => {
|
|
|
8167
8168
|
}
|
|
8168
8169
|
acceptSuggestion(value);
|
|
8169
8170
|
};
|
|
8170
|
-
const handleFocus
|
|
8171
|
+
const handleFocus = event => {
|
|
8171
8172
|
const {
|
|
8172
8173
|
target
|
|
8173
8174
|
} = event;
|
|
@@ -8222,8 +8223,8 @@ const ViewletSimpleBrowserEvents = {
|
|
|
8222
8223
|
handleClickOpenExternal,
|
|
8223
8224
|
handleClickReload,
|
|
8224
8225
|
handleClickSuggestion,
|
|
8225
|
-
handleFocus
|
|
8226
|
-
handleInput: handleInput$
|
|
8226
|
+
handleFocus,
|
|
8227
|
+
handleInput: handleInput$1
|
|
8227
8228
|
};
|
|
8228
8229
|
|
|
8229
8230
|
const ViewletSimpleBrowser = {
|
|
@@ -8235,185 +8236,9 @@ const ViewletSimpleBrowserHistory = {
|
|
|
8235
8236
|
__proto__: null
|
|
8236
8237
|
};
|
|
8237
8238
|
|
|
8238
|
-
// TODO this module should be called DOM or DOM utils
|
|
8239
|
-
|
|
8240
|
-
// TODO this module makes for weird code splitting chunks,
|
|
8241
|
-
// maybe duplicate the code per file for better chunks
|
|
8242
|
-
|
|
8243
|
-
const findIndex$1 = ($Container, $Target) => {
|
|
8244
|
-
while ($Target && $Target.parentNode !== $Container) {
|
|
8245
|
-
$Target = $Target.parentNode;
|
|
8246
|
-
}
|
|
8247
|
-
if (!$Target) {
|
|
8248
|
-
return -1;
|
|
8249
|
-
}
|
|
8250
|
-
for (let i = 0; i < $Container.children.length; i++) {
|
|
8251
|
-
if ($Container.children[i] === $Target) {
|
|
8252
|
-
return i;
|
|
8253
|
-
}
|
|
8254
|
-
}
|
|
8255
|
-
return -1;
|
|
8256
|
-
};
|
|
8257
|
-
|
|
8258
|
-
const handleContextMenu$2 = event => {
|
|
8259
|
-
preventDefault(event);
|
|
8260
|
-
const {
|
|
8261
|
-
button,
|
|
8262
|
-
clientX,
|
|
8263
|
-
clientY
|
|
8264
|
-
} = event;
|
|
8265
|
-
const uid = fromEvent(event);
|
|
8266
|
-
handleContextMenu$6(uid, button, clientX, clientY);
|
|
8267
|
-
};
|
|
8268
|
-
|
|
8269
|
-
const handleFocus = event => {
|
|
8270
|
-
const uid = fromEvent(event);
|
|
8271
|
-
handleFocus$8(uid);
|
|
8272
|
-
};
|
|
8273
|
-
const getButtonIndex = $Node => {
|
|
8274
|
-
let index = -1;
|
|
8275
|
-
while ($Node?.classList.contains('SourceControlButton')) {
|
|
8276
|
-
$Node = $Node.previousElementSibling;
|
|
8277
|
-
index++;
|
|
8278
|
-
}
|
|
8279
|
-
return index;
|
|
8280
|
-
};
|
|
8281
|
-
const handleClick$3 = event => {
|
|
8282
|
-
const {
|
|
8283
|
-
target
|
|
8284
|
-
} = event;
|
|
8285
|
-
const uid = fromEvent(event);
|
|
8286
|
-
const $Button = target.closest?.('.SourceControlButton');
|
|
8287
|
-
if ($Button) {
|
|
8288
|
-
const index = getButtonIndex($Button);
|
|
8289
|
-
handleButtonClick(uid, index);
|
|
8290
|
-
return;
|
|
8291
|
-
}
|
|
8292
|
-
const $Parent = target.closest('.SourceControlItems');
|
|
8293
|
-
if (!$Parent) {
|
|
8294
|
-
return;
|
|
8295
|
-
}
|
|
8296
|
-
const index = findIndex$1($Parent, target);
|
|
8297
|
-
if (index === -1) {
|
|
8298
|
-
return;
|
|
8299
|
-
}
|
|
8300
|
-
handleClick$6(uid, index);
|
|
8301
|
-
};
|
|
8302
|
-
const handleMouseOver = event => {
|
|
8303
|
-
const {
|
|
8304
|
-
target
|
|
8305
|
-
} = event;
|
|
8306
|
-
const $Parent = target.closest('.SourceControlItems');
|
|
8307
|
-
if (!$Parent) {
|
|
8308
|
-
return;
|
|
8309
|
-
}
|
|
8310
|
-
const index = findIndex$1($Parent, target);
|
|
8311
|
-
const uid = fromEvent(event);
|
|
8312
|
-
handleMouseOver$1(uid, index);
|
|
8313
|
-
};
|
|
8314
|
-
const handleMouseOut = event => {
|
|
8315
|
-
const {
|
|
8316
|
-
relatedTarget,
|
|
8317
|
-
target
|
|
8318
|
-
} = event;
|
|
8319
|
-
if (!relatedTarget) {
|
|
8320
|
-
return;
|
|
8321
|
-
}
|
|
8322
|
-
const $Parent = relatedTarget.closest('.SourceControlItems');
|
|
8323
|
-
const uid = fromEvent(event);
|
|
8324
|
-
if (!$Parent) {
|
|
8325
|
-
handleMouseOut$1(uid, -1);
|
|
8326
|
-
return;
|
|
8327
|
-
}
|
|
8328
|
-
const index = findIndex$1($Parent, target);
|
|
8329
|
-
handleMouseOut$1(uid, index);
|
|
8330
|
-
};
|
|
8331
|
-
const handleInput$1 = event => {
|
|
8332
|
-
const {
|
|
8333
|
-
target
|
|
8334
|
-
} = event;
|
|
8335
|
-
const {
|
|
8336
|
-
value
|
|
8337
|
-
} = target;
|
|
8338
|
-
const uid = fromEvent(event);
|
|
8339
|
-
handleInput$6(uid, value);
|
|
8340
|
-
};
|
|
8341
|
-
|
|
8342
|
-
const ViewletSourceControlEvents = {
|
|
8343
|
-
__proto__: null,
|
|
8344
|
-
handleClick: handleClick$3,
|
|
8345
|
-
handleContextMenu: handleContextMenu$2,
|
|
8346
|
-
handleFocus,
|
|
8347
|
-
handleInput: handleInput$1,
|
|
8348
|
-
handleMouseOut,
|
|
8349
|
-
handleMouseOver,
|
|
8350
|
-
handleWheel: handleWheel$2
|
|
8351
|
-
};
|
|
8352
|
-
|
|
8353
|
-
const focus$4 = state => {
|
|
8354
|
-
const {
|
|
8355
|
-
$Viewlet
|
|
8356
|
-
} = state;
|
|
8357
|
-
$Viewlet.querySelector(':scope input').focus();
|
|
8358
|
-
};
|
|
8359
|
-
|
|
8360
|
-
const ViewletSourceControl = {
|
|
8361
|
-
__proto__: null,
|
|
8362
|
-
Events: ViewletSourceControlEvents,
|
|
8363
|
-
focus: focus$4
|
|
8364
|
-
};
|
|
8365
|
-
|
|
8366
|
-
const handleClick$2 = event => {
|
|
8367
|
-
const uid = fromEvent(event);
|
|
8368
|
-
const {
|
|
8369
|
-
clientX,
|
|
8370
|
-
clientY
|
|
8371
|
-
} = event;
|
|
8372
|
-
handleClick$6(uid, clientX, clientY);
|
|
8373
|
-
};
|
|
8374
|
-
|
|
8375
|
-
const ViewletStatusBarEvents = {
|
|
8376
|
-
__proto__: null,
|
|
8377
|
-
handleClick: handleClick$2
|
|
8378
|
-
};
|
|
8379
|
-
|
|
8380
|
-
const create$7 = () => {
|
|
8381
|
-
const $Viewlet = document.createElement('div');
|
|
8382
|
-
$Viewlet.id = 'StatusBar';
|
|
8383
|
-
$Viewlet.className = 'Viewlet StatusBar';
|
|
8384
|
-
$Viewlet.tabIndex = 0;
|
|
8385
|
-
$Viewlet.role = Status;
|
|
8386
|
-
$Viewlet.ariaRoleDescription = StatusBar;
|
|
8387
|
-
$Viewlet.ariaLive = 'off'; // see https://github.com/microsoft/vscode/issues/94677
|
|
8388
|
-
$Viewlet.addEventListener('click', handleClick$2);
|
|
8389
|
-
return {
|
|
8390
|
-
$Viewlet
|
|
8391
|
-
};
|
|
8392
|
-
};
|
|
8393
|
-
const setDom$2 = (state, dom) => {
|
|
8394
|
-
const {
|
|
8395
|
-
$Viewlet
|
|
8396
|
-
} = state;
|
|
8397
|
-
renderInto($Viewlet, dom, ViewletStatusBarEvents);
|
|
8398
|
-
};
|
|
8399
|
-
const focus$3 = state => {
|
|
8400
|
-
object(state);
|
|
8401
|
-
const {
|
|
8402
|
-
$Viewlet
|
|
8403
|
-
} = state;
|
|
8404
|
-
$Viewlet.focus();
|
|
8405
|
-
};
|
|
8406
|
-
|
|
8407
|
-
const ViewletStatusBar = {
|
|
8408
|
-
__proto__: null,
|
|
8409
|
-
create: create$7,
|
|
8410
|
-
focus: focus$3,
|
|
8411
|
-
setDom: setDom$2
|
|
8412
|
-
};
|
|
8413
|
-
|
|
8414
8239
|
const handleClick$1 = event => {
|
|
8415
8240
|
const uid = fromEvent(event);
|
|
8416
|
-
handleClick$
|
|
8241
|
+
handleClick$4(uid);
|
|
8417
8242
|
};
|
|
8418
8243
|
|
|
8419
8244
|
const ViewletStorageEvents = {
|
|
@@ -8527,6 +8352,26 @@ const create$BackDrop = () => {
|
|
|
8527
8352
|
return $BackDrop;
|
|
8528
8353
|
};
|
|
8529
8354
|
|
|
8355
|
+
// TODO this module should be called DOM or DOM utils
|
|
8356
|
+
|
|
8357
|
+
// TODO this module makes for weird code splitting chunks,
|
|
8358
|
+
// maybe duplicate the code per file for better chunks
|
|
8359
|
+
|
|
8360
|
+
const findIndex$1 = ($Container, $Target) => {
|
|
8361
|
+
while ($Target && $Target.parentNode !== $Container) {
|
|
8362
|
+
$Target = $Target.parentNode;
|
|
8363
|
+
}
|
|
8364
|
+
if (!$Target) {
|
|
8365
|
+
return -1;
|
|
8366
|
+
}
|
|
8367
|
+
for (let i = 0; i < $Container.children.length; i++) {
|
|
8368
|
+
if ($Container.children[i] === $Target) {
|
|
8369
|
+
return i;
|
|
8370
|
+
}
|
|
8371
|
+
}
|
|
8372
|
+
return -1;
|
|
8373
|
+
};
|
|
8374
|
+
|
|
8530
8375
|
// TODO when pressing tab -> focus next element in tab order and close menu
|
|
8531
8376
|
|
|
8532
8377
|
// TODO menu and contextmenu should have own keybinding logic
|
|
@@ -8721,7 +8566,7 @@ const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom = [],
|
|
|
8721
8566
|
state$6.$$Menus.push($Menu);
|
|
8722
8567
|
append$1($Menu);
|
|
8723
8568
|
if (level === 0) {
|
|
8724
|
-
focus$
|
|
8569
|
+
focus$6($Menu);
|
|
8725
8570
|
send$1('Focus.setFocus', FocusMenu);
|
|
8726
8571
|
}
|
|
8727
8572
|
};
|
|
@@ -8839,7 +8684,7 @@ const handlePointerOver = event => {
|
|
|
8839
8684
|
} = event;
|
|
8840
8685
|
const index = getIndex(target);
|
|
8841
8686
|
const uid = fromEvent(event);
|
|
8842
|
-
handleMouseOver
|
|
8687
|
+
handleMouseOver(uid, index);
|
|
8843
8688
|
};
|
|
8844
8689
|
const handlePointerOut = event => {
|
|
8845
8690
|
const {
|
|
@@ -8847,7 +8692,7 @@ const handlePointerOut = event => {
|
|
|
8847
8692
|
} = event;
|
|
8848
8693
|
const index = getIndex(target);
|
|
8849
8694
|
const uid = fromEvent(event);
|
|
8850
|
-
handleMouseOut
|
|
8695
|
+
handleMouseOut(uid, index);
|
|
8851
8696
|
};
|
|
8852
8697
|
const getIndex = $Target => {
|
|
8853
8698
|
if ($Target.classList.contains('TitleBarTopLevelEntry')) {
|
|
@@ -8862,7 +8707,7 @@ const handleClick = event => {
|
|
|
8862
8707
|
} = event;
|
|
8863
8708
|
const index = getIndex(target);
|
|
8864
8709
|
const uid = fromEvent(event);
|
|
8865
|
-
handleClick$
|
|
8710
|
+
handleClick$4(uid, button, index);
|
|
8866
8711
|
};
|
|
8867
8712
|
const getLevelAndIndex = event => {
|
|
8868
8713
|
const {
|
|
@@ -8908,7 +8753,7 @@ const handleMenuClick = event => {
|
|
|
8908
8753
|
};
|
|
8909
8754
|
const handleFocusIn$1 = event => {
|
|
8910
8755
|
const uid = fromEvent(event);
|
|
8911
|
-
handleFocus$
|
|
8756
|
+
handleFocus$7(uid);
|
|
8912
8757
|
};
|
|
8913
8758
|
|
|
8914
8759
|
const ViewletTitleBarMenuBarEvents = {
|
|
@@ -9434,8 +9279,6 @@ const moduleLoaders = {
|
|
|
9434
9279
|
[Sidebar$1]: () => ViewletSidebar,
|
|
9435
9280
|
[SimpleBrowser]: () => ViewletSimpleBrowser,
|
|
9436
9281
|
[SimpleBrowserHistory]: () => ViewletSimpleBrowserHistory,
|
|
9437
|
-
[SourceControl]: () => ViewletSourceControl,
|
|
9438
|
-
[StatusBar$1]: () => ViewletStatusBar,
|
|
9439
9282
|
[Storage]: () => ViewletStorage,
|
|
9440
9283
|
[Terminal2]: () => Promise.resolve().then(function () { return ViewletTerminal2; }),
|
|
9441
9284
|
[Terminals]: () => ViewletTerminals,
|
|
@@ -9957,7 +9800,7 @@ const move = async (uid, selector, target) => {
|
|
|
9957
9800
|
const attachWindowEvents = () => {
|
|
9958
9801
|
attachEvents$7(window, {
|
|
9959
9802
|
[Blur]: handleBlur$2,
|
|
9960
|
-
[Focus]: handleFocus$
|
|
9803
|
+
[Focus]: handleFocus$2,
|
|
9961
9804
|
[KeyDown]: handleKeyDown$1,
|
|
9962
9805
|
[KeyUp]: handleKeyUp,
|
|
9963
9806
|
[Resize]: handleResize
|
|
@@ -12023,7 +11866,7 @@ const forwardRendererWorkerCommand = (method, ...params) => {
|
|
|
12023
11866
|
send$1(method, ...params);
|
|
12024
11867
|
};
|
|
12025
11868
|
const handleMessagePort = async (port, rpcId) => {
|
|
12026
|
-
const rpc = await create$
|
|
11869
|
+
const rpc = await create$A({
|
|
12027
11870
|
commandMap: {
|
|
12028
11871
|
'Viewlet.forwardRendererWorkerCommand': forwardRendererWorkerCommand,
|
|
12029
11872
|
'Viewlet.queueCommands': queueCommands
|
|
@@ -12389,7 +12232,7 @@ const commandMap = {
|
|
|
12389
12232
|
'HotReload.getStatus': getStatus,
|
|
12390
12233
|
'HotReload.request': request,
|
|
12391
12234
|
'InitData.getInitData': getInitData,
|
|
12392
|
-
'IpcParent.create': create$
|
|
12235
|
+
'IpcParent.create': create$t,
|
|
12393
12236
|
'IpcParent.dispose': dispose$l,
|
|
12394
12237
|
'KeyBindings.setIdentifiers': setIdentifiers,
|
|
12395
12238
|
'Layout.getBounds': getBounds,
|
|
@@ -12966,7 +12809,7 @@ const mountTerminal = async (state, uid) => {
|
|
|
12966
12809
|
return;
|
|
12967
12810
|
}
|
|
12968
12811
|
const inputDisposable = terminal.onData(data => {
|
|
12969
|
-
handleInput$
|
|
12812
|
+
handleInput$5(uid, data);
|
|
12970
12813
|
});
|
|
12971
12814
|
const resizeDisposable = terminal.onResize(({
|
|
12972
12815
|
cols,
|