dockview-core 3.1.0 → 3.2.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/cjs/dockview/components/tab/tab.d.ts +2 -2
- package/dist/cjs/dockview/components/tab/tab.js +4 -7
- package/dist/cjs/dockview/components/titlebar/tabsContainer.js +1 -4
- package/dist/dockview-core.amd.js +7 -13
- package/dist/dockview-core.amd.js.map +1 -1
- package/dist/dockview-core.amd.min.js +2 -2
- package/dist/dockview-core.amd.min.js.map +1 -1
- package/dist/dockview-core.amd.min.noStyle.js +2 -2
- package/dist/dockview-core.amd.min.noStyle.js.map +1 -1
- package/dist/dockview-core.amd.noStyle.js +6 -12
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +7 -13
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +7 -13
- package/dist/dockview-core.esm.js.map +1 -1
- package/dist/dockview-core.esm.min.js +2 -2
- package/dist/dockview-core.esm.min.js.map +1 -1
- package/dist/dockview-core.js +7 -13
- package/dist/dockview-core.js.map +1 -1
- 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 +6 -12
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/dockview/components/tab/tab.d.ts +2 -2
- package/dist/esm/dockview/components/tab/tab.js +4 -7
- package/dist/esm/dockview/components/titlebar/tabsContainer.js +1 -4
- package/dist/styles/dockview.css +17 -7
- package/package.json +1 -1
|
@@ -12,8 +12,8 @@ export declare class Tab extends CompositeDisposable {
|
|
|
12
12
|
private readonly _element;
|
|
13
13
|
private readonly dropTarget;
|
|
14
14
|
private content;
|
|
15
|
-
private readonly
|
|
16
|
-
readonly
|
|
15
|
+
private readonly _onPointDown;
|
|
16
|
+
readonly onPointerDown: Event<MouseEvent>;
|
|
17
17
|
private readonly _onDropped;
|
|
18
18
|
readonly onDrop: Event<DroptargetEvent>;
|
|
19
19
|
private readonly _onDragStart;
|
|
@@ -31,8 +31,8 @@ export class Tab extends CompositeDisposable {
|
|
|
31
31
|
this.accessor = accessor;
|
|
32
32
|
this.group = group;
|
|
33
33
|
this.content = undefined;
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
34
|
+
this._onPointDown = new Emitter();
|
|
35
|
+
this.onPointerDown = this._onPointDown.event;
|
|
36
36
|
this._onDropped = new Emitter();
|
|
37
37
|
this.onDrop = this._onDropped.event;
|
|
38
38
|
this._onDragStart = new Emitter();
|
|
@@ -62,13 +62,10 @@ export class Tab extends CompositeDisposable {
|
|
|
62
62
|
},
|
|
63
63
|
});
|
|
64
64
|
this.onWillShowOverlay = this.dropTarget.onWillShowOverlay;
|
|
65
|
-
this.addDisposables(this.
|
|
65
|
+
this.addDisposables(this._onPointDown, this._onDropped, this._onDragStart, dragHandler.onDragStart((event) => {
|
|
66
66
|
this._onDragStart.fire(event);
|
|
67
67
|
}), dragHandler, addDisposableListener(this._element, 'pointerdown', (event) => {
|
|
68
|
-
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
this._onChanged.fire(event);
|
|
68
|
+
this._onPointDown.fire(event);
|
|
72
69
|
}), this.dropTarget.onDrop((event) => {
|
|
73
70
|
this._onDropped.fire(event);
|
|
74
71
|
}), this.dropTarget);
|
|
@@ -179,7 +179,7 @@ export class TabsContainer extends CompositeDisposable {
|
|
|
179
179
|
tab.setContent(panel.view.tab);
|
|
180
180
|
const disposable = new CompositeDisposable(tab.onDragStart((event) => {
|
|
181
181
|
this._onTabDragStart.fire({ nativeEvent: event, panel });
|
|
182
|
-
}), tab.
|
|
182
|
+
}), tab.onPointerDown((event) => {
|
|
183
183
|
if (event.defaultPrevented) {
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
@@ -206,9 +206,6 @@ export class TabsContainer extends CompositeDisposable {
|
|
|
206
206
|
this.group.model.openPanel(panel);
|
|
207
207
|
}
|
|
208
208
|
break;
|
|
209
|
-
case 1: // middle click
|
|
210
|
-
panel.api.close();
|
|
211
|
-
break;
|
|
212
209
|
}
|
|
213
210
|
}), tab.onDrop((event) => {
|
|
214
211
|
this._onDrop.fire({
|
package/dist/styles/dockview.css
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
16
16
|
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
17
17
|
--dv-overlay-z-index: 999;
|
|
18
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
19
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
18
20
|
--dv-group-view-background-color: #1e1e1e;
|
|
19
21
|
--dv-tabs-and-actions-container-background-color: #252526;
|
|
20
22
|
--dv-activegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
@@ -40,6 +42,8 @@
|
|
|
40
42
|
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
41
43
|
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
42
44
|
--dv-overlay-z-index: 999;
|
|
45
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
46
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
43
47
|
--dv-group-view-background-color: white;
|
|
44
48
|
--dv-tabs-and-actions-container-background-color: #f3f3f3;
|
|
45
49
|
--dv-activegroup-visiblepanel-tab-background-color: white;
|
|
@@ -65,6 +69,8 @@
|
|
|
65
69
|
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
66
70
|
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
67
71
|
--dv-overlay-z-index: 999;
|
|
72
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
73
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
68
74
|
--dv-group-view-background-color: #1e1e1e;
|
|
69
75
|
--dv-tabs-and-actions-container-background-color: #252526;
|
|
70
76
|
--dv-activegroup-visiblepanel-tab-background-color: #1e1e1e;
|
|
@@ -119,6 +125,8 @@
|
|
|
119
125
|
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
120
126
|
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
121
127
|
--dv-overlay-z-index: 999;
|
|
128
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
129
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
122
130
|
--dv-group-view-background-color: #000c18;
|
|
123
131
|
--dv-tabs-and-actions-container-background-color: #1c1c2a;
|
|
124
132
|
--dv-activegroup-visiblepanel-tab-background-color: #000c18;
|
|
@@ -145,6 +153,8 @@
|
|
|
145
153
|
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
146
154
|
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
147
155
|
--dv-overlay-z-index: 999;
|
|
156
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
157
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
148
158
|
--dv-group-view-background-color: #282a36;
|
|
149
159
|
--dv-tabs-and-actions-container-background-color: #191a21;
|
|
150
160
|
--dv-activegroup-visiblepanel-tab-background-color: #282a36;
|
|
@@ -197,6 +207,8 @@
|
|
|
197
207
|
--dv-icon-hover-background-color: rgba(90, 93, 94, 0.31);
|
|
198
208
|
--dv-floating-box-shadow: 8px 8px 8px 0px rgba(83, 89, 93, 0.5);
|
|
199
209
|
--dv-overlay-z-index: 999;
|
|
210
|
+
--dv-active-sash-transition-duration: 0.1s;
|
|
211
|
+
--dv-active-sash-transition-delay: 0.5s;
|
|
200
212
|
--dv-group-view-background-color: #ebeced;
|
|
201
213
|
--dv-tabs-and-actions-container-background-color: #fcfcfc;
|
|
202
214
|
--dv-activegroup-visiblepanel-tab-background-color: #f0f1f2;
|
|
@@ -670,14 +682,12 @@
|
|
|
670
682
|
-ms-user-select: none;
|
|
671
683
|
touch-action: none;
|
|
672
684
|
}
|
|
673
|
-
.dv-split-view-container .dv-sash-container .dv-sash:not(.disabled):active {
|
|
674
|
-
transition: background-color 0.1s ease-in-out;
|
|
685
|
+
.dv-split-view-container .dv-sash-container .dv-sash:not(.disabled):active, .dv-split-view-container .dv-sash-container .dv-sash:not(.disabled):hover {
|
|
675
686
|
background-color: var(--dv-active-sash-color, transparent);
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
transition:
|
|
680
|
-
transition-delay: 0.5s;
|
|
687
|
+
transition-property: background-color;
|
|
688
|
+
transition-timing-function: ease-in-out;
|
|
689
|
+
transition-duration: var(--dv-active-sash-transition-duration, 0.1s);
|
|
690
|
+
transition-delay: var(--dv-active-sash-transition-delay, 0.5s);
|
|
681
691
|
}
|
|
682
692
|
.dv-split-view-container .dv-view-container {
|
|
683
693
|
position: relative;
|