dockview-core 6.6.0 → 7.0.2
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/README.md +8 -1
- package/dist/cjs/api/component.api.d.ts +42 -21
- package/dist/cjs/api/component.api.js +111 -20
- package/dist/cjs/api/dockviewGroupPanelApi.d.ts +23 -8
- package/dist/cjs/api/dockviewGroupPanelApi.js +23 -0
- package/dist/cjs/api/dockviewPanelApi.d.ts +4 -3
- package/dist/cjs/api/dockviewPanelApi.js +8 -0
- package/dist/cjs/dnd/droptarget.d.ts +8 -0
- package/dist/cjs/dnd/droptarget.js +28 -0
- package/dist/cjs/dockview/accessibilityMessages.d.ts +32 -0
- package/dist/cjs/dockview/accessibilityMessages.js +51 -0
- package/dist/cjs/dockview/allModules.d.ts +8 -0
- package/dist/cjs/dockview/allModules.js +25 -0
- package/dist/cjs/dockview/components/panel/content.d.ts +2 -0
- package/dist/cjs/dockview/components/panel/content.js +35 -4
- package/dist/cjs/dockview/components/tab/tab.js +33 -5
- package/dist/cjs/dockview/components/titlebar/floatingTitleBar.d.ts +35 -0
- package/dist/cjs/dockview/components/titlebar/floatingTitleBar.js +95 -0
- package/dist/cjs/dockview/components/titlebar/groupDragSource.d.ts +52 -0
- package/dist/cjs/dockview/components/titlebar/groupDragSource.js +218 -0
- package/dist/cjs/dockview/components/titlebar/tabGroupIndicator.d.ts +2 -1
- package/dist/cjs/dockview/components/titlebar/tabGroupIndicator.js +31 -24
- package/dist/cjs/dockview/components/titlebar/tabGroups.js +1 -0
- package/dist/cjs/dockview/components/titlebar/tabs.d.ts +12 -0
- package/dist/cjs/dockview/components/titlebar/tabs.js +105 -2
- package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +4 -0
- package/dist/cjs/dockview/components/titlebar/tabsContainer.js +13 -3
- package/dist/cjs/dockview/components/titlebar/voidContainer.d.ts +1 -4
- package/dist/cjs/dockview/components/titlebar/voidContainer.js +31 -155
- package/dist/cjs/dockview/dockviewComponent.d.ts +299 -44
- package/dist/cjs/dockview/dockviewComponent.js +1787 -993
- package/dist/cjs/dockview/dockviewFloatingGroupPanel.d.ts +33 -2
- package/dist/cjs/dockview/dockviewFloatingGroupPanel.js +39 -3
- package/dist/cjs/dockview/dockviewGroupPanel.d.ts +0 -1
- package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +36 -14
- package/dist/cjs/dockview/dockviewGroupPanelModel.js +133 -101
- package/dist/cjs/dockview/dockviewPanel.d.ts +2 -2
- package/dist/cjs/dockview/edgeGroupService.d.ts +38 -0
- package/dist/cjs/dockview/edgeGroupService.js +128 -0
- package/dist/cjs/dockview/floatingGroupService.d.ts +37 -0
- package/dist/cjs/dockview/floatingGroupService.js +231 -0
- package/dist/cjs/dockview/headerActionsService.d.ts +32 -0
- package/dist/cjs/dockview/headerActionsService.js +149 -0
- package/dist/cjs/dockview/liveRegionService.d.ts +53 -0
- package/dist/cjs/dockview/liveRegionService.js +185 -0
- package/dist/cjs/dockview/moduleContracts.d.ts +119 -0
- package/dist/cjs/dockview/moduleContracts.js +2 -0
- package/dist/cjs/dockview/modules.d.ts +110 -0
- package/dist/cjs/dockview/modules.js +304 -0
- package/dist/cjs/dockview/options.d.ts +159 -6
- package/dist/cjs/dockview/options.js +8 -1
- package/dist/cjs/dockview/popoutWindowService.d.ts +95 -0
- package/dist/cjs/dockview/popoutWindowService.js +261 -0
- package/dist/cjs/dockview/rootDropTargetService.d.ts +35 -0
- package/dist/cjs/dockview/rootDropTargetService.js +87 -0
- package/dist/cjs/dockview/watermarkService.d.ts +30 -0
- package/dist/cjs/dockview/watermarkService.js +61 -0
- package/dist/cjs/gridview/baseComponentGridview.d.ts +1 -1
- package/dist/cjs/gridview/baseComponentGridview.js +3 -2
- package/dist/cjs/gridview/gridviewComponent.d.ts +3 -3
- package/dist/cjs/gridview/gridviewPanel.d.ts +1 -1
- package/dist/cjs/index.d.ts +11 -4
- package/dist/cjs/index.js +14 -1
- package/dist/cjs/overlay/overlay.d.ts +43 -1
- package/dist/cjs/overlay/overlay.js +57 -8
- package/dist/cjs/paneview/draggablePaneviewPanel.d.ts +2 -2
- package/dist/cjs/paneview/draggablePaneviewPanel.js +4 -4
- package/dist/cjs/paneview/paneviewComponent.d.ts +3 -3
- package/dist/cjs/paneview/paneviewComponent.js +5 -5
- package/dist/dockview-core.js +3199 -1251
- package/dist/dockview-core.min.js +2 -2
- package/dist/dockview-core.min.js.map +1 -1
- package/dist/dockview-core.min.noStyle.js +2 -2
- package/dist/dockview-core.min.noStyle.js.map +1 -1
- package/dist/dockview-core.noStyle.js +3198 -1250
- package/dist/esm/api/component.api.d.ts +42 -21
- package/dist/esm/api/component.api.js +63 -18
- package/dist/esm/api/dockviewGroupPanelApi.d.ts +23 -8
- package/dist/esm/api/dockviewGroupPanelApi.js +19 -0
- package/dist/esm/api/dockviewPanelApi.d.ts +4 -3
- package/dist/esm/api/dockviewPanelApi.js +7 -0
- package/dist/esm/dnd/droptarget.d.ts +8 -0
- package/dist/esm/dnd/droptarget.js +28 -0
- package/dist/esm/dockview/accessibilityMessages.d.ts +32 -0
- package/dist/esm/dockview/accessibilityMessages.js +30 -0
- package/dist/esm/dockview/allModules.d.ts +8 -0
- package/dist/esm/dockview/allModules.js +22 -0
- package/dist/esm/dockview/components/panel/content.d.ts +2 -0
- package/dist/esm/dockview/components/panel/content.js +36 -5
- package/dist/esm/dockview/components/tab/tab.js +33 -5
- package/dist/esm/dockview/components/titlebar/floatingTitleBar.d.ts +35 -0
- package/dist/esm/dockview/components/titlebar/floatingTitleBar.js +65 -0
- package/dist/esm/dockview/components/titlebar/groupDragSource.d.ts +52 -0
- package/dist/esm/dockview/components/titlebar/groupDragSource.js +178 -0
- package/dist/esm/dockview/components/titlebar/tabGroupIndicator.d.ts +2 -1
- package/dist/esm/dockview/components/titlebar/tabGroupIndicator.js +31 -24
- package/dist/esm/dockview/components/titlebar/tabGroups.js +1 -0
- package/dist/esm/dockview/components/titlebar/tabs.d.ts +12 -0
- package/dist/esm/dockview/components/titlebar/tabs.js +102 -2
- package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +4 -0
- package/dist/esm/dockview/components/titlebar/tabsContainer.js +8 -2
- package/dist/esm/dockview/components/titlebar/voidContainer.d.ts +1 -4
- package/dist/esm/dockview/components/titlebar/voidContainer.js +33 -145
- package/dist/esm/dockview/dockviewComponent.d.ts +299 -44
- package/dist/esm/dockview/dockviewComponent.js +1421 -717
- package/dist/esm/dockview/dockviewFloatingGroupPanel.d.ts +33 -2
- package/dist/esm/dockview/dockviewFloatingGroupPanel.js +35 -3
- package/dist/esm/dockview/dockviewGroupPanel.d.ts +0 -1
- package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +36 -14
- package/dist/esm/dockview/dockviewGroupPanelModel.js +109 -93
- package/dist/esm/dockview/dockviewPanel.d.ts +2 -2
- package/dist/esm/dockview/edgeGroupService.d.ts +38 -0
- package/dist/esm/dockview/edgeGroupService.js +63 -0
- package/dist/esm/dockview/floatingGroupService.d.ts +37 -0
- package/dist/esm/dockview/floatingGroupService.js +150 -0
- package/dist/esm/dockview/headerActionsService.d.ts +32 -0
- package/dist/esm/dockview/headerActionsService.js +86 -0
- package/dist/esm/dockview/liveRegionService.d.ts +53 -0
- package/dist/esm/dockview/liveRegionService.js +159 -0
- package/dist/esm/dockview/moduleContracts.d.ts +119 -0
- package/dist/esm/dockview/moduleContracts.js +1 -0
- package/dist/esm/dockview/modules.d.ts +110 -0
- package/dist/esm/dockview/modules.js +170 -0
- package/dist/esm/dockview/options.d.ts +159 -6
- package/dist/esm/dockview/options.js +8 -1
- package/dist/esm/dockview/popoutWindowService.d.ts +95 -0
- package/dist/esm/dockview/popoutWindowService.js +175 -0
- package/dist/esm/dockview/rootDropTargetService.d.ts +35 -0
- package/dist/esm/dockview/rootDropTargetService.js +82 -0
- package/dist/esm/dockview/watermarkService.d.ts +30 -0
- package/dist/esm/dockview/watermarkService.js +56 -0
- package/dist/esm/gridview/baseComponentGridview.d.ts +1 -1
- package/dist/esm/gridview/baseComponentGridview.js +2 -2
- package/dist/esm/gridview/gridviewComponent.d.ts +3 -3
- package/dist/esm/gridview/gridviewPanel.d.ts +1 -1
- package/dist/esm/index.d.ts +11 -4
- package/dist/esm/index.js +4 -0
- package/dist/esm/overlay/overlay.d.ts +43 -1
- package/dist/esm/overlay/overlay.js +53 -8
- package/dist/esm/paneview/draggablePaneviewPanel.d.ts +2 -2
- package/dist/esm/paneview/draggablePaneviewPanel.js +4 -4
- package/dist/esm/paneview/paneviewComponent.d.ts +3 -3
- package/dist/esm/paneview/paneviewComponent.js +5 -5
- package/dist/package/main.cjs.js +3234 -1286
- package/dist/package/main.cjs.min.js +2 -2
- package/dist/package/main.esm.min.mjs +2 -2
- package/dist/package/main.esm.mjs +3189 -1252
- package/dist/styles/dockview.css +275 -13
- package/package.json +10 -1
- package/dist/cjs/dockview/contextMenu.d.ts +0 -10
- package/dist/cjs/dockview/contextMenu.js +0 -313
- package/dist/esm/dockview/contextMenu.d.ts +0 -10
- package/dist/esm/dockview/contextMenu.js +0 -228
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import { Event } from '../events';
|
|
2
2
|
import { CompositeDisposable } from '../lifecycle';
|
|
3
|
-
import { AnchoredBox } from '../types';
|
|
3
|
+
import { AnchoredBox, Box } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Context handed to {@link OverlayOptions.transformDragPosition} each
|
|
6
|
+
* pointer-move frame while a floating overlay is being dragged.
|
|
7
|
+
*/
|
|
8
|
+
export interface OverlayDragContext {
|
|
9
|
+
/** Proposed top-left + size this frame, in container pixels (pre-clamp). */
|
|
10
|
+
readonly proposed: Box;
|
|
11
|
+
/** Size of the container the overlay is dragged within. */
|
|
12
|
+
readonly container: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
/** Bounds of the sibling overlays, snapshotted at drag start. */
|
|
17
|
+
readonly others: readonly Box[];
|
|
18
|
+
}
|
|
4
19
|
export declare class Overlay extends CompositeDisposable {
|
|
5
20
|
private readonly options;
|
|
6
21
|
private readonly _element;
|
|
@@ -22,11 +37,38 @@ export declare class Overlay extends CompositeDisposable {
|
|
|
22
37
|
set minimumInViewportHeight(value: number | undefined);
|
|
23
38
|
get element(): HTMLElement;
|
|
24
39
|
get isVisible(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Height of the optional drag-handle header, or 0 when none is present.
|
|
42
|
+
* Used to translate between the overlay's outer box and the content area
|
|
43
|
+
* available to the group beneath the header.
|
|
44
|
+
*/
|
|
45
|
+
get headerHeight(): number;
|
|
25
46
|
constructor(options: AnchoredBox & {
|
|
26
47
|
container: HTMLElement;
|
|
27
48
|
content: HTMLElement;
|
|
49
|
+
/**
|
|
50
|
+
* Optional dedicated drag handle rendered above the content (a
|
|
51
|
+
* floating window title bar). When provided the resize container
|
|
52
|
+
* lays its children out as a flex column so the content shrinks
|
|
53
|
+
* to fit beneath the handle.
|
|
54
|
+
*/
|
|
55
|
+
header?: HTMLElement;
|
|
28
56
|
minimumInViewportWidth?: number;
|
|
29
57
|
minimumInViewportHeight?: number;
|
|
58
|
+
/**
|
|
59
|
+
* Adjust the proposed top-left each drag frame (before the
|
|
60
|
+
* container clamp). Return an adjusted position or nothing to leave
|
|
61
|
+
* it unchanged. Used to implement snapping / custom bounds.
|
|
62
|
+
*/
|
|
63
|
+
transformDragPosition?: (context: OverlayDragContext) => {
|
|
64
|
+
top: number;
|
|
65
|
+
left: number;
|
|
66
|
+
} | void;
|
|
67
|
+
/**
|
|
68
|
+
* Snapshot the sibling overlays' boxes at drag start, supplied to
|
|
69
|
+
* `transformDragPosition` as `context.others`.
|
|
70
|
+
*/
|
|
71
|
+
getSiblingBoxes?: () => readonly Box[];
|
|
30
72
|
});
|
|
31
73
|
setVisible(isVisible: boolean): void;
|
|
32
74
|
bringToFront(): void;
|
|
@@ -97,6 +97,11 @@ var Overlay = /** @class */ (function (_super) {
|
|
|
97
97
|
_this._dragCancelled = false;
|
|
98
98
|
_this.addDisposables(_this._onDidChange, _this._onDidChangeEnd, _this._onDidStartMoving, _this._dragMove);
|
|
99
99
|
_this._element.className = 'dv-resize-container';
|
|
100
|
+
// Floating groups are non-modal dialogs over the layout. The contained
|
|
101
|
+
// group(s) carry their own `role="region"` + label, so the dialog
|
|
102
|
+
// itself only needs role + modality here.
|
|
103
|
+
_this._element.setAttribute('role', 'dialog');
|
|
104
|
+
_this._element.setAttribute('aria-modal', 'false');
|
|
100
105
|
_this._isVisible = true;
|
|
101
106
|
_this.setupResize('top');
|
|
102
107
|
_this.setupResize('bottom');
|
|
@@ -106,6 +111,10 @@ var Overlay = /** @class */ (function (_super) {
|
|
|
106
111
|
_this.setupResize('topright');
|
|
107
112
|
_this.setupResize('bottomleft');
|
|
108
113
|
_this.setupResize('bottomright');
|
|
114
|
+
if (_this.options.header) {
|
|
115
|
+
(0, dom_1.toggleClass)(_this._element, 'dv-resize-container-with-titlebar', true);
|
|
116
|
+
_this._element.appendChild(_this.options.header);
|
|
117
|
+
}
|
|
109
118
|
_this._element.appendChild(_this.options.content);
|
|
110
119
|
_this.options.container.appendChild(_this._element);
|
|
111
120
|
// if input bad resize within acceptable boundaries
|
|
@@ -141,6 +150,19 @@ var Overlay = /** @class */ (function (_super) {
|
|
|
141
150
|
enumerable: false,
|
|
142
151
|
configurable: true
|
|
143
152
|
});
|
|
153
|
+
Object.defineProperty(Overlay.prototype, "headerHeight", {
|
|
154
|
+
/**
|
|
155
|
+
* Height of the optional drag-handle header, or 0 when none is present.
|
|
156
|
+
* Used to translate between the overlay's outer box and the content area
|
|
157
|
+
* available to the group beneath the header.
|
|
158
|
+
*/
|
|
159
|
+
get: function () {
|
|
160
|
+
var _a, _b;
|
|
161
|
+
return (_b = (_a = this.options.header) === null || _a === void 0 ? void 0 : _a.offsetHeight) !== null && _b !== void 0 ? _b : 0;
|
|
162
|
+
},
|
|
163
|
+
enumerable: false,
|
|
164
|
+
configurable: true
|
|
165
|
+
});
|
|
144
166
|
Overlay.prototype.setVisible = function (isVisible) {
|
|
145
167
|
if (isVisible === this.isVisible) {
|
|
146
168
|
return;
|
|
@@ -252,9 +274,14 @@ var Overlay = /** @class */ (function (_super) {
|
|
|
252
274
|
var _this = this;
|
|
253
275
|
if (options === void 0) { options = { inDragMode: false }; }
|
|
254
276
|
var track = function (captureTarget, pointerId) {
|
|
277
|
+
var _a, _b, _c;
|
|
255
278
|
var offset = null;
|
|
256
279
|
var hasMoved = false;
|
|
257
280
|
_this._dragCancelled = false;
|
|
281
|
+
// Snapshot once per drag — siblings don't move while this one drags.
|
|
282
|
+
var siblingBoxes = _this.options.transformDragPosition
|
|
283
|
+
? ((_c = (_b = (_a = _this.options).getSiblingBoxes) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : [])
|
|
284
|
+
: [];
|
|
258
285
|
var iframes = (0, dom_1.disableIframePointEvents)();
|
|
259
286
|
if (captureTarget &&
|
|
260
287
|
typeof pointerId === 'number' &&
|
|
@@ -262,7 +289,7 @@ var Overlay = /** @class */ (function (_super) {
|
|
|
262
289
|
try {
|
|
263
290
|
captureTarget.setPointerCapture(pointerId);
|
|
264
291
|
}
|
|
265
|
-
catch (
|
|
292
|
+
catch (_d) {
|
|
266
293
|
// ignore – non-fatal if the browser refuses capture
|
|
267
294
|
}
|
|
268
295
|
}
|
|
@@ -303,13 +330,35 @@ var Overlay = /** @class */ (function (_super) {
|
|
|
303
330
|
}
|
|
304
331
|
var xOffset = Math.max(0, _this.getMinimumWidth(overlayRect.width));
|
|
305
332
|
var yOffset = Math.max(0, _this.getMinimumHeight(overlayRect.height));
|
|
306
|
-
var
|
|
307
|
-
var
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
333
|
+
var proposedTop = y - offset.y;
|
|
334
|
+
var proposedLeft = x - offset.x;
|
|
335
|
+
// Let a consumer nudge the proposed position (snapping,
|
|
336
|
+
// custom bounds) before the container clamp below.
|
|
337
|
+
if (_this.options.transformDragPosition) {
|
|
338
|
+
var adjusted = _this.options.transformDragPosition({
|
|
339
|
+
proposed: {
|
|
340
|
+
top: proposedTop,
|
|
341
|
+
left: proposedLeft,
|
|
342
|
+
width: overlayRect.width,
|
|
343
|
+
height: overlayRect.height,
|
|
344
|
+
},
|
|
345
|
+
container: {
|
|
346
|
+
width: containerRect.width,
|
|
347
|
+
height: containerRect.height,
|
|
348
|
+
},
|
|
349
|
+
others: siblingBoxes,
|
|
350
|
+
});
|
|
351
|
+
if (adjusted) {
|
|
352
|
+
proposedTop = adjusted.top;
|
|
353
|
+
proposedLeft = adjusted.left;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
var maxTop = Math.max(0, containerRect.height - overlayRect.height + yOffset);
|
|
357
|
+
var maxLeft = Math.max(0, containerRect.width - overlayRect.width + xOffset);
|
|
358
|
+
var top = (0, math_1.clamp)(proposedTop, -yOffset, maxTop);
|
|
359
|
+
var bottom = (0, math_1.clamp)(containerRect.height - overlayRect.height - proposedTop, -yOffset, maxTop);
|
|
360
|
+
var left = (0, math_1.clamp)(proposedLeft, -xOffset, maxLeft);
|
|
361
|
+
var right = (0, math_1.clamp)(containerRect.width - overlayRect.width - proposedLeft, -xOffset, maxLeft);
|
|
313
362
|
var bounds = {};
|
|
314
363
|
// Anchor to top or to bottom depending on which one is closer
|
|
315
364
|
if (top <= bottom) {
|
|
@@ -18,8 +18,8 @@ export declare abstract class DraggablePaneviewPanel extends PaneviewPanel {
|
|
|
18
18
|
private pointerTarget;
|
|
19
19
|
private readonly _onDidDrop;
|
|
20
20
|
readonly onDidDrop: Event<PaneviewDidDropEvent>;
|
|
21
|
-
private readonly
|
|
22
|
-
readonly
|
|
21
|
+
private readonly _onUnhandledDragOver;
|
|
22
|
+
readonly onUnhandledDragOver: Event<PaneviewDndOverlayEvent>;
|
|
23
23
|
readonly accessor: IPaneviewComponent;
|
|
24
24
|
constructor(options: {
|
|
25
25
|
accessor: IPaneviewComponent;
|
|
@@ -49,10 +49,10 @@ var DraggablePaneviewPanel = /** @class */ (function (_super) {
|
|
|
49
49
|
}) || this;
|
|
50
50
|
_this._onDidDrop = new events_1.Emitter();
|
|
51
51
|
_this.onDidDrop = _this._onDidDrop.event;
|
|
52
|
-
_this.
|
|
53
|
-
_this.
|
|
52
|
+
_this._onUnhandledDragOver = new events_1.Emitter();
|
|
53
|
+
_this.onUnhandledDragOver = _this._onUnhandledDragOver.event;
|
|
54
54
|
_this.accessor = options.accessor;
|
|
55
|
-
_this.addDisposables(_this._onDidDrop, _this.
|
|
55
|
+
_this.addDisposables(_this._onDidDrop, _this._onUnhandledDragOver);
|
|
56
56
|
if (!options.disableDnd) {
|
|
57
57
|
_this.initDragFeatures();
|
|
58
58
|
}
|
|
@@ -87,7 +87,7 @@ var DraggablePaneviewPanel = /** @class */ (function (_super) {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
var firedEvent = new options_1.PaneviewUnhandledDragOverEvent(event, position, dataTransfer_1.getPaneData, _this);
|
|
90
|
-
_this.
|
|
90
|
+
_this._onUnhandledDragOver.fire(firedEvent);
|
|
91
91
|
return firedEvent.isAccepted;
|
|
92
92
|
};
|
|
93
93
|
var dropTargetOptions = {
|
|
@@ -74,7 +74,7 @@ export interface IPaneviewComponent extends IDisposable {
|
|
|
74
74
|
readonly onDidDrop: Event<PaneviewDidDropEvent>;
|
|
75
75
|
readonly onDidLayoutChange: Event<void>;
|
|
76
76
|
readonly onDidLayoutFromJSON: Event<void>;
|
|
77
|
-
readonly
|
|
77
|
+
readonly onUnhandledDragOver: Event<PaneviewDndOverlayEvent>;
|
|
78
78
|
addPanel<T extends object = Parameters>(options: AddPaneviewComponentOptions<T>): IPaneviewPanel;
|
|
79
79
|
layout(width: number, height: number): void;
|
|
80
80
|
toJSON(): SerializedPaneview;
|
|
@@ -103,8 +103,8 @@ export declare class PaneviewComponent extends Resizable implements IPaneviewCom
|
|
|
103
103
|
readonly onDidAddView: Event<PaneviewPanel>;
|
|
104
104
|
private readonly _onDidRemoveView;
|
|
105
105
|
readonly onDidRemoveView: Event<PaneviewPanel>;
|
|
106
|
-
private readonly
|
|
107
|
-
readonly
|
|
106
|
+
private readonly _onUnhandledDragOver;
|
|
107
|
+
readonly onUnhandledDragOver: Event<PaneviewDndOverlayEvent>;
|
|
108
108
|
private readonly _classNames;
|
|
109
109
|
get id(): string;
|
|
110
110
|
get panels(): PaneviewPanel[];
|
|
@@ -113,11 +113,11 @@ var PaneviewComponent = /** @class */ (function (_super) {
|
|
|
113
113
|
_this.onDidAddView = _this._onDidAddView.event;
|
|
114
114
|
_this._onDidRemoveView = new events_1.Emitter();
|
|
115
115
|
_this.onDidRemoveView = _this._onDidRemoveView.event;
|
|
116
|
-
_this.
|
|
117
|
-
_this.
|
|
116
|
+
_this._onUnhandledDragOver = new events_1.Emitter();
|
|
117
|
+
_this.onUnhandledDragOver = _this._onUnhandledDragOver.event;
|
|
118
118
|
_this.element.style.height = '100%';
|
|
119
119
|
_this.element.style.width = '100%';
|
|
120
|
-
_this.addDisposables(_this._onDidLayoutChange, _this._onDidLayoutfromJSON, _this._onDidDrop, _this._onDidAddView, _this._onDidRemoveView, _this.
|
|
120
|
+
_this.addDisposables(_this._onDidLayoutChange, _this._onDidLayoutfromJSON, _this._onDidDrop, _this._onDidAddView, _this._onDidRemoveView, _this._onUnhandledDragOver);
|
|
121
121
|
_this._classNames = new dom_1.Classnames(_this.element);
|
|
122
122
|
_this._classNames.setClassNames((_a = options.className) !== null && _a !== void 0 ? _a : '');
|
|
123
123
|
// the container is owned by the third-party, do not modify/delete it
|
|
@@ -397,8 +397,8 @@ var PaneviewComponent = /** @class */ (function (_super) {
|
|
|
397
397
|
var _this = this;
|
|
398
398
|
var disposable = new lifecycle_1.CompositeDisposable(panel.onDidDrop(function (event) {
|
|
399
399
|
_this._onDidDrop.fire(event);
|
|
400
|
-
}), panel.
|
|
401
|
-
_this.
|
|
400
|
+
}), panel.onUnhandledDragOver(function (event) {
|
|
401
|
+
_this._onUnhandledDragOver.fire(event);
|
|
402
402
|
}));
|
|
403
403
|
this._viewDisposables.set(panel.id, disposable);
|
|
404
404
|
};
|