dockview-core 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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 1.7.2
3
+ * @version 1.7.3
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -4593,7 +4593,6 @@ define(['exports'], (function (exports) { 'use strict';
4593
4593
  this.id = id;
4594
4594
  this.containerApi = containerApi;
4595
4595
  this.view = view;
4596
- this._title = '';
4597
4596
  this._group = group;
4598
4597
  this.api = new DockviewPanelApiImpl(this, this._group);
4599
4598
  this.addDisposables(this.api.onActiveChange(() => {
@@ -4606,8 +4605,8 @@ define(['exports'], (function (exports) { 'use strict';
4606
4605
  }
4607
4606
  init(params) {
4608
4607
  this._params = params.params;
4609
- this.setTitle(params.title);
4610
4608
  this.view.init(Object.assign(Object.assign({}, params), { api: this.api, containerApi: this.containerApi }));
4609
+ this.setTitle(params.title);
4611
4610
  }
4612
4611
  focus() {
4613
4612
  this.api._onFocusEvent.fire();
@@ -4624,11 +4623,10 @@ define(['exports'], (function (exports) { 'use strict';
4624
4623
  };
4625
4624
  }
4626
4625
  setTitle(title) {
4627
- var _a, _b;
4628
- const didTitleChange = title !== ((_a = this._params) === null || _a === void 0 ? void 0 : _a.title);
4626
+ const didTitleChange = title !== this.title;
4629
4627
  if (didTitleChange) {
4630
4628
  this._title = title;
4631
- (_b = this.view) === null || _b === void 0 ? void 0 : _b.update({
4629
+ this.view.update({
4632
4630
  params: {
4633
4631
  params: this._params,
4634
4632
  title: this.title,
@@ -4638,14 +4636,13 @@ define(['exports'], (function (exports) { 'use strict';
4638
4636
  }
4639
4637
  }
4640
4638
  update(event) {
4641
- var _a;
4642
4639
  const params = event.params;
4643
4640
  this._params = Object.assign(Object.assign({}, (this._params || {})), event.params.params);
4644
4641
  if (params.title !== this.title) {
4645
4642
  this._title = params.title;
4646
- this.api._onDidTitleChange.fire({ title: this.title });
4643
+ this.api._onDidTitleChange.fire({ title: params.title });
4647
4644
  }
4648
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.update({
4645
+ this.view.update({
4649
4646
  params: {
4650
4647
  params: this._params,
4651
4648
  title: this.title,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 1.7.2
3
+ * @version 1.7.3
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -4623,7 +4623,6 @@ class DockviewPanel extends CompositeDisposable {
4623
4623
  this.id = id;
4624
4624
  this.containerApi = containerApi;
4625
4625
  this.view = view;
4626
- this._title = '';
4627
4626
  this._group = group;
4628
4627
  this.api = new DockviewPanelApiImpl(this, this._group);
4629
4628
  this.addDisposables(this.api.onActiveChange(() => {
@@ -4636,8 +4635,8 @@ class DockviewPanel extends CompositeDisposable {
4636
4635
  }
4637
4636
  init(params) {
4638
4637
  this._params = params.params;
4639
- this.setTitle(params.title);
4640
4638
  this.view.init(Object.assign(Object.assign({}, params), { api: this.api, containerApi: this.containerApi }));
4639
+ this.setTitle(params.title);
4641
4640
  }
4642
4641
  focus() {
4643
4642
  this.api._onFocusEvent.fire();
@@ -4654,11 +4653,10 @@ class DockviewPanel extends CompositeDisposable {
4654
4653
  };
4655
4654
  }
4656
4655
  setTitle(title) {
4657
- var _a, _b;
4658
- const didTitleChange = title !== ((_a = this._params) === null || _a === void 0 ? void 0 : _a.title);
4656
+ const didTitleChange = title !== this.title;
4659
4657
  if (didTitleChange) {
4660
4658
  this._title = title;
4661
- (_b = this.view) === null || _b === void 0 ? void 0 : _b.update({
4659
+ this.view.update({
4662
4660
  params: {
4663
4661
  params: this._params,
4664
4662
  title: this.title,
@@ -4668,14 +4666,13 @@ class DockviewPanel extends CompositeDisposable {
4668
4666
  }
4669
4667
  }
4670
4668
  update(event) {
4671
- var _a;
4672
4669
  const params = event.params;
4673
4670
  this._params = Object.assign(Object.assign({}, (this._params || {})), event.params.params);
4674
4671
  if (params.title !== this.title) {
4675
4672
  this._title = params.title;
4676
- this.api._onDidTitleChange.fire({ title: this.title });
4673
+ this.api._onDidTitleChange.fire({ title: params.title });
4677
4674
  }
4678
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.update({
4675
+ this.view.update({
4679
4676
  params: {
4680
4677
  params: this._params,
4681
4678
  title: this.title,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 1.7.2
3
+ * @version 1.7.3
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -4621,7 +4621,6 @@ class DockviewPanel extends CompositeDisposable {
4621
4621
  this.id = id;
4622
4622
  this.containerApi = containerApi;
4623
4623
  this.view = view;
4624
- this._title = '';
4625
4624
  this._group = group;
4626
4625
  this.api = new DockviewPanelApiImpl(this, this._group);
4627
4626
  this.addDisposables(this.api.onActiveChange(() => {
@@ -4634,8 +4633,8 @@ class DockviewPanel extends CompositeDisposable {
4634
4633
  }
4635
4634
  init(params) {
4636
4635
  this._params = params.params;
4637
- this.setTitle(params.title);
4638
4636
  this.view.init(Object.assign(Object.assign({}, params), { api: this.api, containerApi: this.containerApi }));
4637
+ this.setTitle(params.title);
4639
4638
  }
4640
4639
  focus() {
4641
4640
  this.api._onFocusEvent.fire();
@@ -4652,11 +4651,10 @@ class DockviewPanel extends CompositeDisposable {
4652
4651
  };
4653
4652
  }
4654
4653
  setTitle(title) {
4655
- var _a, _b;
4656
- const didTitleChange = title !== ((_a = this._params) === null || _a === void 0 ? void 0 : _a.title);
4654
+ const didTitleChange = title !== this.title;
4657
4655
  if (didTitleChange) {
4658
4656
  this._title = title;
4659
- (_b = this.view) === null || _b === void 0 ? void 0 : _b.update({
4657
+ this.view.update({
4660
4658
  params: {
4661
4659
  params: this._params,
4662
4660
  title: this.title,
@@ -4666,14 +4664,13 @@ class DockviewPanel extends CompositeDisposable {
4666
4664
  }
4667
4665
  }
4668
4666
  update(event) {
4669
- var _a;
4670
4667
  const params = event.params;
4671
4668
  this._params = Object.assign(Object.assign({}, (this._params || {})), event.params.params);
4672
4669
  if (params.title !== this.title) {
4673
4670
  this._title = params.title;
4674
- this.api._onDidTitleChange.fire({ title: this.title });
4671
+ this.api._onDidTitleChange.fire({ title: params.title });
4675
4672
  }
4676
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.update({
4673
+ this.view.update({
4677
4674
  params: {
4678
4675
  params: this._params,
4679
4676
  title: this.title,