@hpcc-js/layout 2.47.2 → 2.47.5
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/README.md +36 -1
- package/dist/index.es6.js +5 -13
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +9 -17
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +6 -6
- package/src/ChartPanel.ts +3 -2
- package/src/Layered.ts +0 -1
- package/src/Legend.ts +22 -28
- package/src/Popup.ts +0 -1
- package/src/Surface.ts +0 -1
- package/src/__package__.ts +2 -2
- package/types/ChartPanel.d.ts +1 -1
- package/types/ChartPanel.d.ts.map +1 -1
- package/types/Layered.d.ts.map +1 -1
- package/types/Legend.d.ts.map +1 -1
- package/types/Popup.d.ts.map +1 -1
- package/types/Surface.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types-3.4/ChartPanel.d.ts +1 -1
- package/types-3.4/__package__.d.ts +2 -2
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/
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@hpcc-js/common', '@hpcc-js/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@hpcc-js/layout"] = {}, global["@hpcc-js/common"], global["@hpcc-js/
|
|
5
|
-
})(this, (function (exports, common,
|
|
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.
|
|
24
|
-
var BUILD_VERSION = "2.
|
|
23
|
+
var PKG_VERSION = "2.47.5";
|
|
24
|
+
var BUILD_VERSION = "2.103.1";
|
|
25
25
|
|
|
26
26
|
/*! *****************************************************************************
|
|
27
27
|
Copyright (c) Microsoft Corporation.
|
|
@@ -432,7 +432,6 @@
|
|
|
432
432
|
};
|
|
433
433
|
// Events ---
|
|
434
434
|
Surface.prototype.click = function (obj) {
|
|
435
|
-
console.log("Clicked: " + obj.id);
|
|
436
435
|
};
|
|
437
436
|
return Surface;
|
|
438
437
|
}(common.HTMLWidget));
|
|
@@ -2619,14 +2618,8 @@
|
|
|
2619
2618
|
}
|
|
2620
2619
|
};
|
|
2621
2620
|
Legend.prototype.onDblClick = function (rowData, rowIdx) {
|
|
2622
|
-
console.log("Legend onDblClick method");
|
|
2623
|
-
console.log("rowData: " + rowData);
|
|
2624
|
-
console.log("rowIdx: " + rowIdx);
|
|
2625
2621
|
};
|
|
2626
2622
|
Legend.prototype.onMouseOver = function (rowData, rowIdx) {
|
|
2627
|
-
console.log("Legend onMouseOver method");
|
|
2628
|
-
console.log("rowData: " + rowData);
|
|
2629
|
-
console.log("rowIdx: " + rowIdx);
|
|
2630
2623
|
};
|
|
2631
2624
|
Legend.prototype.resize = function (_size) {
|
|
2632
2625
|
var retVal;
|
|
@@ -2948,7 +2941,7 @@
|
|
|
2948
2941
|
_this._spacer = new common.Spacer();
|
|
2949
2942
|
_this._titleBar = new common.TitleBar().buttons([_this._toggleData, _this._buttonDownload, _this._buttonDownloadImage, _this._spacer, _this._toggleLegend]);
|
|
2950
2943
|
_this._carousel = new Carousel();
|
|
2951
|
-
_this._table = new
|
|
2944
|
+
_this._table = new dgrid2.Table();
|
|
2952
2945
|
_this._hideLegendToggleList = ["dgrid_Table"];
|
|
2953
2946
|
_this._tag = "div";
|
|
2954
2947
|
return _this;
|
|
@@ -3133,12 +3126,13 @@
|
|
|
3133
3126
|
if (this._prevdataVisible !== this.dataVisible()) {
|
|
3134
3127
|
this._prevdataVisible = this.dataVisible();
|
|
3135
3128
|
this._toggleData.selected(this._prevdataVisible);
|
|
3129
|
+
this._legend.visible(this._prevlegendVisible && !this._prevdataVisible);
|
|
3136
3130
|
this._carousel.active(this._prevdataVisible ? 1 : 0);
|
|
3137
3131
|
}
|
|
3138
3132
|
if (this._prevlegendVisible !== this.legendVisible()) {
|
|
3139
3133
|
this._prevlegendVisible = this.legendVisible();
|
|
3140
3134
|
this._toggleLegend.selected(this._prevlegendVisible);
|
|
3141
|
-
this._legend.visible(this._prevlegendVisible);
|
|
3135
|
+
this._legend.visible(this._prevlegendVisible && !this._prevdataVisible);
|
|
3142
3136
|
}
|
|
3143
3137
|
this._legend.orientation(this.legendPosition() === "bottom" ? "horizontal" : "vertical");
|
|
3144
3138
|
this.showLeft(!this.left());
|
|
@@ -4706,7 +4700,6 @@
|
|
|
4706
4700
|
};
|
|
4707
4701
|
var widgetSize = context.widgetSize(idx, clientSize);
|
|
4708
4702
|
var widgetPosition = context.widgetPosition(idx, clientSize, widgetSize);
|
|
4709
|
-
console.log("widgetPosition", widgetPosition);
|
|
4710
4703
|
this.style.top = widgetPosition.y + "px";
|
|
4711
4704
|
this.style.left = widgetPosition.x + "px";
|
|
4712
4705
|
widget
|
|
@@ -4842,7 +4835,6 @@
|
|
|
4842
4835
|
_super.prototype.exit.call(this, domNode, element);
|
|
4843
4836
|
};
|
|
4844
4837
|
Popup.prototype.click = function (obj) {
|
|
4845
|
-
console.log("Clicked: " + obj.id);
|
|
4846
4838
|
};
|
|
4847
4839
|
return Popup;
|
|
4848
4840
|
}(common.HTMLWidget));
|