@hpcc-js/phosphor 2.17.0 → 2.18.0

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
@@ -5,8 +5,8 @@
5
5
  })(this, (function (exports, common) { 'use strict';
6
6
 
7
7
  var PKG_NAME = "@hpcc-js/phosphor";
8
- var PKG_VERSION = "2.17.0";
9
- var BUILD_VERSION = "2.104.34";
8
+ var PKG_VERSION = "2.18.0";
9
+ var BUILD_VERSION = "2.104.35";
10
10
 
11
11
  // Copyright (c) Jupyter Development Team.
12
12
  // Distributed under the terms of the Modified BSD License.
@@ -26397,8 +26397,8 @@
26397
26397
  var PDockPanel = /** @class */ (function (_super) {
26398
26398
  __extends(PDockPanel, _super);
26399
26399
  function PDockPanel(options) {
26400
- var _this = this;
26401
26400
  if (options === void 0) { options = {}; }
26401
+ var _this = this;
26402
26402
  options.renderer = options.renderer || new PRenderer();
26403
26403
  _this = _super.call(this, options) || this;
26404
26404
  if (_this["_renderer"] instanceof PRenderer) {
@@ -26513,12 +26513,13 @@
26513
26513
  });
26514
26514
  return retVal;
26515
26515
  };
26516
- DockPanel.prototype.addWidget = function (widget, title, location, refWidget, closable) {
26516
+ DockPanel.prototype.addWidget = function (widget, title, location, refWidget, closable, padding) {
26517
26517
  if (location === void 0) { location = "split-right"; }
26518
+ if (padding === void 0) { padding = 8; }
26518
26519
  var addMode = { mode: location, ref: this.getWidgetAdapter(refWidget) };
26519
26520
  var wa = new WidgetAdapter(this, widget, {}, closable);
26520
26521
  wa.title.label = title;
26521
- wa.padding = 8;
26522
+ wa.padding = padding;
26522
26523
  this._dock.addWidget(wa, addMode);
26523
26524
  this._dock.appendContent(wa);
26524
26525
  this._dock.tabsMovable = true;