@lvce-editor/renderer-process 10.3.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 +315 -283
- 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,
|
|
@@ -2252,7 +2368,18 @@ const ViewletEditorCompletion = {
|
|
|
2252
2368
|
showLoading
|
|
2253
2369
|
};
|
|
2254
2370
|
|
|
2255
|
-
const
|
|
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$J = () => {
|
|
2256
2383
|
const $Viewlet = document.createElement('div');
|
|
2257
2384
|
$Viewlet.className = 'Viewlet EditorCompletionDetails';
|
|
2258
2385
|
$Viewlet.id = 'CompletionsDetails';
|
|
@@ -2272,6 +2399,12 @@ const setDom$a = (state, dom) => {
|
|
|
2272
2399
|
$Viewlet.replaceChildren(...$Root.firstChild.childNodes);
|
|
2273
2400
|
append$1($Viewlet);
|
|
2274
2401
|
};
|
|
2402
|
+
const appendWidget = state => {
|
|
2403
|
+
const {
|
|
2404
|
+
$Viewlet
|
|
2405
|
+
} = state;
|
|
2406
|
+
append$1($Viewlet);
|
|
2407
|
+
};
|
|
2275
2408
|
const dispose$j = state => {
|
|
2276
2409
|
remove$2(state.$Viewlet);
|
|
2277
2410
|
};
|
|
@@ -2284,8 +2417,10 @@ const setBounds$5 = (state, x, y, width, height) => {
|
|
|
2284
2417
|
|
|
2285
2418
|
const ViewletEditorCompletionDetails = {
|
|
2286
2419
|
__proto__: null,
|
|
2420
|
+
Events: ViewletEditorCompletionDetailsEvents,
|
|
2421
|
+
appendWidget,
|
|
2287
2422
|
attachEvents: attachEvents$b,
|
|
2288
|
-
create: create$
|
|
2423
|
+
create: create$J,
|
|
2289
2424
|
dispose: dispose$j,
|
|
2290
2425
|
setBounds: setBounds$5,
|
|
2291
2426
|
setDom: setDom$a
|
|
@@ -2692,6 +2827,7 @@ const main = async () => {
|
|
|
2692
2827
|
enable(window);
|
|
2693
2828
|
state$6.modules[EditorCompletion] = ViewletEditorCompletion;
|
|
2694
2829
|
state$6.modules[EditorCompletionDetails] = ViewletEditorCompletionDetails;
|
|
2830
|
+
state$6.modules[ColorPicker] = ViewletColorPicker;
|
|
2695
2831
|
setLoad(load$2);
|
|
2696
2832
|
// TODO this is discovered very late
|
|
2697
2833
|
await launchWorkers();
|
|
@@ -2785,7 +2921,7 @@ ${relevant}`;
|
|
|
2785
2921
|
|
|
2786
2922
|
const Module = 'module';
|
|
2787
2923
|
|
|
2788
|
-
const create$
|
|
2924
|
+
const create$I = async ({
|
|
2789
2925
|
url,
|
|
2790
2926
|
name
|
|
2791
2927
|
}) => {
|
|
@@ -2851,7 +2987,7 @@ const wrap = worker => {
|
|
|
2851
2987
|
|
|
2852
2988
|
const IpcParentWithModuleWorker = {
|
|
2853
2989
|
__proto__: null,
|
|
2854
|
-
create: create$
|
|
2990
|
+
create: create$I,
|
|
2855
2991
|
wrap
|
|
2856
2992
|
};
|
|
2857
2993
|
|
|
@@ -2859,7 +2995,7 @@ const isMessagePort$1 = value => {
|
|
|
2859
2995
|
return value instanceof MessagePort;
|
|
2860
2996
|
};
|
|
2861
2997
|
|
|
2862
|
-
const create$
|
|
2998
|
+
const create$H = async ({
|
|
2863
2999
|
url
|
|
2864
3000
|
}) => {
|
|
2865
3001
|
string(url);
|
|
@@ -2880,10 +3016,10 @@ const create$I = async ({
|
|
|
2880
3016
|
|
|
2881
3017
|
const IpcParentWithMessagePort = {
|
|
2882
3018
|
__proto__: null,
|
|
2883
|
-
create: create$
|
|
3019
|
+
create: create$H
|
|
2884
3020
|
};
|
|
2885
3021
|
|
|
2886
|
-
const create$
|
|
3022
|
+
const create$G = async url => {
|
|
2887
3023
|
const referencePort = await new Promise(resolve => {
|
|
2888
3024
|
globalThis.acceptReferencePort = resolve;
|
|
2889
3025
|
import(url);
|
|
@@ -2894,7 +3030,7 @@ const create$H = async url => {
|
|
|
2894
3030
|
|
|
2895
3031
|
const IpcParentWithReferencePort = {
|
|
2896
3032
|
__proto__: null,
|
|
2897
|
-
create: create$
|
|
3033
|
+
create: create$G
|
|
2898
3034
|
};
|
|
2899
3035
|
|
|
2900
3036
|
const isWorker = value => {
|
|
@@ -2902,12 +3038,12 @@ const isWorker = value => {
|
|
|
2902
3038
|
};
|
|
2903
3039
|
|
|
2904
3040
|
// TODO add test
|
|
2905
|
-
const create$
|
|
3041
|
+
const create$F = async ({
|
|
2906
3042
|
url,
|
|
2907
3043
|
name,
|
|
2908
3044
|
port
|
|
2909
3045
|
}) => {
|
|
2910
|
-
const worker = await create$
|
|
3046
|
+
const worker = await create$I({
|
|
2911
3047
|
url,
|
|
2912
3048
|
name
|
|
2913
3049
|
});
|
|
@@ -2926,7 +3062,7 @@ const create$G = async ({
|
|
|
2926
3062
|
|
|
2927
3063
|
const IpcParentWithModuleWorkerWithMessagePort = {
|
|
2928
3064
|
__proto__: null,
|
|
2929
|
-
create: create$
|
|
3065
|
+
create: create$F
|
|
2930
3066
|
};
|
|
2931
3067
|
|
|
2932
3068
|
const handleIpcOnce = ipc => {
|
|
@@ -3457,7 +3593,7 @@ const IpcChildWithMessagePort$1 = {
|
|
|
3457
3593
|
};
|
|
3458
3594
|
|
|
3459
3595
|
// TODO use handleIncomingIpc function
|
|
3460
|
-
const create$
|
|
3596
|
+
const create$E = async ({
|
|
3461
3597
|
port,
|
|
3462
3598
|
ipcId
|
|
3463
3599
|
}) => {
|
|
@@ -3473,7 +3609,7 @@ const create$F = async ({
|
|
|
3473
3609
|
|
|
3474
3610
|
const IpcParentWithElectron = {
|
|
3475
3611
|
__proto__: null,
|
|
3476
|
-
create: create$
|
|
3612
|
+
create: create$E
|
|
3477
3613
|
};
|
|
3478
3614
|
|
|
3479
3615
|
const play = async src => {
|
|
@@ -3704,7 +3840,7 @@ const AriaAlert = {
|
|
|
3704
3840
|
// but that's difficult to know
|
|
3705
3841
|
|
|
3706
3842
|
// TODO hide widget after timeout or mousemove
|
|
3707
|
-
const create$
|
|
3843
|
+
const create$D = (message, x, y) => {
|
|
3708
3844
|
const $EditorError = document.createElement('div');
|
|
3709
3845
|
$EditorError.className = 'EditorWidgetError';
|
|
3710
3846
|
$EditorError.textContent = message;
|
|
@@ -3719,7 +3855,7 @@ const create$E = (message, x, y) => {
|
|
|
3719
3855
|
|
|
3720
3856
|
const name$t = 'EditorError';
|
|
3721
3857
|
const Commands$u = {
|
|
3722
|
-
create: create$
|
|
3858
|
+
create: create$D
|
|
3723
3859
|
};
|
|
3724
3860
|
|
|
3725
3861
|
const EditorError_ipc = {
|
|
@@ -3759,7 +3895,7 @@ const focusPrevious = () => {
|
|
|
3759
3895
|
}
|
|
3760
3896
|
};
|
|
3761
3897
|
|
|
3762
|
-
const create$
|
|
3898
|
+
const create$C = () => {
|
|
3763
3899
|
const $InputBox = document.createElement('input');
|
|
3764
3900
|
$InputBox.className = 'InputBox';
|
|
3765
3901
|
$InputBox.spellcheck = false;
|
|
@@ -3783,8 +3919,8 @@ const FocusOutput = 28;
|
|
|
3783
3919
|
const handleBlur$9 = () => {
|
|
3784
3920
|
send(/* EditorRename.abort */'EditorRename.abort');
|
|
3785
3921
|
};
|
|
3786
|
-
const create$
|
|
3787
|
-
const $RenameWidgetInputBox = create$
|
|
3922
|
+
const create$B = (x, y) => {
|
|
3923
|
+
const $RenameWidgetInputBox = create$C();
|
|
3788
3924
|
$RenameWidgetInputBox.className = 'RenameWidgetInputBox';
|
|
3789
3925
|
$RenameWidgetInputBox.onblur = handleBlur$9;
|
|
3790
3926
|
const $RenameWidget = document.createElement('div');
|
|
@@ -3815,7 +3951,7 @@ const finish = state => {
|
|
|
3815
3951
|
|
|
3816
3952
|
const name$s = 'EditorRename';
|
|
3817
3953
|
const Commands$t = {
|
|
3818
|
-
create: create$
|
|
3954
|
+
create: create$B,
|
|
3819
3955
|
dispose: dispose$i,
|
|
3820
3956
|
finish: finish
|
|
3821
3957
|
};
|
|
@@ -3901,7 +4037,7 @@ const showError = (message, y, x) => {
|
|
|
3901
4037
|
$ImagePreviewImage
|
|
3902
4038
|
};
|
|
3903
4039
|
};
|
|
3904
|
-
const create$
|
|
4040
|
+
const create$A = (uri, top, left) => {
|
|
3905
4041
|
const $ImagePreviewImage = document.createElement('img');
|
|
3906
4042
|
$ImagePreviewImage.className = 'ImagePreviewImage';
|
|
3907
4043
|
$ImagePreviewImage.src = uri;
|
|
@@ -3932,7 +4068,7 @@ const dispose$h = state => {
|
|
|
3932
4068
|
|
|
3933
4069
|
const ImagePreview = {
|
|
3934
4070
|
__proto__: null,
|
|
3935
|
-
create: create$
|
|
4071
|
+
create: create$A,
|
|
3936
4072
|
dispose: dispose$h,
|
|
3937
4073
|
showError,
|
|
3938
4074
|
update
|
|
@@ -3940,7 +4076,7 @@ const ImagePreview = {
|
|
|
3940
4076
|
|
|
3941
4077
|
const name$p = 'ImagePreview';
|
|
3942
4078
|
const Commands$q = {
|
|
3943
|
-
create: create$
|
|
4079
|
+
create: create$A,
|
|
3944
4080
|
dispose: dispose$h,
|
|
3945
4081
|
showError: showError,
|
|
3946
4082
|
update: update
|
|
@@ -4138,7 +4274,7 @@ const create$Notification = message => {
|
|
|
4138
4274
|
$Notification.textContent = message;
|
|
4139
4275
|
return $Notification;
|
|
4140
4276
|
};
|
|
4141
|
-
const create$
|
|
4277
|
+
const create$z = (type, message) => {
|
|
4142
4278
|
// TODO this pattern might be also useful for activitybar, sidebar etc., creating elements as late as possible, only when actually needed
|
|
4143
4279
|
const $Notification = create$Notification(message);
|
|
4144
4280
|
append$1($Notification);
|
|
@@ -4191,7 +4327,7 @@ const name$h = 'Notification';
|
|
|
4191
4327
|
|
|
4192
4328
|
// prettier-ignore
|
|
4193
4329
|
const Commands$i = {
|
|
4194
|
-
create: create$
|
|
4330
|
+
create: create$z,
|
|
4195
4331
|
createWithOptions: createWithOptions,
|
|
4196
4332
|
dispose: dispose$g
|
|
4197
4333
|
};
|
|
@@ -4215,7 +4351,7 @@ const set$3 = (canvasId, canvas) => {
|
|
|
4215
4351
|
const get$3 = id => {
|
|
4216
4352
|
return get$4(id);
|
|
4217
4353
|
};
|
|
4218
|
-
const create$
|
|
4354
|
+
const create$y = async (canvasId, objectId) => {
|
|
4219
4355
|
const canvas = document.createElement('canvas');
|
|
4220
4356
|
const offscreenCanvas = canvas.transferControlToOffscreen();
|
|
4221
4357
|
set$3(canvasId, canvas);
|
|
@@ -4226,7 +4362,7 @@ const name$g = 'OffscreenCanvas';
|
|
|
4226
4362
|
|
|
4227
4363
|
// prettier-ignore
|
|
4228
4364
|
const Commands$h = {
|
|
4229
|
-
create: create$
|
|
4365
|
+
create: create$y
|
|
4230
4366
|
};
|
|
4231
4367
|
|
|
4232
4368
|
const OffscreenCanvas_ipc = {
|
|
@@ -5396,7 +5532,7 @@ const load$1 = moduleId => {
|
|
|
5396
5532
|
}
|
|
5397
5533
|
};
|
|
5398
5534
|
|
|
5399
|
-
const create$
|
|
5535
|
+
const create$x = (id, uid = id) => {
|
|
5400
5536
|
const module = state$6.modules[id];
|
|
5401
5537
|
if (!module) {
|
|
5402
5538
|
throw new Error(`module not found: ${id}`);
|
|
@@ -5563,7 +5699,7 @@ const sendMultiple = commands => {
|
|
|
5563
5699
|
}
|
|
5564
5700
|
case 'Viewlet.create':
|
|
5565
5701
|
{
|
|
5566
|
-
create$
|
|
5702
|
+
create$x(viewletId, method);
|
|
5567
5703
|
break;
|
|
5568
5704
|
}
|
|
5569
5705
|
case 'Viewlet.createFunctionalRoot':
|
|
@@ -5758,7 +5894,7 @@ const appendToBody = childId => {
|
|
|
5758
5894
|
const getFn = command => {
|
|
5759
5895
|
switch (command) {
|
|
5760
5896
|
case 'Viewlet.create':
|
|
5761
|
-
return create$
|
|
5897
|
+
return create$x;
|
|
5762
5898
|
case 'Viewlet.send':
|
|
5763
5899
|
return invoke;
|
|
5764
5900
|
case 'Viewlet.show':
|
|
@@ -6104,7 +6240,7 @@ const waitForFrameToLoad = $Frame => {
|
|
|
6104
6240
|
};
|
|
6105
6241
|
|
|
6106
6242
|
// TODO could use browser view when running in electron
|
|
6107
|
-
const create$
|
|
6243
|
+
const create$w = async (uid, src, sandbox, csp, credentialless) => {
|
|
6108
6244
|
const $Iframe = document.createElement('iframe');
|
|
6109
6245
|
setIframeCredentialless($Iframe, credentialless);
|
|
6110
6246
|
setIframeCsp($Iframe, csp);
|
|
@@ -6146,7 +6282,7 @@ const dispose$d = uid => {
|
|
|
6146
6282
|
|
|
6147
6283
|
const name = 'WebView';
|
|
6148
6284
|
const Commands$1 = {
|
|
6149
|
-
create: create$
|
|
6285
|
+
create: create$w,
|
|
6150
6286
|
load: load,
|
|
6151
6287
|
setPort: setPort$2,
|
|
6152
6288
|
dispose: dispose$d
|
|
@@ -6209,7 +6345,7 @@ const handleContextMenu$b = event => {
|
|
|
6209
6345
|
} = event;
|
|
6210
6346
|
return ['handleContextMenu', button, clientX, clientY];
|
|
6211
6347
|
};
|
|
6212
|
-
const returnValue$
|
|
6348
|
+
const returnValue$8 = true;
|
|
6213
6349
|
|
|
6214
6350
|
const ViewletActivityBarEvents = {
|
|
6215
6351
|
__proto__: null,
|
|
@@ -6217,7 +6353,7 @@ const ViewletActivityBarEvents = {
|
|
|
6217
6353
|
handleContextMenu: handleContextMenu$b,
|
|
6218
6354
|
handleFocus: handleFocus$b,
|
|
6219
6355
|
handleMouseDown: handleMouseDown$2,
|
|
6220
|
-
returnValue: returnValue$
|
|
6356
|
+
returnValue: returnValue$8
|
|
6221
6357
|
};
|
|
6222
6358
|
|
|
6223
6359
|
const Events$a = ViewletActivityBarEvents;
|
|
@@ -6254,7 +6390,7 @@ const ViewletAudio = {
|
|
|
6254
6390
|
Events: Events$9
|
|
6255
6391
|
};
|
|
6256
6392
|
|
|
6257
|
-
const create$
|
|
6393
|
+
const create$v = () => {
|
|
6258
6394
|
const $Viewlet = document.createElement('div');
|
|
6259
6395
|
$Viewlet.className = 'Viewlet BrowserViewOverview';
|
|
6260
6396
|
return {
|
|
@@ -6270,11 +6406,11 @@ const setDom$8 = (state, dom) => {
|
|
|
6270
6406
|
|
|
6271
6407
|
const ViewletBrowserViewOverview = {
|
|
6272
6408
|
__proto__: null,
|
|
6273
|
-
create: create$
|
|
6409
|
+
create: create$v,
|
|
6274
6410
|
setDom: setDom$8
|
|
6275
6411
|
};
|
|
6276
6412
|
|
|
6277
|
-
const create$
|
|
6413
|
+
const create$u = () => {
|
|
6278
6414
|
const $Viewlet = document.createElement('div');
|
|
6279
6415
|
$Viewlet.className = 'Viewlet Clock';
|
|
6280
6416
|
return {
|
|
@@ -6291,110 +6427,12 @@ const setTime = (state, time) => {
|
|
|
6291
6427
|
|
|
6292
6428
|
const ViewletClock = {
|
|
6293
6429
|
__proto__: null,
|
|
6294
|
-
create: create$
|
|
6430
|
+
create: create$u,
|
|
6295
6431
|
dispose: dispose$c,
|
|
6296
6432
|
refresh: refresh$3,
|
|
6297
6433
|
setTime
|
|
6298
6434
|
};
|
|
6299
6435
|
|
|
6300
|
-
const startTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
6301
|
-
$Target.setPointerCapture(pointerId);
|
|
6302
|
-
$Target.addEventListener(PointerMove, handlePointerMove);
|
|
6303
|
-
// TODO use pointerlost event instead
|
|
6304
|
-
$Target.addEventListener(PointerUp, handlePointerUp);
|
|
6305
|
-
};
|
|
6306
|
-
const stopTracking = ($Target, pointerId, handlePointerMove, handlePointerUp) => {
|
|
6307
|
-
$Target.releasePointerCapture(pointerId);
|
|
6308
|
-
$Target.removeEventListener(PointerMove, handlePointerMove);
|
|
6309
|
-
// TODO use pointerlost event instead
|
|
6310
|
-
$Target.removeEventListener(PointerUp, handlePointerUp);
|
|
6311
|
-
};
|
|
6312
|
-
const create$u = (pointerDown, pointerMove, pointerUp) => {
|
|
6313
|
-
const shared = (fn, event) => {
|
|
6314
|
-
const message = fn(event);
|
|
6315
|
-
if (!message || message.length === 0) {
|
|
6316
|
-
return;
|
|
6317
|
-
}
|
|
6318
|
-
const uid = fromEvent(event);
|
|
6319
|
-
send('Viewlet.executeViewletCommand', uid, ...message);
|
|
6320
|
-
};
|
|
6321
|
-
const handlePointerMove = event => {
|
|
6322
|
-
shared(pointerMove, event);
|
|
6323
|
-
};
|
|
6324
|
-
const handlePointerUp = event => {
|
|
6325
|
-
const {
|
|
6326
|
-
target,
|
|
6327
|
-
pointerId
|
|
6328
|
-
} = event;
|
|
6329
|
-
stopTracking(target, pointerId, handlePointerMove, handlePointerUp);
|
|
6330
|
-
shared(pointerUp, event);
|
|
6331
|
-
};
|
|
6332
|
-
const handlePointerDown = event => {
|
|
6333
|
-
const {
|
|
6334
|
-
target,
|
|
6335
|
-
pointerId
|
|
6336
|
-
} = event;
|
|
6337
|
-
startTracking(target, pointerId, handlePointerMove, handlePointerUp);
|
|
6338
|
-
shared(pointerDown, event);
|
|
6339
|
-
return [];
|
|
6340
|
-
};
|
|
6341
|
-
return handlePointerDown;
|
|
6342
|
-
};
|
|
6343
|
-
|
|
6344
|
-
const handleOffset = 20;
|
|
6345
|
-
const handleSliderPointerDown = create$u(event => {
|
|
6346
|
-
const {
|
|
6347
|
-
clientX,
|
|
6348
|
-
clientY
|
|
6349
|
-
} = event;
|
|
6350
|
-
return ['handleSliderPointerDown', clientX - handleOffset, clientY];
|
|
6351
|
-
}, event => {
|
|
6352
|
-
const {
|
|
6353
|
-
clientX,
|
|
6354
|
-
clientY
|
|
6355
|
-
} = event;
|
|
6356
|
-
return ['handleSliderPointerMove', clientX - handleOffset, clientY];
|
|
6357
|
-
}, () => {
|
|
6358
|
-
return [];
|
|
6359
|
-
});
|
|
6360
|
-
const handlePointerDown$6 = event => {
|
|
6361
|
-
const {
|
|
6362
|
-
target
|
|
6363
|
-
} = event;
|
|
6364
|
-
if (target.className === 'ColorPickerSliderThumb' || target.className === 'ColorPickerSlider') {
|
|
6365
|
-
return handleSliderPointerDown(event);
|
|
6366
|
-
}
|
|
6367
|
-
return [];
|
|
6368
|
-
};
|
|
6369
|
-
const returnValue$8 = true;
|
|
6370
|
-
|
|
6371
|
-
const ViewletColorPickerEvents = {
|
|
6372
|
-
__proto__: null,
|
|
6373
|
-
handlePointerDown: handlePointerDown$6,
|
|
6374
|
-
returnValue: returnValue$8
|
|
6375
|
-
};
|
|
6376
|
-
|
|
6377
|
-
const setColor = (state, color) => {
|
|
6378
|
-
const {
|
|
6379
|
-
$Viewlet
|
|
6380
|
-
} = state;
|
|
6381
|
-
$Viewlet.style.setProperty('--ColorPickerColor', color);
|
|
6382
|
-
};
|
|
6383
|
-
const setOffsetX = (state, offsetX) => {
|
|
6384
|
-
const {
|
|
6385
|
-
$Viewlet
|
|
6386
|
-
} = state;
|
|
6387
|
-
const $ColorPickerSliderThumb = $Viewlet.querySelector('.ColorPickerSliderThumb');
|
|
6388
|
-
setXAndYTransform($ColorPickerSliderThumb, offsetX, 0);
|
|
6389
|
-
};
|
|
6390
|
-
|
|
6391
|
-
const ViewletColorPicker = {
|
|
6392
|
-
__proto__: null,
|
|
6393
|
-
Events: ViewletColorPickerEvents,
|
|
6394
|
-
setColor,
|
|
6395
|
-
setOffsetX
|
|
6396
|
-
};
|
|
6397
|
-
|
|
6398
6436
|
const handleInput$7 = event => {
|
|
6399
6437
|
const uid = fromEvent(event);
|
|
6400
6438
|
const {
|
|
@@ -6671,7 +6709,7 @@ const ViewletEditorError = {
|
|
|
6671
6709
|
};
|
|
6672
6710
|
|
|
6673
6711
|
const returnValue$7 = true;
|
|
6674
|
-
const handleSashPointerDown$2 = create$
|
|
6712
|
+
const handleSashPointerDown$2 = create$L(event => {
|
|
6675
6713
|
const {
|
|
6676
6714
|
clientX,
|
|
6677
6715
|
clientY
|
|
@@ -6770,7 +6808,7 @@ const handlePointerDown$5 = event => {
|
|
|
6770
6808
|
target.addEventListener(PointerUp, handlePointerUp);
|
|
6771
6809
|
target.addEventListener(LostPointerCapture, handlePointerCaptureLost$1);
|
|
6772
6810
|
const uid = fromEvent(event);
|
|
6773
|
-
handlePointerDown$
|
|
6811
|
+
handlePointerDown$6(uid, pointerId, clientX, clientY);
|
|
6774
6812
|
};
|
|
6775
6813
|
|
|
6776
6814
|
/**
|
|
@@ -7135,7 +7173,7 @@ const handlePaste = event => {
|
|
|
7135
7173
|
const text = getText(clipboardData);
|
|
7136
7174
|
return ['paste', text];
|
|
7137
7175
|
};
|
|
7138
|
-
const handleScrollBarVerticalPointerDown = create$
|
|
7176
|
+
const handleScrollBarVerticalPointerDown = create$L(event => {
|
|
7139
7177
|
const {
|
|
7140
7178
|
clientY
|
|
7141
7179
|
} = event;
|
|
@@ -7169,7 +7207,7 @@ const handleScrollBarHorizontalPointerUp = event => {
|
|
|
7169
7207
|
target,
|
|
7170
7208
|
pointerId
|
|
7171
7209
|
} = event;
|
|
7172
|
-
stopTracking
|
|
7210
|
+
stopTracking(target, pointerId, handleScrollBarThumbHorizontalPointerMove, handleScrollBarHorizontalPointerUp);
|
|
7173
7211
|
return [];
|
|
7174
7212
|
};
|
|
7175
7213
|
|
|
@@ -7183,7 +7221,7 @@ const handleScrollBarHorizontalPointerDown = event => {
|
|
|
7183
7221
|
pointerId,
|
|
7184
7222
|
clientX
|
|
7185
7223
|
} = event;
|
|
7186
|
-
startTracking
|
|
7224
|
+
startTracking(target, pointerId, handleScrollBarThumbHorizontalPointerMove, handleScrollBarHorizontalPointerUp);
|
|
7187
7225
|
return ['handleScrollBarHorizontalPointerDown', clientX];
|
|
7188
7226
|
};
|
|
7189
7227
|
const handleScrollBarContextMenu = event => {
|
|
@@ -7660,9 +7698,6 @@ const handleDrop = event => {
|
|
|
7660
7698
|
files
|
|
7661
7699
|
} = dataTransfer;
|
|
7662
7700
|
const uid = fromEvent(event);
|
|
7663
|
-
console.log({
|
|
7664
|
-
files
|
|
7665
|
-
});
|
|
7666
7701
|
if (files.length > 0) {
|
|
7667
7702
|
return handleDropFiles(uid, clientX, clientY, files);
|
|
7668
7703
|
}
|
|
@@ -7713,7 +7748,7 @@ const handlePointerDown$4 = event => {
|
|
|
7713
7748
|
clientY
|
|
7714
7749
|
} = event;
|
|
7715
7750
|
const uid = fromEvent(event);
|
|
7716
|
-
handlePointerDown$
|
|
7751
|
+
handlePointerDown$6(uid, button, clientX, clientY);
|
|
7717
7752
|
};
|
|
7718
7753
|
const handleMouseEnter = event => {
|
|
7719
7754
|
// const $Target = event.target
|
|
@@ -7890,7 +7925,7 @@ const handleScrollBarPointerCaptureLost = event => {
|
|
|
7890
7925
|
target,
|
|
7891
7926
|
pointerId
|
|
7892
7927
|
} = event;
|
|
7893
|
-
stopTracking
|
|
7928
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handleScrollBarPointerCaptureLost);
|
|
7894
7929
|
const uid = fromEvent(event);
|
|
7895
7930
|
handleScrollBarCaptureLost(uid);
|
|
7896
7931
|
};
|
|
@@ -7900,7 +7935,7 @@ const handleScrollBarPointerDown$2 = event => {
|
|
|
7900
7935
|
pointerId,
|
|
7901
7936
|
clientY
|
|
7902
7937
|
} = event;
|
|
7903
|
-
startTracking
|
|
7938
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handleScrollBarPointerCaptureLost);
|
|
7904
7939
|
const uid = fromEvent(event);
|
|
7905
7940
|
handleScrollBarClick(uid, clientY);
|
|
7906
7941
|
};
|
|
@@ -8014,7 +8049,7 @@ const attachEvents$8 = state => {
|
|
|
8014
8049
|
$ListItems,
|
|
8015
8050
|
$ScrollBar
|
|
8016
8051
|
} = state;
|
|
8017
|
-
$ExtensionHeader.addEventListener(Input
|
|
8052
|
+
$ExtensionHeader.addEventListener(Input, handleInput$6, Capture);
|
|
8018
8053
|
// @ts-expect-error
|
|
8019
8054
|
$ExtensionHeader.addEventListener(Click, undefined);
|
|
8020
8055
|
attachEvents$d($ListItems, {
|
|
@@ -8342,7 +8377,7 @@ const handleResizerPointerUp = event => {
|
|
|
8342
8377
|
target,
|
|
8343
8378
|
pointerId
|
|
8344
8379
|
} = event;
|
|
8345
|
-
stopTracking
|
|
8380
|
+
stopTracking(target, pointerId, handleResizerPointerMove, handleResizerPointerUp);
|
|
8346
8381
|
};
|
|
8347
8382
|
const handleResizerPointerDown = event => {
|
|
8348
8383
|
const {
|
|
@@ -8350,7 +8385,7 @@ const handleResizerPointerDown = event => {
|
|
|
8350
8385
|
pointerId,
|
|
8351
8386
|
clientX
|
|
8352
8387
|
} = event;
|
|
8353
|
-
startTracking
|
|
8388
|
+
startTracking(target, pointerId, handleResizerPointerMove, handleResizerPointerUp);
|
|
8354
8389
|
const id = target.nextSibling ? 1 : 2;
|
|
8355
8390
|
const uid = fromEvent(event);
|
|
8356
8391
|
handleResizerClick(uid, id, clientX);
|
|
@@ -8872,7 +8907,7 @@ const handlePointerCaptureLost = event => {
|
|
|
8872
8907
|
target,
|
|
8873
8908
|
pointerId
|
|
8874
8909
|
} = event;
|
|
8875
|
-
stopTracking
|
|
8910
|
+
stopTracking(target, pointerId, handleSashPointerMove, handlePointerCaptureLost);
|
|
8876
8911
|
const id = getSashId(target);
|
|
8877
8912
|
handleSashPointerUp(id);
|
|
8878
8913
|
};
|
|
@@ -8881,7 +8916,7 @@ const handleSashPointerDown = event => {
|
|
|
8881
8916
|
target,
|
|
8882
8917
|
pointerId
|
|
8883
8918
|
} = event;
|
|
8884
|
-
startTracking
|
|
8919
|
+
startTracking(target, pointerId, handleSashPointerMove, handlePointerCaptureLost);
|
|
8885
8920
|
const id = getSashId(target);
|
|
8886
8921
|
handleSashPointerDown$1(id);
|
|
8887
8922
|
};
|
|
@@ -9607,7 +9642,7 @@ const focus$6 = state => {
|
|
|
9607
9642
|
// - for nvda ariaRoleDescription works better
|
|
9608
9643
|
|
|
9609
9644
|
const create$a = () => {
|
|
9610
|
-
const $QuickPickInput = create$
|
|
9645
|
+
const $QuickPickInput = create$C();
|
|
9611
9646
|
$QuickPickInput.setAttribute(AriaControls, Ids.QuickPickItems); // TODO use idl once supported
|
|
9612
9647
|
$QuickPickInput.role = ComboBox;
|
|
9613
9648
|
$QuickPickInput.ariaLabel = 'Type the name of a command to run.';
|
|
@@ -9950,7 +9985,7 @@ const handleScrollBarPointerUp = event => {
|
|
|
9950
9985
|
target,
|
|
9951
9986
|
pointerId
|
|
9952
9987
|
} = event;
|
|
9953
|
-
stopTracking
|
|
9988
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
9954
9989
|
};
|
|
9955
9990
|
const handleScrollBarPointerDown$1 = event => {
|
|
9956
9991
|
const {
|
|
@@ -9958,7 +9993,7 @@ const handleScrollBarPointerDown$1 = event => {
|
|
|
9958
9993
|
pointerId,
|
|
9959
9994
|
clientY
|
|
9960
9995
|
} = event;
|
|
9961
|
-
startTracking
|
|
9996
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
9962
9997
|
return ['handleScrollBarClick', clientY];
|
|
9963
9998
|
};
|
|
9964
9999
|
const handleToggleButtonClick = event => {
|
|
@@ -11300,9 +11335,6 @@ const setIframe$2 = (state, src, sandbox = []) => {
|
|
|
11300
11335
|
}
|
|
11301
11336
|
$Iframe.className = 'E2eTestsIframe';
|
|
11302
11337
|
$Iframe.src = src;
|
|
11303
|
-
console.log({
|
|
11304
|
-
src
|
|
11305
|
-
});
|
|
11306
11338
|
$Iframe.addEventListener('load', handleLoad$2, {
|
|
11307
11339
|
once: true
|
|
11308
11340
|
});
|
|
@@ -11353,7 +11385,7 @@ const handleContextMenu$1 = event => {
|
|
|
11353
11385
|
} = event;
|
|
11354
11386
|
return ['handleContextMenu', button, clientX, clientY];
|
|
11355
11387
|
};
|
|
11356
|
-
const handleSashCornerPointerDown = create$
|
|
11388
|
+
const handleSashCornerPointerDown = create$L(event => {
|
|
11357
11389
|
const {
|
|
11358
11390
|
clientX,
|
|
11359
11391
|
clientY
|