@lvce-editor/renderer-process 10.4.0 → 10.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rendererProcessMain.js +636 -624
- package/package.json +1 -1
|
@@ -739,7 +739,7 @@ const getErrorResponse = (message, error, preparePrettyError, logError) => {
|
|
|
739
739
|
const errorProperty = getErrorProperty(error, prettyError);
|
|
740
740
|
return create$1$1(message, errorProperty);
|
|
741
741
|
};
|
|
742
|
-
const create$
|
|
742
|
+
const create$M = (message, result) => {
|
|
743
743
|
return {
|
|
744
744
|
jsonrpc: Two,
|
|
745
745
|
id: message.id,
|
|
@@ -748,7 +748,7 @@ const create$N = (message, result) => {
|
|
|
748
748
|
};
|
|
749
749
|
const getSuccessResponse = (message, result) => {
|
|
750
750
|
const resultProperty = result ?? null;
|
|
751
|
-
return create$
|
|
751
|
+
return create$M(message, resultProperty);
|
|
752
752
|
};
|
|
753
753
|
const getResponse = async (message, ipc, execute, preparePrettyError, logError, requiresSocket) => {
|
|
754
754
|
try {
|
|
@@ -923,7 +923,7 @@ const launchWorker = async ({
|
|
|
923
923
|
name,
|
|
924
924
|
url
|
|
925
925
|
}) => {
|
|
926
|
-
const worker = await create$
|
|
926
|
+
const worker = await create$L({
|
|
927
927
|
method: Auto,
|
|
928
928
|
url,
|
|
929
929
|
name
|
|
@@ -1030,7 +1030,7 @@ const RendererWorker = {
|
|
|
1030
1030
|
state: state$9
|
|
1031
1031
|
};
|
|
1032
1032
|
|
|
1033
|
-
const create$
|
|
1033
|
+
const create$L = async ({
|
|
1034
1034
|
method,
|
|
1035
1035
|
...options
|
|
1036
1036
|
}) => {
|
|
@@ -1051,7 +1051,7 @@ const create$M = async ({
|
|
|
1051
1051
|
};
|
|
1052
1052
|
|
|
1053
1053
|
const launchEditorWorker = async port => {
|
|
1054
|
-
const ipc = await create$
|
|
1054
|
+
const ipc = await create$L({
|
|
1055
1055
|
name: 'Editor Worker',
|
|
1056
1056
|
url: editorWorkerUrl,
|
|
1057
1057
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1081,7 +1081,7 @@ const extensionHostWorkerUrl = getConfiguredExtensionHostWorkerUrl() || `${asset
|
|
|
1081
1081
|
|
|
1082
1082
|
const launchExtensionHostWorker = async port => {
|
|
1083
1083
|
const name = isElectron ? 'Extension Host (Electron)' : 'Extension Host';
|
|
1084
|
-
const ipc = await create$
|
|
1084
|
+
const ipc = await create$L({
|
|
1085
1085
|
name,
|
|
1086
1086
|
url: extensionHostWorkerUrl,
|
|
1087
1087
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1105,7 +1105,7 @@ const hydrate$2 = async () => {
|
|
|
1105
1105
|
const syntaxHighlightingWorkerUrl = `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/syntax-highlighting-worker/dist/syntaxHighlightingWorkerMain.js`;
|
|
1106
1106
|
|
|
1107
1107
|
const launchSyntaxHighlightingWorker = async port => {
|
|
1108
|
-
const ipc = await create$
|
|
1108
|
+
const ipc = await create$L({
|
|
1109
1109
|
name: 'Syntax Highlighting Worker',
|
|
1110
1110
|
url: syntaxHighlightingWorkerUrl,
|
|
1111
1111
|
method: ModuleWorkerWithMessagePort,
|
|
@@ -1210,119 +1210,6 @@ const load$2 = moduleId => {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
};
|
|
1212
1212
|
|
|
1213
|
-
const Alert = 'alert';
|
|
1214
|
-
const Application = 'application';
|
|
1215
|
-
const Code = 'code';
|
|
1216
|
-
const Complementary = 'complementary';
|
|
1217
|
-
const ContentInfo = 'contentinfo';
|
|
1218
|
-
const Group = 'group';
|
|
1219
|
-
const List$1 = 'list';
|
|
1220
|
-
const ListBox = 'listbox';
|
|
1221
|
-
const Log = 'log';
|
|
1222
|
-
const Main$1 = 'main';
|
|
1223
|
-
const Menu = 'menu';
|
|
1224
|
-
const None$2 = 'none';
|
|
1225
|
-
const Status = 'status';
|
|
1226
|
-
const TabList = 'tablist';
|
|
1227
|
-
const TextBox = 'textbox';
|
|
1228
|
-
const ToolBar = 'toolbar';
|
|
1229
|
-
const Tree = 'tree';
|
|
1230
|
-
const ComboBox = 'combobox';
|
|
1231
|
-
|
|
1232
|
-
const attachEvents$d = ($Node, eventMap) => {
|
|
1233
|
-
for (const [key, value] of Object.entries(eventMap)) {
|
|
1234
|
-
$Node.addEventListener(key, value);
|
|
1235
|
-
}
|
|
1236
|
-
};
|
|
1237
|
-
|
|
1238
|
-
const Passive = {
|
|
1239
|
-
passive: true
|
|
1240
|
-
};
|
|
1241
|
-
const Active = {
|
|
1242
|
-
passive: false
|
|
1243
|
-
};
|
|
1244
|
-
const Capture = {
|
|
1245
|
-
capture: true
|
|
1246
|
-
};
|
|
1247
|
-
|
|
1248
|
-
const BeforeInput = 'beforeinput';
|
|
1249
|
-
const Blur = 'blur';
|
|
1250
|
-
const Click = 'click';
|
|
1251
|
-
const CompositionEnd = 'compositionend';
|
|
1252
|
-
const CompositionStart = 'compositionstart';
|
|
1253
|
-
const CompositionUpdate = 'compositionupdate';
|
|
1254
|
-
const ContextMenu = 'contextmenu';
|
|
1255
|
-
const Cut = 'cut';
|
|
1256
|
-
const DoubleClick = 'dblclick';
|
|
1257
|
-
const DragEnd = 'dragend';
|
|
1258
|
-
const DragLeave = 'dragleave';
|
|
1259
|
-
const DragOver = 'dragover';
|
|
1260
|
-
const DragStart = 'dragstart';
|
|
1261
|
-
const Drop = 'drop';
|
|
1262
|
-
const Error$3 = 'error';
|
|
1263
|
-
const Focus = 'focus';
|
|
1264
|
-
const FocusIn = 'focusin';
|
|
1265
|
-
const FocusOut = 'focusout';
|
|
1266
|
-
const Input$1 = 'input';
|
|
1267
|
-
const KeyDown = 'keydown';
|
|
1268
|
-
const KeyUp = 'keyup';
|
|
1269
|
-
const LostPointerCapture = 'lostpointercapture';
|
|
1270
|
-
const MouseDown = 'mousedown';
|
|
1271
|
-
const MouseEnter = 'mouseenter';
|
|
1272
|
-
const MouseLeave = 'mouseleave';
|
|
1273
|
-
const MouseUp = 'mouseup';
|
|
1274
|
-
const Paste = 'paste';
|
|
1275
|
-
const PointerDown = 'pointerdown';
|
|
1276
|
-
const PointerMove = 'pointermove';
|
|
1277
|
-
const PointerUp = 'pointerup';
|
|
1278
|
-
const Resize = 'resize';
|
|
1279
|
-
const Scroll = 'scroll';
|
|
1280
|
-
const TouchEnd = 'touchend';
|
|
1281
|
-
const TouchMove = 'touchmove';
|
|
1282
|
-
const TouchStart = 'touchstart';
|
|
1283
|
-
const Wheel = 'wheel';
|
|
1284
|
-
|
|
1285
|
-
const setBounds$7 = ($Element, x, y, width, height) => {
|
|
1286
|
-
$Element.style.top = `${y}px`;
|
|
1287
|
-
$Element.style.left = `${x}px`;
|
|
1288
|
-
$Element.style.width = `${width}px`;
|
|
1289
|
-
$Element.style.height = `${height}px`;
|
|
1290
|
-
};
|
|
1291
|
-
const setYAndHeight = ($Element, y, height) => {
|
|
1292
|
-
if (!$Element) {
|
|
1293
|
-
return;
|
|
1294
|
-
}
|
|
1295
|
-
$Element.style.translate = typeof y === 'string' ? y : `0 ${y}px`;
|
|
1296
|
-
$Element.style.height = typeof height === 'string' ? height : `${height}px`;
|
|
1297
|
-
};
|
|
1298
|
-
const setXAndWidth = ($Element, x, width) => {
|
|
1299
|
-
$Element.style.translate = `${x}px 0`;
|
|
1300
|
-
$Element.style.width = `${width}px`;
|
|
1301
|
-
};
|
|
1302
|
-
const setTop = ($Element, top) => {
|
|
1303
|
-
$Element.style.top = `${top}px`;
|
|
1304
|
-
};
|
|
1305
|
-
const setWidth = ($Element, width) => {
|
|
1306
|
-
$Element.style.width = `${width}px`;
|
|
1307
|
-
};
|
|
1308
|
-
const setXAndY = ($Element, x, y) => {
|
|
1309
|
-
$Element.style.left = `${x}px`;
|
|
1310
|
-
$Element.style.top = `${y}px`;
|
|
1311
|
-
};
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
*
|
|
1315
|
-
* @param {HTMLElement} $Element
|
|
1316
|
-
* @param {number} x
|
|
1317
|
-
* @param {number} y
|
|
1318
|
-
*/
|
|
1319
|
-
const setXAndYTransform = ($Element, x, y) => {
|
|
1320
|
-
$Element.style.translate = `${x}px ${y}px`;
|
|
1321
|
-
};
|
|
1322
|
-
const setHeight = ($Element, height) => {
|
|
1323
|
-
$Element.style.height = `${height}px`;
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
1213
|
// src/parts/ComponentUid/ComponentUid.ts
|
|
1327
1214
|
var uidSymbol = Symbol("uid");
|
|
1328
1215
|
var setComponentUid = ($Element, uid) => {
|
|
@@ -1380,7 +1267,7 @@ var H5 = "h5";
|
|
|
1380
1267
|
var H6 = "h6";
|
|
1381
1268
|
var I = "i";
|
|
1382
1269
|
var Img = "img";
|
|
1383
|
-
var Input = "input";
|
|
1270
|
+
var Input$1 = "input";
|
|
1384
1271
|
var Ins = "ins";
|
|
1385
1272
|
var Kbd = "kbd";
|
|
1386
1273
|
var Span = "span";
|
|
@@ -1506,7 +1393,7 @@ var getElementTag = type => {
|
|
|
1506
1393
|
case Tr2:
|
|
1507
1394
|
return Tr;
|
|
1508
1395
|
case Input2:
|
|
1509
|
-
return Input;
|
|
1396
|
+
return Input$1;
|
|
1510
1397
|
case ColGroup2:
|
|
1511
1398
|
return ColGroup;
|
|
1512
1399
|
case Col2:
|
|
@@ -1804,6 +1691,51 @@ var rememberFocus$1 = ($Viewlet, dom, eventMap, uid = 0) => {
|
|
|
1804
1691
|
return $Viewlet;
|
|
1805
1692
|
};
|
|
1806
1693
|
|
|
1694
|
+
const set$5 = setComponentUid;
|
|
1695
|
+
const get$6 = getComponentUid;
|
|
1696
|
+
const fromEvent = getComponentUidFromEvent;
|
|
1697
|
+
|
|
1698
|
+
const setBounds$7 = ($Element, x, y, width, height) => {
|
|
1699
|
+
$Element.style.top = `${y}px`;
|
|
1700
|
+
$Element.style.left = `${x}px`;
|
|
1701
|
+
$Element.style.width = `${width}px`;
|
|
1702
|
+
$Element.style.height = `${height}px`;
|
|
1703
|
+
};
|
|
1704
|
+
const setYAndHeight = ($Element, y, height) => {
|
|
1705
|
+
if (!$Element) {
|
|
1706
|
+
return;
|
|
1707
|
+
}
|
|
1708
|
+
$Element.style.translate = typeof y === 'string' ? y : `0 ${y}px`;
|
|
1709
|
+
$Element.style.height = typeof height === 'string' ? height : `${height}px`;
|
|
1710
|
+
};
|
|
1711
|
+
const setXAndWidth = ($Element, x, width) => {
|
|
1712
|
+
$Element.style.translate = `${x}px 0`;
|
|
1713
|
+
$Element.style.width = `${width}px`;
|
|
1714
|
+
};
|
|
1715
|
+
const setTop = ($Element, top) => {
|
|
1716
|
+
$Element.style.top = `${top}px`;
|
|
1717
|
+
};
|
|
1718
|
+
const setWidth = ($Element, width) => {
|
|
1719
|
+
$Element.style.width = `${width}px`;
|
|
1720
|
+
};
|
|
1721
|
+
const setXAndY = ($Element, x, y) => {
|
|
1722
|
+
$Element.style.left = `${x}px`;
|
|
1723
|
+
$Element.style.top = `${y}px`;
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
*
|
|
1728
|
+
* @param {HTMLElement} $Element
|
|
1729
|
+
* @param {number} x
|
|
1730
|
+
* @param {number} y
|
|
1731
|
+
*/
|
|
1732
|
+
const setXAndYTransform = ($Element, x, y) => {
|
|
1733
|
+
$Element.style.translate = `${x}px ${y}px`;
|
|
1734
|
+
};
|
|
1735
|
+
const setHeight = ($Element, height) => {
|
|
1736
|
+
$Element.style.height = `${height}px`;
|
|
1737
|
+
};
|
|
1738
|
+
|
|
1807
1739
|
// TODO this file is not needed when all elements are position fixed
|
|
1808
1740
|
const state$7 = {
|
|
1809
1741
|
isInDom: false,
|
|
@@ -1850,9 +1782,193 @@ const remove$2 = $Element => {
|
|
|
1850
1782
|
}
|
|
1851
1783
|
};
|
|
1852
1784
|
|
|
1853
|
-
const
|
|
1854
|
-
const
|
|
1855
|
-
const
|
|
1785
|
+
const BeforeInput = 'beforeinput';
|
|
1786
|
+
const Blur = 'blur';
|
|
1787
|
+
const Click = 'click';
|
|
1788
|
+
const CompositionEnd = 'compositionend';
|
|
1789
|
+
const CompositionStart = 'compositionstart';
|
|
1790
|
+
const CompositionUpdate = 'compositionupdate';
|
|
1791
|
+
const ContextMenu = 'contextmenu';
|
|
1792
|
+
const Cut = 'cut';
|
|
1793
|
+
const DoubleClick = 'dblclick';
|
|
1794
|
+
const DragEnd = 'dragend';
|
|
1795
|
+
const DragLeave = 'dragleave';
|
|
1796
|
+
const DragOver = 'dragover';
|
|
1797
|
+
const DragStart = 'dragstart';
|
|
1798
|
+
const Drop = 'drop';
|
|
1799
|
+
const Error$3 = 'error';
|
|
1800
|
+
const Focus = 'focus';
|
|
1801
|
+
const FocusIn = 'focusin';
|
|
1802
|
+
const FocusOut = 'focusout';
|
|
1803
|
+
const Input = 'input';
|
|
1804
|
+
const KeyDown = 'keydown';
|
|
1805
|
+
const KeyUp = 'keyup';
|
|
1806
|
+
const LostPointerCapture = 'lostpointercapture';
|
|
1807
|
+
const MouseDown = 'mousedown';
|
|
1808
|
+
const MouseEnter = 'mouseenter';
|
|
1809
|
+
const MouseLeave = 'mouseleave';
|
|
1810
|
+
const MouseUp = 'mouseup';
|
|
1811
|
+
const Paste = 'paste';
|
|
1812
|
+
const PointerDown = 'pointerdown';
|
|
1813
|
+
const PointerMove = 'pointermove';
|
|
1814
|
+
const PointerUp = 'pointerup';
|
|
1815
|
+
const Resize = 'resize';
|
|
1816
|
+
const Scroll = 'scroll';
|
|
1817
|
+
const TouchEnd = 'touchend';
|
|
1818
|
+
const TouchMove = 'touchmove';
|
|
1819
|
+
const TouchStart = 'touchstart';
|
|
1820
|
+
const Wheel = 'wheel';
|
|
1821
|
+
|
|
1822
|
+
const startTracking$1 = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
1823
|
+
$Target.setPointerCapture(pointerId);
|
|
1824
|
+
$Target.addEventListener(PointerMove, handlePointerMove);
|
|
1825
|
+
// TODO use pointerlost event instead
|
|
1826
|
+
$Target.addEventListener(PointerUp, handlePointerUp);
|
|
1827
|
+
};
|
|
1828
|
+
const stopTracking$1 = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
1829
|
+
$Target.releasePointerCapture(pointerId);
|
|
1830
|
+
$Target.removeEventListener(PointerMove, handlePointerMove);
|
|
1831
|
+
// TODO use pointerlost event instead
|
|
1832
|
+
$Target.removeEventListener(PointerUp, handlePointerUp);
|
|
1833
|
+
};
|
|
1834
|
+
const create$K = (pointerDown, pointerMove, pointerUp) => {
|
|
1835
|
+
const shared = (fn, event) => {
|
|
1836
|
+
const message = fn(event);
|
|
1837
|
+
if (!message || message.length === 0) {
|
|
1838
|
+
return;
|
|
1839
|
+
}
|
|
1840
|
+
const uid = fromEvent(event);
|
|
1841
|
+
send('Viewlet.executeViewletCommand', uid, ...message);
|
|
1842
|
+
};
|
|
1843
|
+
const handlePointerMove = event => {
|
|
1844
|
+
shared(pointerMove, event);
|
|
1845
|
+
};
|
|
1846
|
+
const handlePointerUp = event => {
|
|
1847
|
+
const {
|
|
1848
|
+
target,
|
|
1849
|
+
pointerId
|
|
1850
|
+
} = event;
|
|
1851
|
+
stopTracking$1(target, pointerId, handlePointerMove, handlePointerUp);
|
|
1852
|
+
shared(pointerUp, event);
|
|
1853
|
+
};
|
|
1854
|
+
const handlePointerDown = event => {
|
|
1855
|
+
const {
|
|
1856
|
+
target,
|
|
1857
|
+
pointerId
|
|
1858
|
+
} = event;
|
|
1859
|
+
startTracking$1(target, pointerId, handlePointerMove, handlePointerUp);
|
|
1860
|
+
shared(pointerDown, event);
|
|
1861
|
+
return [];
|
|
1862
|
+
};
|
|
1863
|
+
return handlePointerDown;
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
const handleOffset = 20;
|
|
1867
|
+
const handleSliderPointerDown = create$K(event => {
|
|
1868
|
+
const {
|
|
1869
|
+
clientX,
|
|
1870
|
+
clientY
|
|
1871
|
+
} = event;
|
|
1872
|
+
return ['ColorPicker.handleSliderPointerDown', clientX - handleOffset, clientY];
|
|
1873
|
+
}, event => {
|
|
1874
|
+
const {
|
|
1875
|
+
clientX,
|
|
1876
|
+
clientY
|
|
1877
|
+
} = event;
|
|
1878
|
+
return ['ColorPicker.handleSliderPointerMove', clientX - handleOffset, clientY];
|
|
1879
|
+
}, () => {
|
|
1880
|
+
return [];
|
|
1881
|
+
});
|
|
1882
|
+
const handlePointerDown$7 = event => {
|
|
1883
|
+
const {
|
|
1884
|
+
target
|
|
1885
|
+
} = event;
|
|
1886
|
+
if (target.className === 'ColorPickerSliderThumb' || target.className === 'ColorPickerSlider') {
|
|
1887
|
+
return handleSliderPointerDown(event);
|
|
1888
|
+
}
|
|
1889
|
+
return [];
|
|
1890
|
+
};
|
|
1891
|
+
const returnValue$a = true;
|
|
1892
|
+
|
|
1893
|
+
const ViewletColorPickerEvents = {
|
|
1894
|
+
__proto__: null,
|
|
1895
|
+
handlePointerDown: handlePointerDown$7,
|
|
1896
|
+
returnValue: returnValue$a
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1899
|
+
const setColor = (state, color) => {
|
|
1900
|
+
const {
|
|
1901
|
+
$Viewlet
|
|
1902
|
+
} = state;
|
|
1903
|
+
$Viewlet.style.setProperty('--ColorPickerColor', color);
|
|
1904
|
+
};
|
|
1905
|
+
const setOffsetX = (state, offsetX) => {
|
|
1906
|
+
const {
|
|
1907
|
+
$Viewlet
|
|
1908
|
+
} = state;
|
|
1909
|
+
const $ColorPickerSliderThumb = $Viewlet.querySelector('.ColorPickerSliderThumb');
|
|
1910
|
+
setXAndYTransform($ColorPickerSliderThumb, offsetX, 0);
|
|
1911
|
+
applyUidWorkaround($Viewlet);
|
|
1912
|
+
};
|
|
1913
|
+
const applyUidWorkaround = element => {
|
|
1914
|
+
// TODO editor widget uids are not available in renderer worker
|
|
1915
|
+
// TODO send editor events directly to editor worker
|
|
1916
|
+
const editor = document.querySelector('.Viewlet.Editor');
|
|
1917
|
+
if (!editor) {
|
|
1918
|
+
throw new Error('no editor found');
|
|
1919
|
+
}
|
|
1920
|
+
const editorUid = get$6(editor);
|
|
1921
|
+
set$5(element, editorUid);
|
|
1922
|
+
};
|
|
1923
|
+
const appendWidget$2 = state => {
|
|
1924
|
+
const {
|
|
1925
|
+
$Viewlet
|
|
1926
|
+
} = state;
|
|
1927
|
+
append$1($Viewlet);
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
const ViewletColorPicker = {
|
|
1931
|
+
__proto__: null,
|
|
1932
|
+
Events: ViewletColorPickerEvents,
|
|
1933
|
+
appendWidget: appendWidget$2,
|
|
1934
|
+
setColor,
|
|
1935
|
+
setOffsetX
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1938
|
+
const Alert = 'alert';
|
|
1939
|
+
const Application = 'application';
|
|
1940
|
+
const Code = 'code';
|
|
1941
|
+
const Complementary = 'complementary';
|
|
1942
|
+
const ContentInfo = 'contentinfo';
|
|
1943
|
+
const Group = 'group';
|
|
1944
|
+
const List$1 = 'list';
|
|
1945
|
+
const ListBox = 'listbox';
|
|
1946
|
+
const Log = 'log';
|
|
1947
|
+
const Main$1 = 'main';
|
|
1948
|
+
const Menu = 'menu';
|
|
1949
|
+
const None$2 = 'none';
|
|
1950
|
+
const Status = 'status';
|
|
1951
|
+
const TabList = 'tablist';
|
|
1952
|
+
const TextBox = 'textbox';
|
|
1953
|
+
const ToolBar = 'toolbar';
|
|
1954
|
+
const Tree = 'tree';
|
|
1955
|
+
const ComboBox = 'combobox';
|
|
1956
|
+
|
|
1957
|
+
const attachEvents$c = ($Node, eventMap) => {
|
|
1958
|
+
for (const [key, value] of Object.entries(eventMap)) {
|
|
1959
|
+
$Node.addEventListener(key, value);
|
|
1960
|
+
}
|
|
1961
|
+
};
|
|
1962
|
+
|
|
1963
|
+
const Passive = {
|
|
1964
|
+
passive: true
|
|
1965
|
+
};
|
|
1966
|
+
const Active = {
|
|
1967
|
+
passive: false
|
|
1968
|
+
};
|
|
1969
|
+
const Capture = {
|
|
1970
|
+
capture: true
|
|
1971
|
+
};
|
|
1856
1972
|
|
|
1857
1973
|
/**
|
|
1858
1974
|
* @param {Event} event
|
|
@@ -1868,13 +1984,13 @@ const stopPropagation = event => {
|
|
|
1868
1984
|
event.stopPropagation();
|
|
1869
1985
|
};
|
|
1870
1986
|
|
|
1871
|
-
const startTracking
|
|
1987
|
+
const startTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
1872
1988
|
$Target.setPointerCapture(pointerId);
|
|
1873
1989
|
$Target.addEventListener(PointerMove, handlePointerMove);
|
|
1874
1990
|
// TODO use pointerlost event instead
|
|
1875
1991
|
$Target.addEventListener(PointerUp, handlePointerUp);
|
|
1876
1992
|
};
|
|
1877
|
-
const stopTracking
|
|
1993
|
+
const stopTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
1878
1994
|
$Target.releasePointerCapture(pointerId);
|
|
1879
1995
|
$Target.removeEventListener(PointerMove, handlePointerMove);
|
|
1880
1996
|
// TODO use pointerlost event instead
|
|
@@ -2013,7 +2129,7 @@ forwardViewletCommand('handleMouseMove');
|
|
|
2013
2129
|
const handleMouseOut$1 = forwardViewletCommand('handleMouseOut');
|
|
2014
2130
|
const handleMouseOver$1 = forwardViewletCommand('handleMouseOver');
|
|
2015
2131
|
forwardViewletCommand('handlePointerCaptureLost');
|
|
2016
|
-
const handlePointerDown$
|
|
2132
|
+
const handlePointerDown$6 = forwardViewletCommand('handlePointerDown');
|
|
2017
2133
|
const handlePointerMove$1 = forwardViewletCommand('handlePointerMove');
|
|
2018
2134
|
forwardViewletCommand('handlePointerOver');
|
|
2019
2135
|
const handlePointerUp$1 = forwardViewletCommand('handlePointerUp');
|
|
@@ -2086,7 +2202,7 @@ const handlePointerCaptureLost$2 = event => {
|
|
|
2086
2202
|
target,
|
|
2087
2203
|
pointerId
|
|
2088
2204
|
} = event;
|
|
2089
|
-
stopTracking
|
|
2205
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove$2, handlePointerCaptureLost$2);
|
|
2090
2206
|
};
|
|
2091
2207
|
const handleScrollBarPointerDown$4 = event => {
|
|
2092
2208
|
preventDefault(event);
|
|
@@ -2095,7 +2211,7 @@ const handleScrollBarPointerDown$4 = event => {
|
|
|
2095
2211
|
pointerId,
|
|
2096
2212
|
clientY
|
|
2097
2213
|
} = event;
|
|
2098
|
-
startTracking
|
|
2214
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove$2, handlePointerCaptureLost$2);
|
|
2099
2215
|
const uid = fromEvent(event);
|
|
2100
2216
|
handleScrollBarClick(uid, clientY);
|
|
2101
2217
|
};
|
|
@@ -2157,7 +2273,7 @@ const setNegativeMargin = (state, negativeMargin) => {
|
|
|
2157
2273
|
setTop($ListItems, negativeMargin);
|
|
2158
2274
|
};
|
|
2159
2275
|
|
|
2160
|
-
const create$
|
|
2276
|
+
const create$J = () => {
|
|
2161
2277
|
const $ListItems = document.createElement('div');
|
|
2162
2278
|
$ListItems.className = 'ListItems';
|
|
2163
2279
|
$ListItems.role = ListBox;
|
|
@@ -2181,24 +2297,24 @@ const create$L = () => {
|
|
|
2181
2297
|
$ScrollBarThumb
|
|
2182
2298
|
};
|
|
2183
2299
|
};
|
|
2184
|
-
const attachEvents$
|
|
2300
|
+
const attachEvents$b = state => {
|
|
2185
2301
|
const {
|
|
2186
2302
|
$Viewlet,
|
|
2187
2303
|
$ListItems,
|
|
2188
2304
|
$ScrollBar
|
|
2189
2305
|
} = state;
|
|
2190
2306
|
$Viewlet.addEventListener(Wheel, handleWheel$3, Passive);
|
|
2191
|
-
attachEvents$
|
|
2307
|
+
attachEvents$c($ListItems, {
|
|
2192
2308
|
[MouseDown]: handleMousedown
|
|
2193
2309
|
});
|
|
2194
|
-
attachEvents$
|
|
2310
|
+
attachEvents$c($ScrollBar, {
|
|
2195
2311
|
[PointerDown]: handleScrollBarPointerDown$4
|
|
2196
2312
|
});
|
|
2197
2313
|
};
|
|
2198
2314
|
// TODO show should be passed active cursor position
|
|
2199
2315
|
// this would make this function easier to test as it would avoid dependency on globals of other files
|
|
2200
2316
|
|
|
2201
|
-
const setDom$
|
|
2317
|
+
const setDom$a = (state, dom) => {
|
|
2202
2318
|
const {
|
|
2203
2319
|
$ListItems,
|
|
2204
2320
|
$Viewlet
|
|
@@ -2214,74 +2330,197 @@ const dispose$k = state => {
|
|
|
2214
2330
|
remove$2(state.$Viewlet);
|
|
2215
2331
|
// state.$EditorInput.removeAttribute('aria-activedescendant')
|
|
2216
2332
|
};
|
|
2217
|
-
const showLoading = (state, x, y) => {
|
|
2218
|
-
const {
|
|
2219
|
-
$Viewlet
|
|
2220
|
-
} = state;
|
|
2221
|
-
setXAndYTransform($Viewlet, x, y);
|
|
2222
|
-
const $Loading = document.createElement('div');
|
|
2223
|
-
$Loading.textContent = 'Loading';
|
|
2224
|
-
$Viewlet.append($Loading);
|
|
2225
|
-
append$1($Viewlet);
|
|
2333
|
+
const showLoading = (state, x, y) => {
|
|
2334
|
+
const {
|
|
2335
|
+
$Viewlet
|
|
2336
|
+
} = state;
|
|
2337
|
+
setXAndYTransform($Viewlet, x, y);
|
|
2338
|
+
const $Loading = document.createElement('div');
|
|
2339
|
+
$Loading.textContent = 'Loading';
|
|
2340
|
+
$Viewlet.append($Loading);
|
|
2341
|
+
append$1($Viewlet);
|
|
2342
|
+
};
|
|
2343
|
+
const handleError$8 = (state, error) => {
|
|
2344
|
+
const {
|
|
2345
|
+
$Viewlet
|
|
2346
|
+
} = state;
|
|
2347
|
+
$Viewlet.textContent = `${error}`;
|
|
2348
|
+
};
|
|
2349
|
+
const setBounds$6 = (state, x, y, width, height) => {
|
|
2350
|
+
const {
|
|
2351
|
+
$Viewlet
|
|
2352
|
+
} = state;
|
|
2353
|
+
setBounds$7($Viewlet, x, y, width, height);
|
|
2354
|
+
};
|
|
2355
|
+
|
|
2356
|
+
const ViewletEditorCompletion = {
|
|
2357
|
+
__proto__: null,
|
|
2358
|
+
attachEvents: attachEvents$b,
|
|
2359
|
+
create: create$J,
|
|
2360
|
+
dispose: dispose$k,
|
|
2361
|
+
handleError: handleError$8,
|
|
2362
|
+
setBounds: setBounds$6,
|
|
2363
|
+
setContentHeight,
|
|
2364
|
+
setDom: setDom$a,
|
|
2365
|
+
setNegativeMargin,
|
|
2366
|
+
setScrollBar: setScrollBar$2,
|
|
2367
|
+
setSize,
|
|
2368
|
+
showLoading
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
const handleClose = () => {
|
|
2372
|
+
return ['closeDetails'];
|
|
2373
|
+
};
|
|
2374
|
+
const returnValue$9 = true;
|
|
2375
|
+
|
|
2376
|
+
const ViewletEditorCompletionDetailsEvents = {
|
|
2377
|
+
__proto__: null,
|
|
2378
|
+
handleClose,
|
|
2379
|
+
returnValue: returnValue$9
|
|
2380
|
+
};
|
|
2381
|
+
|
|
2382
|
+
const create$I = () => {
|
|
2383
|
+
const $Viewlet = document.createElement('div');
|
|
2384
|
+
$Viewlet.className = 'Viewlet EditorCompletionDetails';
|
|
2385
|
+
$Viewlet.id = 'CompletionsDetails';
|
|
2386
|
+
return {
|
|
2387
|
+
$Viewlet
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
const attachEvents$a = state => {
|
|
2391
|
+
// TODO
|
|
2392
|
+
};
|
|
2393
|
+
const setDom$9 = (state, dom) => {
|
|
2394
|
+
const {
|
|
2395
|
+
$Viewlet
|
|
2396
|
+
} = state;
|
|
2397
|
+
const $Root = render2(dom);
|
|
2398
|
+
// @ts-expect-error
|
|
2399
|
+
$Viewlet.replaceChildren(...$Root.firstChild.childNodes);
|
|
2400
|
+
append$1($Viewlet);
|
|
2401
|
+
};
|
|
2402
|
+
const appendWidget$1 = state => {
|
|
2403
|
+
const {
|
|
2404
|
+
$Viewlet
|
|
2405
|
+
} = state;
|
|
2406
|
+
append$1($Viewlet);
|
|
2407
|
+
};
|
|
2408
|
+
const dispose$j = state => {
|
|
2409
|
+
remove$2(state.$Viewlet);
|
|
2410
|
+
};
|
|
2411
|
+
const setBounds$5 = (state, x, y, width, height) => {
|
|
2412
|
+
const {
|
|
2413
|
+
$Viewlet
|
|
2414
|
+
} = state;
|
|
2415
|
+
setBounds$7($Viewlet, x, y, width, height);
|
|
2416
|
+
};
|
|
2417
|
+
|
|
2418
|
+
const ViewletEditorCompletionDetails = {
|
|
2419
|
+
__proto__: null,
|
|
2420
|
+
Events: ViewletEditorCompletionDetailsEvents,
|
|
2421
|
+
appendWidget: appendWidget$1,
|
|
2422
|
+
attachEvents: attachEvents$a,
|
|
2423
|
+
create: create$I,
|
|
2424
|
+
dispose: dispose$j,
|
|
2425
|
+
setBounds: setBounds$5,
|
|
2426
|
+
setDom: setDom$9
|
|
2427
|
+
};
|
|
2428
|
+
|
|
2429
|
+
const rememberFocus = rememberFocus$1;
|
|
2430
|
+
|
|
2431
|
+
const handleInput$7 = event => {
|
|
2432
|
+
const {
|
|
2433
|
+
target
|
|
2434
|
+
} = event;
|
|
2435
|
+
const {
|
|
2436
|
+
value
|
|
2437
|
+
} = target;
|
|
2438
|
+
const uid = fromEvent(event);
|
|
2439
|
+
handleInput$8(uid, value);
|
|
2440
|
+
};
|
|
2441
|
+
const handleClickClose$2 = (uid, event) => {
|
|
2442
|
+
preventDefault(event);
|
|
2443
|
+
close$1(uid);
|
|
2444
|
+
};
|
|
2445
|
+
const handleClickPreviousMatch = (uid, event) => {
|
|
2446
|
+
preventDefault(event);
|
|
2447
|
+
focusPrevious$1(uid);
|
|
2448
|
+
};
|
|
2449
|
+
const handleClickNextMatch = (uid, event) => {
|
|
2450
|
+
preventDefault(event);
|
|
2451
|
+
focusNext(uid);
|
|
2226
2452
|
};
|
|
2227
|
-
const
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
} = state;
|
|
2231
|
-
$Viewlet.textContent = `${error}`;
|
|
2453
|
+
const handleClickToggleReplace = (uid, event) => {
|
|
2454
|
+
preventDefault(event);
|
|
2455
|
+
toggleReplace(uid);
|
|
2232
2456
|
};
|
|
2233
|
-
const
|
|
2457
|
+
const handleClick$8 = event => {
|
|
2234
2458
|
const {
|
|
2235
|
-
|
|
2236
|
-
} =
|
|
2237
|
-
|
|
2459
|
+
target
|
|
2460
|
+
} = event;
|
|
2461
|
+
const {
|
|
2462
|
+
title
|
|
2463
|
+
} = target;
|
|
2464
|
+
const uid = fromEvent(event);
|
|
2465
|
+
switch (title) {
|
|
2466
|
+
case 'Close':
|
|
2467
|
+
handleClickClose$2(uid, event);
|
|
2468
|
+
break;
|
|
2469
|
+
case 'Previous Match':
|
|
2470
|
+
handleClickPreviousMatch(uid, event);
|
|
2471
|
+
break;
|
|
2472
|
+
case 'Next Match':
|
|
2473
|
+
handleClickNextMatch(uid, event);
|
|
2474
|
+
break;
|
|
2475
|
+
case 'Toggle Replace':
|
|
2476
|
+
handleClickToggleReplace(uid, event);
|
|
2477
|
+
break;
|
|
2478
|
+
}
|
|
2238
2479
|
};
|
|
2239
|
-
|
|
2240
|
-
const
|
|
2241
|
-
|
|
2242
|
-
attachEvents: attachEvents$c,
|
|
2243
|
-
create: create$L,
|
|
2244
|
-
dispose: dispose$k,
|
|
2245
|
-
handleError: handleError$8,
|
|
2246
|
-
setBounds: setBounds$6,
|
|
2247
|
-
setContentHeight,
|
|
2248
|
-
setDom: setDom$b,
|
|
2249
|
-
setNegativeMargin,
|
|
2250
|
-
setScrollBar: setScrollBar$2,
|
|
2251
|
-
setSize,
|
|
2252
|
-
showLoading
|
|
2480
|
+
const handleInputBlur = event => {
|
|
2481
|
+
const uid = fromEvent(event);
|
|
2482
|
+
handleBlur$a(uid);
|
|
2253
2483
|
};
|
|
2254
|
-
|
|
2255
|
-
const
|
|
2256
|
-
|
|
2484
|
+
const handleFocus$b = event => {
|
|
2485
|
+
const uid = fromEvent(event);
|
|
2486
|
+
handleFocus$c(uid);
|
|
2257
2487
|
};
|
|
2258
|
-
const returnValue$a = true;
|
|
2259
2488
|
|
|
2260
|
-
const
|
|
2489
|
+
const ViewletFindWidgetEvents = {
|
|
2261
2490
|
__proto__: null,
|
|
2262
|
-
|
|
2263
|
-
|
|
2491
|
+
handleClick: handleClick$8,
|
|
2492
|
+
handleFocus: handleFocus$b,
|
|
2493
|
+
handleInput: handleInput$7,
|
|
2494
|
+
handleInputBlur
|
|
2264
2495
|
};
|
|
2265
2496
|
|
|
2266
|
-
const create$
|
|
2497
|
+
const create$H = () => {
|
|
2267
2498
|
const $Viewlet = document.createElement('div');
|
|
2268
|
-
$Viewlet.className = 'Viewlet
|
|
2269
|
-
$Viewlet.
|
|
2499
|
+
$Viewlet.className = 'Viewlet FindWidget';
|
|
2500
|
+
$Viewlet.role = Group;
|
|
2270
2501
|
return {
|
|
2271
2502
|
$Viewlet
|
|
2272
2503
|
};
|
|
2273
2504
|
};
|
|
2274
|
-
const
|
|
2275
|
-
|
|
2505
|
+
const focus$i = state => {
|
|
2506
|
+
const {
|
|
2507
|
+
$Viewlet
|
|
2508
|
+
} = state;
|
|
2509
|
+
const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
|
|
2510
|
+
if (!$InputBox) {
|
|
2511
|
+
return;
|
|
2512
|
+
}
|
|
2513
|
+
$InputBox.focus();
|
|
2276
2514
|
};
|
|
2277
|
-
const
|
|
2515
|
+
const setValue$4 = (state, value) => {
|
|
2278
2516
|
const {
|
|
2279
2517
|
$Viewlet
|
|
2280
2518
|
} = state;
|
|
2281
|
-
const $
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2519
|
+
const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
|
|
2520
|
+
if (!$InputBox) {
|
|
2521
|
+
return;
|
|
2522
|
+
}
|
|
2523
|
+
$InputBox.value = value;
|
|
2285
2524
|
};
|
|
2286
2525
|
const appendWidget = state => {
|
|
2287
2526
|
const {
|
|
@@ -2289,25 +2528,20 @@ const appendWidget = state => {
|
|
|
2289
2528
|
} = state;
|
|
2290
2529
|
append$1($Viewlet);
|
|
2291
2530
|
};
|
|
2292
|
-
const
|
|
2293
|
-
remove$2(state.$Viewlet);
|
|
2294
|
-
};
|
|
2295
|
-
const setBounds$5 = (state, x, y, width, height) => {
|
|
2531
|
+
const setDom$8 = (state, dom) => {
|
|
2296
2532
|
const {
|
|
2297
2533
|
$Viewlet
|
|
2298
2534
|
} = state;
|
|
2299
|
-
|
|
2535
|
+
rememberFocus($Viewlet, dom, ViewletFindWidgetEvents, 0);
|
|
2300
2536
|
};
|
|
2301
2537
|
|
|
2302
|
-
const
|
|
2538
|
+
const ViewletFindWidget = {
|
|
2303
2539
|
__proto__: null,
|
|
2304
|
-
Events: ViewletEditorCompletionDetailsEvents,
|
|
2305
2540
|
appendWidget,
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
setDom: setDom$a
|
|
2541
|
+
create: create$H,
|
|
2542
|
+
focus: focus$i,
|
|
2543
|
+
setDom: setDom$8,
|
|
2544
|
+
setValue: setValue$4
|
|
2311
2545
|
};
|
|
2312
2546
|
|
|
2313
2547
|
const ActivityBar = 'ActivityBar';
|
|
@@ -2711,6 +2945,8 @@ const main = async () => {
|
|
|
2711
2945
|
enable(window);
|
|
2712
2946
|
state$6.modules[EditorCompletion] = ViewletEditorCompletion;
|
|
2713
2947
|
state$6.modules[EditorCompletionDetails] = ViewletEditorCompletionDetails;
|
|
2948
|
+
state$6.modules[ColorPicker] = ViewletColorPicker;
|
|
2949
|
+
state$6.modules[FindWidget] = ViewletFindWidget;
|
|
2714
2950
|
setLoad(load$2);
|
|
2715
2951
|
// TODO this is discovered very late
|
|
2716
2952
|
await launchWorkers();
|
|
@@ -2804,7 +3040,7 @@ ${relevant}`;
|
|
|
2804
3040
|
|
|
2805
3041
|
const Module = 'module';
|
|
2806
3042
|
|
|
2807
|
-
const create$
|
|
3043
|
+
const create$G = async ({
|
|
2808
3044
|
url,
|
|
2809
3045
|
name
|
|
2810
3046
|
}) => {
|
|
@@ -2870,7 +3106,7 @@ const wrap = worker => {
|
|
|
2870
3106
|
|
|
2871
3107
|
const IpcParentWithModuleWorker = {
|
|
2872
3108
|
__proto__: null,
|
|
2873
|
-
create: create$
|
|
3109
|
+
create: create$G,
|
|
2874
3110
|
wrap
|
|
2875
3111
|
};
|
|
2876
3112
|
|
|
@@ -2878,7 +3114,7 @@ const isMessagePort$1 = value => {
|
|
|
2878
3114
|
return value instanceof MessagePort;
|
|
2879
3115
|
};
|
|
2880
3116
|
|
|
2881
|
-
const create$
|
|
3117
|
+
const create$F = async ({
|
|
2882
3118
|
url
|
|
2883
3119
|
}) => {
|
|
2884
3120
|
string(url);
|
|
@@ -2899,10 +3135,10 @@ const create$I = async ({
|
|
|
2899
3135
|
|
|
2900
3136
|
const IpcParentWithMessagePort = {
|
|
2901
3137
|
__proto__: null,
|
|
2902
|
-
create: create$
|
|
3138
|
+
create: create$F
|
|
2903
3139
|
};
|
|
2904
3140
|
|
|
2905
|
-
const create$
|
|
3141
|
+
const create$E = async url => {
|
|
2906
3142
|
const referencePort = await new Promise(resolve => {
|
|
2907
3143
|
globalThis.acceptReferencePort = resolve;
|
|
2908
3144
|
import(url);
|
|
@@ -2913,7 +3149,7 @@ const create$H = async url => {
|
|
|
2913
3149
|
|
|
2914
3150
|
const IpcParentWithReferencePort = {
|
|
2915
3151
|
__proto__: null,
|
|
2916
|
-
create: create$
|
|
3152
|
+
create: create$E
|
|
2917
3153
|
};
|
|
2918
3154
|
|
|
2919
3155
|
const isWorker = value => {
|
|
@@ -2921,12 +3157,12 @@ const isWorker = value => {
|
|
|
2921
3157
|
};
|
|
2922
3158
|
|
|
2923
3159
|
// TODO add test
|
|
2924
|
-
const create$
|
|
3160
|
+
const create$D = async ({
|
|
2925
3161
|
url,
|
|
2926
3162
|
name,
|
|
2927
3163
|
port
|
|
2928
3164
|
}) => {
|
|
2929
|
-
const worker = await create$
|
|
3165
|
+
const worker = await create$G({
|
|
2930
3166
|
url,
|
|
2931
3167
|
name
|
|
2932
3168
|
});
|
|
@@ -2945,7 +3181,7 @@ const create$G = async ({
|
|
|
2945
3181
|
|
|
2946
3182
|
const IpcParentWithModuleWorkerWithMessagePort = {
|
|
2947
3183
|
__proto__: null,
|
|
2948
|
-
create: create$
|
|
3184
|
+
create: create$D
|
|
2949
3185
|
};
|
|
2950
3186
|
|
|
2951
3187
|
const handleIpcOnce = ipc => {
|
|
@@ -3012,7 +3248,7 @@ const getTransferrables = value => {
|
|
|
3012
3248
|
walkValue(value, transferrables, isTransferrable);
|
|
3013
3249
|
return transferrables;
|
|
3014
3250
|
};
|
|
3015
|
-
const attachEvents$
|
|
3251
|
+
const attachEvents$9 = that => {
|
|
3016
3252
|
const handleMessage = (...args) => {
|
|
3017
3253
|
const data = that.getData(...args);
|
|
3018
3254
|
that.dispatchEvent(new MessageEvent('message', {
|
|
@@ -3029,7 +3265,7 @@ class Ipc extends EventTarget {
|
|
|
3029
3265
|
constructor(rawIpc) {
|
|
3030
3266
|
super();
|
|
3031
3267
|
this._rawIpc = rawIpc;
|
|
3032
|
-
attachEvents$
|
|
3268
|
+
attachEvents$9(this);
|
|
3033
3269
|
}
|
|
3034
3270
|
}
|
|
3035
3271
|
const readyMessage = 'ready';
|
|
@@ -3476,7 +3712,7 @@ const IpcChildWithMessagePort$1 = {
|
|
|
3476
3712
|
};
|
|
3477
3713
|
|
|
3478
3714
|
// TODO use handleIncomingIpc function
|
|
3479
|
-
const create$
|
|
3715
|
+
const create$C = async ({
|
|
3480
3716
|
port,
|
|
3481
3717
|
ipcId
|
|
3482
3718
|
}) => {
|
|
@@ -3492,7 +3728,7 @@ const create$F = async ({
|
|
|
3492
3728
|
|
|
3493
3729
|
const IpcParentWithElectron = {
|
|
3494
3730
|
__proto__: null,
|
|
3495
|
-
create: create$
|
|
3731
|
+
create: create$C
|
|
3496
3732
|
};
|
|
3497
3733
|
|
|
3498
3734
|
const play = async src => {
|
|
@@ -3723,7 +3959,7 @@ const AriaAlert = {
|
|
|
3723
3959
|
// but that's difficult to know
|
|
3724
3960
|
|
|
3725
3961
|
// TODO hide widget after timeout or mousemove
|
|
3726
|
-
const create$
|
|
3962
|
+
const create$B = (message, x, y) => {
|
|
3727
3963
|
const $EditorError = document.createElement('div');
|
|
3728
3964
|
$EditorError.className = 'EditorWidgetError';
|
|
3729
3965
|
$EditorError.textContent = message;
|
|
@@ -3738,7 +3974,7 @@ const create$E = (message, x, y) => {
|
|
|
3738
3974
|
|
|
3739
3975
|
const name$t = 'EditorError';
|
|
3740
3976
|
const Commands$u = {
|
|
3741
|
-
create: create$
|
|
3977
|
+
create: create$B
|
|
3742
3978
|
};
|
|
3743
3979
|
|
|
3744
3980
|
const EditorError_ipc = {
|
|
@@ -3761,7 +3997,7 @@ const getElement = () => {
|
|
|
3761
3997
|
return state$3.$PreviousFocusElement;
|
|
3762
3998
|
};
|
|
3763
3999
|
|
|
3764
|
-
const focus$
|
|
4000
|
+
const focus$h = $Element => {
|
|
3765
4001
|
if ($Element === document.activeElement) {
|
|
3766
4002
|
return;
|
|
3767
4003
|
}
|
|
@@ -3778,7 +4014,7 @@ const focusPrevious = () => {
|
|
|
3778
4014
|
}
|
|
3779
4015
|
};
|
|
3780
4016
|
|
|
3781
|
-
const create$
|
|
4017
|
+
const create$A = () => {
|
|
3782
4018
|
const $InputBox = document.createElement('input');
|
|
3783
4019
|
$InputBox.className = 'InputBox';
|
|
3784
4020
|
$InputBox.spellcheck = false;
|
|
@@ -3802,8 +4038,8 @@ const FocusOutput = 28;
|
|
|
3802
4038
|
const handleBlur$9 = () => {
|
|
3803
4039
|
send(/* EditorRename.abort */'EditorRename.abort');
|
|
3804
4040
|
};
|
|
3805
|
-
const create$
|
|
3806
|
-
const $RenameWidgetInputBox = create$
|
|
4041
|
+
const create$z = (x, y) => {
|
|
4042
|
+
const $RenameWidgetInputBox = create$A();
|
|
3807
4043
|
$RenameWidgetInputBox.className = 'RenameWidgetInputBox';
|
|
3808
4044
|
$RenameWidgetInputBox.onblur = handleBlur$9;
|
|
3809
4045
|
const $RenameWidget = document.createElement('div');
|
|
@@ -3811,7 +4047,7 @@ const create$C = (x, y) => {
|
|
|
3811
4047
|
$RenameWidget.append($RenameWidgetInputBox);
|
|
3812
4048
|
setXAndY($RenameWidget, x, y);
|
|
3813
4049
|
append$1($RenameWidget);
|
|
3814
|
-
focus$
|
|
4050
|
+
focus$h($RenameWidgetInputBox);
|
|
3815
4051
|
send('Focus.setFocus', FocusEditorRename);
|
|
3816
4052
|
return {
|
|
3817
4053
|
$RenameWidget,
|
|
@@ -3834,7 +4070,7 @@ const finish = state => {
|
|
|
3834
4070
|
|
|
3835
4071
|
const name$s = 'EditorRename';
|
|
3836
4072
|
const Commands$t = {
|
|
3837
|
-
create: create$
|
|
4073
|
+
create: create$z,
|
|
3838
4074
|
dispose: dispose$i,
|
|
3839
4075
|
finish: finish
|
|
3840
4076
|
};
|
|
@@ -3920,7 +4156,7 @@ const showError = (message, y, x) => {
|
|
|
3920
4156
|
$ImagePreviewImage
|
|
3921
4157
|
};
|
|
3922
4158
|
};
|
|
3923
|
-
const create$
|
|
4159
|
+
const create$y = (uri, top, left) => {
|
|
3924
4160
|
const $ImagePreviewImage = document.createElement('img');
|
|
3925
4161
|
$ImagePreviewImage.className = 'ImagePreviewImage';
|
|
3926
4162
|
$ImagePreviewImage.src = uri;
|
|
@@ -3951,7 +4187,7 @@ const dispose$h = state => {
|
|
|
3951
4187
|
|
|
3952
4188
|
const ImagePreview = {
|
|
3953
4189
|
__proto__: null,
|
|
3954
|
-
create: create$
|
|
4190
|
+
create: create$y,
|
|
3955
4191
|
dispose: dispose$h,
|
|
3956
4192
|
showError,
|
|
3957
4193
|
update
|
|
@@ -3959,7 +4195,7 @@ const ImagePreview = {
|
|
|
3959
4195
|
|
|
3960
4196
|
const name$p = 'ImagePreview';
|
|
3961
4197
|
const Commands$q = {
|
|
3962
|
-
create: create$
|
|
4198
|
+
create: create$y,
|
|
3963
4199
|
dispose: dispose$h,
|
|
3964
4200
|
showError: showError,
|
|
3965
4201
|
update: update
|
|
@@ -4037,7 +4273,7 @@ const InitData_ipc = {
|
|
|
4037
4273
|
|
|
4038
4274
|
const name$n = 'IpcParent';
|
|
4039
4275
|
const Commands$o = {
|
|
4040
|
-
create: create$
|
|
4276
|
+
create: create$L
|
|
4041
4277
|
};
|
|
4042
4278
|
|
|
4043
4279
|
const IpcParent_ipc = {
|
|
@@ -4157,7 +4393,7 @@ const create$Notification = message => {
|
|
|
4157
4393
|
$Notification.textContent = message;
|
|
4158
4394
|
return $Notification;
|
|
4159
4395
|
};
|
|
4160
|
-
const create$
|
|
4396
|
+
const create$x = (type, message) => {
|
|
4161
4397
|
// TODO this pattern might be also useful for activitybar, sidebar etc., creating elements as late as possible, only when actually needed
|
|
4162
4398
|
const $Notification = create$Notification(message);
|
|
4163
4399
|
append$1($Notification);
|
|
@@ -4210,7 +4446,7 @@ const name$h = 'Notification';
|
|
|
4210
4446
|
|
|
4211
4447
|
// prettier-ignore
|
|
4212
4448
|
const Commands$i = {
|
|
4213
|
-
create: create$
|
|
4449
|
+
create: create$x,
|
|
4214
4450
|
createWithOptions: createWithOptions,
|
|
4215
4451
|
dispose: dispose$g
|
|
4216
4452
|
};
|
|
@@ -4234,7 +4470,7 @@ const set$3 = (canvasId, canvas) => {
|
|
|
4234
4470
|
const get$3 = id => {
|
|
4235
4471
|
return get$4(id);
|
|
4236
4472
|
};
|
|
4237
|
-
const create$
|
|
4473
|
+
const create$w = async (canvasId, objectId) => {
|
|
4238
4474
|
const canvas = document.createElement('canvas');
|
|
4239
4475
|
const offscreenCanvas = canvas.transferControlToOffscreen();
|
|
4240
4476
|
set$3(canvasId, canvas);
|
|
@@ -4245,7 +4481,7 @@ const name$g = 'OffscreenCanvas';
|
|
|
4245
4481
|
|
|
4246
4482
|
// prettier-ignore
|
|
4247
4483
|
const Commands$h = {
|
|
4248
|
-
create: create$
|
|
4484
|
+
create: create$w
|
|
4249
4485
|
};
|
|
4250
4486
|
|
|
4251
4487
|
const OffscreenCanvas_ipc = {
|
|
@@ -4466,7 +4702,7 @@ const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mous
|
|
|
4466
4702
|
state$1.$$Menus.push($Menu);
|
|
4467
4703
|
append$1($Menu);
|
|
4468
4704
|
if (level === 0) {
|
|
4469
|
-
focus$
|
|
4705
|
+
focus$h($Menu);
|
|
4470
4706
|
send('Focus.setFocus', FocusMenu);
|
|
4471
4707
|
}
|
|
4472
4708
|
};
|
|
@@ -5292,8 +5528,6 @@ const setIdentifiers = identifiers => {
|
|
|
5292
5528
|
setIdentifiers$1(identifiers);
|
|
5293
5529
|
};
|
|
5294
5530
|
|
|
5295
|
-
const rememberFocus = rememberFocus$1;
|
|
5296
|
-
|
|
5297
5531
|
const load$1 = moduleId => {
|
|
5298
5532
|
switch (moduleId) {
|
|
5299
5533
|
case ImagePreview$1:
|
|
@@ -5415,7 +5649,7 @@ const load$1 = moduleId => {
|
|
|
5415
5649
|
}
|
|
5416
5650
|
};
|
|
5417
5651
|
|
|
5418
|
-
const create$
|
|
5652
|
+
const create$v = (id, uid = id) => {
|
|
5419
5653
|
const module = state$6.modules[id];
|
|
5420
5654
|
if (!module) {
|
|
5421
5655
|
throw new Error(`module not found: ${id}`);
|
|
@@ -5480,7 +5714,7 @@ const invoke = (viewletId, method, ...args) => {
|
|
|
5480
5714
|
}
|
|
5481
5715
|
return instance.factory[method](instance.state, ...args);
|
|
5482
5716
|
};
|
|
5483
|
-
const focus$
|
|
5717
|
+
const focus$g = viewletId => {
|
|
5484
5718
|
const instance = state$6.instances[viewletId];
|
|
5485
5719
|
if (instance.factory?.setFocused) {
|
|
5486
5720
|
instance.factory.setFocused(instance.state, true);
|
|
@@ -5535,7 +5769,7 @@ const createPlaceholder = (viewletId, parentId, top, left, width, height) => {
|
|
|
5535
5769
|
}
|
|
5536
5770
|
};
|
|
5537
5771
|
};
|
|
5538
|
-
const setDom$
|
|
5772
|
+
const setDom$7 = (viewletId, dom) => {
|
|
5539
5773
|
const instance = state$6.instances[viewletId];
|
|
5540
5774
|
if (!instance) {
|
|
5541
5775
|
return;
|
|
@@ -5582,7 +5816,7 @@ const sendMultiple = commands => {
|
|
|
5582
5816
|
}
|
|
5583
5817
|
case 'Viewlet.create':
|
|
5584
5818
|
{
|
|
5585
|
-
create$
|
|
5819
|
+
create$v(viewletId, method);
|
|
5586
5820
|
break;
|
|
5587
5821
|
}
|
|
5588
5822
|
case 'Viewlet.createFunctionalRoot':
|
|
@@ -5616,7 +5850,7 @@ const sendMultiple = commands => {
|
|
|
5616
5850
|
}
|
|
5617
5851
|
case 'Viewlet.focus':
|
|
5618
5852
|
{
|
|
5619
|
-
focus$
|
|
5853
|
+
focus$g(viewletId);
|
|
5620
5854
|
break;
|
|
5621
5855
|
}
|
|
5622
5856
|
case 'Viewlet.appendViewlet':
|
|
@@ -5636,7 +5870,7 @@ const sendMultiple = commands => {
|
|
|
5636
5870
|
break;
|
|
5637
5871
|
case 'Viewlet.setDom':
|
|
5638
5872
|
// @ts-expect-error
|
|
5639
|
-
setDom$
|
|
5873
|
+
setDom$7(viewletId, method, ...args);
|
|
5640
5874
|
break;
|
|
5641
5875
|
case 'Viewlet.setDom2':
|
|
5642
5876
|
// @ts-ignore
|
|
@@ -5777,7 +6011,7 @@ const appendToBody = childId => {
|
|
|
5777
6011
|
const getFn = command => {
|
|
5778
6012
|
switch (command) {
|
|
5779
6013
|
case 'Viewlet.create':
|
|
5780
|
-
return create$
|
|
6014
|
+
return create$v;
|
|
5781
6015
|
case 'Viewlet.send':
|
|
5782
6016
|
return invoke;
|
|
5783
6017
|
case 'Viewlet.show':
|
|
@@ -5797,13 +6031,13 @@ const getFn = command => {
|
|
|
5797
6031
|
case 'Viewlet.createPlaceholder':
|
|
5798
6032
|
return createPlaceholder;
|
|
5799
6033
|
case 'Viewlet.focus':
|
|
5800
|
-
return focus$
|
|
6034
|
+
return focus$g;
|
|
5801
6035
|
case 'Viewlet.appendViewlet':
|
|
5802
6036
|
return appendViewlet;
|
|
5803
6037
|
case 'Viewlet.addKeyBindings':
|
|
5804
6038
|
return addKeyBindings;
|
|
5805
6039
|
case 'Viewlet.setDom':
|
|
5806
|
-
return setDom$
|
|
6040
|
+
return setDom$7;
|
|
5807
6041
|
case 'Viewlet.createFunctionalRoot':
|
|
5808
6042
|
return createFunctionalRoot;
|
|
5809
6043
|
default:
|
|
@@ -5842,7 +6076,7 @@ const Commands$9 = {
|
|
|
5842
6076
|
appendViewlet: appendViewlet,
|
|
5843
6077
|
dispose: dispose$e,
|
|
5844
6078
|
executeCommands: executeCommands,
|
|
5845
|
-
focus: focus$
|
|
6079
|
+
focus: focus$g,
|
|
5846
6080
|
focusSelector: focusSelector,
|
|
5847
6081
|
handleError: handleError$6,
|
|
5848
6082
|
invoke: invoke,
|
|
@@ -6123,7 +6357,7 @@ const waitForFrameToLoad = $Frame => {
|
|
|
6123
6357
|
};
|
|
6124
6358
|
|
|
6125
6359
|
// TODO could use browser view when running in electron
|
|
6126
|
-
const create$
|
|
6360
|
+
const create$u = async (uid, src, sandbox, csp, credentialless) => {
|
|
6127
6361
|
const $Iframe = document.createElement('iframe');
|
|
6128
6362
|
setIframeCredentialless($Iframe, credentialless);
|
|
6129
6363
|
setIframeCsp($Iframe, csp);
|
|
@@ -6165,7 +6399,7 @@ const dispose$d = uid => {
|
|
|
6165
6399
|
|
|
6166
6400
|
const name = 'WebView';
|
|
6167
6401
|
const Commands$1 = {
|
|
6168
|
-
create: create$
|
|
6402
|
+
create: create$u,
|
|
6169
6403
|
load: load,
|
|
6170
6404
|
setPort: setPort$2,
|
|
6171
6405
|
dispose: dispose$d
|
|
@@ -6213,7 +6447,7 @@ const handleMouseDown$2 = event => {
|
|
|
6213
6447
|
const handleBlur$8 = () => {
|
|
6214
6448
|
return ['handleBlur'];
|
|
6215
6449
|
};
|
|
6216
|
-
const handleFocus$
|
|
6450
|
+
const handleFocus$a = () => {
|
|
6217
6451
|
return ['handleFocus'];
|
|
6218
6452
|
};
|
|
6219
6453
|
|
|
@@ -6228,22 +6462,22 @@ const handleContextMenu$b = event => {
|
|
|
6228
6462
|
} = event;
|
|
6229
6463
|
return ['handleContextMenu', button, clientX, clientY];
|
|
6230
6464
|
};
|
|
6231
|
-
const returnValue$
|
|
6465
|
+
const returnValue$8 = true;
|
|
6232
6466
|
|
|
6233
6467
|
const ViewletActivityBarEvents = {
|
|
6234
6468
|
__proto__: null,
|
|
6235
6469
|
handleBlur: handleBlur$8,
|
|
6236
6470
|
handleContextMenu: handleContextMenu$b,
|
|
6237
|
-
handleFocus: handleFocus$
|
|
6471
|
+
handleFocus: handleFocus$a,
|
|
6238
6472
|
handleMouseDown: handleMouseDown$2,
|
|
6239
|
-
returnValue: returnValue$
|
|
6473
|
+
returnValue: returnValue$8
|
|
6240
6474
|
};
|
|
6241
6475
|
|
|
6242
|
-
const Events$
|
|
6476
|
+
const Events$b = ViewletActivityBarEvents;
|
|
6243
6477
|
|
|
6244
6478
|
const ViewletActivityBar = {
|
|
6245
6479
|
__proto__: null,
|
|
6246
|
-
Events: Events$
|
|
6480
|
+
Events: Events$b
|
|
6247
6481
|
};
|
|
6248
6482
|
|
|
6249
6483
|
const handleAudioError = event => {
|
|
@@ -6266,21 +6500,21 @@ const ViewletAudioEvents = {
|
|
|
6266
6500
|
handleAudioError
|
|
6267
6501
|
};
|
|
6268
6502
|
|
|
6269
|
-
const Events$
|
|
6503
|
+
const Events$a = ViewletAudioEvents;
|
|
6270
6504
|
|
|
6271
6505
|
const ViewletAudio = {
|
|
6272
6506
|
__proto__: null,
|
|
6273
|
-
Events: Events$
|
|
6507
|
+
Events: Events$a
|
|
6274
6508
|
};
|
|
6275
6509
|
|
|
6276
|
-
const create$
|
|
6510
|
+
const create$t = () => {
|
|
6277
6511
|
const $Viewlet = document.createElement('div');
|
|
6278
6512
|
$Viewlet.className = 'Viewlet BrowserViewOverview';
|
|
6279
6513
|
return {
|
|
6280
6514
|
$Viewlet
|
|
6281
6515
|
};
|
|
6282
6516
|
};
|
|
6283
|
-
const setDom$
|
|
6517
|
+
const setDom$6 = (state, dom) => {
|
|
6284
6518
|
const {
|
|
6285
6519
|
$Viewlet
|
|
6286
6520
|
} = state;
|
|
@@ -6289,11 +6523,11 @@ const setDom$8 = (state, dom) => {
|
|
|
6289
6523
|
|
|
6290
6524
|
const ViewletBrowserViewOverview = {
|
|
6291
6525
|
__proto__: null,
|
|
6292
|
-
create: create$
|
|
6293
|
-
setDom: setDom$
|
|
6526
|
+
create: create$t,
|
|
6527
|
+
setDom: setDom$6
|
|
6294
6528
|
};
|
|
6295
6529
|
|
|
6296
|
-
const create$
|
|
6530
|
+
const create$s = () => {
|
|
6297
6531
|
const $Viewlet = document.createElement('div');
|
|
6298
6532
|
$Viewlet.className = 'Viewlet Clock';
|
|
6299
6533
|
return {
|
|
@@ -6310,111 +6544,13 @@ const setTime = (state, time) => {
|
|
|
6310
6544
|
|
|
6311
6545
|
const ViewletClock = {
|
|
6312
6546
|
__proto__: null,
|
|
6313
|
-
create: create$
|
|
6547
|
+
create: create$s,
|
|
6314
6548
|
dispose: dispose$c,
|
|
6315
6549
|
refresh: refresh$3,
|
|
6316
6550
|
setTime
|
|
6317
6551
|
};
|
|
6318
6552
|
|
|
6319
|
-
const
|
|
6320
|
-
$Target.setPointerCapture(pointerId);
|
|
6321
|
-
$Target.addEventListener(PointerMove, handlePointerMove);
|
|
6322
|
-
// TODO use pointerlost event instead
|
|
6323
|
-
$Target.addEventListener(PointerUp, handlePointerUp);
|
|
6324
|
-
};
|
|
6325
|
-
const stopTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
6326
|
-
$Target.releasePointerCapture(pointerId);
|
|
6327
|
-
$Target.removeEventListener(PointerMove, handlePointerMove);
|
|
6328
|
-
// TODO use pointerlost event instead
|
|
6329
|
-
$Target.removeEventListener(PointerUp, handlePointerUp);
|
|
6330
|
-
};
|
|
6331
|
-
const create$u = (pointerDown, pointerMove, pointerUp) => {
|
|
6332
|
-
const shared = (fn, event) => {
|
|
6333
|
-
const message = fn(event);
|
|
6334
|
-
if (!message || message.length === 0) {
|
|
6335
|
-
return;
|
|
6336
|
-
}
|
|
6337
|
-
const uid = fromEvent(event);
|
|
6338
|
-
send('Viewlet.executeViewletCommand', uid, ...message);
|
|
6339
|
-
};
|
|
6340
|
-
const handlePointerMove = event => {
|
|
6341
|
-
shared(pointerMove, event);
|
|
6342
|
-
};
|
|
6343
|
-
const handlePointerUp = event => {
|
|
6344
|
-
const {
|
|
6345
|
-
target,
|
|
6346
|
-
pointerId
|
|
6347
|
-
} = event;
|
|
6348
|
-
stopTracking(target, pointerId, handlePointerMove, handlePointerUp);
|
|
6349
|
-
shared(pointerUp, event);
|
|
6350
|
-
};
|
|
6351
|
-
const handlePointerDown = event => {
|
|
6352
|
-
const {
|
|
6353
|
-
target,
|
|
6354
|
-
pointerId
|
|
6355
|
-
} = event;
|
|
6356
|
-
startTracking(target, pointerId, handlePointerMove, handlePointerUp);
|
|
6357
|
-
shared(pointerDown, event);
|
|
6358
|
-
return [];
|
|
6359
|
-
};
|
|
6360
|
-
return handlePointerDown;
|
|
6361
|
-
};
|
|
6362
|
-
|
|
6363
|
-
const handleOffset = 20;
|
|
6364
|
-
const handleSliderPointerDown = create$u(event => {
|
|
6365
|
-
const {
|
|
6366
|
-
clientX,
|
|
6367
|
-
clientY
|
|
6368
|
-
} = event;
|
|
6369
|
-
return ['handleSliderPointerDown', clientX - handleOffset, clientY];
|
|
6370
|
-
}, event => {
|
|
6371
|
-
const {
|
|
6372
|
-
clientX,
|
|
6373
|
-
clientY
|
|
6374
|
-
} = event;
|
|
6375
|
-
return ['handleSliderPointerMove', clientX - handleOffset, clientY];
|
|
6376
|
-
}, () => {
|
|
6377
|
-
return [];
|
|
6378
|
-
});
|
|
6379
|
-
const handlePointerDown$6 = event => {
|
|
6380
|
-
const {
|
|
6381
|
-
target
|
|
6382
|
-
} = event;
|
|
6383
|
-
if (target.className === 'ColorPickerSliderThumb' || target.className === 'ColorPickerSlider') {
|
|
6384
|
-
return handleSliderPointerDown(event);
|
|
6385
|
-
}
|
|
6386
|
-
return [];
|
|
6387
|
-
};
|
|
6388
|
-
const returnValue$8 = true;
|
|
6389
|
-
|
|
6390
|
-
const ViewletColorPickerEvents = {
|
|
6391
|
-
__proto__: null,
|
|
6392
|
-
handlePointerDown: handlePointerDown$6,
|
|
6393
|
-
returnValue: returnValue$8
|
|
6394
|
-
};
|
|
6395
|
-
|
|
6396
|
-
const setColor = (state, color) => {
|
|
6397
|
-
const {
|
|
6398
|
-
$Viewlet
|
|
6399
|
-
} = state;
|
|
6400
|
-
$Viewlet.style.setProperty('--ColorPickerColor', color);
|
|
6401
|
-
};
|
|
6402
|
-
const setOffsetX = (state, offsetX) => {
|
|
6403
|
-
const {
|
|
6404
|
-
$Viewlet
|
|
6405
|
-
} = state;
|
|
6406
|
-
const $ColorPickerSliderThumb = $Viewlet.querySelector('.ColorPickerSliderThumb');
|
|
6407
|
-
setXAndYTransform($ColorPickerSliderThumb, offsetX, 0);
|
|
6408
|
-
};
|
|
6409
|
-
|
|
6410
|
-
const ViewletColorPicker = {
|
|
6411
|
-
__proto__: null,
|
|
6412
|
-
Events: ViewletColorPickerEvents,
|
|
6413
|
-
setColor,
|
|
6414
|
-
setOffsetX
|
|
6415
|
-
};
|
|
6416
|
-
|
|
6417
|
-
const handleInput$7 = event => {
|
|
6553
|
+
const handleInput$6 = event => {
|
|
6418
6554
|
const uid = fromEvent(event);
|
|
6419
6555
|
const {
|
|
6420
6556
|
target
|
|
@@ -6424,25 +6560,25 @@ const handleInput$7 = event => {
|
|
|
6424
6560
|
} = target;
|
|
6425
6561
|
handleInput$8(uid, value);
|
|
6426
6562
|
};
|
|
6427
|
-
const handleFocus$
|
|
6563
|
+
const handleFocus$9 = event => {
|
|
6428
6564
|
const uid = fromEvent(event);
|
|
6429
6565
|
handleFocus$c(uid);
|
|
6430
6566
|
};
|
|
6431
6567
|
|
|
6432
6568
|
const ViewletDebugConsoleEvents = {
|
|
6433
6569
|
__proto__: null,
|
|
6434
|
-
handleFocus: handleFocus$
|
|
6435
|
-
handleInput: handleInput$
|
|
6570
|
+
handleFocus: handleFocus$9,
|
|
6571
|
+
handleInput: handleInput$6
|
|
6436
6572
|
};
|
|
6437
6573
|
|
|
6438
|
-
const create$
|
|
6574
|
+
const create$r = () => {
|
|
6439
6575
|
const $Viewlet = document.createElement('div');
|
|
6440
6576
|
$Viewlet.className = 'Viewlet DebugConsole';
|
|
6441
6577
|
return {
|
|
6442
6578
|
$Viewlet
|
|
6443
6579
|
};
|
|
6444
6580
|
};
|
|
6445
|
-
const setDom$
|
|
6581
|
+
const setDom$5 = (state, dom) => {
|
|
6446
6582
|
const {
|
|
6447
6583
|
$Viewlet
|
|
6448
6584
|
} = state;
|
|
@@ -6451,8 +6587,8 @@ const setDom$7 = (state, dom) => {
|
|
|
6451
6587
|
|
|
6452
6588
|
const ViewletDebugConsole = {
|
|
6453
6589
|
__proto__: null,
|
|
6454
|
-
create: create$
|
|
6455
|
-
setDom: setDom$
|
|
6590
|
+
create: create$r,
|
|
6591
|
+
setDom: setDom$5
|
|
6456
6592
|
};
|
|
6457
6593
|
|
|
6458
6594
|
const handleKeyDown$3 = event => {
|
|
@@ -6479,7 +6615,7 @@ const ViewletDefineKeyBindingEvents = {
|
|
|
6479
6615
|
handleKeyDown: handleKeyDown$3
|
|
6480
6616
|
};
|
|
6481
6617
|
|
|
6482
|
-
const setValue$
|
|
6618
|
+
const setValue$3 = (state, value) => {
|
|
6483
6619
|
object(state);
|
|
6484
6620
|
string(value);
|
|
6485
6621
|
const {
|
|
@@ -6488,7 +6624,7 @@ const setValue$4 = (state, value) => {
|
|
|
6488
6624
|
const $Input = $Viewlet.querySelector('input');
|
|
6489
6625
|
$Input.value = value;
|
|
6490
6626
|
};
|
|
6491
|
-
const focus$
|
|
6627
|
+
const focus$f = state => {
|
|
6492
6628
|
const {
|
|
6493
6629
|
$Viewlet
|
|
6494
6630
|
} = state;
|
|
@@ -6499,8 +6635,8 @@ const focus$g = state => {
|
|
|
6499
6635
|
const ViewletDefineKeyBinding = {
|
|
6500
6636
|
__proto__: null,
|
|
6501
6637
|
Events: ViewletDefineKeyBindingEvents,
|
|
6502
|
-
focus: focus$
|
|
6503
|
-
setValue: setValue$
|
|
6638
|
+
focus: focus$f,
|
|
6639
|
+
setValue: setValue$3
|
|
6504
6640
|
};
|
|
6505
6641
|
|
|
6506
6642
|
const setMaskImage = ($Element, icon) => {
|
|
@@ -6512,7 +6648,7 @@ const setMaskImage = ($Element, icon) => {
|
|
|
6512
6648
|
}
|
|
6513
6649
|
};
|
|
6514
6650
|
|
|
6515
|
-
const create$
|
|
6651
|
+
const create$q = icon => {
|
|
6516
6652
|
const $Icon = document.createElement('div');
|
|
6517
6653
|
$Icon.className = 'MaskIcon';
|
|
6518
6654
|
setMaskImage($Icon, icon);
|
|
@@ -6522,7 +6658,7 @@ const create$s = icon => {
|
|
|
6522
6658
|
|
|
6523
6659
|
const create$Button = (label, icon) => {
|
|
6524
6660
|
// TODO icon div might not be needed (unnecessary html element)
|
|
6525
|
-
const $Icon = create$
|
|
6661
|
+
const $Icon = create$q(icon);
|
|
6526
6662
|
const $Button = document.createElement('button');
|
|
6527
6663
|
$Button.className = 'IconButton';
|
|
6528
6664
|
$Button.title = label;
|
|
@@ -6531,19 +6667,19 @@ const create$Button = (label, icon) => {
|
|
|
6531
6667
|
return $Button;
|
|
6532
6668
|
};
|
|
6533
6669
|
|
|
6534
|
-
const handleClick$
|
|
6670
|
+
const handleClick$7 = index => {
|
|
6535
6671
|
send(/* Dialog.handleClick */'Dialog.handleClick', /* index */index);
|
|
6536
6672
|
};
|
|
6537
6673
|
|
|
6538
|
-
const handleClick$
|
|
6674
|
+
const handleClick$6 = event => {
|
|
6539
6675
|
const {
|
|
6540
6676
|
target
|
|
6541
6677
|
} = event;
|
|
6542
6678
|
const index = getNodeIndex(target);
|
|
6543
|
-
handleClick$
|
|
6679
|
+
handleClick$7(index);
|
|
6544
6680
|
};
|
|
6545
6681
|
|
|
6546
|
-
const create$
|
|
6682
|
+
const create$p = () => {
|
|
6547
6683
|
const $DialogTitle = document.createElement('h2');
|
|
6548
6684
|
$DialogTitle.id = 'DialogTitle';
|
|
6549
6685
|
const $DialogCloseButton = create$Button('Close', 'Close');
|
|
@@ -6570,7 +6706,7 @@ const create$r = () => {
|
|
|
6570
6706
|
$Dialog.setAttribute(AriaLabelledBy, 'DialogTitle');
|
|
6571
6707
|
$Dialog.setAttribute(AriaDescribedBy, 'DialogBodyErrorMessage');
|
|
6572
6708
|
$Dialog.append($DialogHeader, $DialogBody);
|
|
6573
|
-
$Dialog.onclick = handleClick$
|
|
6709
|
+
$Dialog.onclick = handleClick$6;
|
|
6574
6710
|
return {
|
|
6575
6711
|
$Viewlet: $Dialog,
|
|
6576
6712
|
$DialogTitle,
|
|
@@ -6624,7 +6760,7 @@ const setErrorStack = (state, errorStack) => {
|
|
|
6624
6760
|
|
|
6625
6761
|
const ViewletDialog = {
|
|
6626
6762
|
__proto__: null,
|
|
6627
|
-
create: create$
|
|
6763
|
+
create: create$p,
|
|
6628
6764
|
postAppend,
|
|
6629
6765
|
setButtons,
|
|
6630
6766
|
setCodeFrame,
|
|
@@ -6662,14 +6798,14 @@ const ViewletDiffEditor = {
|
|
|
6662
6798
|
|
|
6663
6799
|
// TODO aria alert
|
|
6664
6800
|
|
|
6665
|
-
const create$
|
|
6801
|
+
const create$o = () => {
|
|
6666
6802
|
const $Viewlet = document.createElement('div');
|
|
6667
6803
|
$Viewlet.className = 'Viewlet EditorError';
|
|
6668
6804
|
return {
|
|
6669
6805
|
$Viewlet
|
|
6670
6806
|
};
|
|
6671
6807
|
};
|
|
6672
|
-
const setDom$
|
|
6808
|
+
const setDom$4 = (state, dom) => {
|
|
6673
6809
|
const {
|
|
6674
6810
|
$Viewlet
|
|
6675
6811
|
} = state;
|
|
@@ -6684,13 +6820,13 @@ const setBounds$3 = (state, x, y, width, height) => {
|
|
|
6684
6820
|
|
|
6685
6821
|
const ViewletEditorError = {
|
|
6686
6822
|
__proto__: null,
|
|
6687
|
-
create: create$
|
|
6823
|
+
create: create$o,
|
|
6688
6824
|
setBounds: setBounds$3,
|
|
6689
|
-
setDom: setDom$
|
|
6825
|
+
setDom: setDom$4
|
|
6690
6826
|
};
|
|
6691
6827
|
|
|
6692
6828
|
const returnValue$7 = true;
|
|
6693
|
-
const handleSashPointerDown$2 = create$
|
|
6829
|
+
const handleSashPointerDown$2 = create$K(event => {
|
|
6694
6830
|
const {
|
|
6695
6831
|
clientX,
|
|
6696
6832
|
clientY
|
|
@@ -6789,7 +6925,7 @@ const handlePointerDown$5 = event => {
|
|
|
6789
6925
|
target.addEventListener(PointerUp, handlePointerUp);
|
|
6790
6926
|
target.addEventListener(LostPointerCapture, handlePointerCaptureLost$1);
|
|
6791
6927
|
const uid = fromEvent(event);
|
|
6792
|
-
handlePointerDown$
|
|
6928
|
+
handlePointerDown$6(uid, pointerId, clientX, clientY);
|
|
6793
6929
|
};
|
|
6794
6930
|
|
|
6795
6931
|
/**
|
|
@@ -6824,27 +6960,27 @@ const handleError$5 = event => {
|
|
|
6824
6960
|
const uid = fromEvent(event);
|
|
6825
6961
|
handleImageError$1(uid);
|
|
6826
6962
|
};
|
|
6827
|
-
const handleFocus$
|
|
6963
|
+
const handleFocus$8 = event => {
|
|
6828
6964
|
const uid = fromEvent(event);
|
|
6829
6965
|
handleFocus$c(uid);
|
|
6830
6966
|
};
|
|
6831
6967
|
|
|
6832
|
-
const create$
|
|
6968
|
+
const create$n = () => {
|
|
6833
6969
|
const $Viewlet = document.createElement('div');
|
|
6834
6970
|
$Viewlet.className = 'Viewlet EditorImage';
|
|
6835
6971
|
return {
|
|
6836
6972
|
$Viewlet
|
|
6837
6973
|
};
|
|
6838
6974
|
};
|
|
6839
|
-
const attachEvents$
|
|
6975
|
+
const attachEvents$8 = state => {
|
|
6840
6976
|
const {
|
|
6841
6977
|
$Viewlet
|
|
6842
6978
|
} = state;
|
|
6843
|
-
attachEvents$
|
|
6979
|
+
attachEvents$c($Viewlet, {
|
|
6844
6980
|
[PointerDown]: handlePointerDown$5,
|
|
6845
6981
|
[PointerUp]: handlePointerUp,
|
|
6846
6982
|
[ContextMenu]: handleContextMenu$a,
|
|
6847
|
-
[FocusIn]: handleFocus$
|
|
6983
|
+
[FocusIn]: handleFocus$8
|
|
6848
6984
|
});
|
|
6849
6985
|
$Viewlet.addEventListener(Error$3, handleError$5, Capture);
|
|
6850
6986
|
$Viewlet.addEventListener(Wheel, handleWheel$2, Passive);
|
|
@@ -6862,7 +6998,7 @@ const setDragging = (state, isDragging) => {
|
|
|
6862
6998
|
} = state;
|
|
6863
6999
|
$Viewlet.classList.toggle('Dragging', isDragging);
|
|
6864
7000
|
};
|
|
6865
|
-
const setDom$
|
|
7001
|
+
const setDom$3 = (state, dom) => {
|
|
6866
7002
|
const {
|
|
6867
7003
|
$Viewlet
|
|
6868
7004
|
} = state;
|
|
@@ -6871,14 +7007,14 @@ const setDom$5 = (state, dom) => {
|
|
|
6871
7007
|
|
|
6872
7008
|
const ViewletEditorImage = {
|
|
6873
7009
|
__proto__: null,
|
|
6874
|
-
attachEvents: attachEvents$
|
|
6875
|
-
create: create$
|
|
6876
|
-
setDom: setDom$
|
|
7010
|
+
attachEvents: attachEvents$8,
|
|
7011
|
+
create: create$n,
|
|
7012
|
+
setDom: setDom$3,
|
|
6877
7013
|
setDragging,
|
|
6878
7014
|
setTransform
|
|
6879
7015
|
};
|
|
6880
7016
|
|
|
6881
|
-
const create$
|
|
7017
|
+
const create$m = () => {
|
|
6882
7018
|
const $Viewlet = document.createElement('div');
|
|
6883
7019
|
$Viewlet.className = 'Viewlet EditorText';
|
|
6884
7020
|
$Viewlet.textContent = 'loading...';
|
|
@@ -6895,7 +7031,7 @@ const refresh$2 = (state, context) => {
|
|
|
6895
7031
|
|
|
6896
7032
|
const ViewletEditorPlainText = {
|
|
6897
7033
|
__proto__: null,
|
|
6898
|
-
create: create$
|
|
7034
|
+
create: create$m,
|
|
6899
7035
|
dispose: dispose$b,
|
|
6900
7036
|
refresh: refresh$2
|
|
6901
7037
|
};
|
|
@@ -7014,7 +7150,7 @@ const toSimpleTouchEvent = event => {
|
|
|
7014
7150
|
|
|
7015
7151
|
// TODO tree shake out mobile support when targeting electron -> less code -> less event listeners -> less memory -> less cpu
|
|
7016
7152
|
|
|
7017
|
-
const handleFocus$
|
|
7153
|
+
const handleFocus$7 = event => {
|
|
7018
7154
|
return ['handleFocus'];
|
|
7019
7155
|
};
|
|
7020
7156
|
const handleMouseMove = event => {
|
|
@@ -7154,7 +7290,7 @@ const handlePaste = event => {
|
|
|
7154
7290
|
const text = getText(clipboardData);
|
|
7155
7291
|
return ['paste', text];
|
|
7156
7292
|
};
|
|
7157
|
-
const handleScrollBarVerticalPointerDown = create$
|
|
7293
|
+
const handleScrollBarVerticalPointerDown = create$K(event => {
|
|
7158
7294
|
const {
|
|
7159
7295
|
clientY
|
|
7160
7296
|
} = event;
|
|
@@ -7188,7 +7324,7 @@ const handleScrollBarHorizontalPointerUp = event => {
|
|
|
7188
7324
|
target,
|
|
7189
7325
|
pointerId
|
|
7190
7326
|
} = event;
|
|
7191
|
-
stopTracking
|
|
7327
|
+
stopTracking(target, pointerId, handleScrollBarThumbHorizontalPointerMove, handleScrollBarHorizontalPointerUp);
|
|
7192
7328
|
return [];
|
|
7193
7329
|
};
|
|
7194
7330
|
|
|
@@ -7202,7 +7338,7 @@ const handleScrollBarHorizontalPointerDown = event => {
|
|
|
7202
7338
|
pointerId,
|
|
7203
7339
|
clientX
|
|
7204
7340
|
} = event;
|
|
7205
|
-
startTracking
|
|
7341
|
+
startTracking(target, pointerId, handleScrollBarThumbHorizontalPointerMove, handleScrollBarHorizontalPointerUp);
|
|
7206
7342
|
return ['handleScrollBarHorizontalPointerDown', clientX];
|
|
7207
7343
|
};
|
|
7208
7344
|
const handleScrollBarContextMenu = event => {
|
|
@@ -7277,7 +7413,7 @@ const setLineInfos = (state, dom) => {
|
|
|
7277
7413
|
// 1. create -> only create dom elements
|
|
7278
7414
|
// 2. render -> fill elements with attributes and data
|
|
7279
7415
|
// that way all dom nodes can be recycled
|
|
7280
|
-
const create$
|
|
7416
|
+
const create$l = () => {
|
|
7281
7417
|
const $EditorInput = document.createElement('textarea');
|
|
7282
7418
|
$EditorInput.className = 'EditorInput';
|
|
7283
7419
|
$EditorInput.ariaAutoComplete = List;
|
|
@@ -7295,7 +7431,7 @@ const create$n = () => {
|
|
|
7295
7431
|
[CompositionStart]: handleCompositionStart,
|
|
7296
7432
|
[CompositionUpdate]: handleCompositionUpdate,
|
|
7297
7433
|
[CompositionEnd]: handleCompositionEnd,
|
|
7298
|
-
[Focus]: handleFocus$
|
|
7434
|
+
[Focus]: handleFocus$7,
|
|
7299
7435
|
[Blur]: handleBlur$6,
|
|
7300
7436
|
[Cut]: handleCut,
|
|
7301
7437
|
[Paste]: handlePaste,
|
|
@@ -7444,7 +7580,7 @@ const setDecorationsDom$1 = (state, decorations) => {
|
|
|
7444
7580
|
setDecorationsDom$2(state, decorations);
|
|
7445
7581
|
};
|
|
7446
7582
|
|
|
7447
|
-
const create$
|
|
7583
|
+
const create$k = create$l;
|
|
7448
7584
|
const setText$1 = setText$2;
|
|
7449
7585
|
const setSelections = setSelections$1;
|
|
7450
7586
|
const setIncrementalEdits = setIncrementalEdits$1;
|
|
@@ -7481,13 +7617,13 @@ const hideOverlayMessage = state => {
|
|
|
7481
7617
|
}
|
|
7482
7618
|
};
|
|
7483
7619
|
const setFocused$2 = setFocused$3;
|
|
7484
|
-
const focus$
|
|
7620
|
+
const focus$e = setFocused$3;
|
|
7485
7621
|
const setDecorationsDom = setDecorationsDom$1;
|
|
7486
7622
|
|
|
7487
7623
|
const ViewletEditorText = {
|
|
7488
7624
|
__proto__: null,
|
|
7489
|
-
create: create$
|
|
7490
|
-
focus: focus$
|
|
7625
|
+
create: create$k,
|
|
7626
|
+
focus: focus$e,
|
|
7491
7627
|
handleError: handleError$4,
|
|
7492
7628
|
hideOverlayMessage,
|
|
7493
7629
|
highlightAsLink,
|
|
@@ -7502,7 +7638,7 @@ const ViewletEditorText = {
|
|
|
7502
7638
|
showOverlayMessage
|
|
7503
7639
|
};
|
|
7504
7640
|
|
|
7505
|
-
const create$
|
|
7641
|
+
const create$j = () => {
|
|
7506
7642
|
const $Viewlet = document.createElement('div');
|
|
7507
7643
|
$Viewlet.className = 'Viewlet EditorWidgetError EditorOverlayMessage';
|
|
7508
7644
|
return {
|
|
@@ -7525,12 +7661,12 @@ const setBounds$1 = (state, x, y, width, height) => {
|
|
|
7525
7661
|
|
|
7526
7662
|
const ViewletEditorWidgetError = {
|
|
7527
7663
|
__proto__: null,
|
|
7528
|
-
create: create$
|
|
7664
|
+
create: create$j,
|
|
7529
7665
|
setBounds: setBounds$1,
|
|
7530
7666
|
setMessage: setMessage$2
|
|
7531
7667
|
};
|
|
7532
7668
|
|
|
7533
|
-
const create$
|
|
7669
|
+
const create$i = () => {
|
|
7534
7670
|
const $Viewlet = document.createElement('div');
|
|
7535
7671
|
$Viewlet.dataset.viewlet = 'Empty';
|
|
7536
7672
|
$Viewlet.className = 'Viewlet';
|
|
@@ -7539,18 +7675,18 @@ const create$k = () => {
|
|
|
7539
7675
|
};
|
|
7540
7676
|
};
|
|
7541
7677
|
const refresh$1 = (state, context) => {};
|
|
7542
|
-
const focus$
|
|
7678
|
+
const focus$d = state => {};
|
|
7543
7679
|
const dispose$a = state => {};
|
|
7544
7680
|
|
|
7545
7681
|
const ViewletEmpty = {
|
|
7546
7682
|
__proto__: null,
|
|
7547
|
-
create: create$
|
|
7683
|
+
create: create$i,
|
|
7548
7684
|
dispose: dispose$a,
|
|
7549
|
-
focus: focus$
|
|
7685
|
+
focus: focus$d,
|
|
7550
7686
|
refresh: refresh$1
|
|
7551
7687
|
};
|
|
7552
7688
|
|
|
7553
|
-
const create$
|
|
7689
|
+
const create$h = () => {
|
|
7554
7690
|
const $Viewlet = document.createElement('div');
|
|
7555
7691
|
$Viewlet.className = 'Viewlet Error';
|
|
7556
7692
|
return {
|
|
@@ -7566,7 +7702,7 @@ const setMessage$1 = (state, message) => {
|
|
|
7566
7702
|
|
|
7567
7703
|
const ViewletError = {
|
|
7568
7704
|
__proto__: null,
|
|
7569
|
-
create: create$
|
|
7705
|
+
create: create$h,
|
|
7570
7706
|
setMessage: setMessage$1
|
|
7571
7707
|
};
|
|
7572
7708
|
|
|
@@ -7692,7 +7828,7 @@ const handleDrop = event => {
|
|
|
7692
7828
|
|
|
7693
7829
|
// TODO drag and drop should be loaded on demand
|
|
7694
7830
|
|
|
7695
|
-
const handleFocus$
|
|
7831
|
+
const handleFocus$6 = event => {
|
|
7696
7832
|
const {
|
|
7697
7833
|
target,
|
|
7698
7834
|
isTrusted
|
|
@@ -7707,7 +7843,7 @@ const handleBlur$5 = event => {
|
|
|
7707
7843
|
const uid = fromEvent(event);
|
|
7708
7844
|
handleBlur$a(uid);
|
|
7709
7845
|
};
|
|
7710
|
-
const handleClick$
|
|
7846
|
+
const handleClick$5 = event => {
|
|
7711
7847
|
preventDefault(event);
|
|
7712
7848
|
const {
|
|
7713
7849
|
button,
|
|
@@ -7729,7 +7865,7 @@ const handlePointerDown$4 = event => {
|
|
|
7729
7865
|
clientY
|
|
7730
7866
|
} = event;
|
|
7731
7867
|
const uid = fromEvent(event);
|
|
7732
|
-
handlePointerDown$
|
|
7868
|
+
handlePointerDown$6(uid, button, clientX, clientY);
|
|
7733
7869
|
};
|
|
7734
7870
|
const handleMouseEnter = event => {
|
|
7735
7871
|
// const $Target = event.target
|
|
@@ -7767,7 +7903,7 @@ const handleEditingInput = event => {
|
|
|
7767
7903
|
const ViewletExplorerEvents = {
|
|
7768
7904
|
__proto__: null,
|
|
7769
7905
|
handleBlur: handleBlur$5,
|
|
7770
|
-
handleClick: handleClick$
|
|
7906
|
+
handleClick: handleClick$5,
|
|
7771
7907
|
handleClickOpenFolder,
|
|
7772
7908
|
handleContextMenu: handleContextMenu$8,
|
|
7773
7909
|
handleDragEnd,
|
|
@@ -7776,14 +7912,14 @@ const ViewletExplorerEvents = {
|
|
|
7776
7912
|
handleDragStart: handleDragStart$1,
|
|
7777
7913
|
handleDrop,
|
|
7778
7914
|
handleEditingInput,
|
|
7779
|
-
handleFocus: handleFocus$
|
|
7915
|
+
handleFocus: handleFocus$6,
|
|
7780
7916
|
handleMouseEnter,
|
|
7781
7917
|
handleMouseLeave,
|
|
7782
7918
|
handlePointerDown: handlePointerDown$4,
|
|
7783
7919
|
handleWheel: handleWheel$3
|
|
7784
7920
|
};
|
|
7785
7921
|
|
|
7786
|
-
const create$
|
|
7922
|
+
const create$g = () => {
|
|
7787
7923
|
const $Viewlet = document.createElement('div');
|
|
7788
7924
|
$Viewlet.className = 'Viewlet Explorer';
|
|
7789
7925
|
$Viewlet.tabIndex = 0;
|
|
@@ -7793,7 +7929,7 @@ const create$i = () => {
|
|
|
7793
7929
|
$Viewlet
|
|
7794
7930
|
};
|
|
7795
7931
|
};
|
|
7796
|
-
const Events$
|
|
7932
|
+
const Events$9 = ViewletExplorerEvents;
|
|
7797
7933
|
const handleError$3 = (state, message) => {
|
|
7798
7934
|
object(state);
|
|
7799
7935
|
string(message);
|
|
@@ -7831,7 +7967,7 @@ const setDropTargets = (state, oldDropTargets, newDropTargets) => {
|
|
|
7831
7967
|
}
|
|
7832
7968
|
}
|
|
7833
7969
|
};
|
|
7834
|
-
const setDom$
|
|
7970
|
+
const setDom$2 = (state, dom) => {
|
|
7835
7971
|
const {
|
|
7836
7972
|
$Viewlet
|
|
7837
7973
|
} = state;
|
|
@@ -7840,12 +7976,12 @@ const setDom$4 = (state, dom) => {
|
|
|
7840
7976
|
|
|
7841
7977
|
const ViewletExplorer = {
|
|
7842
7978
|
__proto__: null,
|
|
7843
|
-
Events: Events$
|
|
7844
|
-
create: create$
|
|
7979
|
+
Events: Events$9,
|
|
7980
|
+
create: create$g,
|
|
7845
7981
|
dispose: dispose$9,
|
|
7846
7982
|
focusInput,
|
|
7847
7983
|
handleError: handleError$3,
|
|
7848
|
-
setDom: setDom$
|
|
7984
|
+
setDom: setDom$2,
|
|
7849
7985
|
setDropTargets
|
|
7850
7986
|
};
|
|
7851
7987
|
|
|
@@ -7884,11 +8020,11 @@ const ViewletExtensionDetailEvents = {
|
|
|
7884
8020
|
handleReadmeContextMenu
|
|
7885
8021
|
};
|
|
7886
8022
|
|
|
7887
|
-
const Events$
|
|
8023
|
+
const Events$8 = ViewletExtensionDetailEvents;
|
|
7888
8024
|
|
|
7889
8025
|
const ViewletExtensionDetail = {
|
|
7890
8026
|
__proto__: null,
|
|
7891
|
-
Events: Events$
|
|
8027
|
+
Events: Events$8,
|
|
7892
8028
|
setSize
|
|
7893
8029
|
};
|
|
7894
8030
|
|
|
@@ -7906,7 +8042,7 @@ const handleScrollBarPointerCaptureLost = event => {
|
|
|
7906
8042
|
target,
|
|
7907
8043
|
pointerId
|
|
7908
8044
|
} = event;
|
|
7909
|
-
stopTracking
|
|
8045
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handleScrollBarPointerCaptureLost);
|
|
7910
8046
|
const uid = fromEvent(event);
|
|
7911
8047
|
handleScrollBarCaptureLost(uid);
|
|
7912
8048
|
};
|
|
@@ -7916,11 +8052,11 @@ const handleScrollBarPointerDown$2 = event => {
|
|
|
7916
8052
|
pointerId,
|
|
7917
8053
|
clientY
|
|
7918
8054
|
} = event;
|
|
7919
|
-
startTracking
|
|
8055
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handleScrollBarPointerCaptureLost);
|
|
7920
8056
|
const uid = fromEvent(event);
|
|
7921
8057
|
handleScrollBarClick(uid, clientY);
|
|
7922
8058
|
};
|
|
7923
|
-
const handleFocus$
|
|
8059
|
+
const handleFocus$5 = event => {
|
|
7924
8060
|
const uid = fromEvent(event);
|
|
7925
8061
|
handleFocus$c(uid);
|
|
7926
8062
|
};
|
|
@@ -7937,7 +8073,7 @@ const handlePointerDown$3 = event => {
|
|
|
7937
8073
|
const index = getNodeIndex($Extension);
|
|
7938
8074
|
handleClick$9(uid, index);
|
|
7939
8075
|
};
|
|
7940
|
-
const handleInput$
|
|
8076
|
+
const handleInput$5 = event => {
|
|
7941
8077
|
const $Target = event.target;
|
|
7942
8078
|
const value = $Target.value;
|
|
7943
8079
|
const uid = fromEvent(event);
|
|
@@ -7989,7 +8125,7 @@ const handleTouchEnd = event => {
|
|
|
7989
8125
|
|
|
7990
8126
|
// based on https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/extensions/browser/extensionsList.ts (License MIT)
|
|
7991
8127
|
|
|
7992
|
-
const create$
|
|
8128
|
+
const create$f = () => {
|
|
7993
8129
|
const $ExtensionHeader = document.createElement('div');
|
|
7994
8130
|
$ExtensionHeader.className = 'ExtensionHeader';
|
|
7995
8131
|
|
|
@@ -8024,30 +8160,30 @@ const create$h = () => {
|
|
|
8024
8160
|
$Message: undefined
|
|
8025
8161
|
};
|
|
8026
8162
|
};
|
|
8027
|
-
const attachEvents$
|
|
8163
|
+
const attachEvents$7 = state => {
|
|
8028
8164
|
const {
|
|
8029
8165
|
$ExtensionHeader,
|
|
8030
8166
|
$ListItems,
|
|
8031
8167
|
$ScrollBar
|
|
8032
8168
|
} = state;
|
|
8033
|
-
$ExtensionHeader.addEventListener(Input
|
|
8169
|
+
$ExtensionHeader.addEventListener(Input, handleInput$5, Capture);
|
|
8034
8170
|
// @ts-expect-error
|
|
8035
8171
|
$ExtensionHeader.addEventListener(Click, undefined);
|
|
8036
|
-
attachEvents$
|
|
8172
|
+
attachEvents$c($ListItems, {
|
|
8037
8173
|
[ContextMenu]: handleContextMenu$8,
|
|
8038
8174
|
[PointerDown]: handlePointerDown$3,
|
|
8039
|
-
[Focus]: handleFocus$
|
|
8175
|
+
[Focus]: handleFocus$5,
|
|
8040
8176
|
[Scroll]: handleScroll
|
|
8041
8177
|
});
|
|
8042
8178
|
$ListItems.addEventListener(TouchStart, handleTouchStart, Passive);
|
|
8043
8179
|
$ListItems.addEventListener(TouchMove, handleTouchMove, Passive);
|
|
8044
8180
|
$ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
|
|
8045
8181
|
$ListItems.addEventListener(Wheel, handleWheel$3, Passive);
|
|
8046
|
-
attachEvents$
|
|
8182
|
+
attachEvents$c($ScrollBar, {
|
|
8047
8183
|
[PointerDown]: handleScrollBarPointerDown$2
|
|
8048
8184
|
});
|
|
8049
8185
|
};
|
|
8050
|
-
const focus$
|
|
8186
|
+
const focus$c = state => {
|
|
8051
8187
|
object(state);
|
|
8052
8188
|
state.$InputBox.focus();
|
|
8053
8189
|
};
|
|
@@ -8132,11 +8268,11 @@ const setSearchValue = (state, oldValue, newValue) => {
|
|
|
8132
8268
|
|
|
8133
8269
|
const ViewletExtensions = {
|
|
8134
8270
|
__proto__: null,
|
|
8135
|
-
attachEvents: attachEvents$
|
|
8271
|
+
attachEvents: attachEvents$7,
|
|
8136
8272
|
closeSuggest,
|
|
8137
|
-
create: create$
|
|
8273
|
+
create: create$f,
|
|
8138
8274
|
dispose: dispose$8,
|
|
8139
|
-
focus: focus$
|
|
8275
|
+
focus: focus$c,
|
|
8140
8276
|
handleError: handleError$2,
|
|
8141
8277
|
openSuggest,
|
|
8142
8278
|
setContentHeight,
|
|
@@ -8150,115 +8286,6 @@ const ViewletExtensions = {
|
|
|
8150
8286
|
setSize
|
|
8151
8287
|
};
|
|
8152
8288
|
|
|
8153
|
-
const handleInput$5 = event => {
|
|
8154
|
-
const {
|
|
8155
|
-
target
|
|
8156
|
-
} = event;
|
|
8157
|
-
const {
|
|
8158
|
-
value
|
|
8159
|
-
} = target;
|
|
8160
|
-
const uid = fromEvent(event);
|
|
8161
|
-
handleInput$8(uid, value);
|
|
8162
|
-
};
|
|
8163
|
-
const handleClickClose$2 = (uid, event) => {
|
|
8164
|
-
preventDefault(event);
|
|
8165
|
-
close$1(uid);
|
|
8166
|
-
};
|
|
8167
|
-
const handleClickPreviousMatch = (uid, event) => {
|
|
8168
|
-
preventDefault(event);
|
|
8169
|
-
focusPrevious$1(uid);
|
|
8170
|
-
};
|
|
8171
|
-
const handleClickNextMatch = (uid, event) => {
|
|
8172
|
-
preventDefault(event);
|
|
8173
|
-
focusNext(uid);
|
|
8174
|
-
};
|
|
8175
|
-
const handleClickToggleReplace = (uid, event) => {
|
|
8176
|
-
preventDefault(event);
|
|
8177
|
-
toggleReplace(uid);
|
|
8178
|
-
};
|
|
8179
|
-
const handleClick$5 = event => {
|
|
8180
|
-
const {
|
|
8181
|
-
target
|
|
8182
|
-
} = event;
|
|
8183
|
-
const {
|
|
8184
|
-
title
|
|
8185
|
-
} = target;
|
|
8186
|
-
const uid = fromEvent(event);
|
|
8187
|
-
switch (title) {
|
|
8188
|
-
case 'Close':
|
|
8189
|
-
handleClickClose$2(uid, event);
|
|
8190
|
-
break;
|
|
8191
|
-
case 'Previous Match':
|
|
8192
|
-
handleClickPreviousMatch(uid, event);
|
|
8193
|
-
break;
|
|
8194
|
-
case 'Next Match':
|
|
8195
|
-
handleClickNextMatch(uid, event);
|
|
8196
|
-
break;
|
|
8197
|
-
case 'Toggle Replace':
|
|
8198
|
-
handleClickToggleReplace(uid, event);
|
|
8199
|
-
break;
|
|
8200
|
-
}
|
|
8201
|
-
};
|
|
8202
|
-
const handleInputBlur = event => {
|
|
8203
|
-
const uid = fromEvent(event);
|
|
8204
|
-
handleBlur$a(uid);
|
|
8205
|
-
};
|
|
8206
|
-
const handleFocus$5 = event => {
|
|
8207
|
-
const uid = fromEvent(event);
|
|
8208
|
-
handleFocus$c(uid);
|
|
8209
|
-
};
|
|
8210
|
-
|
|
8211
|
-
const ViewletFindWidgetEvents = {
|
|
8212
|
-
__proto__: null,
|
|
8213
|
-
handleClick: handleClick$5,
|
|
8214
|
-
handleFocus: handleFocus$5,
|
|
8215
|
-
handleInput: handleInput$5,
|
|
8216
|
-
handleInputBlur
|
|
8217
|
-
};
|
|
8218
|
-
|
|
8219
|
-
const create$g = () => {
|
|
8220
|
-
const $Viewlet = document.createElement('div');
|
|
8221
|
-
$Viewlet.className = 'Viewlet FindWidget';
|
|
8222
|
-
$Viewlet.role = Group;
|
|
8223
|
-
return {
|
|
8224
|
-
$Viewlet
|
|
8225
|
-
};
|
|
8226
|
-
};
|
|
8227
|
-
const focus$c = state => {
|
|
8228
|
-
const {
|
|
8229
|
-
$Viewlet
|
|
8230
|
-
} = state;
|
|
8231
|
-
const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
|
|
8232
|
-
if (!$InputBox) {
|
|
8233
|
-
return;
|
|
8234
|
-
}
|
|
8235
|
-
$InputBox.focus();
|
|
8236
|
-
};
|
|
8237
|
-
const setValue$3 = (state, value) => {
|
|
8238
|
-
const {
|
|
8239
|
-
$Viewlet
|
|
8240
|
-
} = state;
|
|
8241
|
-
const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
|
|
8242
|
-
if (!$InputBox) {
|
|
8243
|
-
return;
|
|
8244
|
-
}
|
|
8245
|
-
$InputBox.value = value;
|
|
8246
|
-
};
|
|
8247
|
-
const setDom$3 = (state, dom) => {
|
|
8248
|
-
const {
|
|
8249
|
-
$Viewlet
|
|
8250
|
-
} = state;
|
|
8251
|
-
rememberFocus($Viewlet, dom, ViewletFindWidgetEvents, 0);
|
|
8252
|
-
};
|
|
8253
|
-
|
|
8254
|
-
const ViewletFindWidget = {
|
|
8255
|
-
__proto__: null,
|
|
8256
|
-
create: create$g,
|
|
8257
|
-
focus: focus$c,
|
|
8258
|
-
setDom: setDom$3,
|
|
8259
|
-
setValue: setValue$3
|
|
8260
|
-
};
|
|
8261
|
-
|
|
8262
8289
|
const handleLocationsMouseDown = event => {
|
|
8263
8290
|
if (event.button !== LeftClick) {
|
|
8264
8291
|
return;
|
|
@@ -8277,7 +8304,7 @@ const ViewletLocationsEvents = {
|
|
|
8277
8304
|
handleLocationsMouseDown
|
|
8278
8305
|
};
|
|
8279
8306
|
|
|
8280
|
-
const Events$
|
|
8307
|
+
const Events$7 = ViewletLocationsEvents;
|
|
8281
8308
|
const setFocusedIndex$3 = (state, oldFocusedIndex, newFocusedIndex) => {
|
|
8282
8309
|
const {
|
|
8283
8310
|
$Viewlet
|
|
@@ -8312,7 +8339,7 @@ const focus$b = state => {
|
|
|
8312
8339
|
|
|
8313
8340
|
const ViewletImplementations = {
|
|
8314
8341
|
__proto__: null,
|
|
8315
|
-
Events: Events$
|
|
8342
|
+
Events: Events$7,
|
|
8316
8343
|
focus: focus$b,
|
|
8317
8344
|
handleError: handleError$1,
|
|
8318
8345
|
setFocusedIndex: setFocusedIndex$3
|
|
@@ -8358,7 +8385,7 @@ const handleResizerPointerUp = event => {
|
|
|
8358
8385
|
target,
|
|
8359
8386
|
pointerId
|
|
8360
8387
|
} = event;
|
|
8361
|
-
stopTracking
|
|
8388
|
+
stopTracking(target, pointerId, handleResizerPointerMove, handleResizerPointerUp);
|
|
8362
8389
|
};
|
|
8363
8390
|
const handleResizerPointerDown = event => {
|
|
8364
8391
|
const {
|
|
@@ -8366,7 +8393,7 @@ const handleResizerPointerDown = event => {
|
|
|
8366
8393
|
pointerId,
|
|
8367
8394
|
clientX
|
|
8368
8395
|
} = event;
|
|
8369
|
-
startTracking
|
|
8396
|
+
startTracking(target, pointerId, handleResizerPointerMove, handleResizerPointerUp);
|
|
8370
8397
|
const id = target.nextSibling ? 1 : 2;
|
|
8371
8398
|
const uid = fromEvent(event);
|
|
8372
8399
|
handleResizerClick(uid, id, clientX);
|
|
@@ -8423,11 +8450,11 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
|
|
|
8423
8450
|
$Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
|
|
8424
8451
|
$Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
|
|
8425
8452
|
};
|
|
8426
|
-
const Events$
|
|
8453
|
+
const Events$6 = ViewletkeyBindingsEvents;
|
|
8427
8454
|
|
|
8428
8455
|
const ViewletKeyBindings = {
|
|
8429
8456
|
__proto__: null,
|
|
8430
|
-
Events: Events$
|
|
8457
|
+
Events: Events$6,
|
|
8431
8458
|
setColumnWidths,
|
|
8432
8459
|
setScrollBar: setScrollBar$2,
|
|
8433
8460
|
setSize,
|
|
@@ -8888,7 +8915,7 @@ const handlePointerCaptureLost = event => {
|
|
|
8888
8915
|
target,
|
|
8889
8916
|
pointerId
|
|
8890
8917
|
} = event;
|
|
8891
|
-
stopTracking
|
|
8918
|
+
stopTracking(target, pointerId, handleSashPointerMove, handlePointerCaptureLost);
|
|
8892
8919
|
const id = getSashId(target);
|
|
8893
8920
|
handleSashPointerUp(id);
|
|
8894
8921
|
};
|
|
@@ -8897,7 +8924,7 @@ const handleSashPointerDown = event => {
|
|
|
8897
8924
|
target,
|
|
8898
8925
|
pointerId
|
|
8899
8926
|
} = event;
|
|
8900
|
-
startTracking
|
|
8927
|
+
startTracking(target, pointerId, handleSashPointerMove, handlePointerCaptureLost);
|
|
8901
8928
|
const id = getSashId(target);
|
|
8902
8929
|
handleSashPointerDown$1(id);
|
|
8903
8930
|
};
|
|
@@ -8924,7 +8951,7 @@ const handleBlur$3 = () => {
|
|
|
8924
8951
|
const handleKeyDown$1 = handleKeyDown$2;
|
|
8925
8952
|
const handleKeyUp = handleKeyUp$1;
|
|
8926
8953
|
|
|
8927
|
-
const create$
|
|
8954
|
+
const create$e = () => {
|
|
8928
8955
|
// TODO use aria role splitter once supported https://github.com/w3c/aria/issues/1348
|
|
8929
8956
|
const $SashSideBar = document.createElement('div');
|
|
8930
8957
|
$SashSideBar.className = 'Viewlet Sash SashVertical';
|
|
@@ -8945,20 +8972,20 @@ const create$f = () => {
|
|
|
8945
8972
|
$SashPanel
|
|
8946
8973
|
};
|
|
8947
8974
|
};
|
|
8948
|
-
const attachEvents$
|
|
8975
|
+
const attachEvents$6 = state => {
|
|
8949
8976
|
const {
|
|
8950
8977
|
$SashSideBar,
|
|
8951
8978
|
$SashPanel
|
|
8952
8979
|
} = state;
|
|
8953
|
-
attachEvents$
|
|
8980
|
+
attachEvents$c($SashSideBar, {
|
|
8954
8981
|
[PointerDown]: handleSashPointerDown,
|
|
8955
8982
|
[DoubleClick]: handleSashDoubleClick
|
|
8956
8983
|
});
|
|
8957
|
-
attachEvents$
|
|
8984
|
+
attachEvents$c($SashPanel, {
|
|
8958
8985
|
[PointerDown]: handleSashPointerDown,
|
|
8959
8986
|
[DoubleClick]: handleSashDoubleClick
|
|
8960
8987
|
});
|
|
8961
|
-
attachEvents$
|
|
8988
|
+
attachEvents$c(window, {
|
|
8962
8989
|
[Resize]: handleResize,
|
|
8963
8990
|
[Focus]: handleFocus$3,
|
|
8964
8991
|
[Blur]: handleBlur$3,
|
|
@@ -8979,8 +9006,8 @@ const setSashes = (state, sashSideBar, sashPanel) => {
|
|
|
8979
9006
|
|
|
8980
9007
|
const ViewletLayout = {
|
|
8981
9008
|
__proto__: null,
|
|
8982
|
-
attachEvents: attachEvents$
|
|
8983
|
-
create: create$
|
|
9009
|
+
attachEvents: attachEvents$6,
|
|
9010
|
+
create: create$e,
|
|
8984
9011
|
setSashes
|
|
8985
9012
|
};
|
|
8986
9013
|
|
|
@@ -8998,7 +9025,7 @@ const handleContextMenu$7 = event => {
|
|
|
8998
9025
|
};
|
|
8999
9026
|
|
|
9000
9027
|
// TODO Main should not be bound to Editor -> Lazy load Editor
|
|
9001
|
-
const create$
|
|
9028
|
+
const create$d = () => {
|
|
9002
9029
|
const $Viewlet = document.createElement('div');
|
|
9003
9030
|
$Viewlet.id = 'Main';
|
|
9004
9031
|
$Viewlet.className = 'Viewlet Main';
|
|
@@ -9019,11 +9046,11 @@ const create$e = () => {
|
|
|
9019
9046
|
$DragOverlay: undefined
|
|
9020
9047
|
};
|
|
9021
9048
|
};
|
|
9022
|
-
const attachEvents$
|
|
9049
|
+
const attachEvents$5 = state => {
|
|
9023
9050
|
const {
|
|
9024
9051
|
$Viewlet
|
|
9025
9052
|
} = state;
|
|
9026
|
-
attachEvents$
|
|
9053
|
+
attachEvents$c($Viewlet, {
|
|
9027
9054
|
[Drop]: handleDrop,
|
|
9028
9055
|
[DragOver]: handleDragOver,
|
|
9029
9056
|
[DragEnd]: handleDragEnd,
|
|
@@ -9095,10 +9122,10 @@ const setDragOverlay = (state, visible, x, y, width, height) => {
|
|
|
9095
9122
|
const ViewletMain = {
|
|
9096
9123
|
__proto__: null,
|
|
9097
9124
|
addEditor,
|
|
9098
|
-
attachEvents: attachEvents$
|
|
9125
|
+
attachEvents: attachEvents$5,
|
|
9099
9126
|
closeAllViewlets,
|
|
9100
9127
|
closeViewletAndTab,
|
|
9101
|
-
create: create$
|
|
9128
|
+
create: create$d,
|
|
9102
9129
|
dispose: dispose$7,
|
|
9103
9130
|
focus: focus$a,
|
|
9104
9131
|
highlightDragOver,
|
|
@@ -9147,7 +9174,7 @@ const handleTabsContextMenu = event => {
|
|
|
9147
9174
|
handleTabContextMenu(uid, clientX, clientY);
|
|
9148
9175
|
};
|
|
9149
9176
|
|
|
9150
|
-
const create$
|
|
9177
|
+
const create$c = () => {
|
|
9151
9178
|
const $MainTabs = document.createElement('div');
|
|
9152
9179
|
$MainTabs.className = 'Viewlet MainTabs';
|
|
9153
9180
|
$MainTabs.role = TabList;
|
|
@@ -9157,11 +9184,11 @@ const create$d = () => {
|
|
|
9157
9184
|
$MainTabs
|
|
9158
9185
|
};
|
|
9159
9186
|
};
|
|
9160
|
-
const attachEvents$
|
|
9187
|
+
const attachEvents$4 = state => {
|
|
9161
9188
|
const {
|
|
9162
9189
|
$MainTabs
|
|
9163
9190
|
} = state;
|
|
9164
|
-
attachEvents$
|
|
9191
|
+
attachEvents$c($MainTabs, {
|
|
9165
9192
|
[MouseDown]: handleTabsMouseDown,
|
|
9166
9193
|
[ContextMenu]: handleTabsContextMenu,
|
|
9167
9194
|
[DragStart]: handleDragStart
|
|
@@ -9183,13 +9210,13 @@ const setScrollLeft = (state, scrollLeft) => {
|
|
|
9183
9210
|
|
|
9184
9211
|
const ViewletMainTabs = {
|
|
9185
9212
|
__proto__: null,
|
|
9186
|
-
attachEvents: attachEvents$
|
|
9187
|
-
create: create$
|
|
9213
|
+
attachEvents: attachEvents$4,
|
|
9214
|
+
create: create$c,
|
|
9188
9215
|
setScrollLeft,
|
|
9189
9216
|
setTabsDom: setTabsDom$2
|
|
9190
9217
|
};
|
|
9191
9218
|
|
|
9192
|
-
const create$
|
|
9219
|
+
const create$b = () => {
|
|
9193
9220
|
const $ViewletOutputContent = document.createElement('div');
|
|
9194
9221
|
$ViewletOutputContent.className = 'OutputContent';
|
|
9195
9222
|
$ViewletOutputContent.role = Log;
|
|
@@ -9223,7 +9250,7 @@ const handleError = (state, error) => {
|
|
|
9223
9250
|
};
|
|
9224
9251
|
const focus$9 = state => {
|
|
9225
9252
|
object(state);
|
|
9226
|
-
focus$
|
|
9253
|
+
focus$h(state.$ViewletOutputContent);
|
|
9227
9254
|
send('Focus.setFocus', FocusOutput);
|
|
9228
9255
|
};
|
|
9229
9256
|
|
|
@@ -9241,7 +9268,7 @@ const dispose$6 = state => {};
|
|
|
9241
9268
|
const ViewletOutput = {
|
|
9242
9269
|
__proto__: null,
|
|
9243
9270
|
clear,
|
|
9244
|
-
create: create$
|
|
9271
|
+
create: create$b,
|
|
9245
9272
|
dispose: dispose$6,
|
|
9246
9273
|
disposeFindWidget,
|
|
9247
9274
|
focus: focus$9,
|
|
@@ -9294,7 +9321,7 @@ const UiStrings = {
|
|
|
9294
9321
|
Close: 'Close',
|
|
9295
9322
|
Maximize: 'Maximize'
|
|
9296
9323
|
};
|
|
9297
|
-
const create$
|
|
9324
|
+
const create$a = () => {
|
|
9298
9325
|
const $PanelTabs = document.createElement('div');
|
|
9299
9326
|
$PanelTabs.className = 'PanelTabs';
|
|
9300
9327
|
$PanelTabs.role = TabList;
|
|
@@ -9332,19 +9359,19 @@ const create$b = () => {
|
|
|
9332
9359
|
};
|
|
9333
9360
|
// await openViewlet('Terminal')
|
|
9334
9361
|
};
|
|
9335
|
-
const attachEvents$
|
|
9362
|
+
const attachEvents$3 = state => {
|
|
9336
9363
|
const {
|
|
9337
9364
|
$ButtonMaximize,
|
|
9338
9365
|
$ButtonClose,
|
|
9339
9366
|
$PanelHeader
|
|
9340
9367
|
} = state;
|
|
9341
|
-
attachEvents$
|
|
9368
|
+
attachEvents$c($PanelHeader, {
|
|
9342
9369
|
[Click]: handleHeaderClick$2
|
|
9343
9370
|
});
|
|
9344
|
-
attachEvents$
|
|
9371
|
+
attachEvents$c($ButtonMaximize, {
|
|
9345
9372
|
[Click]: handleClickMaximize
|
|
9346
9373
|
});
|
|
9347
|
-
attachEvents$
|
|
9374
|
+
attachEvents$c($ButtonClose, {
|
|
9348
9375
|
[Click]: handleClickClose$1
|
|
9349
9376
|
});
|
|
9350
9377
|
};
|
|
@@ -9406,8 +9433,8 @@ const setActionsDom$1 = (state, actions, childUid) => {
|
|
|
9406
9433
|
|
|
9407
9434
|
const ViewletPanel = {
|
|
9408
9435
|
__proto__: null,
|
|
9409
|
-
attachEvents: attachEvents$
|
|
9410
|
-
create: create$
|
|
9436
|
+
attachEvents: attachEvents$3,
|
|
9437
|
+
create: create$a,
|
|
9411
9438
|
dispose: dispose$5,
|
|
9412
9439
|
focus: focus$8,
|
|
9413
9440
|
setActionsDom: setActionsDom$1,
|
|
@@ -9622,8 +9649,8 @@ const focus$6 = state => {
|
|
|
9622
9649
|
// - for windows narrator, ariaLabel works well
|
|
9623
9650
|
// - for nvda ariaRoleDescription works better
|
|
9624
9651
|
|
|
9625
|
-
const create$
|
|
9626
|
-
const $QuickPickInput = create$
|
|
9652
|
+
const create$9 = () => {
|
|
9653
|
+
const $QuickPickInput = create$A();
|
|
9627
9654
|
$QuickPickInput.setAttribute(AriaControls, Ids.QuickPickItems); // TODO use idl once supported
|
|
9628
9655
|
$QuickPickInput.role = ComboBox;
|
|
9629
9656
|
$QuickPickInput.ariaLabel = 'Type the name of a command to run.';
|
|
@@ -9655,16 +9682,16 @@ const create$a = () => {
|
|
|
9655
9682
|
$QuickPickStatus: undefined
|
|
9656
9683
|
};
|
|
9657
9684
|
};
|
|
9658
|
-
const attachEvents$
|
|
9685
|
+
const attachEvents$2 = state => {
|
|
9659
9686
|
const {
|
|
9660
9687
|
$QuickPickItems,
|
|
9661
9688
|
$QuickPickInput
|
|
9662
9689
|
} = state;
|
|
9663
|
-
attachEvents$
|
|
9690
|
+
attachEvents$c($QuickPickItems, {
|
|
9664
9691
|
[PointerDown]: handlePointerDown
|
|
9665
9692
|
});
|
|
9666
9693
|
$QuickPickItems.addEventListener(Wheel, handleWheel$3, Passive);
|
|
9667
|
-
attachEvents$
|
|
9694
|
+
attachEvents$c($QuickPickInput, {
|
|
9668
9695
|
[Blur]: handleBlur$2,
|
|
9669
9696
|
[BeforeInput]: handleBeforeInput
|
|
9670
9697
|
});
|
|
@@ -9732,8 +9759,8 @@ const noop = state => {};
|
|
|
9732
9759
|
|
|
9733
9760
|
const ViewletQuickPick = {
|
|
9734
9761
|
__proto__: null,
|
|
9735
|
-
attachEvents: attachEvents$
|
|
9736
|
-
create: create$
|
|
9762
|
+
attachEvents: attachEvents$2,
|
|
9763
|
+
create: create$9,
|
|
9737
9764
|
dispose: dispose$4,
|
|
9738
9765
|
focus: focus$6,
|
|
9739
9766
|
hideStatus,
|
|
@@ -9748,7 +9775,7 @@ const ViewletQuickPick = {
|
|
|
9748
9775
|
|
|
9749
9776
|
const ViewletReferences = {
|
|
9750
9777
|
__proto__: null,
|
|
9751
|
-
Events: Events$
|
|
9778
|
+
Events: Events$7,
|
|
9752
9779
|
focus: focus$b,
|
|
9753
9780
|
handleError: handleError$1,
|
|
9754
9781
|
setFocusedIndex: setFocusedIndex$3
|
|
@@ -9904,7 +9931,7 @@ const handleLoadedMetaData = event => {
|
|
|
9904
9931
|
target.play();
|
|
9905
9932
|
};
|
|
9906
9933
|
|
|
9907
|
-
const create$
|
|
9934
|
+
const create$8 = () => {
|
|
9908
9935
|
const $Viewlet = document.createElement('div');
|
|
9909
9936
|
$Viewlet.className = 'Viewlet ScreenCapture';
|
|
9910
9937
|
return {
|
|
@@ -9924,7 +9951,7 @@ const setScreenCapture = (state, id) => {
|
|
|
9924
9951
|
|
|
9925
9952
|
const ViewletScreenCapture = {
|
|
9926
9953
|
__proto__: null,
|
|
9927
|
-
create: create$
|
|
9954
|
+
create: create$8,
|
|
9928
9955
|
setScreenCapture
|
|
9929
9956
|
};
|
|
9930
9957
|
|
|
@@ -9966,7 +9993,7 @@ const handleScrollBarPointerUp = event => {
|
|
|
9966
9993
|
target,
|
|
9967
9994
|
pointerId
|
|
9968
9995
|
} = event;
|
|
9969
|
-
stopTracking
|
|
9996
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
9970
9997
|
};
|
|
9971
9998
|
const handleScrollBarPointerDown$1 = event => {
|
|
9972
9999
|
const {
|
|
@@ -9974,7 +10001,7 @@ const handleScrollBarPointerDown$1 = event => {
|
|
|
9974
10001
|
pointerId,
|
|
9975
10002
|
clientY
|
|
9976
10003
|
} = event;
|
|
9977
|
-
startTracking
|
|
10004
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
9978
10005
|
return ['handleScrollBarClick', clientY];
|
|
9979
10006
|
};
|
|
9980
10007
|
const handleToggleButtonClick = event => {
|
|
@@ -10088,11 +10115,11 @@ const setFocus = (state, selector) => {
|
|
|
10088
10115
|
}
|
|
10089
10116
|
};
|
|
10090
10117
|
const dispose$3 = () => {};
|
|
10091
|
-
const Events$
|
|
10118
|
+
const Events$5 = ViewletSearchEvents;
|
|
10092
10119
|
|
|
10093
10120
|
const ViewletSearch = {
|
|
10094
10121
|
__proto__: null,
|
|
10095
|
-
Events: Events$
|
|
10122
|
+
Events: Events$5,
|
|
10096
10123
|
dispose: dispose$3,
|
|
10097
10124
|
focus: focus$5,
|
|
10098
10125
|
setFocus,
|
|
@@ -10114,7 +10141,7 @@ const handleHeaderClick = event => {
|
|
|
10114
10141
|
}
|
|
10115
10142
|
};
|
|
10116
10143
|
|
|
10117
|
-
const create$
|
|
10144
|
+
const create$7 = () => {
|
|
10118
10145
|
const $SideBarTitleAreaTitle = document.createElement('h2');
|
|
10119
10146
|
$SideBarTitleAreaTitle.className = 'SideBarTitleAreaTitle';
|
|
10120
10147
|
const $SideBarTitleArea = document.createElement('div');
|
|
@@ -10135,11 +10162,11 @@ const create$8 = () => {
|
|
|
10135
10162
|
$Actions: undefined
|
|
10136
10163
|
};
|
|
10137
10164
|
};
|
|
10138
|
-
const attachEvents$
|
|
10165
|
+
const attachEvents$1 = state => {
|
|
10139
10166
|
const {
|
|
10140
10167
|
$SideBarTitleArea
|
|
10141
10168
|
} = state;
|
|
10142
|
-
attachEvents$
|
|
10169
|
+
attachEvents$c($SideBarTitleArea, {
|
|
10143
10170
|
[Click]: handleHeaderClick
|
|
10144
10171
|
});
|
|
10145
10172
|
};
|
|
@@ -10177,8 +10204,8 @@ const focus$4 = async () => {
|
|
|
10177
10204
|
|
|
10178
10205
|
const ViewletSideBar = {
|
|
10179
10206
|
__proto__: null,
|
|
10180
|
-
attachEvents: attachEvents$
|
|
10181
|
-
create: create$
|
|
10207
|
+
attachEvents: attachEvents$1,
|
|
10208
|
+
create: create$7,
|
|
10182
10209
|
dispose: dispose$2,
|
|
10183
10210
|
focus: focus$4,
|
|
10184
10211
|
setActionsDom,
|
|
@@ -10379,7 +10406,7 @@ const ViewletStatusBarEvents = {
|
|
|
10379
10406
|
handleClick: handleClick$2
|
|
10380
10407
|
};
|
|
10381
10408
|
|
|
10382
|
-
const create$
|
|
10409
|
+
const create$6 = () => {
|
|
10383
10410
|
const $Viewlet = document.createElement('div');
|
|
10384
10411
|
$Viewlet.id = 'StatusBar';
|
|
10385
10412
|
$Viewlet.className = 'Viewlet StatusBar';
|
|
@@ -10392,7 +10419,7 @@ const create$7 = () => {
|
|
|
10392
10419
|
$Viewlet
|
|
10393
10420
|
};
|
|
10394
10421
|
};
|
|
10395
|
-
const setDom$
|
|
10422
|
+
const setDom$1 = (state, dom) => {
|
|
10396
10423
|
const {
|
|
10397
10424
|
$Viewlet
|
|
10398
10425
|
} = state;
|
|
@@ -10408,9 +10435,9 @@ const focus$2 = state => {
|
|
|
10408
10435
|
|
|
10409
10436
|
const ViewletStatusBar = {
|
|
10410
10437
|
__proto__: null,
|
|
10411
|
-
create: create$
|
|
10438
|
+
create: create$6,
|
|
10412
10439
|
focus: focus$2,
|
|
10413
|
-
setDom: setDom$
|
|
10440
|
+
setDom: setDom$1
|
|
10414
10441
|
};
|
|
10415
10442
|
|
|
10416
10443
|
const handleClick$1 = event => {
|
|
@@ -10418,31 +10445,16 @@ const handleClick$1 = event => {
|
|
|
10418
10445
|
handleClick$9(uid);
|
|
10419
10446
|
};
|
|
10420
10447
|
|
|
10421
|
-
const
|
|
10422
|
-
|
|
10423
|
-
$
|
|
10424
|
-
return {
|
|
10425
|
-
$Viewlet
|
|
10426
|
-
};
|
|
10427
|
-
};
|
|
10428
|
-
const attachEvents$1 = state => {
|
|
10429
|
-
const {
|
|
10430
|
-
$Viewlet
|
|
10431
|
-
} = state;
|
|
10432
|
-
$Viewlet.onclick = handleClick$1;
|
|
10433
|
-
};
|
|
10434
|
-
const setDom$1 = (state, dom) => {
|
|
10435
|
-
const {
|
|
10436
|
-
$Viewlet
|
|
10437
|
-
} = state;
|
|
10438
|
-
renderInto($Viewlet, dom);
|
|
10448
|
+
const ViewletStorageEvents = {
|
|
10449
|
+
__proto__: null,
|
|
10450
|
+
handleClick: handleClick$1
|
|
10439
10451
|
};
|
|
10440
10452
|
|
|
10453
|
+
const Events$4 = ViewletStorageEvents;
|
|
10454
|
+
|
|
10441
10455
|
const ViewletStorage = {
|
|
10442
10456
|
__proto__: null,
|
|
10443
|
-
|
|
10444
|
-
create: create$6,
|
|
10445
|
-
setDom: setDom$1
|
|
10457
|
+
Events: Events$4
|
|
10446
10458
|
};
|
|
10447
10459
|
|
|
10448
10460
|
const isUint8Array = value => {
|
|
@@ -10712,7 +10724,7 @@ const attachEvents = state => {
|
|
|
10712
10724
|
const {
|
|
10713
10725
|
$Viewlet
|
|
10714
10726
|
} = state;
|
|
10715
|
-
attachEvents$
|
|
10727
|
+
attachEvents$c($Viewlet, {
|
|
10716
10728
|
[ContextMenu]: handleContextMenu$4
|
|
10717
10729
|
});
|
|
10718
10730
|
};
|
|
@@ -11366,7 +11378,7 @@ const handleContextMenu$1 = event => {
|
|
|
11366
11378
|
} = event;
|
|
11367
11379
|
return ['handleContextMenu', button, clientX, clientY];
|
|
11368
11380
|
};
|
|
11369
|
-
const handleSashCornerPointerDown = create$
|
|
11381
|
+
const handleSashCornerPointerDown = create$K(event => {
|
|
11370
11382
|
const {
|
|
11371
11383
|
clientX,
|
|
11372
11384
|
clientY
|