dockview-core 4.5.0 → 4.6.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/api/component.api.d.ts +2 -1
- package/dist/cjs/dockview/components/titlebar/tabs.d.ts +1 -1
- package/dist/cjs/dockview/components/titlebar/tabs.js +2 -2
- package/dist/cjs/dockview/components/titlebar/tabsContainer.d.ts +1 -1
- package/dist/cjs/dockview/components/titlebar/tabsContainer.js +6 -3
- package/dist/cjs/dockview/components/titlebar/voidContainer.js +3 -0
- package/dist/cjs/dockview/dockviewComponent.d.ts +2 -1
- package/dist/cjs/dockview/dockviewComponent.js +2 -1
- package/dist/cjs/dockview/dockviewGroupPanelModel.d.ts +3 -24
- package/dist/cjs/dockview/dockviewGroupPanelModel.js +3 -65
- package/dist/cjs/dockview/events.d.ts +28 -0
- package/dist/cjs/dockview/events.js +66 -0
- package/dist/cjs/dockview/options.d.ts +2 -1
- package/dist/dockview-core.amd.js +42 -37
- 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 +41 -36
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +42 -37
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +43 -37
- 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 +42 -37
- 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 +41 -36
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/api/component.api.d.ts +2 -1
- package/dist/esm/dockview/components/titlebar/tabs.d.ts +1 -1
- package/dist/esm/dockview/components/titlebar/tabs.js +1 -1
- package/dist/esm/dockview/components/titlebar/tabsContainer.d.ts +1 -1
- package/dist/esm/dockview/components/titlebar/tabsContainer.js +5 -2
- package/dist/esm/dockview/components/titlebar/voidContainer.js +3 -0
- package/dist/esm/dockview/dockviewComponent.d.ts +2 -1
- package/dist/esm/dockview/dockviewComponent.js +2 -1
- package/dist/esm/dockview/dockviewGroupPanelModel.d.ts +3 -24
- package/dist/esm/dockview/dockviewGroupPanelModel.js +1 -33
- package/dist/esm/dockview/events.d.ts +28 -0
- package/dist/esm/dockview/events.js +33 -0
- package/dist/esm/dockview/options.d.ts +2 -1
- package/dist/styles/dockview.css +5 -0
- package/package.json +4 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 4.
|
|
3
|
+
* @version 4.6.0
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -5053,6 +5053,40 @@
|
|
|
5053
5053
|
}
|
|
5054
5054
|
}
|
|
5055
5055
|
|
|
5056
|
+
class WillShowOverlayLocationEvent {
|
|
5057
|
+
get kind() {
|
|
5058
|
+
return this.options.kind;
|
|
5059
|
+
}
|
|
5060
|
+
get nativeEvent() {
|
|
5061
|
+
return this.event.nativeEvent;
|
|
5062
|
+
}
|
|
5063
|
+
get position() {
|
|
5064
|
+
return this.event.position;
|
|
5065
|
+
}
|
|
5066
|
+
get defaultPrevented() {
|
|
5067
|
+
return this.event.defaultPrevented;
|
|
5068
|
+
}
|
|
5069
|
+
get panel() {
|
|
5070
|
+
return this.options.panel;
|
|
5071
|
+
}
|
|
5072
|
+
get api() {
|
|
5073
|
+
return this.options.api;
|
|
5074
|
+
}
|
|
5075
|
+
get group() {
|
|
5076
|
+
return this.options.group;
|
|
5077
|
+
}
|
|
5078
|
+
preventDefault() {
|
|
5079
|
+
this.event.preventDefault();
|
|
5080
|
+
}
|
|
5081
|
+
getData() {
|
|
5082
|
+
return this.options.getData();
|
|
5083
|
+
}
|
|
5084
|
+
constructor(event, options) {
|
|
5085
|
+
this.event = event;
|
|
5086
|
+
this.options = options;
|
|
5087
|
+
}
|
|
5088
|
+
}
|
|
5089
|
+
|
|
5056
5090
|
class GroupDragHandler extends DragHandler {
|
|
5057
5091
|
constructor(element, accessor, group) {
|
|
5058
5092
|
super(element);
|
|
@@ -5120,6 +5154,7 @@
|
|
|
5120
5154
|
this._element = document.createElement('div');
|
|
5121
5155
|
this._element.className = 'dv-void-container';
|
|
5122
5156
|
this._element.draggable = !this.accessor.options.disableDnd;
|
|
5157
|
+
toggleClass(this._element, 'dv-draggable', !this.accessor.options.disableDnd);
|
|
5123
5158
|
this.addDisposables(this._onDrop, this._onDragStart, addDisposableListener(this._element, 'pointerdown', () => {
|
|
5124
5159
|
this.accessor.doSetGroupActive(this.group);
|
|
5125
5160
|
}));
|
|
@@ -5144,6 +5179,7 @@
|
|
|
5144
5179
|
}
|
|
5145
5180
|
updateDragAndDropState() {
|
|
5146
5181
|
this._element.draggable = !this.accessor.options.disableDnd;
|
|
5182
|
+
toggleClass(this._element, 'dv-draggable', !this.accessor.options.disableDnd);
|
|
5147
5183
|
}
|
|
5148
5184
|
}
|
|
5149
5185
|
|
|
@@ -5664,8 +5700,11 @@
|
|
|
5664
5700
|
toggleClass(wrapper, 'dv-tab', true);
|
|
5665
5701
|
toggleClass(wrapper, 'dv-active-tab', panelObject.api.isActive);
|
|
5666
5702
|
toggleClass(wrapper, 'dv-inactive-tab', !panelObject.api.isActive);
|
|
5667
|
-
wrapper.addEventListener('
|
|
5703
|
+
wrapper.addEventListener('click', (event) => {
|
|
5668
5704
|
this.accessor.popupService.close();
|
|
5705
|
+
if (event.defaultPrevented) {
|
|
5706
|
+
return;
|
|
5707
|
+
}
|
|
5669
5708
|
tab.element.scrollIntoView();
|
|
5670
5709
|
tab.panel.api.setActive();
|
|
5671
5710
|
});
|
|
@@ -5782,39 +5821,6 @@
|
|
|
5782
5821
|
this._kind = options.kind;
|
|
5783
5822
|
}
|
|
5784
5823
|
}
|
|
5785
|
-
class WillShowOverlayLocationEvent {
|
|
5786
|
-
get kind() {
|
|
5787
|
-
return this.options.kind;
|
|
5788
|
-
}
|
|
5789
|
-
get nativeEvent() {
|
|
5790
|
-
return this.event.nativeEvent;
|
|
5791
|
-
}
|
|
5792
|
-
get position() {
|
|
5793
|
-
return this.event.position;
|
|
5794
|
-
}
|
|
5795
|
-
get defaultPrevented() {
|
|
5796
|
-
return this.event.defaultPrevented;
|
|
5797
|
-
}
|
|
5798
|
-
get panel() {
|
|
5799
|
-
return this.options.panel;
|
|
5800
|
-
}
|
|
5801
|
-
get api() {
|
|
5802
|
-
return this.options.api;
|
|
5803
|
-
}
|
|
5804
|
-
get group() {
|
|
5805
|
-
return this.options.group;
|
|
5806
|
-
}
|
|
5807
|
-
preventDefault() {
|
|
5808
|
-
this.event.preventDefault();
|
|
5809
|
-
}
|
|
5810
|
-
getData() {
|
|
5811
|
-
return this.options.getData();
|
|
5812
|
-
}
|
|
5813
|
-
constructor(event, options) {
|
|
5814
|
-
this.event = event;
|
|
5815
|
-
this.options = options;
|
|
5816
|
-
}
|
|
5817
|
-
}
|
|
5818
5824
|
class DockviewGroupPanelModel extends CompositeDisposable {
|
|
5819
5825
|
get element() {
|
|
5820
5826
|
throw new Error('dockview: not supported');
|
|
@@ -10972,7 +10978,6 @@
|
|
|
10972
10978
|
exports.SplitviewComponent = SplitviewComponent;
|
|
10973
10979
|
exports.SplitviewPanel = SplitviewPanel;
|
|
10974
10980
|
exports.Tab = Tab;
|
|
10975
|
-
exports.WillShowOverlayLocationEvent = WillShowOverlayLocationEvent;
|
|
10976
10981
|
exports.createDockview = createDockview;
|
|
10977
10982
|
exports.createGridview = createGridview;
|
|
10978
10983
|
exports.createPaneview = createPaneview;
|