dockview-core 1.14.1 → 1.14.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/dockview/components/tab/defaultTab.d.ts +1 -8
- package/dist/cjs/dockview/components/tab/defaultTab.js +16 -39
- package/dist/dockview-core.amd.js +17 -29
- 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 +17 -29
- package/dist/dockview-core.amd.noStyle.js.map +1 -1
- package/dist/dockview-core.cjs.js +17 -29
- package/dist/dockview-core.cjs.js.map +1 -1
- package/dist/dockview-core.esm.js +17 -29
- 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 +17 -29
- 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 +17 -29
- package/dist/dockview-core.noStyle.js.map +1 -1
- package/dist/esm/dockview/components/tab/defaultTab.d.ts +1 -8
- package/dist/esm/dockview/components/tab/defaultTab.js +16 -28
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 1.14.
|
|
3
|
+
* @version 1.14.2
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -6181,52 +6181,40 @@
|
|
|
6181
6181
|
}
|
|
6182
6182
|
constructor() {
|
|
6183
6183
|
super();
|
|
6184
|
-
//
|
|
6185
|
-
this.params = {};
|
|
6186
6184
|
this._element = document.createElement('div');
|
|
6187
6185
|
this._element.className = 'dv-default-tab';
|
|
6188
|
-
//
|
|
6189
6186
|
this._content = document.createElement('div');
|
|
6190
6187
|
this._content.className = 'dv-default-tab-content';
|
|
6191
6188
|
this.action = document.createElement('div');
|
|
6192
6189
|
this.action.className = 'dv-default-tab-action';
|
|
6193
6190
|
this.action.appendChild(createCloseButton());
|
|
6194
|
-
//
|
|
6195
6191
|
this._element.appendChild(this._content);
|
|
6196
6192
|
this._element.appendChild(this.action);
|
|
6197
|
-
//
|
|
6198
6193
|
this.addDisposables(addDisposableListener(this.action, 'mousedown', (ev) => {
|
|
6199
6194
|
ev.preventDefault();
|
|
6200
6195
|
}));
|
|
6201
6196
|
this.render();
|
|
6202
6197
|
}
|
|
6203
|
-
update(event) {
|
|
6204
|
-
this.params = Object.assign(Object.assign({}, this.params), event.params);
|
|
6205
|
-
this.render();
|
|
6206
|
-
}
|
|
6207
|
-
focus() {
|
|
6208
|
-
//noop
|
|
6209
|
-
}
|
|
6210
6198
|
init(params) {
|
|
6211
|
-
this.
|
|
6212
|
-
this.
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6199
|
+
this._title = params.title;
|
|
6200
|
+
this.addDisposables(params.api.onDidTitleChange((event) => {
|
|
6201
|
+
this._title = event.title;
|
|
6202
|
+
this.render();
|
|
6203
|
+
}), addDisposableListener(this.action, 'mousedown', (ev) => {
|
|
6204
|
+
ev.preventDefault();
|
|
6205
|
+
}), addDisposableListener(this.action, 'click', (ev) => {
|
|
6206
|
+
if (ev.defaultPrevented) {
|
|
6207
|
+
return;
|
|
6208
|
+
}
|
|
6209
|
+
ev.preventDefault();
|
|
6210
|
+
params.api.close();
|
|
6211
|
+
}));
|
|
6222
6212
|
this.render();
|
|
6223
6213
|
}
|
|
6224
|
-
layout(_width, _height) {
|
|
6225
|
-
// noop
|
|
6226
|
-
}
|
|
6227
6214
|
render() {
|
|
6228
|
-
|
|
6229
|
-
|
|
6215
|
+
var _a;
|
|
6216
|
+
if (this._content.textContent !== this._title) {
|
|
6217
|
+
this._content.textContent = (_a = this._title) !== null && _a !== void 0 ? _a : '';
|
|
6230
6218
|
}
|
|
6231
6219
|
}
|
|
6232
6220
|
}
|