@lvce-editor/renderer-process 10.4.0 → 10.5.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 +298 -279
- package/package.json +1 -1
|
@@ -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$L = (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$L(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$1 = 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$1,
|
|
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$d = ($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$K = () => {
|
|
2161
2277
|
const $ListItems = document.createElement('div');
|
|
2162
2278
|
$ListItems.className = 'ListItems';
|
|
2163
2279
|
$ListItems.role = ListBox;
|
|
@@ -2240,7 +2356,7 @@ const setBounds$6 = (state, x, y, width, height) => {
|
|
|
2240
2356
|
const ViewletEditorCompletion = {
|
|
2241
2357
|
__proto__: null,
|
|
2242
2358
|
attachEvents: attachEvents$c,
|
|
2243
|
-
create: create$
|
|
2359
|
+
create: create$K,
|
|
2244
2360
|
dispose: dispose$k,
|
|
2245
2361
|
handleError: handleError$8,
|
|
2246
2362
|
setBounds: setBounds$6,
|
|
@@ -2255,15 +2371,15 @@ const ViewletEditorCompletion = {
|
|
|
2255
2371
|
const handleClose = () => {
|
|
2256
2372
|
return ['closeDetails'];
|
|
2257
2373
|
};
|
|
2258
|
-
const returnValue$
|
|
2374
|
+
const returnValue$9 = true;
|
|
2259
2375
|
|
|
2260
2376
|
const ViewletEditorCompletionDetailsEvents = {
|
|
2261
2377
|
__proto__: null,
|
|
2262
2378
|
handleClose,
|
|
2263
|
-
returnValue: returnValue$
|
|
2379
|
+
returnValue: returnValue$9
|
|
2264
2380
|
};
|
|
2265
2381
|
|
|
2266
|
-
const create$
|
|
2382
|
+
const create$J = () => {
|
|
2267
2383
|
const $Viewlet = document.createElement('div');
|
|
2268
2384
|
$Viewlet.className = 'Viewlet EditorCompletionDetails';
|
|
2269
2385
|
$Viewlet.id = 'CompletionsDetails';
|
|
@@ -2304,7 +2420,7 @@ const ViewletEditorCompletionDetails = {
|
|
|
2304
2420
|
Events: ViewletEditorCompletionDetailsEvents,
|
|
2305
2421
|
appendWidget,
|
|
2306
2422
|
attachEvents: attachEvents$b,
|
|
2307
|
-
create: create$
|
|
2423
|
+
create: create$J,
|
|
2308
2424
|
dispose: dispose$j,
|
|
2309
2425
|
setBounds: setBounds$5,
|
|
2310
2426
|
setDom: setDom$a
|
|
@@ -2711,6 +2827,7 @@ const main = async () => {
|
|
|
2711
2827
|
enable(window);
|
|
2712
2828
|
state$6.modules[EditorCompletion] = ViewletEditorCompletion;
|
|
2713
2829
|
state$6.modules[EditorCompletionDetails] = ViewletEditorCompletionDetails;
|
|
2830
|
+
state$6.modules[ColorPicker] = ViewletColorPicker;
|
|
2714
2831
|
setLoad(load$2);
|
|
2715
2832
|
// TODO this is discovered very late
|
|
2716
2833
|
await launchWorkers();
|
|
@@ -2804,7 +2921,7 @@ ${relevant}`;
|
|
|
2804
2921
|
|
|
2805
2922
|
const Module = 'module';
|
|
2806
2923
|
|
|
2807
|
-
const create$
|
|
2924
|
+
const create$I = async ({
|
|
2808
2925
|
url,
|
|
2809
2926
|
name
|
|
2810
2927
|
}) => {
|
|
@@ -2870,7 +2987,7 @@ const wrap = worker => {
|
|
|
2870
2987
|
|
|
2871
2988
|
const IpcParentWithModuleWorker = {
|
|
2872
2989
|
__proto__: null,
|
|
2873
|
-
create: create$
|
|
2990
|
+
create: create$I,
|
|
2874
2991
|
wrap
|
|
2875
2992
|
};
|
|
2876
2993
|
|
|
@@ -2878,7 +2995,7 @@ const isMessagePort$1 = value => {
|
|
|
2878
2995
|
return value instanceof MessagePort;
|
|
2879
2996
|
};
|
|
2880
2997
|
|
|
2881
|
-
const create$
|
|
2998
|
+
const create$H = async ({
|
|
2882
2999
|
url
|
|
2883
3000
|
}) => {
|
|
2884
3001
|
string(url);
|
|
@@ -2899,10 +3016,10 @@ const create$I = async ({
|
|
|
2899
3016
|
|
|
2900
3017
|
const IpcParentWithMessagePort = {
|
|
2901
3018
|
__proto__: null,
|
|
2902
|
-
create: create$
|
|
3019
|
+
create: create$H
|
|
2903
3020
|
};
|
|
2904
3021
|
|
|
2905
|
-
const create$
|
|
3022
|
+
const create$G = async url => {
|
|
2906
3023
|
const referencePort = await new Promise(resolve => {
|
|
2907
3024
|
globalThis.acceptReferencePort = resolve;
|
|
2908
3025
|
import(url);
|
|
@@ -2913,7 +3030,7 @@ const create$H = async url => {
|
|
|
2913
3030
|
|
|
2914
3031
|
const IpcParentWithReferencePort = {
|
|
2915
3032
|
__proto__: null,
|
|
2916
|
-
create: create$
|
|
3033
|
+
create: create$G
|
|
2917
3034
|
};
|
|
2918
3035
|
|
|
2919
3036
|
const isWorker = value => {
|
|
@@ -2921,12 +3038,12 @@ const isWorker = value => {
|
|
|
2921
3038
|
};
|
|
2922
3039
|
|
|
2923
3040
|
// TODO add test
|
|
2924
|
-
const create$
|
|
3041
|
+
const create$F = async ({
|
|
2925
3042
|
url,
|
|
2926
3043
|
name,
|
|
2927
3044
|
port
|
|
2928
3045
|
}) => {
|
|
2929
|
-
const worker = await create$
|
|
3046
|
+
const worker = await create$I({
|
|
2930
3047
|
url,
|
|
2931
3048
|
name
|
|
2932
3049
|
});
|
|
@@ -2945,7 +3062,7 @@ const create$G = async ({
|
|
|
2945
3062
|
|
|
2946
3063
|
const IpcParentWithModuleWorkerWithMessagePort = {
|
|
2947
3064
|
__proto__: null,
|
|
2948
|
-
create: create$
|
|
3065
|
+
create: create$F
|
|
2949
3066
|
};
|
|
2950
3067
|
|
|
2951
3068
|
const handleIpcOnce = ipc => {
|
|
@@ -3476,7 +3593,7 @@ const IpcChildWithMessagePort$1 = {
|
|
|
3476
3593
|
};
|
|
3477
3594
|
|
|
3478
3595
|
// TODO use handleIncomingIpc function
|
|
3479
|
-
const create$
|
|
3596
|
+
const create$E = async ({
|
|
3480
3597
|
port,
|
|
3481
3598
|
ipcId
|
|
3482
3599
|
}) => {
|
|
@@ -3492,7 +3609,7 @@ const create$F = async ({
|
|
|
3492
3609
|
|
|
3493
3610
|
const IpcParentWithElectron = {
|
|
3494
3611
|
__proto__: null,
|
|
3495
|
-
create: create$
|
|
3612
|
+
create: create$E
|
|
3496
3613
|
};
|
|
3497
3614
|
|
|
3498
3615
|
const play = async src => {
|
|
@@ -3723,7 +3840,7 @@ const AriaAlert = {
|
|
|
3723
3840
|
// but that's difficult to know
|
|
3724
3841
|
|
|
3725
3842
|
// TODO hide widget after timeout or mousemove
|
|
3726
|
-
const create$
|
|
3843
|
+
const create$D = (message, x, y) => {
|
|
3727
3844
|
const $EditorError = document.createElement('div');
|
|
3728
3845
|
$EditorError.className = 'EditorWidgetError';
|
|
3729
3846
|
$EditorError.textContent = message;
|
|
@@ -3738,7 +3855,7 @@ const create$E = (message, x, y) => {
|
|
|
3738
3855
|
|
|
3739
3856
|
const name$t = 'EditorError';
|
|
3740
3857
|
const Commands$u = {
|
|
3741
|
-
create: create$
|
|
3858
|
+
create: create$D
|
|
3742
3859
|
};
|
|
3743
3860
|
|
|
3744
3861
|
const EditorError_ipc = {
|
|
@@ -3778,7 +3895,7 @@ const focusPrevious = () => {
|
|
|
3778
3895
|
}
|
|
3779
3896
|
};
|
|
3780
3897
|
|
|
3781
|
-
const create$
|
|
3898
|
+
const create$C = () => {
|
|
3782
3899
|
const $InputBox = document.createElement('input');
|
|
3783
3900
|
$InputBox.className = 'InputBox';
|
|
3784
3901
|
$InputBox.spellcheck = false;
|
|
@@ -3802,8 +3919,8 @@ const FocusOutput = 28;
|
|
|
3802
3919
|
const handleBlur$9 = () => {
|
|
3803
3920
|
send(/* EditorRename.abort */'EditorRename.abort');
|
|
3804
3921
|
};
|
|
3805
|
-
const create$
|
|
3806
|
-
const $RenameWidgetInputBox = create$
|
|
3922
|
+
const create$B = (x, y) => {
|
|
3923
|
+
const $RenameWidgetInputBox = create$C();
|
|
3807
3924
|
$RenameWidgetInputBox.className = 'RenameWidgetInputBox';
|
|
3808
3925
|
$RenameWidgetInputBox.onblur = handleBlur$9;
|
|
3809
3926
|
const $RenameWidget = document.createElement('div');
|
|
@@ -3834,7 +3951,7 @@ const finish = state => {
|
|
|
3834
3951
|
|
|
3835
3952
|
const name$s = 'EditorRename';
|
|
3836
3953
|
const Commands$t = {
|
|
3837
|
-
create: create$
|
|
3954
|
+
create: create$B,
|
|
3838
3955
|
dispose: dispose$i,
|
|
3839
3956
|
finish: finish
|
|
3840
3957
|
};
|
|
@@ -3920,7 +4037,7 @@ const showError = (message, y, x) => {
|
|
|
3920
4037
|
$ImagePreviewImage
|
|
3921
4038
|
};
|
|
3922
4039
|
};
|
|
3923
|
-
const create$
|
|
4040
|
+
const create$A = (uri, top, left) => {
|
|
3924
4041
|
const $ImagePreviewImage = document.createElement('img');
|
|
3925
4042
|
$ImagePreviewImage.className = 'ImagePreviewImage';
|
|
3926
4043
|
$ImagePreviewImage.src = uri;
|
|
@@ -3951,7 +4068,7 @@ const dispose$h = state => {
|
|
|
3951
4068
|
|
|
3952
4069
|
const ImagePreview = {
|
|
3953
4070
|
__proto__: null,
|
|
3954
|
-
create: create$
|
|
4071
|
+
create: create$A,
|
|
3955
4072
|
dispose: dispose$h,
|
|
3956
4073
|
showError,
|
|
3957
4074
|
update
|
|
@@ -3959,7 +4076,7 @@ const ImagePreview = {
|
|
|
3959
4076
|
|
|
3960
4077
|
const name$p = 'ImagePreview';
|
|
3961
4078
|
const Commands$q = {
|
|
3962
|
-
create: create$
|
|
4079
|
+
create: create$A,
|
|
3963
4080
|
dispose: dispose$h,
|
|
3964
4081
|
showError: showError,
|
|
3965
4082
|
update: update
|
|
@@ -4157,7 +4274,7 @@ const create$Notification = message => {
|
|
|
4157
4274
|
$Notification.textContent = message;
|
|
4158
4275
|
return $Notification;
|
|
4159
4276
|
};
|
|
4160
|
-
const create$
|
|
4277
|
+
const create$z = (type, message) => {
|
|
4161
4278
|
// TODO this pattern might be also useful for activitybar, sidebar etc., creating elements as late as possible, only when actually needed
|
|
4162
4279
|
const $Notification = create$Notification(message);
|
|
4163
4280
|
append$1($Notification);
|
|
@@ -4210,7 +4327,7 @@ const name$h = 'Notification';
|
|
|
4210
4327
|
|
|
4211
4328
|
// prettier-ignore
|
|
4212
4329
|
const Commands$i = {
|
|
4213
|
-
create: create$
|
|
4330
|
+
create: create$z,
|
|
4214
4331
|
createWithOptions: createWithOptions,
|
|
4215
4332
|
dispose: dispose$g
|
|
4216
4333
|
};
|
|
@@ -4234,7 +4351,7 @@ const set$3 = (canvasId, canvas) => {
|
|
|
4234
4351
|
const get$3 = id => {
|
|
4235
4352
|
return get$4(id);
|
|
4236
4353
|
};
|
|
4237
|
-
const create$
|
|
4354
|
+
const create$y = async (canvasId, objectId) => {
|
|
4238
4355
|
const canvas = document.createElement('canvas');
|
|
4239
4356
|
const offscreenCanvas = canvas.transferControlToOffscreen();
|
|
4240
4357
|
set$3(canvasId, canvas);
|
|
@@ -4245,7 +4362,7 @@ const name$g = 'OffscreenCanvas';
|
|
|
4245
4362
|
|
|
4246
4363
|
// prettier-ignore
|
|
4247
4364
|
const Commands$h = {
|
|
4248
|
-
create: create$
|
|
4365
|
+
create: create$y
|
|
4249
4366
|
};
|
|
4250
4367
|
|
|
4251
4368
|
const OffscreenCanvas_ipc = {
|
|
@@ -5415,7 +5532,7 @@ const load$1 = moduleId => {
|
|
|
5415
5532
|
}
|
|
5416
5533
|
};
|
|
5417
5534
|
|
|
5418
|
-
const create$
|
|
5535
|
+
const create$x = (id, uid = id) => {
|
|
5419
5536
|
const module = state$6.modules[id];
|
|
5420
5537
|
if (!module) {
|
|
5421
5538
|
throw new Error(`module not found: ${id}`);
|
|
@@ -5582,7 +5699,7 @@ const sendMultiple = commands => {
|
|
|
5582
5699
|
}
|
|
5583
5700
|
case 'Viewlet.create':
|
|
5584
5701
|
{
|
|
5585
|
-
create$
|
|
5702
|
+
create$x(viewletId, method);
|
|
5586
5703
|
break;
|
|
5587
5704
|
}
|
|
5588
5705
|
case 'Viewlet.createFunctionalRoot':
|
|
@@ -5777,7 +5894,7 @@ const appendToBody = childId => {
|
|
|
5777
5894
|
const getFn = command => {
|
|
5778
5895
|
switch (command) {
|
|
5779
5896
|
case 'Viewlet.create':
|
|
5780
|
-
return create$
|
|
5897
|
+
return create$x;
|
|
5781
5898
|
case 'Viewlet.send':
|
|
5782
5899
|
return invoke;
|
|
5783
5900
|
case 'Viewlet.show':
|
|
@@ -6123,7 +6240,7 @@ const waitForFrameToLoad = $Frame => {
|
|
|
6123
6240
|
};
|
|
6124
6241
|
|
|
6125
6242
|
// TODO could use browser view when running in electron
|
|
6126
|
-
const create$
|
|
6243
|
+
const create$w = async (uid, src, sandbox, csp, credentialless) => {
|
|
6127
6244
|
const $Iframe = document.createElement('iframe');
|
|
6128
6245
|
setIframeCredentialless($Iframe, credentialless);
|
|
6129
6246
|
setIframeCsp($Iframe, csp);
|
|
@@ -6165,7 +6282,7 @@ const dispose$d = uid => {
|
|
|
6165
6282
|
|
|
6166
6283
|
const name = 'WebView';
|
|
6167
6284
|
const Commands$1 = {
|
|
6168
|
-
create: create$
|
|
6285
|
+
create: create$w,
|
|
6169
6286
|
load: load,
|
|
6170
6287
|
setPort: setPort$2,
|
|
6171
6288
|
dispose: dispose$d
|
|
@@ -6228,7 +6345,7 @@ const handleContextMenu$b = event => {
|
|
|
6228
6345
|
} = event;
|
|
6229
6346
|
return ['handleContextMenu', button, clientX, clientY];
|
|
6230
6347
|
};
|
|
6231
|
-
const returnValue$
|
|
6348
|
+
const returnValue$8 = true;
|
|
6232
6349
|
|
|
6233
6350
|
const ViewletActivityBarEvents = {
|
|
6234
6351
|
__proto__: null,
|
|
@@ -6236,7 +6353,7 @@ const ViewletActivityBarEvents = {
|
|
|
6236
6353
|
handleContextMenu: handleContextMenu$b,
|
|
6237
6354
|
handleFocus: handleFocus$b,
|
|
6238
6355
|
handleMouseDown: handleMouseDown$2,
|
|
6239
|
-
returnValue: returnValue$
|
|
6356
|
+
returnValue: returnValue$8
|
|
6240
6357
|
};
|
|
6241
6358
|
|
|
6242
6359
|
const Events$a = ViewletActivityBarEvents;
|
|
@@ -6273,7 +6390,7 @@ const ViewletAudio = {
|
|
|
6273
6390
|
Events: Events$9
|
|
6274
6391
|
};
|
|
6275
6392
|
|
|
6276
|
-
const create$
|
|
6393
|
+
const create$v = () => {
|
|
6277
6394
|
const $Viewlet = document.createElement('div');
|
|
6278
6395
|
$Viewlet.className = 'Viewlet BrowserViewOverview';
|
|
6279
6396
|
return {
|
|
@@ -6289,11 +6406,11 @@ const setDom$8 = (state, dom) => {
|
|
|
6289
6406
|
|
|
6290
6407
|
const ViewletBrowserViewOverview = {
|
|
6291
6408
|
__proto__: null,
|
|
6292
|
-
create: create$
|
|
6409
|
+
create: create$v,
|
|
6293
6410
|
setDom: setDom$8
|
|
6294
6411
|
};
|
|
6295
6412
|
|
|
6296
|
-
const create$
|
|
6413
|
+
const create$u = () => {
|
|
6297
6414
|
const $Viewlet = document.createElement('div');
|
|
6298
6415
|
$Viewlet.className = 'Viewlet Clock';
|
|
6299
6416
|
return {
|
|
@@ -6310,110 +6427,12 @@ const setTime = (state, time) => {
|
|
|
6310
6427
|
|
|
6311
6428
|
const ViewletClock = {
|
|
6312
6429
|
__proto__: null,
|
|
6313
|
-
create: create$
|
|
6430
|
+
create: create$u,
|
|
6314
6431
|
dispose: dispose$c,
|
|
6315
6432
|
refresh: refresh$3,
|
|
6316
6433
|
setTime
|
|
6317
6434
|
};
|
|
6318
6435
|
|
|
6319
|
-
const startTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
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
6436
|
const handleInput$7 = event => {
|
|
6418
6437
|
const uid = fromEvent(event);
|
|
6419
6438
|
const {
|
|
@@ -6690,7 +6709,7 @@ const ViewletEditorError = {
|
|
|
6690
6709
|
};
|
|
6691
6710
|
|
|
6692
6711
|
const returnValue$7 = true;
|
|
6693
|
-
const handleSashPointerDown$2 = create$
|
|
6712
|
+
const handleSashPointerDown$2 = create$L(event => {
|
|
6694
6713
|
const {
|
|
6695
6714
|
clientX,
|
|
6696
6715
|
clientY
|
|
@@ -6789,7 +6808,7 @@ const handlePointerDown$5 = event => {
|
|
|
6789
6808
|
target.addEventListener(PointerUp, handlePointerUp);
|
|
6790
6809
|
target.addEventListener(LostPointerCapture, handlePointerCaptureLost$1);
|
|
6791
6810
|
const uid = fromEvent(event);
|
|
6792
|
-
handlePointerDown$
|
|
6811
|
+
handlePointerDown$6(uid, pointerId, clientX, clientY);
|
|
6793
6812
|
};
|
|
6794
6813
|
|
|
6795
6814
|
/**
|
|
@@ -7154,7 +7173,7 @@ const handlePaste = event => {
|
|
|
7154
7173
|
const text = getText(clipboardData);
|
|
7155
7174
|
return ['paste', text];
|
|
7156
7175
|
};
|
|
7157
|
-
const handleScrollBarVerticalPointerDown = create$
|
|
7176
|
+
const handleScrollBarVerticalPointerDown = create$L(event => {
|
|
7158
7177
|
const {
|
|
7159
7178
|
clientY
|
|
7160
7179
|
} = event;
|
|
@@ -7188,7 +7207,7 @@ const handleScrollBarHorizontalPointerUp = event => {
|
|
|
7188
7207
|
target,
|
|
7189
7208
|
pointerId
|
|
7190
7209
|
} = event;
|
|
7191
|
-
stopTracking
|
|
7210
|
+
stopTracking(target, pointerId, handleScrollBarThumbHorizontalPointerMove, handleScrollBarHorizontalPointerUp);
|
|
7192
7211
|
return [];
|
|
7193
7212
|
};
|
|
7194
7213
|
|
|
@@ -7202,7 +7221,7 @@ const handleScrollBarHorizontalPointerDown = event => {
|
|
|
7202
7221
|
pointerId,
|
|
7203
7222
|
clientX
|
|
7204
7223
|
} = event;
|
|
7205
|
-
startTracking
|
|
7224
|
+
startTracking(target, pointerId, handleScrollBarThumbHorizontalPointerMove, handleScrollBarHorizontalPointerUp);
|
|
7206
7225
|
return ['handleScrollBarHorizontalPointerDown', clientX];
|
|
7207
7226
|
};
|
|
7208
7227
|
const handleScrollBarContextMenu = event => {
|
|
@@ -7729,7 +7748,7 @@ const handlePointerDown$4 = event => {
|
|
|
7729
7748
|
clientY
|
|
7730
7749
|
} = event;
|
|
7731
7750
|
const uid = fromEvent(event);
|
|
7732
|
-
handlePointerDown$
|
|
7751
|
+
handlePointerDown$6(uid, button, clientX, clientY);
|
|
7733
7752
|
};
|
|
7734
7753
|
const handleMouseEnter = event => {
|
|
7735
7754
|
// const $Target = event.target
|
|
@@ -7906,7 +7925,7 @@ const handleScrollBarPointerCaptureLost = event => {
|
|
|
7906
7925
|
target,
|
|
7907
7926
|
pointerId
|
|
7908
7927
|
} = event;
|
|
7909
|
-
stopTracking
|
|
7928
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handleScrollBarPointerCaptureLost);
|
|
7910
7929
|
const uid = fromEvent(event);
|
|
7911
7930
|
handleScrollBarCaptureLost(uid);
|
|
7912
7931
|
};
|
|
@@ -7916,7 +7935,7 @@ const handleScrollBarPointerDown$2 = event => {
|
|
|
7916
7935
|
pointerId,
|
|
7917
7936
|
clientY
|
|
7918
7937
|
} = event;
|
|
7919
|
-
startTracking
|
|
7938
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handleScrollBarPointerCaptureLost);
|
|
7920
7939
|
const uid = fromEvent(event);
|
|
7921
7940
|
handleScrollBarClick(uid, clientY);
|
|
7922
7941
|
};
|
|
@@ -8030,7 +8049,7 @@ const attachEvents$8 = state => {
|
|
|
8030
8049
|
$ListItems,
|
|
8031
8050
|
$ScrollBar
|
|
8032
8051
|
} = state;
|
|
8033
|
-
$ExtensionHeader.addEventListener(Input
|
|
8052
|
+
$ExtensionHeader.addEventListener(Input, handleInput$6, Capture);
|
|
8034
8053
|
// @ts-expect-error
|
|
8035
8054
|
$ExtensionHeader.addEventListener(Click, undefined);
|
|
8036
8055
|
attachEvents$d($ListItems, {
|
|
@@ -8358,7 +8377,7 @@ const handleResizerPointerUp = event => {
|
|
|
8358
8377
|
target,
|
|
8359
8378
|
pointerId
|
|
8360
8379
|
} = event;
|
|
8361
|
-
stopTracking
|
|
8380
|
+
stopTracking(target, pointerId, handleResizerPointerMove, handleResizerPointerUp);
|
|
8362
8381
|
};
|
|
8363
8382
|
const handleResizerPointerDown = event => {
|
|
8364
8383
|
const {
|
|
@@ -8366,7 +8385,7 @@ const handleResizerPointerDown = event => {
|
|
|
8366
8385
|
pointerId,
|
|
8367
8386
|
clientX
|
|
8368
8387
|
} = event;
|
|
8369
|
-
startTracking
|
|
8388
|
+
startTracking(target, pointerId, handleResizerPointerMove, handleResizerPointerUp);
|
|
8370
8389
|
const id = target.nextSibling ? 1 : 2;
|
|
8371
8390
|
const uid = fromEvent(event);
|
|
8372
8391
|
handleResizerClick(uid, id, clientX);
|
|
@@ -8888,7 +8907,7 @@ const handlePointerCaptureLost = event => {
|
|
|
8888
8907
|
target,
|
|
8889
8908
|
pointerId
|
|
8890
8909
|
} = event;
|
|
8891
|
-
stopTracking
|
|
8910
|
+
stopTracking(target, pointerId, handleSashPointerMove, handlePointerCaptureLost);
|
|
8892
8911
|
const id = getSashId(target);
|
|
8893
8912
|
handleSashPointerUp(id);
|
|
8894
8913
|
};
|
|
@@ -8897,7 +8916,7 @@ const handleSashPointerDown = event => {
|
|
|
8897
8916
|
target,
|
|
8898
8917
|
pointerId
|
|
8899
8918
|
} = event;
|
|
8900
|
-
startTracking
|
|
8919
|
+
startTracking(target, pointerId, handleSashPointerMove, handlePointerCaptureLost);
|
|
8901
8920
|
const id = getSashId(target);
|
|
8902
8921
|
handleSashPointerDown$1(id);
|
|
8903
8922
|
};
|
|
@@ -9623,7 +9642,7 @@ const focus$6 = state => {
|
|
|
9623
9642
|
// - for nvda ariaRoleDescription works better
|
|
9624
9643
|
|
|
9625
9644
|
const create$a = () => {
|
|
9626
|
-
const $QuickPickInput = create$
|
|
9645
|
+
const $QuickPickInput = create$C();
|
|
9627
9646
|
$QuickPickInput.setAttribute(AriaControls, Ids.QuickPickItems); // TODO use idl once supported
|
|
9628
9647
|
$QuickPickInput.role = ComboBox;
|
|
9629
9648
|
$QuickPickInput.ariaLabel = 'Type the name of a command to run.';
|
|
@@ -9966,7 +9985,7 @@ const handleScrollBarPointerUp = event => {
|
|
|
9966
9985
|
target,
|
|
9967
9986
|
pointerId
|
|
9968
9987
|
} = event;
|
|
9969
|
-
stopTracking
|
|
9988
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
9970
9989
|
};
|
|
9971
9990
|
const handleScrollBarPointerDown$1 = event => {
|
|
9972
9991
|
const {
|
|
@@ -9974,7 +9993,7 @@ const handleScrollBarPointerDown$1 = event => {
|
|
|
9974
9993
|
pointerId,
|
|
9975
9994
|
clientY
|
|
9976
9995
|
} = event;
|
|
9977
|
-
startTracking
|
|
9996
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
9978
9997
|
return ['handleScrollBarClick', clientY];
|
|
9979
9998
|
};
|
|
9980
9999
|
const handleToggleButtonClick = event => {
|
|
@@ -11366,7 +11385,7 @@ const handleContextMenu$1 = event => {
|
|
|
11366
11385
|
} = event;
|
|
11367
11386
|
return ['handleContextMenu', button, clientX, clientY];
|
|
11368
11387
|
};
|
|
11369
|
-
const handleSashCornerPointerDown = create$
|
|
11388
|
+
const handleSashCornerPointerDown = create$L(event => {
|
|
11370
11389
|
const {
|
|
11371
11390
|
clientX,
|
|
11372
11391
|
clientY
|