logitude-dashboard-library 3.1.21 → 3.1.23
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.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: {
|
|
@@ -433,7 +433,13 @@ var KpiChart = function KpiChart(props) {
|
|
|
433
433
|
fontSize: getKPIFormattingPropertyValue("ComparisonValueFontSize", "px")
|
|
434
434
|
},
|
|
435
435
|
className: "dl-kpi-prev-abbreviationSymbol"
|
|
436
|
-
}, data === null || data === void 0 ? void 0 : data.ComparisonAbbreviationSymbol))
|
|
436
|
+
}, data === null || data === void 0 ? void 0 : data.ComparisonAbbreviationSymbol), widget.current && widget.current.ShowMeasureUnit && (data === null || data === void 0 ? void 0 : data.Unit) && React__default.createElement("div", {
|
|
437
|
+
style: {
|
|
438
|
+
color: getKPIFormattingPropertyValue("ComparisonValueFontColor"),
|
|
439
|
+
fontSize: getKPIFormattingPropertyValue("ComparisonValueFontSize", "px")
|
|
440
|
+
},
|
|
441
|
+
className: "dl-kpi-unit"
|
|
442
|
+
}, data === null || data === void 0 ? void 0 : data.Unit));
|
|
437
443
|
}
|
|
438
444
|
|
|
439
445
|
function getValueData() {
|
|
@@ -479,7 +485,8 @@ var KpiChart = function KpiChart(props) {
|
|
|
479
485
|
if (widget.current && widget.current.KPIComparisonSettings && widget.current.KPIComparisonSettings.length) {
|
|
480
486
|
var kpiSettings = JSON.parse(widget.current.KPIComparisonSettings);
|
|
481
487
|
var PeriodDateFilter = kpiSettings ? kpiSettings.PeriodDateFilter : null;
|
|
482
|
-
|
|
488
|
+
var isKPISettingsActivated = !isNullOrUndefinedOrEmpty(kpiSettings.PeriodFieldId);
|
|
489
|
+
return isKPISettingsActivated && PeriodDateFilter && PeriodDateFilter.DateTimeValueCode ? getPeriodLabelByPeriodCode(PeriodDateFilter.DateTimeValueCode) : "";
|
|
483
490
|
}
|
|
484
491
|
|
|
485
492
|
return "";
|