dockview-core 1.10.2 → 1.11.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/defaultTab.d.ts +0 -2
- package/dist/cjs/dockview/components/tab/defaultTab.js +5 -14
- package/dist/dockview-core.amd.js +7 -16
- 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 -15
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +7 -16
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +7 -16
- 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 -16
- 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 -15
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/dockview/components/tab/defaultTab.d.ts +0 -2
- package/dist/esm/dockview/components/tab/defaultTab.js +5 -14
- package/dist/styles/dockview.css +8 -18
- package/package.json +1 -1
|
@@ -5,8 +5,6 @@ import { DockviewGroupPanel } from '../../dockviewGroupPanel';
|
|
|
5
5
|
export declare class DefaultTab extends CompositeDisposable implements ITabRenderer {
|
|
6
6
|
private _element;
|
|
7
7
|
private _content;
|
|
8
|
-
private _actionContainer;
|
|
9
|
-
private _list;
|
|
10
8
|
private action;
|
|
11
9
|
private params;
|
|
12
10
|
get element(): HTMLElement;
|
|
@@ -10,27 +10,18 @@ export class DefaultTab extends CompositeDisposable {
|
|
|
10
10
|
//
|
|
11
11
|
this.params = {};
|
|
12
12
|
this._element = document.createElement('div');
|
|
13
|
-
this._element.className = 'default-tab';
|
|
13
|
+
this._element.className = 'dv-default-tab';
|
|
14
14
|
//
|
|
15
15
|
this._content = document.createElement('div');
|
|
16
|
-
this._content.className = 'tab-content';
|
|
17
|
-
//
|
|
18
|
-
this._actionContainer = document.createElement('div');
|
|
19
|
-
this._actionContainer.className = 'action-container';
|
|
20
|
-
//
|
|
21
|
-
this._list = document.createElement('ul');
|
|
22
|
-
this._list.className = 'tab-list';
|
|
23
|
-
//
|
|
16
|
+
this._content.className = 'dv-default-tab-content';
|
|
24
17
|
this.action = document.createElement('div');
|
|
25
|
-
this.action.className = 'tab-action';
|
|
18
|
+
this.action.className = 'dv-default-tab-action';
|
|
26
19
|
this.action.appendChild(createCloseButton());
|
|
27
20
|
//
|
|
28
21
|
this._element.appendChild(this._content);
|
|
29
|
-
this._element.appendChild(this.
|
|
30
|
-
this._actionContainer.appendChild(this._list);
|
|
31
|
-
this._list.appendChild(this.action);
|
|
22
|
+
this._element.appendChild(this.action);
|
|
32
23
|
//
|
|
33
|
-
this.addDisposables(addDisposableListener(this.
|
|
24
|
+
this.addDisposables(addDisposableListener(this.action, 'mousedown', (ev) => {
|
|
34
25
|
ev.preventDefault();
|
|
35
26
|
}));
|
|
36
27
|
this.render();
|
package/dist/styles/dockview.css
CHANGED
|
@@ -737,19 +737,19 @@
|
|
|
737
737
|
outline-offset: -1px;
|
|
738
738
|
z-index: 5;
|
|
739
739
|
}
|
|
740
|
-
.tab.dv-tab-dragging .tab-action {
|
|
740
|
+
.tab.dv-tab-dragging .dv-default-tab-action {
|
|
741
741
|
background-color: var(--dv-activegroup-visiblepanel-tab-color);
|
|
742
742
|
}
|
|
743
|
-
.tab.active-tab
|
|
743
|
+
.tab.active-tab .dv-default-tab .dv-default-tab-action {
|
|
744
744
|
visibility: visible;
|
|
745
745
|
}
|
|
746
|
-
.tab.inactive-tab
|
|
746
|
+
.tab.inactive-tab .dv-default-tab .dv-default-tab-action {
|
|
747
747
|
visibility: hidden;
|
|
748
748
|
}
|
|
749
|
-
.tab.inactive-tab
|
|
749
|
+
.tab.inactive-tab .dv-default-tab:hover .dv-default-tab-action {
|
|
750
750
|
visibility: visible;
|
|
751
751
|
}
|
|
752
|
-
.tab .default-tab {
|
|
752
|
+
.tab .dv-default-tab {
|
|
753
753
|
position: relative;
|
|
754
754
|
height: 100%;
|
|
755
755
|
display: flex;
|
|
@@ -759,28 +759,18 @@
|
|
|
759
759
|
white-space: nowrap;
|
|
760
760
|
text-overflow: elipsis;
|
|
761
761
|
}
|
|
762
|
-
.tab .default-tab .tab-content {
|
|
762
|
+
.tab .dv-default-tab .dv-default-tab-content {
|
|
763
763
|
padding: 0px 8px;
|
|
764
764
|
flex-grow: 1;
|
|
765
765
|
}
|
|
766
|
-
.tab .default-tab .action
|
|
767
|
-
text-align: right;
|
|
768
|
-
display: flex;
|
|
769
|
-
}
|
|
770
|
-
.tab .default-tab .action-container .tab-list {
|
|
771
|
-
display: flex;
|
|
772
|
-
padding: 0px;
|
|
773
|
-
margin: 0px;
|
|
774
|
-
justify-content: flex-end;
|
|
775
|
-
}
|
|
776
|
-
.tab .default-tab .action-container .tab-list .tab-action {
|
|
766
|
+
.tab .dv-default-tab .dv-default-tab-action {
|
|
777
767
|
padding: 4px;
|
|
778
768
|
display: flex;
|
|
779
769
|
align-items: center;
|
|
780
770
|
justify-content: center;
|
|
781
771
|
box-sizing: border-box;
|
|
782
772
|
}
|
|
783
|
-
.tab .default-tab .
|
|
773
|
+
.tab .dv-default-tab .dv-default-tab-action:hover {
|
|
784
774
|
border-radius: 2px;
|
|
785
775
|
background-color: var(--dv-icon-hover-background-color);
|
|
786
776
|
}
|