@lvce-editor/renderer-process 10.56.0 → 10.57.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 +155 -250
- package/package.json +1 -1
|
@@ -954,7 +954,7 @@ const hydrate$4 = async () => {
|
|
|
954
954
|
};
|
|
955
955
|
|
|
956
956
|
// TODO needed?
|
|
957
|
-
const dispose$
|
|
957
|
+
const dispose$n = () => {
|
|
958
958
|
// @ts-expect-error
|
|
959
959
|
if (state$9.rendererWorker) {
|
|
960
960
|
// @ts-expect-error
|
|
@@ -977,7 +977,7 @@ const invokeAndTransfer = (method, ...params) => {
|
|
|
977
977
|
|
|
978
978
|
const RendererWorker = {
|
|
979
979
|
__proto__: null,
|
|
980
|
-
dispose: dispose$
|
|
980
|
+
dispose: dispose$n,
|
|
981
981
|
hydrate: hydrate$4,
|
|
982
982
|
invoke: invoke$1,
|
|
983
983
|
invokeAndTransfer,
|
|
@@ -1195,7 +1195,7 @@ var Footer = "footer";
|
|
|
1195
1195
|
var Header = "header";
|
|
1196
1196
|
var Nav = "nav";
|
|
1197
1197
|
var Section = "section";
|
|
1198
|
-
var Search
|
|
1198
|
+
var Search = "search";
|
|
1199
1199
|
var Dd = "dd";
|
|
1200
1200
|
var Dl = "dl";
|
|
1201
1201
|
var Figcaption = "figcaption";
|
|
@@ -1337,7 +1337,7 @@ var getElementTag = type => {
|
|
|
1337
1337
|
case Section2:
|
|
1338
1338
|
return Section;
|
|
1339
1339
|
case Search2:
|
|
1340
|
-
return Search
|
|
1340
|
+
return Search;
|
|
1341
1341
|
case Dd2:
|
|
1342
1342
|
return Dd;
|
|
1343
1343
|
case Dl2:
|
|
@@ -2068,12 +2068,12 @@ const handlePointerDown$7 = event => {
|
|
|
2068
2068
|
}
|
|
2069
2069
|
return [];
|
|
2070
2070
|
};
|
|
2071
|
-
const returnValue$
|
|
2071
|
+
const returnValue$9 = true;
|
|
2072
2072
|
|
|
2073
2073
|
const ViewletColorPickerEvents = {
|
|
2074
2074
|
__proto__: null,
|
|
2075
2075
|
handlePointerDown: handlePointerDown$7,
|
|
2076
|
-
returnValue: returnValue$
|
|
2076
|
+
returnValue: returnValue$9
|
|
2077
2077
|
};
|
|
2078
2078
|
|
|
2079
2079
|
const setColor = (state, color) => {
|
|
@@ -2242,7 +2242,7 @@ const handleClickSize$1 = forwardViewletCommand('handleClickSize');
|
|
|
2242
2242
|
const handleClickDisable$1 = forwardViewletCommand('handleClickDisable');
|
|
2243
2243
|
const handleClickUninstall$1 = forwardViewletCommand('handleClickUninstall');
|
|
2244
2244
|
forwardViewletCommand('handleFilterInput');
|
|
2245
|
-
const handleFocus$
|
|
2245
|
+
const handleFocus$b = forwardViewletCommand('handleFocus');
|
|
2246
2246
|
const handleFocusIn$4 = forwardViewletCommand('handleFocusIn');
|
|
2247
2247
|
const handleIconError$1 = forwardViewletCommand('handleIconError');
|
|
2248
2248
|
const handleImageError$1 = forwardViewletCommand('handleImageError');
|
|
@@ -2269,8 +2269,8 @@ const handleScrollBarCaptureLost = forwardViewletCommand('handleScrollBarCapture
|
|
|
2269
2269
|
const handleScrollBarClick = forwardViewletCommand('handleScrollBarClick');
|
|
2270
2270
|
forwardViewletCommand('handleScrollBarHorizontalMove');
|
|
2271
2271
|
forwardViewletCommand('handleScrollBarHorizontalPointerDown');
|
|
2272
|
-
|
|
2273
|
-
const handleScrollBarThumbPointerMove$
|
|
2272
|
+
forwardViewletCommand('handleScrollBarMove');
|
|
2273
|
+
const handleScrollBarThumbPointerMove$2 = forwardViewletCommand('handleScrollBarThumbPointerMove');
|
|
2274
2274
|
forwardViewletCommand('handleScrollBarMove');
|
|
2275
2275
|
forwardViewletCommand('handleScrollBarVerticalPointerDown');
|
|
2276
2276
|
forwardViewletCommand('handleSliderPointerDown');
|
|
@@ -2333,10 +2333,10 @@ const appendWidget$5 = state => {
|
|
|
2333
2333
|
} = state;
|
|
2334
2334
|
append$1($Viewlet);
|
|
2335
2335
|
};
|
|
2336
|
-
const dispose$
|
|
2336
|
+
const dispose$m = state => {
|
|
2337
2337
|
remove$2(state.$Viewlet);
|
|
2338
2338
|
};
|
|
2339
|
-
const focus$
|
|
2339
|
+
const focus$i = (state, key, source) => {
|
|
2340
2340
|
if (!key) {
|
|
2341
2341
|
return;
|
|
2342
2342
|
}
|
|
@@ -2359,8 +2359,8 @@ const ViewletEditorCodeGenerator = {
|
|
|
2359
2359
|
__proto__: null,
|
|
2360
2360
|
Events: ViewletEditorCodeGeneratorEvents,
|
|
2361
2361
|
appendWidget: appendWidget$5,
|
|
2362
|
-
dispose: dispose$
|
|
2363
|
-
focus: focus$
|
|
2362
|
+
dispose: dispose$m,
|
|
2363
|
+
focus: focus$i,
|
|
2364
2364
|
setBounds: setBounds$9
|
|
2365
2365
|
};
|
|
2366
2366
|
|
|
@@ -2421,28 +2421,28 @@ const handleMousedown = event => {
|
|
|
2421
2421
|
const uid = fromEvent(event);
|
|
2422
2422
|
handleClickAt$3(uid, clientX, clientY);
|
|
2423
2423
|
};
|
|
2424
|
-
const handleScrollBarThumbPointerMove$
|
|
2424
|
+
const handleScrollBarThumbPointerMove$1 = event => {
|
|
2425
2425
|
const {
|
|
2426
2426
|
clientY
|
|
2427
2427
|
} = event;
|
|
2428
2428
|
const uid = fromEvent(event);
|
|
2429
|
-
handleScrollBarThumbPointerMove$
|
|
2429
|
+
handleScrollBarThumbPointerMove$2(uid, clientY);
|
|
2430
2430
|
};
|
|
2431
2431
|
const handlePointerCaptureLost$2 = event => {
|
|
2432
2432
|
const {
|
|
2433
2433
|
target,
|
|
2434
2434
|
pointerId
|
|
2435
2435
|
} = event;
|
|
2436
|
-
stopTracking(target, pointerId, handleScrollBarThumbPointerMove$
|
|
2436
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handlePointerCaptureLost$2);
|
|
2437
2437
|
};
|
|
2438
|
-
const handleScrollBarPointerDown$
|
|
2438
|
+
const handleScrollBarPointerDown$3 = event => {
|
|
2439
2439
|
preventDefault(event);
|
|
2440
2440
|
const {
|
|
2441
2441
|
target,
|
|
2442
2442
|
pointerId,
|
|
2443
2443
|
clientY
|
|
2444
2444
|
} = event;
|
|
2445
|
-
startTracking(target, pointerId, handleScrollBarThumbPointerMove$
|
|
2445
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove$1, handlePointerCaptureLost$2);
|
|
2446
2446
|
const uid = fromEvent(event);
|
|
2447
2447
|
handleScrollBarClick(uid, clientY);
|
|
2448
2448
|
};
|
|
@@ -2547,7 +2547,7 @@ const attachEvents$b = state => {
|
|
|
2547
2547
|
[MouseDown]: handleMousedown
|
|
2548
2548
|
});
|
|
2549
2549
|
attachEvents$c($ScrollBar, {
|
|
2550
|
-
[PointerDown]: handleScrollBarPointerDown$
|
|
2550
|
+
[PointerDown]: handleScrollBarPointerDown$3
|
|
2551
2551
|
});
|
|
2552
2552
|
};
|
|
2553
2553
|
// TODO show should be passed active cursor position
|
|
@@ -2565,7 +2565,7 @@ const setDom$a = (state, dom) => {
|
|
|
2565
2565
|
// TODO recycle nodes
|
|
2566
2566
|
// TODO set right aria attributes on $EditorInput
|
|
2567
2567
|
};
|
|
2568
|
-
const dispose$
|
|
2568
|
+
const dispose$l = state => {
|
|
2569
2569
|
remove$2(state.$Viewlet);
|
|
2570
2570
|
// state.$EditorInput.removeAttribute('aria-activedescendant')
|
|
2571
2571
|
};
|
|
@@ -2597,7 +2597,7 @@ const ViewletEditorCompletion = {
|
|
|
2597
2597
|
__proto__: null,
|
|
2598
2598
|
attachEvents: attachEvents$b,
|
|
2599
2599
|
create: create$J,
|
|
2600
|
-
dispose: dispose$
|
|
2600
|
+
dispose: dispose$l,
|
|
2601
2601
|
handleError: handleError$8,
|
|
2602
2602
|
setBounds: setBounds$8,
|
|
2603
2603
|
setContentHeight,
|
|
@@ -2611,12 +2611,12 @@ const ViewletEditorCompletion = {
|
|
|
2611
2611
|
const handleClose = () => {
|
|
2612
2612
|
return ['closeDetails'];
|
|
2613
2613
|
};
|
|
2614
|
-
const returnValue$
|
|
2614
|
+
const returnValue$8 = true;
|
|
2615
2615
|
|
|
2616
2616
|
const ViewletEditorCompletionDetailsEvents = {
|
|
2617
2617
|
__proto__: null,
|
|
2618
2618
|
handleClose,
|
|
2619
|
-
returnValue: returnValue$
|
|
2619
|
+
returnValue: returnValue$8
|
|
2620
2620
|
};
|
|
2621
2621
|
|
|
2622
2622
|
const create$I = () => {
|
|
@@ -2645,7 +2645,7 @@ const appendWidget$4 = state => {
|
|
|
2645
2645
|
} = state;
|
|
2646
2646
|
append$1($Viewlet);
|
|
2647
2647
|
};
|
|
2648
|
-
const dispose$
|
|
2648
|
+
const dispose$k = state => {
|
|
2649
2649
|
remove$2(state.$Viewlet);
|
|
2650
2650
|
};
|
|
2651
2651
|
const setBounds$7 = (state, x, y, width, height) => {
|
|
@@ -2661,14 +2661,14 @@ const ViewletEditorCompletionDetails = {
|
|
|
2661
2661
|
appendWidget: appendWidget$4,
|
|
2662
2662
|
attachEvents: attachEvents$a,
|
|
2663
2663
|
create: create$I,
|
|
2664
|
-
dispose: dispose$
|
|
2664
|
+
dispose: dispose$k,
|
|
2665
2665
|
setBounds: setBounds$7,
|
|
2666
2666
|
setDom: setDom$9
|
|
2667
2667
|
};
|
|
2668
2668
|
|
|
2669
2669
|
const rememberFocus = rememberFocus$1;
|
|
2670
2670
|
|
|
2671
|
-
const returnValue$
|
|
2671
|
+
const returnValue$7 = true;
|
|
2672
2672
|
const handleSashPointerDown$2 = create$K(event => {
|
|
2673
2673
|
const {
|
|
2674
2674
|
clientX,
|
|
@@ -2692,7 +2692,7 @@ const handleSashPointerDown$2 = create$K(event => {
|
|
|
2692
2692
|
const ViewletEditorHoverEvents = {
|
|
2693
2693
|
__proto__: null,
|
|
2694
2694
|
handleSashPointerDown: handleSashPointerDown$2,
|
|
2695
|
-
returnValue: returnValue$
|
|
2695
|
+
returnValue: returnValue$7
|
|
2696
2696
|
};
|
|
2697
2697
|
|
|
2698
2698
|
const setBounds$6 = (state, x, y, width, height) => {
|
|
@@ -2763,7 +2763,7 @@ const appendWidget$2 = state => {
|
|
|
2763
2763
|
} = state;
|
|
2764
2764
|
append$1($Viewlet);
|
|
2765
2765
|
};
|
|
2766
|
-
const dispose$
|
|
2766
|
+
const dispose$j = state => {
|
|
2767
2767
|
remove$2(state.$Viewlet);
|
|
2768
2768
|
};
|
|
2769
2769
|
|
|
@@ -2771,7 +2771,7 @@ const ViewletEditorRename = {
|
|
|
2771
2771
|
__proto__: null,
|
|
2772
2772
|
Events: ViewletEditorRenameEvents,
|
|
2773
2773
|
appendWidget: appendWidget$2,
|
|
2774
|
-
dispose: dispose$
|
|
2774
|
+
dispose: dispose$j,
|
|
2775
2775
|
setBounds: setBounds$5
|
|
2776
2776
|
};
|
|
2777
2777
|
|
|
@@ -2799,7 +2799,7 @@ const appendWidget$1 = state => {
|
|
|
2799
2799
|
} = state;
|
|
2800
2800
|
append$1($Viewlet);
|
|
2801
2801
|
};
|
|
2802
|
-
const dispose$
|
|
2802
|
+
const dispose$i = state => {
|
|
2803
2803
|
remove$2(state.$Viewlet);
|
|
2804
2804
|
};
|
|
2805
2805
|
|
|
@@ -2807,7 +2807,7 @@ const ViewletEditorSourceActions = {
|
|
|
2807
2807
|
__proto__: null,
|
|
2808
2808
|
Events: ViewletEditorSourceActionsEvents,
|
|
2809
2809
|
appendWidget: appendWidget$1,
|
|
2810
|
-
dispose: dispose$
|
|
2810
|
+
dispose: dispose$i,
|
|
2811
2811
|
setBounds: setBounds$4
|
|
2812
2812
|
};
|
|
2813
2813
|
|
|
@@ -2859,7 +2859,7 @@ const handleReplaceInput = event => {
|
|
|
2859
2859
|
const handleReplaceFocus = event => {
|
|
2860
2860
|
return ['FindWidget.handleReplaceFocus'];
|
|
2861
2861
|
};
|
|
2862
|
-
const handleFocus$
|
|
2862
|
+
const handleFocus$a = event => {
|
|
2863
2863
|
return ['FindWidget.handleFocus'];
|
|
2864
2864
|
};
|
|
2865
2865
|
const handleToggleReplaceFocus = event => {
|
|
@@ -2877,7 +2877,7 @@ const handleFocusClose = event => {
|
|
|
2877
2877
|
const handleFocusReplaceAll = event => {
|
|
2878
2878
|
return ['FindWidget.handleFocusReplaceAll'];
|
|
2879
2879
|
};
|
|
2880
|
-
const returnValue$
|
|
2880
|
+
const returnValue$6 = true;
|
|
2881
2881
|
|
|
2882
2882
|
const ViewletFindWidgetEvents = {
|
|
2883
2883
|
__proto__: null,
|
|
@@ -2887,7 +2887,7 @@ const ViewletFindWidgetEvents = {
|
|
|
2887
2887
|
handleClickReplace,
|
|
2888
2888
|
handleClickReplaceAll,
|
|
2889
2889
|
handleClickToggleReplace,
|
|
2890
|
-
handleFocus: handleFocus$
|
|
2890
|
+
handleFocus: handleFocus$a,
|
|
2891
2891
|
handleFocusClose,
|
|
2892
2892
|
handleFocusNext,
|
|
2893
2893
|
handleFocusPrevious,
|
|
@@ -2897,7 +2897,7 @@ const ViewletFindWidgetEvents = {
|
|
|
2897
2897
|
handleReplaceFocus,
|
|
2898
2898
|
handleReplaceInput,
|
|
2899
2899
|
handleToggleReplaceFocus,
|
|
2900
|
-
returnValue: returnValue$
|
|
2900
|
+
returnValue: returnValue$6
|
|
2901
2901
|
};
|
|
2902
2902
|
|
|
2903
2903
|
const create$H = () => {
|
|
@@ -2908,7 +2908,7 @@ const create$H = () => {
|
|
|
2908
2908
|
$Viewlet
|
|
2909
2909
|
};
|
|
2910
2910
|
};
|
|
2911
|
-
const focus$
|
|
2911
|
+
const focus$h = (state, key, source) => {
|
|
2912
2912
|
if (!key) {
|
|
2913
2913
|
return;
|
|
2914
2914
|
}
|
|
@@ -2926,7 +2926,7 @@ const focus$i = (state, key, source) => {
|
|
|
2926
2926
|
$Element.focus();
|
|
2927
2927
|
applyUidWorkaround($Viewlet);
|
|
2928
2928
|
};
|
|
2929
|
-
const setValue$
|
|
2929
|
+
const setValue$3 = (state, value) => {
|
|
2930
2930
|
const {
|
|
2931
2931
|
$Viewlet
|
|
2932
2932
|
} = state;
|
|
@@ -2954,21 +2954,21 @@ const setBounds$3 = (state, x, y, width, height) => {
|
|
|
2954
2954
|
} = state;
|
|
2955
2955
|
setBounds$a($Viewlet, x, y, width, height);
|
|
2956
2956
|
};
|
|
2957
|
-
const dispose$
|
|
2957
|
+
const dispose$h = state => {
|
|
2958
2958
|
remove$2(state.$Viewlet);
|
|
2959
2959
|
};
|
|
2960
|
-
const Events$
|
|
2960
|
+
const Events$b = ViewletFindWidgetEvents;
|
|
2961
2961
|
|
|
2962
2962
|
const ViewletFindWidget = {
|
|
2963
2963
|
__proto__: null,
|
|
2964
|
-
Events: Events$
|
|
2964
|
+
Events: Events$b,
|
|
2965
2965
|
appendWidget,
|
|
2966
2966
|
create: create$H,
|
|
2967
|
-
dispose: dispose$
|
|
2968
|
-
focus: focus$
|
|
2967
|
+
dispose: dispose$h,
|
|
2968
|
+
focus: focus$h,
|
|
2969
2969
|
setBounds: setBounds$3,
|
|
2970
2970
|
setDom: setDom$7,
|
|
2971
|
-
setValue: setValue$
|
|
2971
|
+
setValue: setValue$3
|
|
2972
2972
|
};
|
|
2973
2973
|
|
|
2974
2974
|
const ActivityBar = 'ActivityBar';
|
|
@@ -3008,7 +3008,6 @@ const QuickPick = 'QuickPick';
|
|
|
3008
3008
|
const References = 'References';
|
|
3009
3009
|
const RunAndDebug = 'Run And Debug';
|
|
3010
3010
|
const ScreenCapture = 'ScreenCapture';
|
|
3011
|
-
const Search = 'Search';
|
|
3012
3011
|
const SideBar$1 = 'SideBar';
|
|
3013
3012
|
const SimpleBrowser = 'SimpleBrowser';
|
|
3014
3013
|
const SourceControl = 'Source Control';
|
|
@@ -4510,14 +4509,14 @@ const create$A = (uri, top, left) => {
|
|
|
4510
4509
|
const update = (state, uri) => {
|
|
4511
4510
|
state.$ImagePreviewImage.uri = uri;
|
|
4512
4511
|
};
|
|
4513
|
-
const dispose$
|
|
4512
|
+
const dispose$g = state => {
|
|
4514
4513
|
remove$2(state.$ImagePreview);
|
|
4515
4514
|
};
|
|
4516
4515
|
|
|
4517
4516
|
const ImagePreview = {
|
|
4518
4517
|
__proto__: null,
|
|
4519
4518
|
create: create$A,
|
|
4520
|
-
dispose: dispose$
|
|
4519
|
+
dispose: dispose$g,
|
|
4521
4520
|
showError,
|
|
4522
4521
|
update
|
|
4523
4522
|
};
|
|
@@ -4525,7 +4524,7 @@ const ImagePreview = {
|
|
|
4525
4524
|
const name$p = 'ImagePreview';
|
|
4526
4525
|
const Commands$q = {
|
|
4527
4526
|
create: create$A,
|
|
4528
|
-
dispose: dispose$
|
|
4527
|
+
dispose: dispose$g,
|
|
4529
4528
|
showError: showError,
|
|
4530
4529
|
update: update
|
|
4531
4530
|
};
|
|
@@ -4767,7 +4766,7 @@ const createWithOptions = (type, message, options) => {
|
|
|
4767
4766
|
const $Notification = create$NotificationWithOptions(message, options);
|
|
4768
4767
|
append$1($Notification);
|
|
4769
4768
|
};
|
|
4770
|
-
const dispose$
|
|
4769
|
+
const dispose$f = id => {
|
|
4771
4770
|
// const $Notification = state.$Notifications
|
|
4772
4771
|
};
|
|
4773
4772
|
|
|
@@ -4777,7 +4776,7 @@ const name$h = 'Notification';
|
|
|
4777
4776
|
const Commands$i = {
|
|
4778
4777
|
create: create$z,
|
|
4779
4778
|
createWithOptions: createWithOptions,
|
|
4780
|
-
dispose: dispose$
|
|
4779
|
+
dispose: dispose$f
|
|
4781
4780
|
};
|
|
4782
4781
|
|
|
4783
4782
|
const Notification_ipc = {
|
|
@@ -4857,7 +4856,7 @@ const getElement = () => {
|
|
|
4857
4856
|
return state$2.$PreviousFocusElement;
|
|
4858
4857
|
};
|
|
4859
4858
|
|
|
4860
|
-
const focus$
|
|
4859
|
+
const focus$g = $Element => {
|
|
4861
4860
|
if ($Element === document.activeElement) {
|
|
4862
4861
|
return;
|
|
4863
4862
|
}
|
|
@@ -4879,7 +4878,6 @@ const FocusExplorerEditBox = 14;
|
|
|
4879
4878
|
const FocusLocationList = 17;
|
|
4880
4879
|
const FocusMenu = 18;
|
|
4881
4880
|
const FocusQuickPickInput = 20;
|
|
4882
|
-
const FocusSearchInput = 21;
|
|
4883
4881
|
const FocusSimpleBrowserInput = 23;
|
|
4884
4882
|
const FocusOutput = 28;
|
|
4885
4883
|
|
|
@@ -5069,7 +5067,7 @@ const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mous
|
|
|
5069
5067
|
state$1.$$Menus.push($Menu);
|
|
5070
5068
|
append$1($Menu);
|
|
5071
5069
|
if (level === 0) {
|
|
5072
|
-
focus$
|
|
5070
|
+
focus$g($Menu);
|
|
5073
5071
|
send('Focus.setFocus', FocusMenu);
|
|
5074
5072
|
}
|
|
5075
5073
|
};
|
|
@@ -5268,7 +5266,7 @@ const start = async (id, options) => {
|
|
|
5268
5266
|
throw new VError$1(error, `Failed to start screen capture`);
|
|
5269
5267
|
}
|
|
5270
5268
|
};
|
|
5271
|
-
const dispose$
|
|
5269
|
+
const dispose$e = async (id, options) => {
|
|
5272
5270
|
try {
|
|
5273
5271
|
number(id);
|
|
5274
5272
|
const captureStream = get$2(id);
|
|
@@ -5283,7 +5281,7 @@ const dispose$f = async (id, options) => {
|
|
|
5283
5281
|
|
|
5284
5282
|
const name$b = 'ScreenCapture';
|
|
5285
5283
|
const Commands$c = {
|
|
5286
|
-
dispose: dispose$
|
|
5284
|
+
dispose: dispose$e,
|
|
5287
5285
|
start: start
|
|
5288
5286
|
};
|
|
5289
5287
|
|
|
@@ -5973,8 +5971,6 @@ const load$1 = moduleId => {
|
|
|
5973
5971
|
return Promise.resolve().then(function () { return ViewletRunAndDebug; });
|
|
5974
5972
|
case ScreenCapture:
|
|
5975
5973
|
return Promise.resolve().then(function () { return ViewletScreenCapture; });
|
|
5976
|
-
case Search:
|
|
5977
|
-
return Promise.resolve().then(function () { return ViewletSearch; });
|
|
5978
5974
|
case SideBar$1:
|
|
5979
5975
|
return Promise.resolve().then(function () { return ViewletSideBar; });
|
|
5980
5976
|
case SimpleBrowser:
|
|
@@ -6092,7 +6088,7 @@ const invoke = (viewletId, method, ...args) => {
|
|
|
6092
6088
|
}
|
|
6093
6089
|
return instance.factory[method](instance.state, ...args);
|
|
6094
6090
|
};
|
|
6095
|
-
const focus$
|
|
6091
|
+
const focus$f = viewletId => {
|
|
6096
6092
|
const instance = state$6.instances[viewletId];
|
|
6097
6093
|
if (instance.factory?.setFocused) {
|
|
6098
6094
|
instance.factory.setFocused(instance.state, true);
|
|
@@ -6264,7 +6260,7 @@ const sendMultiple = commands => {
|
|
|
6264
6260
|
}
|
|
6265
6261
|
case 'Viewlet.dispose':
|
|
6266
6262
|
{
|
|
6267
|
-
dispose$
|
|
6263
|
+
dispose$d(viewletId);
|
|
6268
6264
|
break;
|
|
6269
6265
|
}
|
|
6270
6266
|
case 'Viewlet.setPatches':
|
|
@@ -6287,7 +6283,7 @@ const sendMultiple = commands => {
|
|
|
6287
6283
|
}
|
|
6288
6284
|
case 'Viewlet.focus':
|
|
6289
6285
|
{
|
|
6290
|
-
focus$
|
|
6286
|
+
focus$f(viewletId);
|
|
6291
6287
|
break;
|
|
6292
6288
|
}
|
|
6293
6289
|
case 'Viewlet.appendViewlet':
|
|
@@ -6334,7 +6330,7 @@ const sendMultiple = commands => {
|
|
|
6334
6330
|
}
|
|
6335
6331
|
}
|
|
6336
6332
|
};
|
|
6337
|
-
const dispose$
|
|
6333
|
+
const dispose$d = id => {
|
|
6338
6334
|
try {
|
|
6339
6335
|
number(id);
|
|
6340
6336
|
const {
|
|
@@ -6465,7 +6461,7 @@ const getFn = command => {
|
|
|
6465
6461
|
case 'Viewlet.show':
|
|
6466
6462
|
return show;
|
|
6467
6463
|
case 'Viewlet.dispose':
|
|
6468
|
-
return dispose$
|
|
6464
|
+
return dispose$d;
|
|
6469
6465
|
case 'Viewlet.setDom2':
|
|
6470
6466
|
return setDom2;
|
|
6471
6467
|
case 'Viewlet.setBounds':
|
|
@@ -6479,7 +6475,7 @@ const getFn = command => {
|
|
|
6479
6475
|
case 'Viewlet.createPlaceholder':
|
|
6480
6476
|
return createPlaceholder;
|
|
6481
6477
|
case 'Viewlet.focus':
|
|
6482
|
-
return focus$
|
|
6478
|
+
return focus$f;
|
|
6483
6479
|
case 'Viewlet.appendViewlet':
|
|
6484
6480
|
return appendViewlet;
|
|
6485
6481
|
case 'Viewlet.addKeyBindings':
|
|
@@ -6531,9 +6527,9 @@ const name$8 = 'Viewlet';
|
|
|
6531
6527
|
const Commands$9 = {
|
|
6532
6528
|
addKeyBindings: addKeyBindings,
|
|
6533
6529
|
appendViewlet: appendViewlet,
|
|
6534
|
-
dispose: dispose$
|
|
6530
|
+
dispose: dispose$d,
|
|
6535
6531
|
executeCommands: executeCommands,
|
|
6536
|
-
focus: focus$
|
|
6532
|
+
focus: focus$f,
|
|
6537
6533
|
focusElementByName: focusElementByName,
|
|
6538
6534
|
focusSelector: focusSelector,
|
|
6539
6535
|
handleError: handleError$6,
|
|
@@ -6883,7 +6879,7 @@ const setPort$2 = (uid, port, origin, portType) => {
|
|
|
6883
6879
|
params: [port, portType]
|
|
6884
6880
|
}, origin, [port]);
|
|
6885
6881
|
};
|
|
6886
|
-
const dispose$
|
|
6882
|
+
const dispose$c = uid => {
|
|
6887
6883
|
const $Iframe = get(uid);
|
|
6888
6884
|
$Iframe.remove();
|
|
6889
6885
|
remove(uid);
|
|
@@ -6896,7 +6892,7 @@ const Commands$1 = {
|
|
|
6896
6892
|
loadOnly: loadOnly,
|
|
6897
6893
|
appendOnly: appendOnly,
|
|
6898
6894
|
setPort: setPort$2,
|
|
6899
|
-
dispose: dispose$
|
|
6895
|
+
dispose: dispose$c
|
|
6900
6896
|
};
|
|
6901
6897
|
|
|
6902
6898
|
const WebView_ipc = {
|
|
@@ -6941,7 +6937,7 @@ const handleMouseDown$2 = event => {
|
|
|
6941
6937
|
const handleBlur$8 = () => {
|
|
6942
6938
|
return ['handleBlur'];
|
|
6943
6939
|
};
|
|
6944
|
-
const handleFocus$
|
|
6940
|
+
const handleFocus$9 = () => {
|
|
6945
6941
|
return ['handleFocus'];
|
|
6946
6942
|
};
|
|
6947
6943
|
|
|
@@ -6956,22 +6952,22 @@ const handleContextMenu$9 = event => {
|
|
|
6956
6952
|
} = event;
|
|
6957
6953
|
return ['handleContextMenu', button, clientX, clientY];
|
|
6958
6954
|
};
|
|
6959
|
-
const returnValue$
|
|
6955
|
+
const returnValue$5 = true;
|
|
6960
6956
|
|
|
6961
6957
|
const ViewletActivityBarEvents = {
|
|
6962
6958
|
__proto__: null,
|
|
6963
6959
|
handleBlur: handleBlur$8,
|
|
6964
6960
|
handleContextMenu: handleContextMenu$9,
|
|
6965
|
-
handleFocus: handleFocus$
|
|
6961
|
+
handleFocus: handleFocus$9,
|
|
6966
6962
|
handleMouseDown: handleMouseDown$2,
|
|
6967
|
-
returnValue: returnValue$
|
|
6963
|
+
returnValue: returnValue$5
|
|
6968
6964
|
};
|
|
6969
6965
|
|
|
6970
|
-
const Events$
|
|
6966
|
+
const Events$a = ViewletActivityBarEvents;
|
|
6971
6967
|
|
|
6972
6968
|
const ViewletActivityBar = {
|
|
6973
6969
|
__proto__: null,
|
|
6974
|
-
Events: Events$
|
|
6970
|
+
Events: Events$a
|
|
6975
6971
|
};
|
|
6976
6972
|
|
|
6977
6973
|
const handleAudioError = event => {
|
|
@@ -6994,11 +6990,11 @@ const ViewletAudioEvents = {
|
|
|
6994
6990
|
handleAudioError
|
|
6995
6991
|
};
|
|
6996
6992
|
|
|
6997
|
-
const Events$
|
|
6993
|
+
const Events$9 = ViewletAudioEvents;
|
|
6998
6994
|
|
|
6999
6995
|
const ViewletAudio = {
|
|
7000
6996
|
__proto__: null,
|
|
7001
|
-
Events: Events$
|
|
6997
|
+
Events: Events$9
|
|
7002
6998
|
};
|
|
7003
6999
|
|
|
7004
7000
|
const create$v = () => {
|
|
@@ -7028,7 +7024,7 @@ const create$u = () => {
|
|
|
7028
7024
|
$Viewlet
|
|
7029
7025
|
};
|
|
7030
7026
|
};
|
|
7031
|
-
const dispose$
|
|
7027
|
+
const dispose$b = state => {};
|
|
7032
7028
|
const refresh$3 = () => {};
|
|
7033
7029
|
const setTime = (state, time) => {
|
|
7034
7030
|
object(state);
|
|
@@ -7039,7 +7035,7 @@ const setTime = (state, time) => {
|
|
|
7039
7035
|
const ViewletClock = {
|
|
7040
7036
|
__proto__: null,
|
|
7041
7037
|
create: create$u,
|
|
7042
|
-
dispose: dispose$
|
|
7038
|
+
dispose: dispose$b,
|
|
7043
7039
|
refresh: refresh$3,
|
|
7044
7040
|
setTime
|
|
7045
7041
|
};
|
|
@@ -7054,14 +7050,14 @@ const handleInput$4 = event => {
|
|
|
7054
7050
|
} = target;
|
|
7055
7051
|
handleInput$7(uid, value);
|
|
7056
7052
|
};
|
|
7057
|
-
const handleFocus$
|
|
7053
|
+
const handleFocus$8 = event => {
|
|
7058
7054
|
const uid = fromEvent(event);
|
|
7059
|
-
handleFocus$
|
|
7055
|
+
handleFocus$b(uid);
|
|
7060
7056
|
};
|
|
7061
7057
|
|
|
7062
7058
|
const ViewletDebugConsoleEvents = {
|
|
7063
7059
|
__proto__: null,
|
|
7064
|
-
handleFocus: handleFocus$
|
|
7060
|
+
handleFocus: handleFocus$8,
|
|
7065
7061
|
handleInput: handleInput$4
|
|
7066
7062
|
};
|
|
7067
7063
|
|
|
@@ -7109,7 +7105,7 @@ const ViewletDefineKeyBindingEvents = {
|
|
|
7109
7105
|
handleKeyDown: handleKeyDown$3
|
|
7110
7106
|
};
|
|
7111
7107
|
|
|
7112
|
-
const setValue$
|
|
7108
|
+
const setValue$2 = (state, value) => {
|
|
7113
7109
|
object(state);
|
|
7114
7110
|
string(value);
|
|
7115
7111
|
const {
|
|
@@ -7118,7 +7114,7 @@ const setValue$3 = (state, value) => {
|
|
|
7118
7114
|
const $Input = $Viewlet.querySelector('input');
|
|
7119
7115
|
$Input.value = value;
|
|
7120
7116
|
};
|
|
7121
|
-
const focus$
|
|
7117
|
+
const focus$e = state => {
|
|
7122
7118
|
const {
|
|
7123
7119
|
$Viewlet
|
|
7124
7120
|
} = state;
|
|
@@ -7129,8 +7125,8 @@ const focus$f = state => {
|
|
|
7129
7125
|
const ViewletDefineKeyBinding = {
|
|
7130
7126
|
__proto__: null,
|
|
7131
7127
|
Events: ViewletDefineKeyBindingEvents,
|
|
7132
|
-
focus: focus$
|
|
7133
|
-
setValue: setValue$
|
|
7128
|
+
focus: focus$e,
|
|
7129
|
+
setValue: setValue$2
|
|
7134
7130
|
};
|
|
7135
7131
|
|
|
7136
7132
|
const setMaskImage = ($Element, icon) => {
|
|
@@ -7272,13 +7268,13 @@ const handleWheel$2 = event => {
|
|
|
7272
7268
|
handleWheel$4(uid, deltaMode, deltaY);
|
|
7273
7269
|
};
|
|
7274
7270
|
|
|
7275
|
-
const handleScrollBarPointerDown$
|
|
7271
|
+
const handleScrollBarPointerDown$2 = event => {
|
|
7276
7272
|
// TODO
|
|
7277
7273
|
};
|
|
7278
7274
|
|
|
7279
7275
|
const ViewletDiffEditorEvents = {
|
|
7280
7276
|
__proto__: null,
|
|
7281
|
-
handleScrollBarPointerDown: handleScrollBarPointerDown$
|
|
7277
|
+
handleScrollBarPointerDown: handleScrollBarPointerDown$2,
|
|
7282
7278
|
handleWheel: handleWheel$2
|
|
7283
7279
|
};
|
|
7284
7280
|
|
|
@@ -7422,9 +7418,9 @@ const handleError$5 = event => {
|
|
|
7422
7418
|
const uid = fromEvent(event);
|
|
7423
7419
|
handleImageError$1(uid);
|
|
7424
7420
|
};
|
|
7425
|
-
const handleFocus$
|
|
7421
|
+
const handleFocus$7 = event => {
|
|
7426
7422
|
const uid = fromEvent(event);
|
|
7427
|
-
handleFocus$
|
|
7423
|
+
handleFocus$b(uid);
|
|
7428
7424
|
};
|
|
7429
7425
|
|
|
7430
7426
|
const create$p = () => {
|
|
@@ -7442,7 +7438,7 @@ const attachEvents$8 = state => {
|
|
|
7442
7438
|
[PointerDown]: handlePointerDown$5,
|
|
7443
7439
|
[PointerUp]: handlePointerUp,
|
|
7444
7440
|
[ContextMenu]: handleContextMenu$8,
|
|
7445
|
-
[FocusIn]: handleFocus$
|
|
7441
|
+
[FocusIn]: handleFocus$7
|
|
7446
7442
|
});
|
|
7447
7443
|
$Viewlet.addEventListener(Error$3, handleError$5, Capture);
|
|
7448
7444
|
$Viewlet.addEventListener(Wheel, handleWheel$1, Passive);
|
|
@@ -7484,7 +7480,7 @@ const create$o = () => {
|
|
|
7484
7480
|
$Viewlet
|
|
7485
7481
|
};
|
|
7486
7482
|
};
|
|
7487
|
-
const dispose$
|
|
7483
|
+
const dispose$a = state => {};
|
|
7488
7484
|
const refresh$2 = (state, context) => {
|
|
7489
7485
|
object(state);
|
|
7490
7486
|
string(context.content);
|
|
@@ -7494,7 +7490,7 @@ const refresh$2 = (state, context) => {
|
|
|
7494
7490
|
const ViewletEditorPlainText = {
|
|
7495
7491
|
__proto__: null,
|
|
7496
7492
|
create: create$o,
|
|
7497
|
-
dispose: dispose$
|
|
7493
|
+
dispose: dispose$a,
|
|
7498
7494
|
refresh: refresh$2
|
|
7499
7495
|
};
|
|
7500
7496
|
|
|
@@ -7612,7 +7608,7 @@ const toSimpleTouchEvent = event => {
|
|
|
7612
7608
|
|
|
7613
7609
|
// TODO tree shake out mobile support when targeting electron -> less code -> less event listeners -> less memory -> less cpu
|
|
7614
7610
|
|
|
7615
|
-
const handleFocus$
|
|
7611
|
+
const handleFocus$6 = event => {
|
|
7616
7612
|
return ['handleFocus'];
|
|
7617
7613
|
};
|
|
7618
7614
|
const handleMouseMove = event => {
|
|
@@ -7893,7 +7889,7 @@ const create$n = () => {
|
|
|
7893
7889
|
[CompositionStart]: handleCompositionStart,
|
|
7894
7890
|
[CompositionUpdate]: handleCompositionUpdate,
|
|
7895
7891
|
[CompositionEnd]: handleCompositionEnd,
|
|
7896
|
-
[Focus]: handleFocus$
|
|
7892
|
+
[Focus]: handleFocus$6,
|
|
7897
7893
|
[Blur]: handleBlur$6,
|
|
7898
7894
|
[Cut]: handleCut,
|
|
7899
7895
|
[Paste]: handlePaste,
|
|
@@ -8079,13 +8075,13 @@ const hideOverlayMessage = state => {
|
|
|
8079
8075
|
}
|
|
8080
8076
|
};
|
|
8081
8077
|
const setFocused$1 = setFocused$2;
|
|
8082
|
-
const focus$
|
|
8078
|
+
const focus$d = setFocused$2;
|
|
8083
8079
|
const setDecorationsDom = setDecorationsDom$1;
|
|
8084
8080
|
|
|
8085
8081
|
const ViewletEditorText = {
|
|
8086
8082
|
__proto__: null,
|
|
8087
8083
|
create: create$m,
|
|
8088
|
-
focus: focus$
|
|
8084
|
+
focus: focus$d,
|
|
8089
8085
|
handleError: handleError$4,
|
|
8090
8086
|
hideOverlayMessage,
|
|
8091
8087
|
highlightAsLink,
|
|
@@ -8137,14 +8133,14 @@ const create$k = () => {
|
|
|
8137
8133
|
};
|
|
8138
8134
|
};
|
|
8139
8135
|
const refresh$1 = (state, context) => {};
|
|
8140
|
-
const focus$
|
|
8141
|
-
const dispose$
|
|
8136
|
+
const focus$c = state => {};
|
|
8137
|
+
const dispose$9 = state => {};
|
|
8142
8138
|
|
|
8143
8139
|
const ViewletEmpty = {
|
|
8144
8140
|
__proto__: null,
|
|
8145
8141
|
create: create$k,
|
|
8146
|
-
dispose: dispose$
|
|
8147
|
-
focus: focus$
|
|
8142
|
+
dispose: dispose$9,
|
|
8143
|
+
focus: focus$c,
|
|
8148
8144
|
refresh: refresh$1
|
|
8149
8145
|
};
|
|
8150
8146
|
|
|
@@ -8295,7 +8291,7 @@ const handleDrop$1 = event => {
|
|
|
8295
8291
|
|
|
8296
8292
|
// TODO drag and drop should be loaded on demand
|
|
8297
8293
|
|
|
8298
|
-
const handleFocus$
|
|
8294
|
+
const handleFocus$5 = event => {
|
|
8299
8295
|
const {
|
|
8300
8296
|
target,
|
|
8301
8297
|
isTrusted
|
|
@@ -8304,7 +8300,7 @@ const handleFocus$6 = event => {
|
|
|
8304
8300
|
return;
|
|
8305
8301
|
}
|
|
8306
8302
|
const uid = fromEvent(event);
|
|
8307
|
-
handleFocus$
|
|
8303
|
+
handleFocus$b(uid);
|
|
8308
8304
|
};
|
|
8309
8305
|
const handleBlur$5 = event => {
|
|
8310
8306
|
const uid = fromEvent(event);
|
|
@@ -8379,7 +8375,7 @@ const ViewletExplorerEvents = {
|
|
|
8379
8375
|
handleDragStart: handleDragStart$1,
|
|
8380
8376
|
handleDrop: handleDrop$1,
|
|
8381
8377
|
handleEditingInput,
|
|
8382
|
-
handleFocus: handleFocus$
|
|
8378
|
+
handleFocus: handleFocus$5,
|
|
8383
8379
|
handleMouseEnter,
|
|
8384
8380
|
handleMouseLeave,
|
|
8385
8381
|
handlePointerDown: handlePointerDown$4,
|
|
@@ -8396,7 +8392,7 @@ const create$i = () => {
|
|
|
8396
8392
|
$Viewlet
|
|
8397
8393
|
};
|
|
8398
8394
|
};
|
|
8399
|
-
const Events$
|
|
8395
|
+
const Events$8 = ViewletExplorerEvents;
|
|
8400
8396
|
const handleError$3 = (state, message) => {
|
|
8401
8397
|
object(state);
|
|
8402
8398
|
string(message);
|
|
@@ -8413,7 +8409,7 @@ const focusInput = (state, id) => {
|
|
|
8413
8409
|
$Input.focus();
|
|
8414
8410
|
send('Focus.setFocus', FocusExplorerEditBox);
|
|
8415
8411
|
};
|
|
8416
|
-
const dispose$
|
|
8412
|
+
const dispose$8 = state => {};
|
|
8417
8413
|
const setDropTargets = (state, oldDropTargets, newDropTargets) => {
|
|
8418
8414
|
// TODO use virtual dom for this
|
|
8419
8415
|
const {
|
|
@@ -8437,9 +8433,9 @@ const setDropTargets = (state, oldDropTargets, newDropTargets) => {
|
|
|
8437
8433
|
|
|
8438
8434
|
const ViewletExplorer = {
|
|
8439
8435
|
__proto__: null,
|
|
8440
|
-
Events: Events$
|
|
8436
|
+
Events: Events$8,
|
|
8441
8437
|
create: create$i,
|
|
8442
|
-
dispose: dispose$
|
|
8438
|
+
dispose: dispose$8,
|
|
8443
8439
|
focusInput,
|
|
8444
8440
|
handleError: handleError$3,
|
|
8445
8441
|
setDropTargets
|
|
@@ -8522,45 +8518,45 @@ const ViewletExtensionDetailEvents = {
|
|
|
8522
8518
|
handleTabsClick
|
|
8523
8519
|
};
|
|
8524
8520
|
|
|
8525
|
-
const Events$
|
|
8521
|
+
const Events$7 = ViewletExtensionDetailEvents;
|
|
8526
8522
|
|
|
8527
8523
|
const ViewletExtensionDetail = {
|
|
8528
8524
|
__proto__: null,
|
|
8529
|
-
Events: Events$
|
|
8525
|
+
Events: Events$7,
|
|
8530
8526
|
setSize
|
|
8531
8527
|
};
|
|
8532
8528
|
|
|
8533
8529
|
const Polite = 'polite';
|
|
8534
8530
|
|
|
8535
|
-
const handleScrollBarThumbPointerMove
|
|
8531
|
+
const handleScrollBarThumbPointerMove = event => {
|
|
8536
8532
|
const {
|
|
8537
8533
|
clientY
|
|
8538
8534
|
} = event;
|
|
8539
8535
|
const uid = fromEvent(event);
|
|
8540
|
-
handleScrollBarThumbPointerMove$
|
|
8536
|
+
handleScrollBarThumbPointerMove$2(uid, clientY);
|
|
8541
8537
|
};
|
|
8542
8538
|
const handleScrollBarPointerCaptureLost = event => {
|
|
8543
8539
|
const {
|
|
8544
8540
|
target,
|
|
8545
8541
|
pointerId
|
|
8546
8542
|
} = event;
|
|
8547
|
-
stopTracking(target, pointerId, handleScrollBarThumbPointerMove
|
|
8543
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerCaptureLost);
|
|
8548
8544
|
const uid = fromEvent(event);
|
|
8549
8545
|
handleScrollBarCaptureLost(uid);
|
|
8550
8546
|
};
|
|
8551
|
-
const handleScrollBarPointerDown$
|
|
8547
|
+
const handleScrollBarPointerDown$1 = event => {
|
|
8552
8548
|
const {
|
|
8553
8549
|
target,
|
|
8554
8550
|
pointerId,
|
|
8555
8551
|
clientY
|
|
8556
8552
|
} = event;
|
|
8557
|
-
startTracking(target, pointerId, handleScrollBarThumbPointerMove
|
|
8553
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerCaptureLost);
|
|
8558
8554
|
const uid = fromEvent(event);
|
|
8559
8555
|
handleScrollBarClick(uid, clientY);
|
|
8560
8556
|
};
|
|
8561
|
-
const handleFocus$
|
|
8557
|
+
const handleFocus$4 = event => {
|
|
8562
8558
|
const uid = fromEvent(event);
|
|
8563
|
-
handleFocus$
|
|
8559
|
+
handleFocus$b(uid);
|
|
8564
8560
|
};
|
|
8565
8561
|
const handlePointerDown$3 = event => {
|
|
8566
8562
|
const {
|
|
@@ -8674,7 +8670,7 @@ const attachEvents$7 = state => {
|
|
|
8674
8670
|
attachEvents$c($ListItems, {
|
|
8675
8671
|
[ContextMenu]: handleContextMenu$6,
|
|
8676
8672
|
[PointerDown]: handlePointerDown$3,
|
|
8677
|
-
[Focus]: handleFocus$
|
|
8673
|
+
[Focus]: handleFocus$4,
|
|
8678
8674
|
[Scroll]: handleScroll
|
|
8679
8675
|
});
|
|
8680
8676
|
$ListItems.addEventListener(TouchStart, handleTouchStart, Passive);
|
|
@@ -8682,10 +8678,10 @@ const attachEvents$7 = state => {
|
|
|
8682
8678
|
$ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
|
|
8683
8679
|
$ListItems.addEventListener(Wheel, handleWheel$2, Passive);
|
|
8684
8680
|
attachEvents$c($ScrollBar, {
|
|
8685
|
-
[PointerDown]: handleScrollBarPointerDown$
|
|
8681
|
+
[PointerDown]: handleScrollBarPointerDown$1
|
|
8686
8682
|
});
|
|
8687
8683
|
};
|
|
8688
|
-
const focus$
|
|
8684
|
+
const focus$b = state => {
|
|
8689
8685
|
object(state);
|
|
8690
8686
|
state.$InputBox.focus();
|
|
8691
8687
|
};
|
|
@@ -8734,7 +8730,7 @@ const setExtensionsDom = (state, dom) => {
|
|
|
8734
8730
|
// @ts-expect-error
|
|
8735
8731
|
$ListItems.replaceChildren(...$Root.firstChild.childNodes);
|
|
8736
8732
|
};
|
|
8737
|
-
const dispose$
|
|
8733
|
+
const dispose$7 = () => {};
|
|
8738
8734
|
const openSuggest = state => {
|
|
8739
8735
|
// TODO maybe cache getBoundingClientRect (though it is not a bottleneck right now)
|
|
8740
8736
|
// TODO getBoundingClientRect should not be needed, all positions should be known already in renderer worker
|
|
@@ -8773,8 +8769,8 @@ const ViewletExtensions = {
|
|
|
8773
8769
|
attachEvents: attachEvents$7,
|
|
8774
8770
|
closeSuggest,
|
|
8775
8771
|
create: create$h,
|
|
8776
|
-
dispose: dispose$
|
|
8777
|
-
focus: focus$
|
|
8772
|
+
dispose: dispose$7,
|
|
8773
|
+
focus: focus$b,
|
|
8778
8774
|
handleError: handleError$2,
|
|
8779
8775
|
openSuggest,
|
|
8780
8776
|
setContentHeight,
|
|
@@ -8806,7 +8802,7 @@ const ViewletLocationsEvents = {
|
|
|
8806
8802
|
handleLocationsMouseDown
|
|
8807
8803
|
};
|
|
8808
8804
|
|
|
8809
|
-
const Events$
|
|
8805
|
+
const Events$6 = ViewletLocationsEvents;
|
|
8810
8806
|
const setFocusedIndex$3 = (state, oldFocusedIndex, newFocusedIndex) => {
|
|
8811
8807
|
const {
|
|
8812
8808
|
$Viewlet
|
|
@@ -8830,7 +8826,7 @@ const handleError$1 = (state, message) => {
|
|
|
8830
8826
|
} = state;
|
|
8831
8827
|
$Message.textContent = message;
|
|
8832
8828
|
};
|
|
8833
|
-
const focus$
|
|
8829
|
+
const focus$a = state => {
|
|
8834
8830
|
const {
|
|
8835
8831
|
$Locations
|
|
8836
8832
|
} = state;
|
|
@@ -8841,8 +8837,8 @@ const focus$b = state => {
|
|
|
8841
8837
|
|
|
8842
8838
|
const ViewletImplementations = {
|
|
8843
8839
|
__proto__: null,
|
|
8844
|
-
Events: Events$
|
|
8845
|
-
focus: focus$
|
|
8840
|
+
Events: Events$6,
|
|
8841
|
+
focus: focus$a,
|
|
8846
8842
|
handleError: handleError$1,
|
|
8847
8843
|
setFocusedIndex: setFocusedIndex$3
|
|
8848
8844
|
};
|
|
@@ -8901,7 +8897,7 @@ const ViewletkeyBindingsEvents = {
|
|
|
8901
8897
|
handleResizerPointerUp
|
|
8902
8898
|
};
|
|
8903
8899
|
|
|
8904
|
-
const setValue$
|
|
8900
|
+
const setValue$1 = (state, value) => {
|
|
8905
8901
|
const {
|
|
8906
8902
|
$Viewlet
|
|
8907
8903
|
} = state;
|
|
@@ -8919,15 +8915,15 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
|
|
|
8919
8915
|
$Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
|
|
8920
8916
|
$Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
|
|
8921
8917
|
};
|
|
8922
|
-
const Events$
|
|
8918
|
+
const Events$5 = ViewletkeyBindingsEvents;
|
|
8923
8919
|
|
|
8924
8920
|
const ViewletKeyBindings = {
|
|
8925
8921
|
__proto__: null,
|
|
8926
|
-
Events: Events$
|
|
8922
|
+
Events: Events$5,
|
|
8927
8923
|
setColumnWidths,
|
|
8928
8924
|
setScrollBar: setScrollBar$2,
|
|
8929
8925
|
setSize,
|
|
8930
|
-
setValue: setValue$
|
|
8926
|
+
setValue: setValue$1
|
|
8931
8927
|
};
|
|
8932
8928
|
|
|
8933
8929
|
const getSashId = $Target => {
|
|
@@ -9365,7 +9361,7 @@ const handleSashDoubleClick$1 = id => {
|
|
|
9365
9361
|
const handleResize$1 = (width, height) => {
|
|
9366
9362
|
send('Layout.handleResize', width, height);
|
|
9367
9363
|
};
|
|
9368
|
-
const handleFocus$
|
|
9364
|
+
const handleFocus$3 = () => {
|
|
9369
9365
|
send('Layout.handleFocus');
|
|
9370
9366
|
};
|
|
9371
9367
|
const handleBlur$4 = () => {
|
|
@@ -9411,8 +9407,8 @@ const handleResize = () => {
|
|
|
9411
9407
|
} = window;
|
|
9412
9408
|
handleResize$1(innerWidth, innerHeight);
|
|
9413
9409
|
};
|
|
9414
|
-
const handleFocus$
|
|
9415
|
-
handleFocus$
|
|
9410
|
+
const handleFocus$2 = () => {
|
|
9411
|
+
handleFocus$3();
|
|
9416
9412
|
};
|
|
9417
9413
|
const handleBlur$3 = () => {
|
|
9418
9414
|
handleBlur$4();
|
|
@@ -9456,7 +9452,7 @@ const attachEvents$6 = state => {
|
|
|
9456
9452
|
});
|
|
9457
9453
|
attachEvents$c(window, {
|
|
9458
9454
|
[Resize]: handleResize,
|
|
9459
|
-
[Focus]: handleFocus$
|
|
9455
|
+
[Focus]: handleFocus$2,
|
|
9460
9456
|
[Blur]: handleBlur$3,
|
|
9461
9457
|
[KeyDown]: handleKeyDown$1,
|
|
9462
9458
|
[KeyUp]: handleKeyUp
|
|
@@ -9527,7 +9523,7 @@ const attachEvents$5 = state => {
|
|
|
9527
9523
|
[ContextMenu]: handleContextMenu$5
|
|
9528
9524
|
});
|
|
9529
9525
|
};
|
|
9530
|
-
const dispose$
|
|
9526
|
+
const dispose$6 = state => {};
|
|
9531
9527
|
const replaceEditor = (state, id, uri, languageId) => {};
|
|
9532
9528
|
const addEditor = (state, id, uri, languageId) => {};
|
|
9533
9529
|
|
|
@@ -9549,7 +9545,7 @@ const closeViewletAndTab = (state, index) => {
|
|
|
9549
9545
|
state.$MainTabs.remove();
|
|
9550
9546
|
state.$MainTabs = undefined;
|
|
9551
9547
|
};
|
|
9552
|
-
const focus$
|
|
9548
|
+
const focus$9 = () => {};
|
|
9553
9549
|
const highlightDragOver = state => {
|
|
9554
9550
|
const {
|
|
9555
9551
|
$MainTabs
|
|
@@ -9595,8 +9591,8 @@ const ViewletMain = {
|
|
|
9595
9591
|
closeAllViewlets,
|
|
9596
9592
|
closeViewletAndTab,
|
|
9597
9593
|
create: create$f,
|
|
9598
|
-
dispose: dispose$
|
|
9599
|
-
focus: focus$
|
|
9594
|
+
dispose: dispose$6,
|
|
9595
|
+
focus: focus$9,
|
|
9600
9596
|
highlightDragOver,
|
|
9601
9597
|
openEditor,
|
|
9602
9598
|
replaceEditor,
|
|
@@ -9758,9 +9754,9 @@ const handleError = (state, error) => {
|
|
|
9758
9754
|
string(error);
|
|
9759
9755
|
state.content.textContent = error;
|
|
9760
9756
|
};
|
|
9761
|
-
const focus$
|
|
9757
|
+
const focus$8 = state => {
|
|
9762
9758
|
object(state);
|
|
9763
|
-
focus$
|
|
9759
|
+
focus$g(state.$ViewletOutputContent);
|
|
9764
9760
|
send('Focus.setFocus', FocusOutput);
|
|
9765
9761
|
};
|
|
9766
9762
|
|
|
@@ -9773,15 +9769,15 @@ const disposeFindWidget = state => {
|
|
|
9773
9769
|
return;
|
|
9774
9770
|
}
|
|
9775
9771
|
};
|
|
9776
|
-
const dispose$
|
|
9772
|
+
const dispose$5 = state => {};
|
|
9777
9773
|
|
|
9778
9774
|
const ViewletOutput = {
|
|
9779
9775
|
__proto__: null,
|
|
9780
9776
|
clear,
|
|
9781
9777
|
create: create$d,
|
|
9782
|
-
dispose: dispose$
|
|
9778
|
+
dispose: dispose$5,
|
|
9783
9779
|
disposeFindWidget,
|
|
9784
|
-
focus: focus$
|
|
9780
|
+
focus: focus$8,
|
|
9785
9781
|
handleError,
|
|
9786
9782
|
openFindWidget,
|
|
9787
9783
|
setText
|
|
@@ -9893,14 +9889,14 @@ const setTabsDom$1 = (state, dom) => {
|
|
|
9893
9889
|
};
|
|
9894
9890
|
|
|
9895
9891
|
// TODO add test for focus method
|
|
9896
|
-
const focus$
|
|
9892
|
+
const focus$7 = state => {
|
|
9897
9893
|
object(state);
|
|
9898
9894
|
if (!state.currentViewlet) {
|
|
9899
9895
|
return;
|
|
9900
9896
|
}
|
|
9901
9897
|
state.currentViewlet.factory.focus(state.currentViewlet.state);
|
|
9902
9898
|
};
|
|
9903
|
-
const dispose$
|
|
9899
|
+
const dispose$4 = state => {
|
|
9904
9900
|
if (state.$PanelContent) {
|
|
9905
9901
|
state.$PanelContent.remove();
|
|
9906
9902
|
state.$PanelContent = undefined;
|
|
@@ -9945,8 +9941,8 @@ const ViewletPanel = {
|
|
|
9945
9941
|
__proto__: null,
|
|
9946
9942
|
attachEvents: attachEvents$3,
|
|
9947
9943
|
create: create$c,
|
|
9948
|
-
dispose: dispose$
|
|
9949
|
-
focus: focus$
|
|
9944
|
+
dispose: dispose$4,
|
|
9945
|
+
focus: focus$7,
|
|
9950
9946
|
setActionsDom: setActionsDom$1,
|
|
9951
9947
|
setSelectedIndex,
|
|
9952
9948
|
setTabsDom: setTabsDom$1
|
|
@@ -9980,7 +9976,7 @@ const handleFilterInput = event => {
|
|
|
9980
9976
|
const handleClearFilterClick = event => {
|
|
9981
9977
|
return ['clearFilter'];
|
|
9982
9978
|
};
|
|
9983
|
-
const returnValue$
|
|
9979
|
+
const returnValue$4 = true;
|
|
9984
9980
|
|
|
9985
9981
|
const ViewletProblemsEvents = {
|
|
9986
9982
|
__proto__: null,
|
|
@@ -9988,7 +9984,7 @@ const ViewletProblemsEvents = {
|
|
|
9988
9984
|
handleContextMenu: handleContextMenu$4,
|
|
9989
9985
|
handleFilterInput,
|
|
9990
9986
|
handlePointerDown: handlePointerDown$1,
|
|
9991
|
-
returnValue: returnValue$
|
|
9987
|
+
returnValue: returnValue$4
|
|
9992
9988
|
};
|
|
9993
9989
|
|
|
9994
9990
|
const setFocusedIndex$2 = (state, focusedIndex) => {
|
|
@@ -10000,7 +9996,7 @@ const setFocusedIndex$2 = (state, focusedIndex) => {
|
|
|
10000
9996
|
$Viewlet.focus();
|
|
10001
9997
|
}
|
|
10002
9998
|
};
|
|
10003
|
-
const focus$
|
|
9999
|
+
const focus$6 = state => {
|
|
10004
10000
|
const {
|
|
10005
10001
|
$Viewlet
|
|
10006
10002
|
} = state;
|
|
@@ -10011,7 +10007,7 @@ const ViewletProblems = {
|
|
|
10011
10007
|
__proto__: null,
|
|
10012
10008
|
EventMap: ViewletProblemsEvents,
|
|
10013
10009
|
Events: ViewletProblemsEvents,
|
|
10014
|
-
focus: focus$
|
|
10010
|
+
focus: focus$6,
|
|
10015
10011
|
setFocusedIndex: setFocusedIndex$2
|
|
10016
10012
|
};
|
|
10017
10013
|
|
|
@@ -10157,7 +10153,7 @@ const focusElement = $Element => {
|
|
|
10157
10153
|
$Element.focus();
|
|
10158
10154
|
}
|
|
10159
10155
|
};
|
|
10160
|
-
const focus$
|
|
10156
|
+
const focus$5 = state => {
|
|
10161
10157
|
const {
|
|
10162
10158
|
$QuickPickInput
|
|
10163
10159
|
} = state;
|
|
@@ -10244,13 +10240,13 @@ const showNoResults = (state, noResults, unfocusIndex) => {
|
|
|
10244
10240
|
// TODO remove from dom vs display none which should be used?
|
|
10245
10241
|
|
|
10246
10242
|
// TODO have common widgets container for all widgets (this, notifications, context menu)
|
|
10247
|
-
const dispose$
|
|
10243
|
+
const dispose$3 = state => {
|
|
10248
10244
|
const {
|
|
10249
10245
|
$QuickPickInput
|
|
10250
10246
|
} = state;
|
|
10251
10247
|
$QuickPickInput.onblur = null;
|
|
10252
10248
|
};
|
|
10253
|
-
const setValue
|
|
10249
|
+
const setValue = (state, value) => {
|
|
10254
10250
|
const {
|
|
10255
10251
|
$QuickPickInput
|
|
10256
10252
|
} = state;
|
|
@@ -10281,22 +10277,22 @@ const ViewletQuickPick = {
|
|
|
10281
10277
|
__proto__: null,
|
|
10282
10278
|
attachEvents: attachEvents$2,
|
|
10283
10279
|
create: create$a,
|
|
10284
|
-
dispose: dispose$
|
|
10285
|
-
focus: focus$
|
|
10280
|
+
dispose: dispose$3,
|
|
10281
|
+
focus: focus$5,
|
|
10286
10282
|
hideStatus,
|
|
10287
10283
|
noop,
|
|
10288
10284
|
setCursorOffset,
|
|
10289
10285
|
setFocusedIndex: setFocusedIndex$1,
|
|
10290
10286
|
setItemsDom,
|
|
10291
10287
|
setItemsHeight,
|
|
10292
|
-
setValue
|
|
10288
|
+
setValue,
|
|
10293
10289
|
showNoResults
|
|
10294
10290
|
};
|
|
10295
10291
|
|
|
10296
10292
|
const ViewletReferences = {
|
|
10297
10293
|
__proto__: null,
|
|
10298
|
-
Events: Events$
|
|
10299
|
-
focus: focus$
|
|
10294
|
+
Events: Events$6,
|
|
10295
|
+
focus: focus$a,
|
|
10300
10296
|
handleError: handleError$1,
|
|
10301
10297
|
setFocusedIndex: setFocusedIndex$3
|
|
10302
10298
|
};
|
|
@@ -10475,97 +10471,6 @@ const ViewletScreenCapture = {
|
|
|
10475
10471
|
setScreenCapture
|
|
10476
10472
|
};
|
|
10477
10473
|
|
|
10478
|
-
const handleFocus$2 = () => {
|
|
10479
|
-
// TODO send focus event to search view first
|
|
10480
|
-
return ['Focus.setFocus', FocusSearchInput];
|
|
10481
|
-
};
|
|
10482
|
-
const handleScrollBarThumbPointerMove = event => {
|
|
10483
|
-
const {
|
|
10484
|
-
clientY
|
|
10485
|
-
} = event;
|
|
10486
|
-
const uid = fromEvent(event);
|
|
10487
|
-
handleScrollBarMove(uid, clientY);
|
|
10488
|
-
};
|
|
10489
|
-
const handleScrollBarPointerUp = event => {
|
|
10490
|
-
const {
|
|
10491
|
-
target,
|
|
10492
|
-
pointerId
|
|
10493
|
-
} = event;
|
|
10494
|
-
stopTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
10495
|
-
};
|
|
10496
|
-
const handleScrollBarPointerDown$1 = event => {
|
|
10497
|
-
const {
|
|
10498
|
-
target,
|
|
10499
|
-
pointerId,
|
|
10500
|
-
clientY
|
|
10501
|
-
} = event;
|
|
10502
|
-
startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
|
|
10503
|
-
return ['handleScrollBarClick', clientY];
|
|
10504
|
-
};
|
|
10505
|
-
const handleHeaderFocusIn = event => {
|
|
10506
|
-
const {
|
|
10507
|
-
target
|
|
10508
|
-
} = event;
|
|
10509
|
-
const key = target.name || target.title;
|
|
10510
|
-
if (!key) {
|
|
10511
|
-
return [];
|
|
10512
|
-
}
|
|
10513
|
-
return ['handleFocusIn', key];
|
|
10514
|
-
};
|
|
10515
|
-
const returnValue$4 = true;
|
|
10516
|
-
|
|
10517
|
-
const ViewletSearchEvents = {
|
|
10518
|
-
__proto__: null,
|
|
10519
|
-
handleFocus: handleFocus$2,
|
|
10520
|
-
handleHeaderFocusIn,
|
|
10521
|
-
handleScrollBarPointerDown: handleScrollBarPointerDown$1,
|
|
10522
|
-
handleScrollBarPointerUp,
|
|
10523
|
-
handleScrollBarThumbPointerMove,
|
|
10524
|
-
returnValue: returnValue$4
|
|
10525
|
-
};
|
|
10526
|
-
|
|
10527
|
-
const focus$5 = state => {
|
|
10528
|
-
object(state);
|
|
10529
|
-
state.$ViewletSearchInput.focus();
|
|
10530
|
-
};
|
|
10531
|
-
const setValue = (state, value, key) => {
|
|
10532
|
-
if (key) {
|
|
10533
|
-
const $Element = state.$Viewlet.querySelector(key);
|
|
10534
|
-
if ($Element) {
|
|
10535
|
-
$Element.value = value;
|
|
10536
|
-
}
|
|
10537
|
-
return;
|
|
10538
|
-
}
|
|
10539
|
-
const {
|
|
10540
|
-
$ViewletSearchInput
|
|
10541
|
-
} = state;
|
|
10542
|
-
$ViewletSearchInput.value = value;
|
|
10543
|
-
};
|
|
10544
|
-
const setFocus = (state, selector) => {
|
|
10545
|
-
if (!selector) {
|
|
10546
|
-
return;
|
|
10547
|
-
}
|
|
10548
|
-
const {
|
|
10549
|
-
$Viewlet
|
|
10550
|
-
} = state;
|
|
10551
|
-
const $Element = $Viewlet.querySelector(selector);
|
|
10552
|
-
if ($Element) {
|
|
10553
|
-
$Element.focus();
|
|
10554
|
-
}
|
|
10555
|
-
};
|
|
10556
|
-
const dispose$3 = () => {};
|
|
10557
|
-
const Events$5 = ViewletSearchEvents;
|
|
10558
|
-
|
|
10559
|
-
const ViewletSearch = {
|
|
10560
|
-
__proto__: null,
|
|
10561
|
-
Events: Events$5,
|
|
10562
|
-
dispose: dispose$3,
|
|
10563
|
-
focus: focus$5,
|
|
10564
|
-
setFocus,
|
|
10565
|
-
setScrollBar: setScrollBar$2,
|
|
10566
|
-
setValue
|
|
10567
|
-
};
|
|
10568
|
-
|
|
10569
10474
|
const handleClickAction = (target, uid) => {
|
|
10570
10475
|
const index = getNodeIndex(target);
|
|
10571
10476
|
handleClickAction$2(uid, index, target.dataset.command);
|
|
@@ -10734,7 +10639,7 @@ const ViewletSimpleBrowser = {
|
|
|
10734
10639
|
|
|
10735
10640
|
const handleFocus = event => {
|
|
10736
10641
|
const uid = fromEvent(event);
|
|
10737
|
-
handleFocus$
|
|
10642
|
+
handleFocus$b(uid);
|
|
10738
10643
|
};
|
|
10739
10644
|
const getButtonIndex = $Node => {
|
|
10740
10645
|
let index = -1;
|
|
@@ -11300,7 +11205,7 @@ const handleMenuClick = event => {
|
|
|
11300
11205
|
};
|
|
11301
11206
|
const handleFocusIn = event => {
|
|
11302
11207
|
const uid = fromEvent(event);
|
|
11303
|
-
handleFocus$
|
|
11208
|
+
handleFocus$b(uid);
|
|
11304
11209
|
};
|
|
11305
11210
|
|
|
11306
11211
|
const ViewletTitleBarMenuBarEvents = {
|