logitude-dashboard-library 3.2.8 → 3.2.9
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -419,13 +419,13 @@ var KpiChart = function KpiChart(props) {
|
|
|
419
419
|
var formatedValue = data ? data.ComparisonLabel : "";
|
|
420
420
|
var comparisonValue = data ? data === null || data === void 0 ? void 0 : data.ComparisonValue : "";
|
|
421
421
|
return React__default.createElement("div", {
|
|
422
|
+
title: formatedValue,
|
|
422
423
|
className: "dl-kpi-prev-container"
|
|
423
424
|
}, React__default.createElement("div", {
|
|
424
425
|
style: {
|
|
425
426
|
color: getKPIFormattingPropertyValue("ComparisonValueFontColor"),
|
|
426
427
|
fontSize: getKPIFormattingPropertyValue("ComparisonValueFontSize", "px")
|
|
427
428
|
},
|
|
428
|
-
title: formatedValue,
|
|
429
429
|
className: "dl-kpi-prev-text"
|
|
430
430
|
}, comparisonValue), (data === null || data === void 0 ? void 0 : data.ComparisonAbbreviationSymbol) && React__default.createElement("div", {
|
|
431
431
|
style: {
|
|
@@ -479,7 +479,8 @@ var KpiChart = function KpiChart(props) {
|
|
|
479
479
|
if (widget.current && widget.current.KPIComparisonSettings && widget.current.KPIComparisonSettings.length) {
|
|
480
480
|
var kpiSettings = JSON.parse(widget.current.KPIComparisonSettings);
|
|
481
481
|
var PeriodDateFilter = kpiSettings ? kpiSettings.PeriodDateFilter : null;
|
|
482
|
-
|
|
482
|
+
var isKPISettingsActivated = !isNullOrUndefinedOrEmpty(kpiSettings.PeriodFieldId);
|
|
483
|
+
return isKPISettingsActivated && PeriodDateFilter && PeriodDateFilter.DateTimeValueCode ? getPeriodLabelByPeriodCode(PeriodDateFilter.DateTimeValueCode) : "";
|
|
483
484
|
}
|
|
484
485
|
|
|
485
486
|
return "";
|