@hpcc-js/phosphor 2.19.2 → 2.20.1

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.es6.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { select, Widget as Widget$1, Utility, HTMLWidget } from '@hpcc-js/common';
2
2
 
3
3
  var PKG_NAME = "@hpcc-js/phosphor";
4
- var PKG_VERSION = "2.19.2";
5
- var BUILD_VERSION = "2.106.4";
4
+ var PKG_VERSION = "2.20.1";
5
+ var BUILD_VERSION = "2.108.1";
6
6
 
7
7
  // Copyright (c) Jupyter Development Team.
8
8
  // Distributed under the terms of the Modified BSD License.
@@ -2036,10 +2036,6 @@ function reduce(object, fn, initial) {
2036
2036
  var index = 0;
2037
2037
  var it = iter(object);
2038
2038
  var first = it.next();
2039
- // An empty iterator and no initial value is an error.
2040
- if (first === undefined && initial === undefined) {
2041
- throw new TypeError('Reduce of empty iterable with no initial value.');
2042
- }
2043
2039
  // If the iterator is empty, return the initial value.
2044
2040
  if (first === undefined) {
2045
2041
  return initial;
@@ -2047,9 +2043,6 @@ function reduce(object, fn, initial) {
2047
2043
  // If the iterator has a single item and no initial value, the
2048
2044
  // reducer is not invoked and the first item is the return value.
2049
2045
  var second = it.next();
2050
- if (second === undefined && initial === undefined) {
2051
- return first;
2052
- }
2053
2046
  // If iterator has a single item and an initial value is provided,
2054
2047
  // the reducer is invoked and that result is the return value.
2055
2048
  if (second === undefined) {
@@ -26094,7 +26087,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
26094
26087
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26095
26088
  PERFORMANCE OF THIS SOFTWARE.
26096
26089
  ***************************************************************************** */
26097
- /* global Reflect, Promise, SuppressedError, Symbol */
26090
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
26098
26091
 
26099
26092
  var extendStatics = function(d, b) {
26100
26093
  extendStatics = Object.setPrototypeOf ||
@@ -26133,8 +26126,8 @@ function __awaiter(thisArg, _arguments, P, generator) {
26133
26126
  }
26134
26127
 
26135
26128
  function __generator(thisArg, body) {
26136
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
26137
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26129
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
26130
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26138
26131
  function verb(n) { return function (v) { return step([n, v]); }; }
26139
26132
  function step(op) {
26140
26133
  if (f) throw new TypeError("Generator is already executing.");
@@ -26555,7 +26548,7 @@ var DockPanel = /** @class */ (function (_super) {
26555
26548
  this._pPlaceholder
26556
26549
  .style("width", this.width() + "px")
26557
26550
  .style("height", this.height() + "px")
26558
- .style("overflow", "auto");
26551
+ .style("overflow", "hidden");
26559
26552
  element.select(".p-Widget")
26560
26553
  .style("width", this._pPlaceholder.node().clientWidth + "px")
26561
26554
  .style("height", this.height() + "px");