@hpcc-js/layout 2.47.3 → 2.47.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
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/common'), require('@hpcc-js/dgrid'), require('@hpcc-js/api')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common', '@hpcc-js/dgrid', '@hpcc-js/api'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/layout"] = {}, global["@hpcc-js/common"], global["@hpcc-js/dgrid"], global["@hpcc-js/api"]));
5
- })(this, (function (exports, common, dgrid, api) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@hpcc-js/common'), require('@hpcc-js/dgrid2'), require('@hpcc-js/api')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common', '@hpcc-js/dgrid2', '@hpcc-js/api'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/layout"] = {}, global["@hpcc-js/common"], global["@hpcc-js/dgrid2"], global["@hpcc-js/api"]));
5
+ })(this, (function (exports, common, dgrid2, api) { 'use strict';
6
6
 
7
7
  function _mergeNamespaces(n, m) {
8
8
  m.forEach(function (e) {
@@ -20,8 +20,8 @@
20
20
  }
21
21
 
22
22
  var PKG_NAME = "@hpcc-js/layout";
23
- var PKG_VERSION = "2.47.3";
24
- var BUILD_VERSION = "2.102.11";
23
+ var PKG_VERSION = "2.47.4";
24
+ var BUILD_VERSION = "2.103.0";
25
25
 
26
26
  /*! *****************************************************************************
27
27
  Copyright (c) Microsoft Corporation.
@@ -2941,7 +2941,7 @@
2941
2941
  _this._spacer = new common.Spacer();
2942
2942
  _this._titleBar = new common.TitleBar().buttons([_this._toggleData, _this._buttonDownload, _this._buttonDownloadImage, _this._spacer, _this._toggleLegend]);
2943
2943
  _this._carousel = new Carousel();
2944
- _this._table = new dgrid.Table();
2944
+ _this._table = new dgrid2.Table();
2945
2945
  _this._hideLegendToggleList = ["dgrid_Table"];
2946
2946
  _this._tag = "div";
2947
2947
  return _this;
@@ -3126,12 +3126,13 @@
3126
3126
  if (this._prevdataVisible !== this.dataVisible()) {
3127
3127
  this._prevdataVisible = this.dataVisible();
3128
3128
  this._toggleData.selected(this._prevdataVisible);
3129
+ this._legend.visible(this._prevlegendVisible && !this._prevdataVisible);
3129
3130
  this._carousel.active(this._prevdataVisible ? 1 : 0);
3130
3131
  }
3131
3132
  if (this._prevlegendVisible !== this.legendVisible()) {
3132
3133
  this._prevlegendVisible = this.legendVisible();
3133
3134
  this._toggleLegend.selected(this._prevlegendVisible);
3134
- this._legend.visible(this._prevlegendVisible);
3135
+ this._legend.visible(this._prevlegendVisible && !this._prevdataVisible);
3135
3136
  }
3136
3137
  this._legend.orientation(this.legendPosition() === "bottom" ? "horizontal" : "vertical");
3137
3138
  this.showLeft(!this.left());