@lvce-editor/renderer-process 10.56.0 → 10.58.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 +160 -343
- 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) => {
|
|
@@ -2237,14 +2237,14 @@ const handleDragOver$2 = forwardViewletCommand('handleDragOver');
|
|
|
2237
2237
|
forwardViewletCommand('handleDrop');
|
|
2238
2238
|
const handleDropFilePath = forwardViewletCommand('handleDropFilePath');
|
|
2239
2239
|
const handleDropFiles = forwardViewletCommand('handleDrop');
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2240
|
+
forwardViewletCommand('handleFeaturesClick');
|
|
2241
|
+
forwardViewletCommand('handleClickSize');
|
|
2242
|
+
forwardViewletCommand('handleClickDisable');
|
|
2243
|
+
forwardViewletCommand('handleClickUninstall');
|
|
2244
2244
|
forwardViewletCommand('handleFilterInput');
|
|
2245
|
-
const handleFocus$
|
|
2245
|
+
const handleFocus$b = forwardViewletCommand('handleFocus');
|
|
2246
2246
|
const handleFocusIn$4 = forwardViewletCommand('handleFocusIn');
|
|
2247
|
-
|
|
2247
|
+
forwardViewletCommand('handleIconError');
|
|
2248
2248
|
const handleImageError$1 = forwardViewletCommand('handleImageError');
|
|
2249
2249
|
const handleInput$7 = forwardViewletCommand('handleInput');
|
|
2250
2250
|
const handleKeyDown$5 = forwardViewletCommand('handleKeyDown');
|
|
@@ -2261,7 +2261,7 @@ const handlePointerDown$6 = forwardViewletCommand('handlePointerDown');
|
|
|
2261
2261
|
const handlePointerMove$1 = forwardViewletCommand('handlePointerMove');
|
|
2262
2262
|
forwardViewletCommand('handlePointerOver');
|
|
2263
2263
|
const handlePointerUp$1 = forwardViewletCommand('handlePointerUp');
|
|
2264
|
-
|
|
2264
|
+
forwardViewletCommand('handleReadmeContextMenu');
|
|
2265
2265
|
forwardViewletCommand('handleReplaceInput');
|
|
2266
2266
|
const handleResizerClick = forwardViewletCommand('handleResizerClick');
|
|
2267
2267
|
const handleResizerMove = forwardViewletCommand('handleResizerMove');
|
|
@@ -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');
|
|
@@ -2278,7 +2278,7 @@ forwardViewletCommand('handleSliderPointerMove');
|
|
|
2278
2278
|
const handleTabClick = forwardViewletCommand('handleTabClick');
|
|
2279
2279
|
const handleTabContextMenu = forwardViewletCommand('handleTabContextMenu');
|
|
2280
2280
|
const handleTabDrop = forwardViewletCommand('handleTabDrop');
|
|
2281
|
-
|
|
2281
|
+
forwardViewletCommand('handleTabsClick');
|
|
2282
2282
|
const handleTabsDragOver = forwardViewletCommand('handleTabsDragOver');
|
|
2283
2283
|
forwardViewletCommand('handleTabsPointerOut');
|
|
2284
2284
|
forwardViewletCommand('handleTabsPointerOver');
|
|
@@ -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$a = ViewletFindWidgetEvents;
|
|
2961
2961
|
|
|
2962
2962
|
const ViewletFindWidget = {
|
|
2963
2963
|
__proto__: null,
|
|
2964
|
-
Events: Events$
|
|
2964
|
+
Events: Events$a,
|
|
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';
|
|
@@ -2991,7 +2991,6 @@ const EditorWidgetError = 'EditorWidgetError';
|
|
|
2991
2991
|
const Empty = 'Empty';
|
|
2992
2992
|
const Error$2 = 'Error';
|
|
2993
2993
|
const Explorer = 'Explorer';
|
|
2994
|
-
const ExtensionDetail = 'ExtensionDetail';
|
|
2995
2994
|
const Extensions = 'Extensions';
|
|
2996
2995
|
const FindWidget = 'FindWidget';
|
|
2997
2996
|
const ImagePreview$1 = 'ImagePreview';
|
|
@@ -3008,7 +3007,6 @@ const QuickPick = 'QuickPick';
|
|
|
3008
3007
|
const References = 'References';
|
|
3009
3008
|
const RunAndDebug = 'Run And Debug';
|
|
3010
3009
|
const ScreenCapture = 'ScreenCapture';
|
|
3011
|
-
const Search = 'Search';
|
|
3012
3010
|
const SideBar$1 = 'SideBar';
|
|
3013
3011
|
const SimpleBrowser = 'SimpleBrowser';
|
|
3014
3012
|
const SourceControl = 'Source Control';
|
|
@@ -4510,14 +4508,14 @@ const create$A = (uri, top, left) => {
|
|
|
4510
4508
|
const update = (state, uri) => {
|
|
4511
4509
|
state.$ImagePreviewImage.uri = uri;
|
|
4512
4510
|
};
|
|
4513
|
-
const dispose$
|
|
4511
|
+
const dispose$g = state => {
|
|
4514
4512
|
remove$2(state.$ImagePreview);
|
|
4515
4513
|
};
|
|
4516
4514
|
|
|
4517
4515
|
const ImagePreview = {
|
|
4518
4516
|
__proto__: null,
|
|
4519
4517
|
create: create$A,
|
|
4520
|
-
dispose: dispose$
|
|
4518
|
+
dispose: dispose$g,
|
|
4521
4519
|
showError,
|
|
4522
4520
|
update
|
|
4523
4521
|
};
|
|
@@ -4525,7 +4523,7 @@ const ImagePreview = {
|
|
|
4525
4523
|
const name$p = 'ImagePreview';
|
|
4526
4524
|
const Commands$q = {
|
|
4527
4525
|
create: create$A,
|
|
4528
|
-
dispose: dispose$
|
|
4526
|
+
dispose: dispose$g,
|
|
4529
4527
|
showError: showError,
|
|
4530
4528
|
update: update
|
|
4531
4529
|
};
|
|
@@ -4767,7 +4765,7 @@ const createWithOptions = (type, message, options) => {
|
|
|
4767
4765
|
const $Notification = create$NotificationWithOptions(message, options);
|
|
4768
4766
|
append$1($Notification);
|
|
4769
4767
|
};
|
|
4770
|
-
const dispose$
|
|
4768
|
+
const dispose$f = id => {
|
|
4771
4769
|
// const $Notification = state.$Notifications
|
|
4772
4770
|
};
|
|
4773
4771
|
|
|
@@ -4777,7 +4775,7 @@ const name$h = 'Notification';
|
|
|
4777
4775
|
const Commands$i = {
|
|
4778
4776
|
create: create$z,
|
|
4779
4777
|
createWithOptions: createWithOptions,
|
|
4780
|
-
dispose: dispose$
|
|
4778
|
+
dispose: dispose$f
|
|
4781
4779
|
};
|
|
4782
4780
|
|
|
4783
4781
|
const Notification_ipc = {
|
|
@@ -4857,7 +4855,7 @@ const getElement = () => {
|
|
|
4857
4855
|
return state$2.$PreviousFocusElement;
|
|
4858
4856
|
};
|
|
4859
4857
|
|
|
4860
|
-
const focus$
|
|
4858
|
+
const focus$g = $Element => {
|
|
4861
4859
|
if ($Element === document.activeElement) {
|
|
4862
4860
|
return;
|
|
4863
4861
|
}
|
|
@@ -4879,7 +4877,6 @@ const FocusExplorerEditBox = 14;
|
|
|
4879
4877
|
const FocusLocationList = 17;
|
|
4880
4878
|
const FocusMenu = 18;
|
|
4881
4879
|
const FocusQuickPickInput = 20;
|
|
4882
|
-
const FocusSearchInput = 21;
|
|
4883
4880
|
const FocusSimpleBrowserInput = 23;
|
|
4884
4881
|
const FocusOutput = 28;
|
|
4885
4882
|
|
|
@@ -5069,7 +5066,7 @@ const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mous
|
|
|
5069
5066
|
state$1.$$Menus.push($Menu);
|
|
5070
5067
|
append$1($Menu);
|
|
5071
5068
|
if (level === 0) {
|
|
5072
|
-
focus$
|
|
5069
|
+
focus$g($Menu);
|
|
5073
5070
|
send('Focus.setFocus', FocusMenu);
|
|
5074
5071
|
}
|
|
5075
5072
|
};
|
|
@@ -5268,7 +5265,7 @@ const start = async (id, options) => {
|
|
|
5268
5265
|
throw new VError$1(error, `Failed to start screen capture`);
|
|
5269
5266
|
}
|
|
5270
5267
|
};
|
|
5271
|
-
const dispose$
|
|
5268
|
+
const dispose$e = async (id, options) => {
|
|
5272
5269
|
try {
|
|
5273
5270
|
number(id);
|
|
5274
5271
|
const captureStream = get$2(id);
|
|
@@ -5283,7 +5280,7 @@ const dispose$f = async (id, options) => {
|
|
|
5283
5280
|
|
|
5284
5281
|
const name$b = 'ScreenCapture';
|
|
5285
5282
|
const Commands$c = {
|
|
5286
|
-
dispose: dispose$
|
|
5283
|
+
dispose: dispose$e,
|
|
5287
5284
|
start: start
|
|
5288
5285
|
};
|
|
5289
5286
|
|
|
@@ -5943,8 +5940,6 @@ const load$1 = moduleId => {
|
|
|
5943
5940
|
return Promise.resolve().then(function () { return ViewletError; });
|
|
5944
5941
|
case Explorer:
|
|
5945
5942
|
return Promise.resolve().then(function () { return ViewletExplorer; });
|
|
5946
|
-
case ExtensionDetail:
|
|
5947
|
-
return Promise.resolve().then(function () { return ViewletExtensionDetail; });
|
|
5948
5943
|
case Extensions:
|
|
5949
5944
|
return Promise.resolve().then(function () { return ViewletExtensions; });
|
|
5950
5945
|
case FindWidget:
|
|
@@ -5973,8 +5968,6 @@ const load$1 = moduleId => {
|
|
|
5973
5968
|
return Promise.resolve().then(function () { return ViewletRunAndDebug; });
|
|
5974
5969
|
case ScreenCapture:
|
|
5975
5970
|
return Promise.resolve().then(function () { return ViewletScreenCapture; });
|
|
5976
|
-
case Search:
|
|
5977
|
-
return Promise.resolve().then(function () { return ViewletSearch; });
|
|
5978
5971
|
case SideBar$1:
|
|
5979
5972
|
return Promise.resolve().then(function () { return ViewletSideBar; });
|
|
5980
5973
|
case SimpleBrowser:
|
|
@@ -6092,7 +6085,7 @@ const invoke = (viewletId, method, ...args) => {
|
|
|
6092
6085
|
}
|
|
6093
6086
|
return instance.factory[method](instance.state, ...args);
|
|
6094
6087
|
};
|
|
6095
|
-
const focus$
|
|
6088
|
+
const focus$f = viewletId => {
|
|
6096
6089
|
const instance = state$6.instances[viewletId];
|
|
6097
6090
|
if (instance.factory?.setFocused) {
|
|
6098
6091
|
instance.factory.setFocused(instance.state, true);
|
|
@@ -6264,7 +6257,7 @@ const sendMultiple = commands => {
|
|
|
6264
6257
|
}
|
|
6265
6258
|
case 'Viewlet.dispose':
|
|
6266
6259
|
{
|
|
6267
|
-
dispose$
|
|
6260
|
+
dispose$d(viewletId);
|
|
6268
6261
|
break;
|
|
6269
6262
|
}
|
|
6270
6263
|
case 'Viewlet.setPatches':
|
|
@@ -6287,7 +6280,7 @@ const sendMultiple = commands => {
|
|
|
6287
6280
|
}
|
|
6288
6281
|
case 'Viewlet.focus':
|
|
6289
6282
|
{
|
|
6290
|
-
focus$
|
|
6283
|
+
focus$f(viewletId);
|
|
6291
6284
|
break;
|
|
6292
6285
|
}
|
|
6293
6286
|
case 'Viewlet.appendViewlet':
|
|
@@ -6334,7 +6327,7 @@ const sendMultiple = commands => {
|
|
|
6334
6327
|
}
|
|
6335
6328
|
}
|
|
6336
6329
|
};
|
|
6337
|
-
const dispose$
|
|
6330
|
+
const dispose$d = id => {
|
|
6338
6331
|
try {
|
|
6339
6332
|
number(id);
|
|
6340
6333
|
const {
|
|
@@ -6465,7 +6458,7 @@ const getFn = command => {
|
|
|
6465
6458
|
case 'Viewlet.show':
|
|
6466
6459
|
return show;
|
|
6467
6460
|
case 'Viewlet.dispose':
|
|
6468
|
-
return dispose$
|
|
6461
|
+
return dispose$d;
|
|
6469
6462
|
case 'Viewlet.setDom2':
|
|
6470
6463
|
return setDom2;
|
|
6471
6464
|
case 'Viewlet.setBounds':
|
|
@@ -6479,7 +6472,7 @@ const getFn = command => {
|
|
|
6479
6472
|
case 'Viewlet.createPlaceholder':
|
|
6480
6473
|
return createPlaceholder;
|
|
6481
6474
|
case 'Viewlet.focus':
|
|
6482
|
-
return focus$
|
|
6475
|
+
return focus$f;
|
|
6483
6476
|
case 'Viewlet.appendViewlet':
|
|
6484
6477
|
return appendViewlet;
|
|
6485
6478
|
case 'Viewlet.addKeyBindings':
|
|
@@ -6531,9 +6524,9 @@ const name$8 = 'Viewlet';
|
|
|
6531
6524
|
const Commands$9 = {
|
|
6532
6525
|
addKeyBindings: addKeyBindings,
|
|
6533
6526
|
appendViewlet: appendViewlet,
|
|
6534
|
-
dispose: dispose$
|
|
6527
|
+
dispose: dispose$d,
|
|
6535
6528
|
executeCommands: executeCommands,
|
|
6536
|
-
focus: focus$
|
|
6529
|
+
focus: focus$f,
|
|
6537
6530
|
focusElementByName: focusElementByName,
|
|
6538
6531
|
focusSelector: focusSelector,
|
|
6539
6532
|
handleError: handleError$6,
|
|
@@ -6883,7 +6876,7 @@ const setPort$2 = (uid, port, origin, portType) => {
|
|
|
6883
6876
|
params: [port, portType]
|
|
6884
6877
|
}, origin, [port]);
|
|
6885
6878
|
};
|
|
6886
|
-
const dispose$
|
|
6879
|
+
const dispose$c = uid => {
|
|
6887
6880
|
const $Iframe = get(uid);
|
|
6888
6881
|
$Iframe.remove();
|
|
6889
6882
|
remove(uid);
|
|
@@ -6896,7 +6889,7 @@ const Commands$1 = {
|
|
|
6896
6889
|
loadOnly: loadOnly,
|
|
6897
6890
|
appendOnly: appendOnly,
|
|
6898
6891
|
setPort: setPort$2,
|
|
6899
|
-
dispose: dispose$
|
|
6892
|
+
dispose: dispose$c
|
|
6900
6893
|
};
|
|
6901
6894
|
|
|
6902
6895
|
const WebView_ipc = {
|
|
@@ -6941,7 +6934,7 @@ const handleMouseDown$2 = event => {
|
|
|
6941
6934
|
const handleBlur$8 = () => {
|
|
6942
6935
|
return ['handleBlur'];
|
|
6943
6936
|
};
|
|
6944
|
-
const handleFocus$
|
|
6937
|
+
const handleFocus$9 = () => {
|
|
6945
6938
|
return ['handleFocus'];
|
|
6946
6939
|
};
|
|
6947
6940
|
|
|
@@ -6956,22 +6949,22 @@ const handleContextMenu$9 = event => {
|
|
|
6956
6949
|
} = event;
|
|
6957
6950
|
return ['handleContextMenu', button, clientX, clientY];
|
|
6958
6951
|
};
|
|
6959
|
-
const returnValue$
|
|
6952
|
+
const returnValue$5 = true;
|
|
6960
6953
|
|
|
6961
6954
|
const ViewletActivityBarEvents = {
|
|
6962
6955
|
__proto__: null,
|
|
6963
6956
|
handleBlur: handleBlur$8,
|
|
6964
6957
|
handleContextMenu: handleContextMenu$9,
|
|
6965
|
-
handleFocus: handleFocus$
|
|
6958
|
+
handleFocus: handleFocus$9,
|
|
6966
6959
|
handleMouseDown: handleMouseDown$2,
|
|
6967
|
-
returnValue: returnValue$
|
|
6960
|
+
returnValue: returnValue$5
|
|
6968
6961
|
};
|
|
6969
6962
|
|
|
6970
|
-
const Events$
|
|
6963
|
+
const Events$9 = ViewletActivityBarEvents;
|
|
6971
6964
|
|
|
6972
6965
|
const ViewletActivityBar = {
|
|
6973
6966
|
__proto__: null,
|
|
6974
|
-
Events: Events$
|
|
6967
|
+
Events: Events$9
|
|
6975
6968
|
};
|
|
6976
6969
|
|
|
6977
6970
|
const handleAudioError = event => {
|
|
@@ -6994,11 +6987,11 @@ const ViewletAudioEvents = {
|
|
|
6994
6987
|
handleAudioError
|
|
6995
6988
|
};
|
|
6996
6989
|
|
|
6997
|
-
const Events$
|
|
6990
|
+
const Events$8 = ViewletAudioEvents;
|
|
6998
6991
|
|
|
6999
6992
|
const ViewletAudio = {
|
|
7000
6993
|
__proto__: null,
|
|
7001
|
-
Events: Events$
|
|
6994
|
+
Events: Events$8
|
|
7002
6995
|
};
|
|
7003
6996
|
|
|
7004
6997
|
const create$v = () => {
|
|
@@ -7028,7 +7021,7 @@ const create$u = () => {
|
|
|
7028
7021
|
$Viewlet
|
|
7029
7022
|
};
|
|
7030
7023
|
};
|
|
7031
|
-
const dispose$
|
|
7024
|
+
const dispose$b = state => {};
|
|
7032
7025
|
const refresh$3 = () => {};
|
|
7033
7026
|
const setTime = (state, time) => {
|
|
7034
7027
|
object(state);
|
|
@@ -7039,7 +7032,7 @@ const setTime = (state, time) => {
|
|
|
7039
7032
|
const ViewletClock = {
|
|
7040
7033
|
__proto__: null,
|
|
7041
7034
|
create: create$u,
|
|
7042
|
-
dispose: dispose$
|
|
7035
|
+
dispose: dispose$b,
|
|
7043
7036
|
refresh: refresh$3,
|
|
7044
7037
|
setTime
|
|
7045
7038
|
};
|
|
@@ -7054,14 +7047,14 @@ const handleInput$4 = event => {
|
|
|
7054
7047
|
} = target;
|
|
7055
7048
|
handleInput$7(uid, value);
|
|
7056
7049
|
};
|
|
7057
|
-
const handleFocus$
|
|
7050
|
+
const handleFocus$8 = event => {
|
|
7058
7051
|
const uid = fromEvent(event);
|
|
7059
|
-
handleFocus$
|
|
7052
|
+
handleFocus$b(uid);
|
|
7060
7053
|
};
|
|
7061
7054
|
|
|
7062
7055
|
const ViewletDebugConsoleEvents = {
|
|
7063
7056
|
__proto__: null,
|
|
7064
|
-
handleFocus: handleFocus$
|
|
7057
|
+
handleFocus: handleFocus$8,
|
|
7065
7058
|
handleInput: handleInput$4
|
|
7066
7059
|
};
|
|
7067
7060
|
|
|
@@ -7109,7 +7102,7 @@ const ViewletDefineKeyBindingEvents = {
|
|
|
7109
7102
|
handleKeyDown: handleKeyDown$3
|
|
7110
7103
|
};
|
|
7111
7104
|
|
|
7112
|
-
const setValue$
|
|
7105
|
+
const setValue$2 = (state, value) => {
|
|
7113
7106
|
object(state);
|
|
7114
7107
|
string(value);
|
|
7115
7108
|
const {
|
|
@@ -7118,7 +7111,7 @@ const setValue$3 = (state, value) => {
|
|
|
7118
7111
|
const $Input = $Viewlet.querySelector('input');
|
|
7119
7112
|
$Input.value = value;
|
|
7120
7113
|
};
|
|
7121
|
-
const focus$
|
|
7114
|
+
const focus$e = state => {
|
|
7122
7115
|
const {
|
|
7123
7116
|
$Viewlet
|
|
7124
7117
|
} = state;
|
|
@@ -7129,8 +7122,8 @@ const focus$f = state => {
|
|
|
7129
7122
|
const ViewletDefineKeyBinding = {
|
|
7130
7123
|
__proto__: null,
|
|
7131
7124
|
Events: ViewletDefineKeyBindingEvents,
|
|
7132
|
-
focus: focus$
|
|
7133
|
-
setValue: setValue$
|
|
7125
|
+
focus: focus$e,
|
|
7126
|
+
setValue: setValue$2
|
|
7134
7127
|
};
|
|
7135
7128
|
|
|
7136
7129
|
const setMaskImage = ($Element, icon) => {
|
|
@@ -7272,13 +7265,13 @@ const handleWheel$2 = event => {
|
|
|
7272
7265
|
handleWheel$4(uid, deltaMode, deltaY);
|
|
7273
7266
|
};
|
|
7274
7267
|
|
|
7275
|
-
const handleScrollBarPointerDown$
|
|
7268
|
+
const handleScrollBarPointerDown$2 = event => {
|
|
7276
7269
|
// TODO
|
|
7277
7270
|
};
|
|
7278
7271
|
|
|
7279
7272
|
const ViewletDiffEditorEvents = {
|
|
7280
7273
|
__proto__: null,
|
|
7281
|
-
handleScrollBarPointerDown: handleScrollBarPointerDown$
|
|
7274
|
+
handleScrollBarPointerDown: handleScrollBarPointerDown$2,
|
|
7282
7275
|
handleWheel: handleWheel$2
|
|
7283
7276
|
};
|
|
7284
7277
|
|
|
@@ -7422,9 +7415,9 @@ const handleError$5 = event => {
|
|
|
7422
7415
|
const uid = fromEvent(event);
|
|
7423
7416
|
handleImageError$1(uid);
|
|
7424
7417
|
};
|
|
7425
|
-
const handleFocus$
|
|
7418
|
+
const handleFocus$7 = event => {
|
|
7426
7419
|
const uid = fromEvent(event);
|
|
7427
|
-
handleFocus$
|
|
7420
|
+
handleFocus$b(uid);
|
|
7428
7421
|
};
|
|
7429
7422
|
|
|
7430
7423
|
const create$p = () => {
|
|
@@ -7442,7 +7435,7 @@ const attachEvents$8 = state => {
|
|
|
7442
7435
|
[PointerDown]: handlePointerDown$5,
|
|
7443
7436
|
[PointerUp]: handlePointerUp,
|
|
7444
7437
|
[ContextMenu]: handleContextMenu$8,
|
|
7445
|
-
[FocusIn]: handleFocus$
|
|
7438
|
+
[FocusIn]: handleFocus$7
|
|
7446
7439
|
});
|
|
7447
7440
|
$Viewlet.addEventListener(Error$3, handleError$5, Capture);
|
|
7448
7441
|
$Viewlet.addEventListener(Wheel, handleWheel$1, Passive);
|
|
@@ -7484,7 +7477,7 @@ const create$o = () => {
|
|
|
7484
7477
|
$Viewlet
|
|
7485
7478
|
};
|
|
7486
7479
|
};
|
|
7487
|
-
const dispose$
|
|
7480
|
+
const dispose$a = state => {};
|
|
7488
7481
|
const refresh$2 = (state, context) => {
|
|
7489
7482
|
object(state);
|
|
7490
7483
|
string(context.content);
|
|
@@ -7494,7 +7487,7 @@ const refresh$2 = (state, context) => {
|
|
|
7494
7487
|
const ViewletEditorPlainText = {
|
|
7495
7488
|
__proto__: null,
|
|
7496
7489
|
create: create$o,
|
|
7497
|
-
dispose: dispose$
|
|
7490
|
+
dispose: dispose$a,
|
|
7498
7491
|
refresh: refresh$2
|
|
7499
7492
|
};
|
|
7500
7493
|
|
|
@@ -7612,7 +7605,7 @@ const toSimpleTouchEvent = event => {
|
|
|
7612
7605
|
|
|
7613
7606
|
// TODO tree shake out mobile support when targeting electron -> less code -> less event listeners -> less memory -> less cpu
|
|
7614
7607
|
|
|
7615
|
-
const handleFocus$
|
|
7608
|
+
const handleFocus$6 = event => {
|
|
7616
7609
|
return ['handleFocus'];
|
|
7617
7610
|
};
|
|
7618
7611
|
const handleMouseMove = event => {
|
|
@@ -7893,7 +7886,7 @@ const create$n = () => {
|
|
|
7893
7886
|
[CompositionStart]: handleCompositionStart,
|
|
7894
7887
|
[CompositionUpdate]: handleCompositionUpdate,
|
|
7895
7888
|
[CompositionEnd]: handleCompositionEnd,
|
|
7896
|
-
[Focus]: handleFocus$
|
|
7889
|
+
[Focus]: handleFocus$6,
|
|
7897
7890
|
[Blur]: handleBlur$6,
|
|
7898
7891
|
[Cut]: handleCut,
|
|
7899
7892
|
[Paste]: handlePaste,
|
|
@@ -8079,13 +8072,13 @@ const hideOverlayMessage = state => {
|
|
|
8079
8072
|
}
|
|
8080
8073
|
};
|
|
8081
8074
|
const setFocused$1 = setFocused$2;
|
|
8082
|
-
const focus$
|
|
8075
|
+
const focus$d = setFocused$2;
|
|
8083
8076
|
const setDecorationsDom = setDecorationsDom$1;
|
|
8084
8077
|
|
|
8085
8078
|
const ViewletEditorText = {
|
|
8086
8079
|
__proto__: null,
|
|
8087
8080
|
create: create$m,
|
|
8088
|
-
focus: focus$
|
|
8081
|
+
focus: focus$d,
|
|
8089
8082
|
handleError: handleError$4,
|
|
8090
8083
|
hideOverlayMessage,
|
|
8091
8084
|
highlightAsLink,
|
|
@@ -8137,14 +8130,14 @@ const create$k = () => {
|
|
|
8137
8130
|
};
|
|
8138
8131
|
};
|
|
8139
8132
|
const refresh$1 = (state, context) => {};
|
|
8140
|
-
const focus$
|
|
8141
|
-
const dispose$
|
|
8133
|
+
const focus$c = state => {};
|
|
8134
|
+
const dispose$9 = state => {};
|
|
8142
8135
|
|
|
8143
8136
|
const ViewletEmpty = {
|
|
8144
8137
|
__proto__: null,
|
|
8145
8138
|
create: create$k,
|
|
8146
|
-
dispose: dispose$
|
|
8147
|
-
focus: focus$
|
|
8139
|
+
dispose: dispose$9,
|
|
8140
|
+
focus: focus$c,
|
|
8148
8141
|
refresh: refresh$1
|
|
8149
8142
|
};
|
|
8150
8143
|
|
|
@@ -8295,7 +8288,7 @@ const handleDrop$1 = event => {
|
|
|
8295
8288
|
|
|
8296
8289
|
// TODO drag and drop should be loaded on demand
|
|
8297
8290
|
|
|
8298
|
-
const handleFocus$
|
|
8291
|
+
const handleFocus$5 = event => {
|
|
8299
8292
|
const {
|
|
8300
8293
|
target,
|
|
8301
8294
|
isTrusted
|
|
@@ -8304,7 +8297,7 @@ const handleFocus$6 = event => {
|
|
|
8304
8297
|
return;
|
|
8305
8298
|
}
|
|
8306
8299
|
const uid = fromEvent(event);
|
|
8307
|
-
handleFocus$
|
|
8300
|
+
handleFocus$b(uid);
|
|
8308
8301
|
};
|
|
8309
8302
|
const handleBlur$5 = event => {
|
|
8310
8303
|
const uid = fromEvent(event);
|
|
@@ -8379,7 +8372,7 @@ const ViewletExplorerEvents = {
|
|
|
8379
8372
|
handleDragStart: handleDragStart$1,
|
|
8380
8373
|
handleDrop: handleDrop$1,
|
|
8381
8374
|
handleEditingInput,
|
|
8382
|
-
handleFocus: handleFocus$
|
|
8375
|
+
handleFocus: handleFocus$5,
|
|
8383
8376
|
handleMouseEnter,
|
|
8384
8377
|
handleMouseLeave,
|
|
8385
8378
|
handlePointerDown: handlePointerDown$4,
|
|
@@ -8396,7 +8389,7 @@ const create$i = () => {
|
|
|
8396
8389
|
$Viewlet
|
|
8397
8390
|
};
|
|
8398
8391
|
};
|
|
8399
|
-
const Events$
|
|
8392
|
+
const Events$7 = ViewletExplorerEvents;
|
|
8400
8393
|
const handleError$3 = (state, message) => {
|
|
8401
8394
|
object(state);
|
|
8402
8395
|
string(message);
|
|
@@ -8413,7 +8406,7 @@ const focusInput = (state, id) => {
|
|
|
8413
8406
|
$Input.focus();
|
|
8414
8407
|
send('Focus.setFocus', FocusExplorerEditBox);
|
|
8415
8408
|
};
|
|
8416
|
-
const dispose$
|
|
8409
|
+
const dispose$8 = state => {};
|
|
8417
8410
|
const setDropTargets = (state, oldDropTargets, newDropTargets) => {
|
|
8418
8411
|
// TODO use virtual dom for this
|
|
8419
8412
|
const {
|
|
@@ -8437,130 +8430,45 @@ const setDropTargets = (state, oldDropTargets, newDropTargets) => {
|
|
|
8437
8430
|
|
|
8438
8431
|
const ViewletExplorer = {
|
|
8439
8432
|
__proto__: null,
|
|
8440
|
-
Events: Events$
|
|
8433
|
+
Events: Events$7,
|
|
8441
8434
|
create: create$i,
|
|
8442
|
-
dispose: dispose$
|
|
8435
|
+
dispose: dispose$8,
|
|
8443
8436
|
focusInput,
|
|
8444
8437
|
handleError: handleError$3,
|
|
8445
8438
|
setDropTargets
|
|
8446
8439
|
};
|
|
8447
8440
|
|
|
8448
|
-
const handleIconError = event => {
|
|
8449
|
-
const uid = fromEvent(event);
|
|
8450
|
-
handleIconError$1(uid);
|
|
8451
|
-
};
|
|
8452
|
-
const isLink = $Element => {
|
|
8453
|
-
return $Element.nodeName === 'A';
|
|
8454
|
-
};
|
|
8455
|
-
const isImage = $Element => {
|
|
8456
|
-
return $Element.nodeName === 'IMG';
|
|
8457
|
-
};
|
|
8458
|
-
const handleReadmeContextMenu = event => {
|
|
8459
|
-
preventDefault(event);
|
|
8460
|
-
const {
|
|
8461
|
-
clientX,
|
|
8462
|
-
clientY,
|
|
8463
|
-
target
|
|
8464
|
-
} = event;
|
|
8465
|
-
const uid = fromEvent(event);
|
|
8466
|
-
const props = Object.create(null);
|
|
8467
|
-
if (isLink(target)) {
|
|
8468
|
-
props.isLink = true;
|
|
8469
|
-
props.url = target.href;
|
|
8470
|
-
} else if (isImage(target)) {
|
|
8471
|
-
props.isImage = true;
|
|
8472
|
-
props.url = target.src;
|
|
8473
|
-
}
|
|
8474
|
-
handleReadmeContextMenu$1(uid, clientX, clientY, props);
|
|
8475
|
-
};
|
|
8476
|
-
const handleTabsClick = event => {
|
|
8477
|
-
preventDefault(event);
|
|
8478
|
-
const {
|
|
8479
|
-
target
|
|
8480
|
-
} = event;
|
|
8481
|
-
const {
|
|
8482
|
-
name
|
|
8483
|
-
} = target;
|
|
8484
|
-
const uid = fromEvent(event);
|
|
8485
|
-
handleTabsClick$1(uid, name);
|
|
8486
|
-
};
|
|
8487
|
-
const handleFeaturesClick = event => {
|
|
8488
|
-
preventDefault(event);
|
|
8489
|
-
const {
|
|
8490
|
-
target
|
|
8491
|
-
} = event;
|
|
8492
|
-
const {
|
|
8493
|
-
name
|
|
8494
|
-
} = target;
|
|
8495
|
-
const uid = fromEvent(event);
|
|
8496
|
-
handleFeaturesClick$1(uid, name);
|
|
8497
|
-
};
|
|
8498
|
-
const handleClickSize = event => {
|
|
8499
|
-
preventDefault(event);
|
|
8500
|
-
const uid = fromEvent(event);
|
|
8501
|
-
handleClickSize$1(uid);
|
|
8502
|
-
};
|
|
8503
|
-
const handleClickDisable = event => {
|
|
8504
|
-
preventDefault(event);
|
|
8505
|
-
const uid = fromEvent(event);
|
|
8506
|
-
handleClickDisable$1(uid);
|
|
8507
|
-
};
|
|
8508
|
-
const handleClickUninstall = event => {
|
|
8509
|
-
preventDefault(event);
|
|
8510
|
-
const uid = fromEvent(event);
|
|
8511
|
-
handleClickUninstall$1(uid);
|
|
8512
|
-
};
|
|
8513
|
-
|
|
8514
|
-
const ViewletExtensionDetailEvents = {
|
|
8515
|
-
__proto__: null,
|
|
8516
|
-
handleClickDisable,
|
|
8517
|
-
handleClickSize,
|
|
8518
|
-
handleClickUninstall,
|
|
8519
|
-
handleFeaturesClick,
|
|
8520
|
-
handleIconError,
|
|
8521
|
-
handleReadmeContextMenu,
|
|
8522
|
-
handleTabsClick
|
|
8523
|
-
};
|
|
8524
|
-
|
|
8525
|
-
const Events$8 = ViewletExtensionDetailEvents;
|
|
8526
|
-
|
|
8527
|
-
const ViewletExtensionDetail = {
|
|
8528
|
-
__proto__: null,
|
|
8529
|
-
Events: Events$8,
|
|
8530
|
-
setSize
|
|
8531
|
-
};
|
|
8532
|
-
|
|
8533
8441
|
const Polite = 'polite';
|
|
8534
8442
|
|
|
8535
|
-
const handleScrollBarThumbPointerMove
|
|
8443
|
+
const handleScrollBarThumbPointerMove = event => {
|
|
8536
8444
|
const {
|
|
8537
8445
|
clientY
|
|
8538
8446
|
} = event;
|
|
8539
8447
|
const uid = fromEvent(event);
|
|
8540
|
-
handleScrollBarThumbPointerMove$
|
|
8448
|
+
handleScrollBarThumbPointerMove$2(uid, clientY);
|
|
8541
8449
|
};
|
|
8542
8450
|
const handleScrollBarPointerCaptureLost = event => {
|
|
8543
8451
|
const {
|
|
8544
8452
|
target,
|
|
8545
8453
|
pointerId
|
|
8546
8454
|
} = event;
|
|
8547
|
-
stopTracking(target, pointerId, handleScrollBarThumbPointerMove
|
|
8455
|
+
stopTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerCaptureLost);
|
|
8548
8456
|
const uid = fromEvent(event);
|
|
8549
8457
|
handleScrollBarCaptureLost(uid);
|
|
8550
8458
|
};
|
|
8551
|
-
const handleScrollBarPointerDown$
|
|
8459
|
+
const handleScrollBarPointerDown$1 = event => {
|
|
8552
8460
|
const {
|
|
8553
8461
|
target,
|
|
8554
8462
|
pointerId,
|
|
8555
8463
|
clientY
|
|
8556
8464
|
} = event;
|
|
8557
|
-
startTracking(target, pointerId, handleScrollBarThumbPointerMove
|
|
8465
|
+
startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerCaptureLost);
|
|
8558
8466
|
const uid = fromEvent(event);
|
|
8559
8467
|
handleScrollBarClick(uid, clientY);
|
|
8560
8468
|
};
|
|
8561
|
-
const handleFocus$
|
|
8469
|
+
const handleFocus$4 = event => {
|
|
8562
8470
|
const uid = fromEvent(event);
|
|
8563
|
-
handleFocus$
|
|
8471
|
+
handleFocus$b(uid);
|
|
8564
8472
|
};
|
|
8565
8473
|
const handlePointerDown$3 = event => {
|
|
8566
8474
|
const {
|
|
@@ -8674,7 +8582,7 @@ const attachEvents$7 = state => {
|
|
|
8674
8582
|
attachEvents$c($ListItems, {
|
|
8675
8583
|
[ContextMenu]: handleContextMenu$6,
|
|
8676
8584
|
[PointerDown]: handlePointerDown$3,
|
|
8677
|
-
[Focus]: handleFocus$
|
|
8585
|
+
[Focus]: handleFocus$4,
|
|
8678
8586
|
[Scroll]: handleScroll
|
|
8679
8587
|
});
|
|
8680
8588
|
$ListItems.addEventListener(TouchStart, handleTouchStart, Passive);
|
|
@@ -8682,10 +8590,10 @@ const attachEvents$7 = state => {
|
|
|
8682
8590
|
$ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
|
|
8683
8591
|
$ListItems.addEventListener(Wheel, handleWheel$2, Passive);
|
|
8684
8592
|
attachEvents$c($ScrollBar, {
|
|
8685
|
-
[PointerDown]: handleScrollBarPointerDown$
|
|
8593
|
+
[PointerDown]: handleScrollBarPointerDown$1
|
|
8686
8594
|
});
|
|
8687
8595
|
};
|
|
8688
|
-
const focus$
|
|
8596
|
+
const focus$b = state => {
|
|
8689
8597
|
object(state);
|
|
8690
8598
|
state.$InputBox.focus();
|
|
8691
8599
|
};
|
|
@@ -8734,7 +8642,7 @@ const setExtensionsDom = (state, dom) => {
|
|
|
8734
8642
|
// @ts-expect-error
|
|
8735
8643
|
$ListItems.replaceChildren(...$Root.firstChild.childNodes);
|
|
8736
8644
|
};
|
|
8737
|
-
const dispose$
|
|
8645
|
+
const dispose$7 = () => {};
|
|
8738
8646
|
const openSuggest = state => {
|
|
8739
8647
|
// TODO maybe cache getBoundingClientRect (though it is not a bottleneck right now)
|
|
8740
8648
|
// TODO getBoundingClientRect should not be needed, all positions should be known already in renderer worker
|
|
@@ -8773,8 +8681,8 @@ const ViewletExtensions = {
|
|
|
8773
8681
|
attachEvents: attachEvents$7,
|
|
8774
8682
|
closeSuggest,
|
|
8775
8683
|
create: create$h,
|
|
8776
|
-
dispose: dispose$
|
|
8777
|
-
focus: focus$
|
|
8684
|
+
dispose: dispose$7,
|
|
8685
|
+
focus: focus$b,
|
|
8778
8686
|
handleError: handleError$2,
|
|
8779
8687
|
openSuggest,
|
|
8780
8688
|
setContentHeight,
|
|
@@ -8806,7 +8714,7 @@ const ViewletLocationsEvents = {
|
|
|
8806
8714
|
handleLocationsMouseDown
|
|
8807
8715
|
};
|
|
8808
8716
|
|
|
8809
|
-
const Events$
|
|
8717
|
+
const Events$6 = ViewletLocationsEvents;
|
|
8810
8718
|
const setFocusedIndex$3 = (state, oldFocusedIndex, newFocusedIndex) => {
|
|
8811
8719
|
const {
|
|
8812
8720
|
$Viewlet
|
|
@@ -8830,7 +8738,7 @@ const handleError$1 = (state, message) => {
|
|
|
8830
8738
|
} = state;
|
|
8831
8739
|
$Message.textContent = message;
|
|
8832
8740
|
};
|
|
8833
|
-
const focus$
|
|
8741
|
+
const focus$a = state => {
|
|
8834
8742
|
const {
|
|
8835
8743
|
$Locations
|
|
8836
8744
|
} = state;
|
|
@@ -8841,8 +8749,8 @@ const focus$b = state => {
|
|
|
8841
8749
|
|
|
8842
8750
|
const ViewletImplementations = {
|
|
8843
8751
|
__proto__: null,
|
|
8844
|
-
Events: Events$
|
|
8845
|
-
focus: focus$
|
|
8752
|
+
Events: Events$6,
|
|
8753
|
+
focus: focus$a,
|
|
8846
8754
|
handleError: handleError$1,
|
|
8847
8755
|
setFocusedIndex: setFocusedIndex$3
|
|
8848
8756
|
};
|
|
@@ -8901,7 +8809,7 @@ const ViewletkeyBindingsEvents = {
|
|
|
8901
8809
|
handleResizerPointerUp
|
|
8902
8810
|
};
|
|
8903
8811
|
|
|
8904
|
-
const setValue$
|
|
8812
|
+
const setValue$1 = (state, value) => {
|
|
8905
8813
|
const {
|
|
8906
8814
|
$Viewlet
|
|
8907
8815
|
} = state;
|
|
@@ -8919,15 +8827,15 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
|
|
|
8919
8827
|
$Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
|
|
8920
8828
|
$Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
|
|
8921
8829
|
};
|
|
8922
|
-
const Events$
|
|
8830
|
+
const Events$5 = ViewletkeyBindingsEvents;
|
|
8923
8831
|
|
|
8924
8832
|
const ViewletKeyBindings = {
|
|
8925
8833
|
__proto__: null,
|
|
8926
|
-
Events: Events$
|
|
8834
|
+
Events: Events$5,
|
|
8927
8835
|
setColumnWidths,
|
|
8928
8836
|
setScrollBar: setScrollBar$2,
|
|
8929
8837
|
setSize,
|
|
8930
|
-
setValue: setValue$
|
|
8838
|
+
setValue: setValue$1
|
|
8931
8839
|
};
|
|
8932
8840
|
|
|
8933
8841
|
const getSashId = $Target => {
|
|
@@ -9365,7 +9273,7 @@ const handleSashDoubleClick$1 = id => {
|
|
|
9365
9273
|
const handleResize$1 = (width, height) => {
|
|
9366
9274
|
send('Layout.handleResize', width, height);
|
|
9367
9275
|
};
|
|
9368
|
-
const handleFocus$
|
|
9276
|
+
const handleFocus$3 = () => {
|
|
9369
9277
|
send('Layout.handleFocus');
|
|
9370
9278
|
};
|
|
9371
9279
|
const handleBlur$4 = () => {
|
|
@@ -9411,8 +9319,8 @@ const handleResize = () => {
|
|
|
9411
9319
|
} = window;
|
|
9412
9320
|
handleResize$1(innerWidth, innerHeight);
|
|
9413
9321
|
};
|
|
9414
|
-
const handleFocus$
|
|
9415
|
-
handleFocus$
|
|
9322
|
+
const handleFocus$2 = () => {
|
|
9323
|
+
handleFocus$3();
|
|
9416
9324
|
};
|
|
9417
9325
|
const handleBlur$3 = () => {
|
|
9418
9326
|
handleBlur$4();
|
|
@@ -9456,7 +9364,7 @@ const attachEvents$6 = state => {
|
|
|
9456
9364
|
});
|
|
9457
9365
|
attachEvents$c(window, {
|
|
9458
9366
|
[Resize]: handleResize,
|
|
9459
|
-
[Focus]: handleFocus$
|
|
9367
|
+
[Focus]: handleFocus$2,
|
|
9460
9368
|
[Blur]: handleBlur$3,
|
|
9461
9369
|
[KeyDown]: handleKeyDown$1,
|
|
9462
9370
|
[KeyUp]: handleKeyUp
|
|
@@ -9527,7 +9435,7 @@ const attachEvents$5 = state => {
|
|
|
9527
9435
|
[ContextMenu]: handleContextMenu$5
|
|
9528
9436
|
});
|
|
9529
9437
|
};
|
|
9530
|
-
const dispose$
|
|
9438
|
+
const dispose$6 = state => {};
|
|
9531
9439
|
const replaceEditor = (state, id, uri, languageId) => {};
|
|
9532
9440
|
const addEditor = (state, id, uri, languageId) => {};
|
|
9533
9441
|
|
|
@@ -9549,7 +9457,7 @@ const closeViewletAndTab = (state, index) => {
|
|
|
9549
9457
|
state.$MainTabs.remove();
|
|
9550
9458
|
state.$MainTabs = undefined;
|
|
9551
9459
|
};
|
|
9552
|
-
const focus$
|
|
9460
|
+
const focus$9 = () => {};
|
|
9553
9461
|
const highlightDragOver = state => {
|
|
9554
9462
|
const {
|
|
9555
9463
|
$MainTabs
|
|
@@ -9595,8 +9503,8 @@ const ViewletMain = {
|
|
|
9595
9503
|
closeAllViewlets,
|
|
9596
9504
|
closeViewletAndTab,
|
|
9597
9505
|
create: create$f,
|
|
9598
|
-
dispose: dispose$
|
|
9599
|
-
focus: focus$
|
|
9506
|
+
dispose: dispose$6,
|
|
9507
|
+
focus: focus$9,
|
|
9600
9508
|
highlightDragOver,
|
|
9601
9509
|
openEditor,
|
|
9602
9510
|
replaceEditor,
|
|
@@ -9758,9 +9666,9 @@ const handleError = (state, error) => {
|
|
|
9758
9666
|
string(error);
|
|
9759
9667
|
state.content.textContent = error;
|
|
9760
9668
|
};
|
|
9761
|
-
const focus$
|
|
9669
|
+
const focus$8 = state => {
|
|
9762
9670
|
object(state);
|
|
9763
|
-
focus$
|
|
9671
|
+
focus$g(state.$ViewletOutputContent);
|
|
9764
9672
|
send('Focus.setFocus', FocusOutput);
|
|
9765
9673
|
};
|
|
9766
9674
|
|
|
@@ -9773,15 +9681,15 @@ const disposeFindWidget = state => {
|
|
|
9773
9681
|
return;
|
|
9774
9682
|
}
|
|
9775
9683
|
};
|
|
9776
|
-
const dispose$
|
|
9684
|
+
const dispose$5 = state => {};
|
|
9777
9685
|
|
|
9778
9686
|
const ViewletOutput = {
|
|
9779
9687
|
__proto__: null,
|
|
9780
9688
|
clear,
|
|
9781
9689
|
create: create$d,
|
|
9782
|
-
dispose: dispose$
|
|
9690
|
+
dispose: dispose$5,
|
|
9783
9691
|
disposeFindWidget,
|
|
9784
|
-
focus: focus$
|
|
9692
|
+
focus: focus$8,
|
|
9785
9693
|
handleError,
|
|
9786
9694
|
openFindWidget,
|
|
9787
9695
|
setText
|
|
@@ -9893,14 +9801,14 @@ const setTabsDom$1 = (state, dom) => {
|
|
|
9893
9801
|
};
|
|
9894
9802
|
|
|
9895
9803
|
// TODO add test for focus method
|
|
9896
|
-
const focus$
|
|
9804
|
+
const focus$7 = state => {
|
|
9897
9805
|
object(state);
|
|
9898
9806
|
if (!state.currentViewlet) {
|
|
9899
9807
|
return;
|
|
9900
9808
|
}
|
|
9901
9809
|
state.currentViewlet.factory.focus(state.currentViewlet.state);
|
|
9902
9810
|
};
|
|
9903
|
-
const dispose$
|
|
9811
|
+
const dispose$4 = state => {
|
|
9904
9812
|
if (state.$PanelContent) {
|
|
9905
9813
|
state.$PanelContent.remove();
|
|
9906
9814
|
state.$PanelContent = undefined;
|
|
@@ -9945,8 +9853,8 @@ const ViewletPanel = {
|
|
|
9945
9853
|
__proto__: null,
|
|
9946
9854
|
attachEvents: attachEvents$3,
|
|
9947
9855
|
create: create$c,
|
|
9948
|
-
dispose: dispose$
|
|
9949
|
-
focus: focus$
|
|
9856
|
+
dispose: dispose$4,
|
|
9857
|
+
focus: focus$7,
|
|
9950
9858
|
setActionsDom: setActionsDom$1,
|
|
9951
9859
|
setSelectedIndex,
|
|
9952
9860
|
setTabsDom: setTabsDom$1
|
|
@@ -9980,7 +9888,7 @@ const handleFilterInput = event => {
|
|
|
9980
9888
|
const handleClearFilterClick = event => {
|
|
9981
9889
|
return ['clearFilter'];
|
|
9982
9890
|
};
|
|
9983
|
-
const returnValue$
|
|
9891
|
+
const returnValue$4 = true;
|
|
9984
9892
|
|
|
9985
9893
|
const ViewletProblemsEvents = {
|
|
9986
9894
|
__proto__: null,
|
|
@@ -9988,7 +9896,7 @@ const ViewletProblemsEvents = {
|
|
|
9988
9896
|
handleContextMenu: handleContextMenu$4,
|
|
9989
9897
|
handleFilterInput,
|
|
9990
9898
|
handlePointerDown: handlePointerDown$1,
|
|
9991
|
-
returnValue: returnValue$
|
|
9899
|
+
returnValue: returnValue$4
|
|
9992
9900
|
};
|
|
9993
9901
|
|
|
9994
9902
|
const setFocusedIndex$2 = (state, focusedIndex) => {
|
|
@@ -10000,7 +9908,7 @@ const setFocusedIndex$2 = (state, focusedIndex) => {
|
|
|
10000
9908
|
$Viewlet.focus();
|
|
10001
9909
|
}
|
|
10002
9910
|
};
|
|
10003
|
-
const focus$
|
|
9911
|
+
const focus$6 = state => {
|
|
10004
9912
|
const {
|
|
10005
9913
|
$Viewlet
|
|
10006
9914
|
} = state;
|
|
@@ -10011,7 +9919,7 @@ const ViewletProblems = {
|
|
|
10011
9919
|
__proto__: null,
|
|
10012
9920
|
EventMap: ViewletProblemsEvents,
|
|
10013
9921
|
Events: ViewletProblemsEvents,
|
|
10014
|
-
focus: focus$
|
|
9922
|
+
focus: focus$6,
|
|
10015
9923
|
setFocusedIndex: setFocusedIndex$2
|
|
10016
9924
|
};
|
|
10017
9925
|
|
|
@@ -10157,7 +10065,7 @@ const focusElement = $Element => {
|
|
|
10157
10065
|
$Element.focus();
|
|
10158
10066
|
}
|
|
10159
10067
|
};
|
|
10160
|
-
const focus$
|
|
10068
|
+
const focus$5 = state => {
|
|
10161
10069
|
const {
|
|
10162
10070
|
$QuickPickInput
|
|
10163
10071
|
} = state;
|
|
@@ -10244,13 +10152,13 @@ const showNoResults = (state, noResults, unfocusIndex) => {
|
|
|
10244
10152
|
// TODO remove from dom vs display none which should be used?
|
|
10245
10153
|
|
|
10246
10154
|
// TODO have common widgets container for all widgets (this, notifications, context menu)
|
|
10247
|
-
const dispose$
|
|
10155
|
+
const dispose$3 = state => {
|
|
10248
10156
|
const {
|
|
10249
10157
|
$QuickPickInput
|
|
10250
10158
|
} = state;
|
|
10251
10159
|
$QuickPickInput.onblur = null;
|
|
10252
10160
|
};
|
|
10253
|
-
const setValue
|
|
10161
|
+
const setValue = (state, value) => {
|
|
10254
10162
|
const {
|
|
10255
10163
|
$QuickPickInput
|
|
10256
10164
|
} = state;
|
|
@@ -10281,22 +10189,22 @@ const ViewletQuickPick = {
|
|
|
10281
10189
|
__proto__: null,
|
|
10282
10190
|
attachEvents: attachEvents$2,
|
|
10283
10191
|
create: create$a,
|
|
10284
|
-
dispose: dispose$
|
|
10285
|
-
focus: focus$
|
|
10192
|
+
dispose: dispose$3,
|
|
10193
|
+
focus: focus$5,
|
|
10286
10194
|
hideStatus,
|
|
10287
10195
|
noop,
|
|
10288
10196
|
setCursorOffset,
|
|
10289
10197
|
setFocusedIndex: setFocusedIndex$1,
|
|
10290
10198
|
setItemsDom,
|
|
10291
10199
|
setItemsHeight,
|
|
10292
|
-
setValue
|
|
10200
|
+
setValue,
|
|
10293
10201
|
showNoResults
|
|
10294
10202
|
};
|
|
10295
10203
|
|
|
10296
10204
|
const ViewletReferences = {
|
|
10297
10205
|
__proto__: null,
|
|
10298
|
-
Events: Events$
|
|
10299
|
-
focus: focus$
|
|
10206
|
+
Events: Events$6,
|
|
10207
|
+
focus: focus$a,
|
|
10300
10208
|
handleError: handleError$1,
|
|
10301
10209
|
setFocusedIndex: setFocusedIndex$3
|
|
10302
10210
|
};
|
|
@@ -10475,97 +10383,6 @@ const ViewletScreenCapture = {
|
|
|
10475
10383
|
setScreenCapture
|
|
10476
10384
|
};
|
|
10477
10385
|
|
|
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
10386
|
const handleClickAction = (target, uid) => {
|
|
10570
10387
|
const index = getNodeIndex(target);
|
|
10571
10388
|
handleClickAction$2(uid, index, target.dataset.command);
|
|
@@ -10734,7 +10551,7 @@ const ViewletSimpleBrowser = {
|
|
|
10734
10551
|
|
|
10735
10552
|
const handleFocus = event => {
|
|
10736
10553
|
const uid = fromEvent(event);
|
|
10737
|
-
handleFocus$
|
|
10554
|
+
handleFocus$b(uid);
|
|
10738
10555
|
};
|
|
10739
10556
|
const getButtonIndex = $Node => {
|
|
10740
10557
|
let index = -1;
|
|
@@ -11300,7 +11117,7 @@ const handleMenuClick = event => {
|
|
|
11300
11117
|
};
|
|
11301
11118
|
const handleFocusIn = event => {
|
|
11302
11119
|
const uid = fromEvent(event);
|
|
11303
|
-
handleFocus$
|
|
11120
|
+
handleFocus$b(uid);
|
|
11304
11121
|
};
|
|
11305
11122
|
|
|
11306
11123
|
const ViewletTitleBarMenuBarEvents = {
|