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.js
CHANGED
|
@@ -422,13 +422,13 @@ var KpiChart = function KpiChart(props) {
|
|
|
422
422
|
var formatedValue = data ? data.ComparisonLabel : "";
|
|
423
423
|
var comparisonValue = data ? data === null || data === void 0 ? void 0 : data.ComparisonValue : "";
|
|
424
424
|
return React__default.createElement("div", {
|
|
425
|
+
title: formatedValue,
|
|
425
426
|
className: "dl-kpi-prev-container"
|
|
426
427
|
}, React__default.createElement("div", {
|
|
427
428
|
style: {
|
|
428
429
|
color: getKPIFormattingPropertyValue("ComparisonValueFontColor"),
|
|
429
430
|
fontSize: getKPIFormattingPropertyValue("ComparisonValueFontSize", "px")
|
|
430
431
|
},
|
|
431
|
-
title: formatedValue,
|
|
432
432
|
className: "dl-kpi-prev-text"
|
|
433
433
|
}, comparisonValue), (data === null || data === void 0 ? void 0 : data.ComparisonAbbreviationSymbol) && React__default.createElement("div", {
|
|
434
434
|
style: {
|
|
@@ -482,7 +482,8 @@ var KpiChart = function KpiChart(props) {
|
|
|
482
482
|
if (widget.current && widget.current.KPIComparisonSettings && widget.current.KPIComparisonSettings.length) {
|
|
483
483
|
var kpiSettings = JSON.parse(widget.current.KPIComparisonSettings);
|
|
484
484
|
var PeriodDateFilter = kpiSettings ? kpiSettings.PeriodDateFilter : null;
|
|
485
|
-
|
|
485
|
+
var isKPISettingsActivated = !isNullOrUndefinedOrEmpty(kpiSettings.PeriodFieldId);
|
|
486
|
+
return isKPISettingsActivated && PeriodDateFilter && PeriodDateFilter.DateTimeValueCode ? getPeriodLabelByPeriodCode(PeriodDateFilter.DateTimeValueCode) : "";
|
|
486
487
|
}
|
|
487
488
|
|
|
488
489
|
return "";
|