logitude-dashboard-library 3.2.3 → 3.2.4
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/Utils/General.d.ts +2 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -0
- package/dist/index.modern.js.map +1 -1
- package/dist/types/widget.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -318,6 +318,10 @@ var isNullOrUndefined = function isNullOrUndefined(val) {
|
|
|
318
318
|
return val == null || val == undefined;
|
|
319
319
|
};
|
|
320
320
|
|
|
321
|
+
var isNullOrUndefinedOrEmpty = function isNullOrUndefinedOrEmpty(val) {
|
|
322
|
+
return val == null || val == undefined || val == "";
|
|
323
|
+
};
|
|
324
|
+
|
|
321
325
|
var KpiChart = function KpiChart(props) {
|
|
322
326
|
var _widget$current18;
|
|
323
327
|
|
|
@@ -383,6 +387,7 @@ var KpiChart = function KpiChart(props) {
|
|
|
383
387
|
var postWidget = _extends({}, widget.current);
|
|
384
388
|
|
|
385
389
|
postWidget.onChange = undefined;
|
|
390
|
+
postWidget.EntityId = !isNullOrUndefinedOrEmpty(postWidget.RelatedToEntityId) ? postWidget.RelatedToEntityId : postWidget.EntityId;
|
|
386
391
|
dashboardAnalyticsService.getKpiData(postWidget).then(function (result) {
|
|
387
392
|
setData(result.data);
|
|
388
393
|
setIsLoading(false);
|
|
@@ -595,6 +600,7 @@ var TableChart = function TableChart(props) {
|
|
|
595
600
|
widget.onChange = undefined;
|
|
596
601
|
widget.PageIndex = 0;
|
|
597
602
|
widget.PageSize = 100;
|
|
603
|
+
widget.EntityId = !isNullOrUndefinedOrEmpty(widget.RelatedToEntityId) ? widget.RelatedToEntityId : widget.EntityId;
|
|
598
604
|
dashboardAnalyticsService.getTableData(widget).then(function (res) {
|
|
599
605
|
if (res && res.data) {
|
|
600
606
|
fillTableData(res.data);
|
|
@@ -1563,6 +1569,7 @@ var FusionChart = forwardRef(function (props, comRef) {
|
|
|
1563
1569
|
signal = updatedAxiosController === null || updatedAxiosController === void 0 ? void 0 : updatedAxiosController.signal;
|
|
1564
1570
|
}
|
|
1565
1571
|
|
|
1572
|
+
postWidget.EntityId = !isNullOrUndefinedOrEmpty(postWidget.RelatedToEntityId) ? postWidget.RelatedToEntityId : postWidget.EntityId;
|
|
1566
1573
|
dashboardAnalyticsService.getData(postWidget, signal).then(function (result) {
|
|
1567
1574
|
handleData(result === null || result === void 0 ? void 0 : result.data);
|
|
1568
1575
|
chartData.current = result === null || result === void 0 ? void 0 : result.data;
|