@hpcc-js/phosphor 3.8.5 → 3.8.6
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/index.js +22 -17
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var i = Object.defineProperty, __name = (e, t) => i(e, "name", {
|
|
|
23
23
|
enumerable: !(r = a(t, d)) || r.enumerable
|
|
24
24
|
});
|
|
25
25
|
return e;
|
|
26
|
-
}, __toCommonJS = (e) => s.call(e, "module.exports") ? e["module.exports"] : __copyProps(i({}, "__esModule", { value: !0 }), e), c = "@hpcc-js/phosphor", l = "3.8.
|
|
26
|
+
}, __toCommonJS = (e) => s.call(e, "module.exports") ? e["module.exports"] : __copyProps(i({}, "__esModule", { value: !0 }), e), c = "@hpcc-js/phosphor", l = "3.8.6", u = "3.32.0", d = /* @__PURE__ */ __exportAll({
|
|
27
27
|
ArrayExt: () => f,
|
|
28
28
|
StringExt: () => m,
|
|
29
29
|
chain: () => chain,
|
|
@@ -4965,11 +4965,13 @@ var de = [
|
|
|
4965
4965
|
}
|
|
4966
4966
|
removeTabAt(e) {
|
|
4967
4967
|
let t = e >= 0 && e < this._titles.length;
|
|
4968
|
-
if (this._tabSizeFrozen)
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4968
|
+
if (this._tabSizeFrozen) {
|
|
4969
|
+
if (t) {
|
|
4970
|
+
let t = this.contentNode.children;
|
|
4971
|
+
this._frozenTabWidths = [];
|
|
4972
|
+
for (let n = 0, r = t.length; n < r; ++n) n !== e && this._frozenTabWidths.push(t[n].offsetWidth);
|
|
4973
|
+
} else this._frozenTabWidths = null;
|
|
4974
|
+
}
|
|
4973
4975
|
this._releaseMouse();
|
|
4974
4976
|
let n = f.removeAt(this._titles, e);
|
|
4975
4977
|
n && (n.changed.disconnect(this._onTitleChanged, this), n === this._previousTitle && (this._previousTitle = null), this.update(), this._adjustCurrentForRemove(e, n));
|
|
@@ -5663,12 +5665,13 @@ var DockLayout = class extends Layout {
|
|
|
5663
5665
|
}
|
|
5664
5666
|
n ||= this._root.findFirstTabNode(), n.tabBar.titles.indexOf(e.title) === -1 && (this._removeWidget(e), e.hide());
|
|
5665
5667
|
let i;
|
|
5666
|
-
if (i = t ? n.tabBar.titles.indexOf(t.title) : n.tabBar.currentIndex, this._hiddenMode === F.HiddenMode.Scale)
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5668
|
+
if (i = t ? n.tabBar.titles.indexOf(t.title) : n.tabBar.currentIndex, this._hiddenMode === F.HiddenMode.Scale) {
|
|
5669
|
+
if (n.tabBar.titles.length === 0) e.hiddenMode = F.HiddenMode.Display;
|
|
5670
|
+
else if (n.tabBar.titles.length == 1) {
|
|
5671
|
+
let e = n.tabBar.titles[0].owner;
|
|
5672
|
+
e.hiddenMode = F.HiddenMode.Scale;
|
|
5673
|
+
} else e.hiddenMode = F.HiddenMode.Scale;
|
|
5674
|
+
} else e.hiddenMode = this._hiddenMode;
|
|
5672
5675
|
n.tabBar.insertTab(i + +!!r, e.title), J.addAria(e, n.tabBar);
|
|
5673
5676
|
}
|
|
5674
5677
|
_insertSplit(e, t, n, r, i, a = !1) {
|
|
@@ -6914,11 +6917,13 @@ var me = class MenuBar extends F {
|
|
|
6914
6917
|
this._closeChildMenu();
|
|
6915
6918
|
return;
|
|
6916
6919
|
}
|
|
6917
|
-
if (e.button === 0)
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6920
|
+
if (e.button === 0) {
|
|
6921
|
+
if (this._childMenu) this._closeChildMenu(), this.activeIndex = t;
|
|
6922
|
+
else {
|
|
6923
|
+
e.preventDefault();
|
|
6924
|
+
let n = this._positionForMenu(t);
|
|
6925
|
+
W.saveWindowData(), this.activeIndex = t, this._openChildMenu(n);
|
|
6926
|
+
}
|
|
6922
6927
|
}
|
|
6923
6928
|
}
|
|
6924
6929
|
_evtPointerMove(e) {
|