@hpcc-js/phosphor 3.2.10 → 3.2.11
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 +31 -31
- 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
|
@@ -16720,9 +16720,9 @@ var Private;
|
|
|
16720
16720
|
var Msg;
|
|
16721
16721
|
((Msg2) => {
|
|
16722
16722
|
const _WAConflatableMessage = class _WAConflatableMessage extends ConflatableMessage {
|
|
16723
|
+
_wa;
|
|
16723
16724
|
constructor(wa, msg) {
|
|
16724
16725
|
super(msg);
|
|
16725
|
-
__publicField(this, "_wa");
|
|
16726
16726
|
this._wa = wa;
|
|
16727
16727
|
}
|
|
16728
16728
|
get wa() {
|
|
@@ -16756,18 +16756,21 @@ var Msg;
|
|
|
16756
16756
|
Msg2.WALayoutChanged = WALayoutChanged;
|
|
16757
16757
|
})(Msg || (Msg = {}));
|
|
16758
16758
|
const _WidgetAdapter = class _WidgetAdapter extends Widget {
|
|
16759
|
+
_owner;
|
|
16760
|
+
_element;
|
|
16761
|
+
_widget;
|
|
16762
|
+
get widget() {
|
|
16763
|
+
return this._widget;
|
|
16764
|
+
}
|
|
16765
|
+
_widgetLayout;
|
|
16766
|
+
lparam = {};
|
|
16767
|
+
padding = 0;
|
|
16768
|
+
_width = 0;
|
|
16769
|
+
_height = 0;
|
|
16770
|
+
_ext;
|
|
16771
|
+
_closable;
|
|
16759
16772
|
constructor(owner, widget, lparam = {}, closable = false, ext = {}) {
|
|
16760
16773
|
super();
|
|
16761
|
-
__publicField(this, "_owner");
|
|
16762
|
-
__publicField(this, "_element");
|
|
16763
|
-
__publicField(this, "_widget");
|
|
16764
|
-
__publicField(this, "_widgetLayout");
|
|
16765
|
-
__publicField(this, "lparam", {});
|
|
16766
|
-
__publicField(this, "padding", 0);
|
|
16767
|
-
__publicField(this, "_width", 0);
|
|
16768
|
-
__publicField(this, "_height", 0);
|
|
16769
|
-
__publicField(this, "_ext");
|
|
16770
|
-
__publicField(this, "_closable");
|
|
16771
16774
|
this._owner = owner;
|
|
16772
16775
|
this._element = select(this.node);
|
|
16773
16776
|
this.addClass("phosphor_WidgetAdapter");
|
|
@@ -16791,9 +16794,6 @@ const _WidgetAdapter = class _WidgetAdapter extends Widget {
|
|
|
16791
16794
|
}
|
|
16792
16795
|
this.lparam = lparam;
|
|
16793
16796
|
}
|
|
16794
|
-
get widget() {
|
|
16795
|
-
return this._widget;
|
|
16796
|
-
}
|
|
16797
16797
|
get inputNode() {
|
|
16798
16798
|
return this.node.getElementsByTagName("input")[0];
|
|
16799
16799
|
}
|
|
@@ -16867,9 +16867,9 @@ const _WidgetAdapterArray = class _WidgetAdapterArray extends Array {
|
|
|
16867
16867
|
__name(_WidgetAdapterArray, "WidgetAdapterArray");
|
|
16868
16868
|
let WidgetAdapterArray = _WidgetAdapterArray;
|
|
16869
16869
|
const _PRenderer = class _PRenderer extends DockPanel$1.Renderer {
|
|
16870
|
+
_owner;
|
|
16870
16871
|
constructor() {
|
|
16871
16872
|
super();
|
|
16872
|
-
__publicField(this, "_owner");
|
|
16873
16873
|
}
|
|
16874
16874
|
createTabBar() {
|
|
16875
16875
|
const bar = super.createTabBar();
|
|
@@ -16880,11 +16880,11 @@ const _PRenderer = class _PRenderer extends DockPanel$1.Renderer {
|
|
|
16880
16880
|
__name(_PRenderer, "PRenderer");
|
|
16881
16881
|
let PRenderer = _PRenderer;
|
|
16882
16882
|
const _PDockPanel = class _PDockPanel extends DockPanel$1 {
|
|
16883
|
+
_content;
|
|
16884
|
+
_contentMap;
|
|
16883
16885
|
constructor(options = {}) {
|
|
16884
16886
|
options.renderer = options.renderer || new PRenderer();
|
|
16885
16887
|
super(options);
|
|
16886
|
-
__publicField(this, "_content");
|
|
16887
|
-
__publicField(this, "_contentMap");
|
|
16888
16888
|
if (this["_renderer"] instanceof PRenderer) {
|
|
16889
16889
|
this["_renderer"]._owner = this;
|
|
16890
16890
|
}
|
|
@@ -16968,17 +16968,9 @@ const _PDockPanel = class _PDockPanel extends DockPanel$1 {
|
|
|
16968
16968
|
__name(_PDockPanel, "PDockPanel");
|
|
16969
16969
|
let PDockPanel = _PDockPanel;
|
|
16970
16970
|
const _DockPanel = class _DockPanel extends HTMLWidget {
|
|
16971
|
+
_dock = new PDockPanel({ mode: "multiple-document" });
|
|
16971
16972
|
constructor() {
|
|
16972
16973
|
super();
|
|
16973
|
-
__publicField(this, "_dock", new PDockPanel({ mode: "multiple-document" }));
|
|
16974
|
-
// Used to delay load a layout during render...
|
|
16975
|
-
__publicField(this, "_layoutObj", null);
|
|
16976
|
-
__publicField(this, "_pPlaceholder");
|
|
16977
|
-
__publicField(this, "_prevHideSingleTabs");
|
|
16978
|
-
__publicField(this, "_lazyLayoutChanged", Utility.debounce(async () => {
|
|
16979
|
-
this.layoutChanged();
|
|
16980
|
-
}, 1e3));
|
|
16981
|
-
__publicField(this, "_prevActive");
|
|
16982
16974
|
this._tag = "div";
|
|
16983
16975
|
this._dock.id = "p" + this.id();
|
|
16984
16976
|
MessageLoop.installMessageHook(this, this);
|
|
@@ -17026,15 +17018,19 @@ const _DockPanel = class _DockPanel extends HTMLWidget {
|
|
|
17026
17018
|
this._dock.restoreLayout(_);
|
|
17027
17019
|
return this;
|
|
17028
17020
|
}
|
|
17021
|
+
// Used to delay load a layout during render...
|
|
17022
|
+
_layoutObj = null;
|
|
17029
17023
|
layoutObj(_) {
|
|
17030
17024
|
this._layoutObj = _;
|
|
17031
17025
|
return this;
|
|
17032
17026
|
}
|
|
17027
|
+
_pPlaceholder;
|
|
17033
17028
|
enter(domNode, element) {
|
|
17034
17029
|
super.enter(domNode, element);
|
|
17035
17030
|
this._pPlaceholder = element.append("div");
|
|
17036
17031
|
Widget.attach(this._dock, this._pPlaceholder.node());
|
|
17037
17032
|
}
|
|
17033
|
+
_prevHideSingleTabs;
|
|
17038
17034
|
update(domNode, element) {
|
|
17039
17035
|
super.update(domNode, element);
|
|
17040
17036
|
this._pPlaceholder.style("width", this.width() + "px").style("height", this.height() + "px").style("overflow", "hidden");
|
|
@@ -17083,6 +17079,10 @@ const _DockPanel = class _DockPanel extends HTMLWidget {
|
|
|
17083
17079
|
}
|
|
17084
17080
|
return true;
|
|
17085
17081
|
}
|
|
17082
|
+
_lazyLayoutChanged = Utility.debounce(async () => {
|
|
17083
|
+
this.layoutChanged();
|
|
17084
|
+
}, 1e3);
|
|
17085
|
+
_prevActive;
|
|
17086
17086
|
processMessage(msg) {
|
|
17087
17087
|
switch (msg.type) {
|
|
17088
17088
|
case Msg.WAActivateRequest.type:
|
|
@@ -17112,10 +17112,10 @@ let DockPanel = _DockPanel;
|
|
|
17112
17112
|
DockPanel.prototype._class += " phosphor_DockPanel";
|
|
17113
17113
|
DockPanel.prototype.publish("hideSingleTabs", false, "boolean");
|
|
17114
17114
|
const _SplitPanel = class _SplitPanel extends HTMLWidget {
|
|
17115
|
+
_split;
|
|
17116
|
+
content = WidgetAdapterArray.create();
|
|
17115
17117
|
constructor(orientation = "vertical") {
|
|
17116
17118
|
super();
|
|
17117
|
-
__publicField(this, "_split");
|
|
17118
|
-
__publicField(this, "content", WidgetAdapterArray.create());
|
|
17119
17119
|
this._split = new SplitPanel$1({ orientation });
|
|
17120
17120
|
this._tag = "div";
|
|
17121
17121
|
this._split.id = "p" + this.id();
|
|
@@ -17165,11 +17165,10 @@ __name(_SplitPanel, "SplitPanel");
|
|
|
17165
17165
|
let SplitPanel = _SplitPanel;
|
|
17166
17166
|
SplitPanel.prototype._class += " phosphor_SplitPanel";
|
|
17167
17167
|
const _TabPanel = class _TabPanel extends HTMLWidget {
|
|
17168
|
+
_tab = new TabPanel$1({ tabPlacement: "top" });
|
|
17169
|
+
content = WidgetAdapterArray.create();
|
|
17168
17170
|
constructor() {
|
|
17169
17171
|
super();
|
|
17170
|
-
__publicField(this, "_tab", new TabPanel$1({ tabPlacement: "top" }));
|
|
17171
|
-
__publicField(this, "content", WidgetAdapterArray.create());
|
|
17172
|
-
__publicField(this, "_prevActive");
|
|
17173
17172
|
this._tag = "div";
|
|
17174
17173
|
this._tab.id = "p" + this.id();
|
|
17175
17174
|
}
|
|
@@ -17237,6 +17236,7 @@ const _TabPanel = class _TabPanel extends HTMLWidget {
|
|
|
17237
17236
|
}
|
|
17238
17237
|
return true;
|
|
17239
17238
|
}
|
|
17239
|
+
_prevActive;
|
|
17240
17240
|
processMessage(msg) {
|
|
17241
17241
|
switch (msg.type) {
|
|
17242
17242
|
case "wa-activate-request":
|