logitude-dashboard-library 1.4.82 → 1.4.84
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 +7 -37
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -37
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -741,7 +741,7 @@ function getSeriesPositionColor(position) {
|
|
|
741
741
|
|
|
742
742
|
function buildToolTip(widget, value, seriesName, label, index) {
|
|
743
743
|
var padding = widget.TypeCode == 'line' && index > 0 ? 'padding-top: 3px' : '';
|
|
744
|
-
return "\n <div style=\"min-width: 108px;" + padding + "\">\n <div style=\"display: flex;align-items: center;margin-bottom: 6px;\">\n <span style=\"margin: 0; height: 10px; width: 10px; background-color:
|
|
744
|
+
return "\n <div style=\"min-width: 108px;" + padding + "\">\n <div style=\"display: flex;align-items: center;margin-bottom: 6px;\">\n <span style=\"margin: 0; height: 10px; width: 10px; background-color: #A4A4A4; border-radius: 50%; display: inline-block;\"></span>\n <p style=\" margin: 0; margin-left: 4px;font-family: 'Manrope'; font-style: normal;font-weight: 400; font-size: 11px; line-height: 100%; color: #323232; flex: none; order: 1;flex-grow: 0;\"> " + getTooltiplabel(label) + "</p>\n </div>\n <hr style=\"margin: 0;border-top: 1px solid #F0F0F0;\">\n <div style=\"display: flex;align-items: center;margin:0;margin-top: 6px;\">\n <p style=\"margin: 0;font-family: 'Manrope';font-style: normal;font-weight: 400; font-size: 11px;line-height: 100%;color: #A4A4A4;flex: none;order: 0;flex-grow: 0;\"> " + getMeasureType(seriesName) + "</p>\n <p style=\"margin: 0;margin-left: 6px;font-family: 'Manrope';font-style: normal;font-weight: 500;font-size: 11px;line-height: 100%; color: #323232;flex: none; order: 1;flex-grow: 0;\">" + getTooltipValue(value) + "</p>\n " + getTooltipPercentage(widget) + " </div>\n </div>\n ";
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
function getTooltipPercentage(widget) {
|
|
@@ -1550,25 +1550,6 @@ var FusionChart = React.forwardRef(function (props, comRef) {
|
|
|
1550
1550
|
setFchart(chart);
|
|
1551
1551
|
};
|
|
1552
1552
|
|
|
1553
|
-
var dataplotRollOver = function dataplotRollOver(event, plotObj) {
|
|
1554
|
-
var chartData = event.sender.getChartData();
|
|
1555
|
-
var plotColor = plotObj.color;
|
|
1556
|
-
|
|
1557
|
-
if (chartData && chartData.dataset && chartData.dataset.length) {
|
|
1558
|
-
chartData.dataset.forEach(function (el, index) {
|
|
1559
|
-
if (index == plotObj.datasetIndex) {
|
|
1560
|
-
el.data.forEach(function (item, index2) {
|
|
1561
|
-
if (plotObj.dataIndex == index2 && item.tooltext && item.tooltext.replace) {
|
|
1562
|
-
item.tooltext = item.tooltext.replace("transparent", plotColor);
|
|
1563
|
-
}
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
event.sender.setChartData(chartData);
|
|
1570
|
-
};
|
|
1571
|
-
|
|
1572
1553
|
return !dataLoaded ? React__default.createElement("div", {
|
|
1573
1554
|
ref: progressRef,
|
|
1574
1555
|
className: 'dl-full-hight dl-flex-content-center spinner-custome'
|
|
@@ -1589,8 +1570,7 @@ var FusionChart = React.forwardRef(function (props, comRef) {
|
|
|
1589
1570
|
id: id
|
|
1590
1571
|
}, React__default.createElement(ReactFC, Object.assign({}, args, {
|
|
1591
1572
|
"fcEvent-dataplotClick": dataplotClick,
|
|
1592
|
-
onRender: renderComplete
|
|
1593
|
-
"fcEvent-dataplotRollOver": dataplotRollOver
|
|
1573
|
+
onRender: renderComplete
|
|
1594
1574
|
})))) : React__default.createElement("div", {
|
|
1595
1575
|
className: "dl-flex-content-center dl-full-hight",
|
|
1596
1576
|
style: {
|
|
@@ -1704,15 +1684,11 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
1704
1684
|
isLoading = _useState[0],
|
|
1705
1685
|
setIsLoading = _useState[1];
|
|
1706
1686
|
|
|
1707
|
-
var _useState2 = React.useState(false),
|
|
1708
|
-
isWidgetHovered = _useState2[0],
|
|
1709
|
-
setIsWidgetHovered = _useState2[1];
|
|
1710
|
-
|
|
1711
1687
|
var fusionChartRef = React.useRef(null);
|
|
1712
1688
|
|
|
1713
|
-
var
|
|
1714
|
-
triggerId =
|
|
1715
|
-
setTriggerId =
|
|
1689
|
+
var _useState2 = React.useState(uuid.v4()),
|
|
1690
|
+
triggerId = _useState2[0],
|
|
1691
|
+
setTriggerId = _useState2[1];
|
|
1716
1692
|
|
|
1717
1693
|
var editWidget = function editWidget() {
|
|
1718
1694
|
props.editBtnClicked(widget.current);
|
|
@@ -1790,13 +1766,7 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
1790
1766
|
|
|
1791
1767
|
return React__default.createElement("div", {
|
|
1792
1768
|
className: "dl-panel",
|
|
1793
|
-
key: props.el.i
|
|
1794
|
-
onMouseEnter: function onMouseEnter() {
|
|
1795
|
-
return setIsWidgetHovered(true);
|
|
1796
|
-
},
|
|
1797
|
-
onMouseLeave: function onMouseLeave() {
|
|
1798
|
-
setIsWidgetHovered(false);
|
|
1799
|
-
}
|
|
1769
|
+
key: props.el.i
|
|
1800
1770
|
}, React__default.createElement("header", {
|
|
1801
1771
|
key: triggerId,
|
|
1802
1772
|
className: "widget-header"
|
|
@@ -1839,7 +1809,7 @@ var WidgetCard = React.forwardRef(function (props, comRef) {
|
|
|
1839
1809
|
}
|
|
1840
1810
|
}, (_widget$current11 = widget.current) === null || _widget$current11 === void 0 ? void 0 : _widget$current11.Subtitle)), React__default.createElement("div", {
|
|
1841
1811
|
className: (_widget$current12 = widget.current) !== null && _widget$current12 !== void 0 && _widget$current12.Title && ((_widget$current13 = widget.current) === null || _widget$current13 === void 0 ? void 0 : _widget$current13.Title.length) > 0 ? "widget-options-container" : "widget-options-container margin-top-6"
|
|
1842
|
-
}, props.isInEditMode
|
|
1812
|
+
}, props.isInEditMode ? React__default.createElement(React__default.Fragment, null, React__default.createElement(SvgEditIcon, {
|
|
1843
1813
|
onClick: function onClick() {
|
|
1844
1814
|
return editWidget();
|
|
1845
1815
|
}
|