@hpcc-js/phosphor 3.8.2 → 3.8.4

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 CHANGED
@@ -3,7 +3,14 @@ import { HTMLWidget as e, Utility as t, Widget as n, select as r } from "@hpcc-j
3
3
  var i = Object.defineProperty, __name = (e, t) => i(e, "name", {
4
4
  value: t,
5
5
  configurable: !0
6
- }), a = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.prototype.hasOwnProperty, __esmMin = (e, t) => () => (e && (t = e(e = 0)), t), __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), __exportAll = (e, t) => {
6
+ }), a = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.prototype.hasOwnProperty, __esmMin = (e, t, n) => () => {
7
+ if (n) throw n[0];
8
+ try {
9
+ return e && (t = e(e = 0)), t;
10
+ } catch (e) {
11
+ throw n = [e], e;
12
+ }
13
+ }, __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), __exportAll = (e, t) => {
7
14
  let n = {};
8
15
  for (var r in e) i(n, r, {
9
16
  get: e[r],
@@ -16,7 +23,7 @@ var i = Object.defineProperty, __name = (e, t) => i(e, "name", {
16
23
  enumerable: !(r = a(t, d)) || r.enumerable
17
24
  });
18
25
  return e;
19
- }, __toCommonJS = (e) => s.call(e, "module.exports") ? e["module.exports"] : __copyProps(i({}, "__esModule", { value: !0 }), e), c = "@hpcc-js/phosphor", l = "3.8.2", u = "3.27.2", d = /* @__PURE__ */ __exportAll({
26
+ }, __toCommonJS = (e) => s.call(e, "module.exports") ? e["module.exports"] : __copyProps(i({}, "__esModule", { value: !0 }), e), c = "@hpcc-js/phosphor", l = "3.8.4", u = "3.29.1", d = /* @__PURE__ */ __exportAll({
20
27
  ArrayExt: () => f,
21
28
  StringExt: () => m,
22
29
  chain: () => chain,
@@ -730,7 +737,7 @@ var f, p, m, g = __esmMin((() => {
730
737
  })();
731
738
  })(e.Random ||= {});
732
739
  function uuid4Factory(e) {
733
- let t = new Uint8Array(16), n = Array(256);
740
+ let t = /* @__PURE__ */ new Uint8Array(16), n = Array(256);
734
741
  for (let e = 0; e < 16; ++e) n[e] = "0" + e.toString(16);
735
742
  for (let e = 16; e < 256; ++e) n[e] = e.toString(16);
736
743
  return function uuid4() {
@@ -1762,7 +1769,7 @@ var Message = class {
1762
1769
  invokeHandler(e, t);
1763
1770
  return;
1764
1771
  }
1765
- every(retro(n), (n) => n ? invokeHook(n, e, t) : !0) && invokeHandler(e, t);
1772
+ every(retro(n), (n) => !n || invokeHook(n, e, t)) && invokeHandler(e, t);
1766
1773
  }
1767
1774
  e.sendMessage = sendMessage;
1768
1775
  function postMessage(e, t) {
@@ -2837,7 +2844,7 @@ var Title = class {
2837
2844
  this.node.style.transform = "scale(0)", this.node.setAttribute("aria-hidden", "true");
2838
2845
  break;
2839
2846
  case Widget$1.HiddenMode.ContentVisibility:
2840
- this.node.style.contentVisibility = "hidden", this.node.style.zIndex = "-1";
2847
+ this.node.style.contentVisibility = "hidden", this.node.style.zIndex = "-1", this.node.style.opacity = "0";
2841
2848
  break;
2842
2849
  }
2843
2850
  else switch (this._hiddenMode) {
@@ -2848,7 +2855,7 @@ var Title = class {
2848
2855
  this.node.style.transform = "", this.node.removeAttribute("aria-hidden");
2849
2856
  break;
2850
2857
  case Widget$1.HiddenMode.ContentVisibility:
2851
- this.node.style.contentVisibility = "", this.node.style.zIndex = "";
2858
+ this.node.style.contentVisibility = "", this.node.style.zIndex = "", this.node.style.opacity = "";
2852
2859
  break;
2853
2860
  }
2854
2861
  }
@@ -4803,13 +4810,13 @@ var G;
4803
4810
  return this.type === "command" ? this._commands.dataset(this.command, this.args) : this.type === "submenu" && this.submenu ? this.submenu.title.dataset : {};
4804
4811
  }
4805
4812
  get isEnabled() {
4806
- return this.type === "command" ? this._commands.isEnabled(this.command, this.args) : this.type === "submenu" ? this.submenu !== null : !0;
4813
+ return this.type === "command" ? this._commands.isEnabled(this.command, this.args) : this.type !== "submenu" || this.submenu !== null;
4807
4814
  }
4808
4815
  get isToggled() {
4809
- return this.type === "command" ? this._commands.isToggled(this.command, this.args) : !1;
4816
+ return this.type === "command" && this._commands.isToggled(this.command, this.args);
4810
4817
  }
4811
4818
  get isVisible() {
4812
- return this.type === "command" ? this._commands.isVisible(this.command, this.args) : this.type === "submenu" ? this.submenu !== null : !0;
4819
+ return this.type === "command" ? this._commands.isVisible(this.command, this.args) : this.type !== "submenu" || this.submenu !== null;
4813
4820
  }
4814
4821
  get keyBinding() {
4815
4822
  if (this.type === "command") {
@@ -7552,8 +7559,8 @@ var WidgetAdapter = class extends F {
7552
7559
  for (let t = 0; t < e.children.length; t++) {
7553
7560
  let a = e.children[t];
7554
7561
  if (a.type === "split-area") {
7555
- let o = e.sizes[t] / (e.sizes.reduce((e, t) => e + t, 0) || 1);
7556
- applySizes(a, i ? n * o : n, i ? r : r * o);
7562
+ let o = e.sizes[t] / (e.sizes.reduce((e, t) => e + t, 0) || 1), s = i ? n * o : n, c = i ? r : r * o;
7563
+ applySizes(a, s, c);
7557
7564
  }
7558
7565
  }
7559
7566
  };