logitude-dashboard-library 3.2.30 → 3.2.32
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 +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -0
- package/dist/index.modern.js.map +1 -1
- package/dist/types/widget.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1113,6 +1113,10 @@ var KpiChart = function KpiChart(props) {
|
|
|
1113
1113
|
|
|
1114
1114
|
var getLabelFromKPISettings = function getLabelFromKPISettings() {
|
|
1115
1115
|
if (widget.current && widget.current.KPIComparisonSettings && widget.current.KPIComparisonSettings.length) {
|
|
1116
|
+
if (widget.current.IsGlobalFilterKPIComparison) {
|
|
1117
|
+
return getPeriodLabelByPeriodCode(widget.current.GlobalFilterDateTimeValueCode);
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1116
1120
|
var kpiSettings = JSON.parse(widget.current.KPIComparisonSettings);
|
|
1117
1121
|
var PeriodDateFilter = kpiSettings ? kpiSettings.PeriodDateFilter : null;
|
|
1118
1122
|
var isKPISettingsActivated = !isNullOrUndefinedOrEmpty(kpiSettings.PeriodFieldId);
|