dockview 1.4.1 → 1.4.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/dist/cjs/api/component.api.d.ts +3 -3
- package/dist/cjs/api/component.api.js +3 -3
- package/dist/cjs/groupview/groupview.js +6 -3
- package/dist/cjs/groupview/groupview.js.map +1 -1
- package/dist/cjs/groupview/tab.js +1 -0
- package/dist/cjs/groupview/tab.js.map +1 -1
- package/dist/cjs/groupview/titlebar/tabsContainer.d.ts +1 -3
- package/dist/cjs/groupview/titlebar/tabsContainer.js +2 -4
- package/dist/cjs/groupview/titlebar/tabsContainer.js.map +1 -1
- package/dist/dockview.amd.js +12 -11
- package/dist/dockview.amd.min.js +2 -2
- package/dist/dockview.amd.min.noStyle.js +2 -2
- package/dist/dockview.amd.noStyle.js +12 -11
- package/dist/dockview.cjs.js +12 -11
- package/dist/dockview.esm.js +12 -11
- package/dist/dockview.esm.min.js +2 -2
- package/dist/dockview.js +12 -11
- package/dist/dockview.min.js +2 -2
- package/dist/dockview.min.noStyle.js +2 -2
- package/dist/dockview.noStyle.js +12 -11
- package/dist/esm/api/component.api.d.ts +3 -3
- package/dist/esm/api/component.api.js +3 -3
- package/dist/esm/groupview/groupview.js +5 -3
- package/dist/esm/groupview/tab.js +1 -0
- package/dist/esm/groupview/titlebar/tabsContainer.d.ts +1 -3
- package/dist/esm/groupview/titlebar/tabsContainer.js +2 -4
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview
|
|
3
|
-
* @version 1.4.
|
|
3
|
+
* @version 1.4.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -2387,13 +2387,13 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2387
2387
|
get onDidLayoutChange() {
|
|
2388
2388
|
return this.component.onDidLayoutChange;
|
|
2389
2389
|
}
|
|
2390
|
-
get
|
|
2390
|
+
get onDidAddPanel() {
|
|
2391
2391
|
return this.component.onDidAddGroup;
|
|
2392
2392
|
}
|
|
2393
|
-
get
|
|
2393
|
+
get onDidRemovePanel() {
|
|
2394
2394
|
return this.component.onDidRemoveGroup;
|
|
2395
2395
|
}
|
|
2396
|
-
get
|
|
2396
|
+
get onDidActivePanelChange() {
|
|
2397
2397
|
return this.component.onDidActiveGroupChange;
|
|
2398
2398
|
}
|
|
2399
2399
|
get onDidLayoutFromJSON() {
|
|
@@ -2676,6 +2676,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2676
2676
|
this._element.className = 'tab';
|
|
2677
2677
|
this._element.tabIndex = 0;
|
|
2678
2678
|
this._element.draggable = true;
|
|
2679
|
+
toggleClass(this.element, 'inactive-tab', true);
|
|
2679
2680
|
this.addDisposables(new (class Handler extends DragHandler {
|
|
2680
2681
|
constructor() {
|
|
2681
2682
|
super(...arguments);
|
|
@@ -2752,7 +2753,6 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2752
2753
|
this.group = group;
|
|
2753
2754
|
this.tabs = [];
|
|
2754
2755
|
this.selectedIndex = -1;
|
|
2755
|
-
this.active = false;
|
|
2756
2756
|
this._hidden = false;
|
|
2757
2757
|
this._onDrop = new Emitter();
|
|
2758
2758
|
this.onDrop = this._onDrop.event;
|
|
@@ -2856,8 +2856,8 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2856
2856
|
indexOf(id) {
|
|
2857
2857
|
return this.tabs.findIndex((tab) => tab.value.panelId === id);
|
|
2858
2858
|
}
|
|
2859
|
-
setActive(
|
|
2860
|
-
|
|
2859
|
+
setActive(_isGroupActive) {
|
|
2860
|
+
// noop
|
|
2861
2861
|
}
|
|
2862
2862
|
addTab(tab, index = this.tabs.length) {
|
|
2863
2863
|
if (index < 0 || index > this.tabs.length) {
|
|
@@ -2918,7 +2918,6 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
2918
2918
|
}));
|
|
2919
2919
|
const value = { value: tabToAdd, disposable };
|
|
2920
2920
|
this.addTab(value, index);
|
|
2921
|
-
this.activePanel = panel;
|
|
2922
2921
|
}
|
|
2923
2922
|
closePanel(panel) {
|
|
2924
2923
|
this.delete(panel.id);
|
|
@@ -3142,7 +3141,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
3142
3141
|
this.accessor.doSetGroupActive(this.parent);
|
|
3143
3142
|
return;
|
|
3144
3143
|
}
|
|
3145
|
-
this.doAddPanel(panel, options.index);
|
|
3144
|
+
this.doAddPanel(panel, options.index, skipSetActive);
|
|
3146
3145
|
if (!skipSetActive) {
|
|
3147
3146
|
this.doSetActivePanel(panel);
|
|
3148
3147
|
this.accessor.doSetGroupActive(this.parent, !!options.skipFocus);
|
|
@@ -3248,11 +3247,13 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
3248
3247
|
panel,
|
|
3249
3248
|
});
|
|
3250
3249
|
}
|
|
3251
|
-
doAddPanel(panel, index = this.panels.length) {
|
|
3250
|
+
doAddPanel(panel, index = this.panels.length, skipSetActive = false) {
|
|
3252
3251
|
const existingPanel = this._panels.indexOf(panel);
|
|
3253
3252
|
const hasExistingPanel = existingPanel > -1;
|
|
3254
3253
|
this.tabsContainer.openPanel(panel, index);
|
|
3255
|
-
|
|
3254
|
+
if (!skipSetActive) {
|
|
3255
|
+
this.contentContainer.openPanel(panel);
|
|
3256
|
+
}
|
|
3256
3257
|
this.tabsContainer.show();
|
|
3257
3258
|
this.contentContainer.show();
|
|
3258
3259
|
if (hasExistingPanel) {
|
package/dist/dockview.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview
|
|
3
|
-
* @version 1.4.
|
|
3
|
+
* @version 1.4.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -2422,13 +2422,13 @@ class GridviewApi {
|
|
|
2422
2422
|
get onDidLayoutChange() {
|
|
2423
2423
|
return this.component.onDidLayoutChange;
|
|
2424
2424
|
}
|
|
2425
|
-
get
|
|
2425
|
+
get onDidAddPanel() {
|
|
2426
2426
|
return this.component.onDidAddGroup;
|
|
2427
2427
|
}
|
|
2428
|
-
get
|
|
2428
|
+
get onDidRemovePanel() {
|
|
2429
2429
|
return this.component.onDidRemoveGroup;
|
|
2430
2430
|
}
|
|
2431
|
-
get
|
|
2431
|
+
get onDidActivePanelChange() {
|
|
2432
2432
|
return this.component.onDidActiveGroupChange;
|
|
2433
2433
|
}
|
|
2434
2434
|
get onDidLayoutFromJSON() {
|
|
@@ -2711,6 +2711,7 @@ class Tab extends CompositeDisposable {
|
|
|
2711
2711
|
this._element.className = 'tab';
|
|
2712
2712
|
this._element.tabIndex = 0;
|
|
2713
2713
|
this._element.draggable = true;
|
|
2714
|
+
toggleClass(this.element, 'inactive-tab', true);
|
|
2714
2715
|
this.addDisposables(new (class Handler extends DragHandler {
|
|
2715
2716
|
constructor() {
|
|
2716
2717
|
super(...arguments);
|
|
@@ -2787,7 +2788,6 @@ class TabsContainer extends CompositeDisposable {
|
|
|
2787
2788
|
this.group = group;
|
|
2788
2789
|
this.tabs = [];
|
|
2789
2790
|
this.selectedIndex = -1;
|
|
2790
|
-
this.active = false;
|
|
2791
2791
|
this._hidden = false;
|
|
2792
2792
|
this._onDrop = new Emitter();
|
|
2793
2793
|
this.onDrop = this._onDrop.event;
|
|
@@ -2891,8 +2891,8 @@ class TabsContainer extends CompositeDisposable {
|
|
|
2891
2891
|
indexOf(id) {
|
|
2892
2892
|
return this.tabs.findIndex((tab) => tab.value.panelId === id);
|
|
2893
2893
|
}
|
|
2894
|
-
setActive(
|
|
2895
|
-
|
|
2894
|
+
setActive(_isGroupActive) {
|
|
2895
|
+
// noop
|
|
2896
2896
|
}
|
|
2897
2897
|
addTab(tab, index = this.tabs.length) {
|
|
2898
2898
|
if (index < 0 || index > this.tabs.length) {
|
|
@@ -2953,7 +2953,6 @@ class TabsContainer extends CompositeDisposable {
|
|
|
2953
2953
|
}));
|
|
2954
2954
|
const value = { value: tabToAdd, disposable };
|
|
2955
2955
|
this.addTab(value, index);
|
|
2956
|
-
this.activePanel = panel;
|
|
2957
2956
|
}
|
|
2958
2957
|
closePanel(panel) {
|
|
2959
2958
|
this.delete(panel.id);
|
|
@@ -3177,7 +3176,7 @@ class Groupview extends CompositeDisposable {
|
|
|
3177
3176
|
this.accessor.doSetGroupActive(this.parent);
|
|
3178
3177
|
return;
|
|
3179
3178
|
}
|
|
3180
|
-
this.doAddPanel(panel, options.index);
|
|
3179
|
+
this.doAddPanel(panel, options.index, skipSetActive);
|
|
3181
3180
|
if (!skipSetActive) {
|
|
3182
3181
|
this.doSetActivePanel(panel);
|
|
3183
3182
|
this.accessor.doSetGroupActive(this.parent, !!options.skipFocus);
|
|
@@ -3283,11 +3282,13 @@ class Groupview extends CompositeDisposable {
|
|
|
3283
3282
|
panel,
|
|
3284
3283
|
});
|
|
3285
3284
|
}
|
|
3286
|
-
doAddPanel(panel, index = this.panels.length) {
|
|
3285
|
+
doAddPanel(panel, index = this.panels.length, skipSetActive = false) {
|
|
3287
3286
|
const existingPanel = this._panels.indexOf(panel);
|
|
3288
3287
|
const hasExistingPanel = existingPanel > -1;
|
|
3289
3288
|
this.tabsContainer.openPanel(panel, index);
|
|
3290
|
-
|
|
3289
|
+
if (!skipSetActive) {
|
|
3290
|
+
this.contentContainer.openPanel(panel);
|
|
3291
|
+
}
|
|
3291
3292
|
this.tabsContainer.show();
|
|
3292
3293
|
this.contentContainer.show();
|
|
3293
3294
|
if (hasExistingPanel) {
|
package/dist/dockview.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview
|
|
3
|
-
* @version 1.4.
|
|
3
|
+
* @version 1.4.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -2397,13 +2397,13 @@ class GridviewApi {
|
|
|
2397
2397
|
get onDidLayoutChange() {
|
|
2398
2398
|
return this.component.onDidLayoutChange;
|
|
2399
2399
|
}
|
|
2400
|
-
get
|
|
2400
|
+
get onDidAddPanel() {
|
|
2401
2401
|
return this.component.onDidAddGroup;
|
|
2402
2402
|
}
|
|
2403
|
-
get
|
|
2403
|
+
get onDidRemovePanel() {
|
|
2404
2404
|
return this.component.onDidRemoveGroup;
|
|
2405
2405
|
}
|
|
2406
|
-
get
|
|
2406
|
+
get onDidActivePanelChange() {
|
|
2407
2407
|
return this.component.onDidActiveGroupChange;
|
|
2408
2408
|
}
|
|
2409
2409
|
get onDidLayoutFromJSON() {
|
|
@@ -2686,6 +2686,7 @@ class Tab extends CompositeDisposable {
|
|
|
2686
2686
|
this._element.className = 'tab';
|
|
2687
2687
|
this._element.tabIndex = 0;
|
|
2688
2688
|
this._element.draggable = true;
|
|
2689
|
+
toggleClass(this.element, 'inactive-tab', true);
|
|
2689
2690
|
this.addDisposables(new (class Handler extends DragHandler {
|
|
2690
2691
|
constructor() {
|
|
2691
2692
|
super(...arguments);
|
|
@@ -2762,7 +2763,6 @@ class TabsContainer extends CompositeDisposable {
|
|
|
2762
2763
|
this.group = group;
|
|
2763
2764
|
this.tabs = [];
|
|
2764
2765
|
this.selectedIndex = -1;
|
|
2765
|
-
this.active = false;
|
|
2766
2766
|
this._hidden = false;
|
|
2767
2767
|
this._onDrop = new Emitter();
|
|
2768
2768
|
this.onDrop = this._onDrop.event;
|
|
@@ -2866,8 +2866,8 @@ class TabsContainer extends CompositeDisposable {
|
|
|
2866
2866
|
indexOf(id) {
|
|
2867
2867
|
return this.tabs.findIndex((tab) => tab.value.panelId === id);
|
|
2868
2868
|
}
|
|
2869
|
-
setActive(
|
|
2870
|
-
|
|
2869
|
+
setActive(_isGroupActive) {
|
|
2870
|
+
// noop
|
|
2871
2871
|
}
|
|
2872
2872
|
addTab(tab, index = this.tabs.length) {
|
|
2873
2873
|
if (index < 0 || index > this.tabs.length) {
|
|
@@ -2928,7 +2928,6 @@ class TabsContainer extends CompositeDisposable {
|
|
|
2928
2928
|
}));
|
|
2929
2929
|
const value = { value: tabToAdd, disposable };
|
|
2930
2930
|
this.addTab(value, index);
|
|
2931
|
-
this.activePanel = panel;
|
|
2932
2931
|
}
|
|
2933
2932
|
closePanel(panel) {
|
|
2934
2933
|
this.delete(panel.id);
|
|
@@ -3152,7 +3151,7 @@ class Groupview extends CompositeDisposable {
|
|
|
3152
3151
|
this.accessor.doSetGroupActive(this.parent);
|
|
3153
3152
|
return;
|
|
3154
3153
|
}
|
|
3155
|
-
this.doAddPanel(panel, options.index);
|
|
3154
|
+
this.doAddPanel(panel, options.index, skipSetActive);
|
|
3156
3155
|
if (!skipSetActive) {
|
|
3157
3156
|
this.doSetActivePanel(panel);
|
|
3158
3157
|
this.accessor.doSetGroupActive(this.parent, !!options.skipFocus);
|
|
@@ -3258,11 +3257,13 @@ class Groupview extends CompositeDisposable {
|
|
|
3258
3257
|
panel,
|
|
3259
3258
|
});
|
|
3260
3259
|
}
|
|
3261
|
-
doAddPanel(panel, index = this.panels.length) {
|
|
3260
|
+
doAddPanel(panel, index = this.panels.length, skipSetActive = false) {
|
|
3262
3261
|
const existingPanel = this._panels.indexOf(panel);
|
|
3263
3262
|
const hasExistingPanel = existingPanel > -1;
|
|
3264
3263
|
this.tabsContainer.openPanel(panel, index);
|
|
3265
|
-
|
|
3264
|
+
if (!skipSetActive) {
|
|
3265
|
+
this.contentContainer.openPanel(panel);
|
|
3266
|
+
}
|
|
3266
3267
|
this.tabsContainer.show();
|
|
3267
3268
|
this.contentContainer.show();
|
|
3268
3269
|
if (hasExistingPanel) {
|