dockview-core
Advanced tools
Comparing version 1.10.2 to 1.11.0
@@ -8,4 +8,2 @@ import { CompositeDisposable } from '../../../lifecycle'; | ||
private _content; | ||
private _actionContainer; | ||
private _list; | ||
private action; | ||
@@ -12,0 +10,0 @@ private params; |
@@ -40,23 +40,14 @@ "use strict"; | ||
_this._element = document.createElement('div'); | ||
_this._element.className = 'default-tab'; | ||
_this._element.className = 'dv-default-tab'; | ||
// | ||
_this._content = document.createElement('div'); | ||
_this._content.className = 'tab-content'; | ||
// | ||
_this._actionContainer = document.createElement('div'); | ||
_this._actionContainer.className = 'action-container'; | ||
// | ||
_this._list = document.createElement('ul'); | ||
_this._list.className = 'tab-list'; | ||
// | ||
_this._content.className = 'dv-default-tab-content'; | ||
_this.action = document.createElement('div'); | ||
_this.action.className = 'tab-action'; | ||
_this.action.className = 'dv-default-tab-action'; | ||
_this.action.appendChild((0, svg_1.createCloseButton)()); | ||
// | ||
_this._element.appendChild(_this._content); | ||
_this._element.appendChild(_this._actionContainer); | ||
_this._actionContainer.appendChild(_this._list); | ||
_this._list.appendChild(_this.action); | ||
_this._element.appendChild(_this.action); | ||
// | ||
_this.addDisposables((0, events_1.addDisposableListener)(_this._actionContainer, 'mousedown', function (ev) { | ||
_this.addDisposables((0, events_1.addDisposableListener)(_this.action, 'mousedown', function (ev) { | ||
ev.preventDefault(); | ||
@@ -63,0 +54,0 @@ })); |
@@ -8,4 +8,2 @@ import { CompositeDisposable } from '../../../lifecycle'; | ||
private _content; | ||
private _actionContainer; | ||
private _list; | ||
private action; | ||
@@ -12,0 +10,0 @@ private params; |
@@ -13,23 +13,14 @@ import { CompositeDisposable } from '../../../lifecycle'; | ||
this._element = document.createElement('div'); | ||
this._element.className = 'default-tab'; | ||
this._element.className = 'dv-default-tab'; | ||
// | ||
this._content = document.createElement('div'); | ||
this._content.className = 'tab-content'; | ||
// | ||
this._actionContainer = document.createElement('div'); | ||
this._actionContainer.className = 'action-container'; | ||
// | ||
this._list = document.createElement('ul'); | ||
this._list.className = 'tab-list'; | ||
// | ||
this._content.className = 'dv-default-tab-content'; | ||
this.action = document.createElement('div'); | ||
this.action.className = 'tab-action'; | ||
this.action.className = 'dv-default-tab-action'; | ||
this.action.appendChild(createCloseButton()); | ||
// | ||
this._element.appendChild(this._content); | ||
this._element.appendChild(this._actionContainer); | ||
this._actionContainer.appendChild(this._list); | ||
this._list.appendChild(this.action); | ||
this._element.appendChild(this.action); | ||
// | ||
this.addDisposables(addDisposableListener(this._actionContainer, 'mousedown', (ev) => { | ||
this.addDisposables(addDisposableListener(this.action, 'mousedown', (ev) => { | ||
ev.preventDefault(); | ||
@@ -36,0 +27,0 @@ })); |
{ | ||
"name": "dockview-core", | ||
"version": "1.10.2", | ||
"version": "1.11.0", | ||
"description": "Zero dependency layout manager supporting tabs, grids and splitviews with ReactJS support", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11830433
89554