dockview 1.7.2 → 1.7.3
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/dockview.amd.js +6 -9
- package/dist/dockview.amd.min.js +2 -2
- package/dist/dockview.amd.min.noStyle.js +2 -2
- package/dist/dockview.amd.noStyle.js +6 -9
- package/dist/dockview.cjs.js +6 -9
- package/dist/dockview.esm.js +6 -9
- package/dist/dockview.esm.min.js +2 -2
- package/dist/dockview.js +6 -9
- package/dist/dockview.min.js +2 -2
- package/dist/dockview.min.noStyle.js +2 -2
- package/dist/dockview.noStyle.js +6 -9
- package/package.json +4 -5
package/dist/dockview.amd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview
|
|
3
|
-
* @version 1.7.
|
|
3
|
+
* @version 1.7.3
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -4643,7 +4643,6 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4643
4643
|
this.id = id;
|
|
4644
4644
|
this.containerApi = containerApi;
|
|
4645
4645
|
this.view = view;
|
|
4646
|
-
this._title = '';
|
|
4647
4646
|
this._group = group;
|
|
4648
4647
|
this.api = new DockviewPanelApiImpl(this, this._group);
|
|
4649
4648
|
this.addDisposables(this.api.onActiveChange(() => {
|
|
@@ -4656,8 +4655,8 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4656
4655
|
}
|
|
4657
4656
|
init(params) {
|
|
4658
4657
|
this._params = params.params;
|
|
4659
|
-
this.setTitle(params.title);
|
|
4660
4658
|
this.view.init(Object.assign(Object.assign({}, params), { api: this.api, containerApi: this.containerApi }));
|
|
4659
|
+
this.setTitle(params.title);
|
|
4661
4660
|
}
|
|
4662
4661
|
focus() {
|
|
4663
4662
|
this.api._onFocusEvent.fire();
|
|
@@ -4674,11 +4673,10 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4674
4673
|
};
|
|
4675
4674
|
}
|
|
4676
4675
|
setTitle(title) {
|
|
4677
|
-
|
|
4678
|
-
const didTitleChange = title !== ((_a = this._params) === null || _a === void 0 ? void 0 : _a.title);
|
|
4676
|
+
const didTitleChange = title !== this.title;
|
|
4679
4677
|
if (didTitleChange) {
|
|
4680
4678
|
this._title = title;
|
|
4681
|
-
|
|
4679
|
+
this.view.update({
|
|
4682
4680
|
params: {
|
|
4683
4681
|
params: this._params,
|
|
4684
4682
|
title: this.title,
|
|
@@ -4688,14 +4686,13 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
|
|
|
4688
4686
|
}
|
|
4689
4687
|
}
|
|
4690
4688
|
update(event) {
|
|
4691
|
-
var _a;
|
|
4692
4689
|
const params = event.params;
|
|
4693
4690
|
this._params = Object.assign(Object.assign({}, (this._params || {})), event.params.params);
|
|
4694
4691
|
if (params.title !== this.title) {
|
|
4695
4692
|
this._title = params.title;
|
|
4696
|
-
this.api._onDidTitleChange.fire({ title:
|
|
4693
|
+
this.api._onDidTitleChange.fire({ title: params.title });
|
|
4697
4694
|
}
|
|
4698
|
-
|
|
4695
|
+
this.view.update({
|
|
4699
4696
|
params: {
|
|
4700
4697
|
params: this._params,
|
|
4701
4698
|
title: this.title,
|