logitude-dashboard-library 3.2.49 → 3.2.50

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.
@@ -976,7 +976,7 @@ var WidgetLoadLogger = /*#__PURE__*/function () {
976
976
  var _proto = WidgetLoadLogger.prototype;
977
977
 
978
978
  _proto.log = function log(loadDataResponse) {
979
- if (this.StartTime && this.Widget && loadDataResponse) {
979
+ if (this.canCreateLog(loadDataResponse)) {
980
980
  var totalExecutionTime = new Date().getTime() - this.StartTime;
981
981
  var widgetLoadLogService = new WidgetLoadLogService();
982
982
  var widgetLoadLog = {
@@ -984,7 +984,8 @@ var WidgetLoadLogger = /*#__PURE__*/function () {
984
984
  WidgetId: this.Widget.Id,
985
985
  DashboardId: this.Widget.DashboardId,
986
986
  LoadTime: this.getLoadTime(loadDataResponse),
987
- TotalExecutionTime: totalExecutionTime
987
+ TotalExecutionTime: totalExecutionTime,
988
+ IsClickHouse: this.isClickHouse(loadDataResponse)
988
989
  };
989
990
  widgetLoadLogService.create(widgetLoadLog).then(function (_response) {}, function (_error) {});
990
991
  }
@@ -993,6 +994,10 @@ var WidgetLoadLogger = /*#__PURE__*/function () {
993
994
  this.Widget = null;
994
995
  };
995
996
 
997
+ _proto.canCreateLog = function canCreateLog(loadDataResponse) {
998
+ return this.StartTime !== null && this.StartTime !== undefined && this.Widget !== null && this.Widget !== undefined && this.Widget.Id !== null && this.Widget.Id !== undefined && this.Widget.Id !== "" && this.Widget.DashboardId !== null && this.Widget.DashboardId !== undefined && this.Widget.DashboardId !== "" && this.Widget.Tenant !== null && this.Widget.Tenant !== undefined && loadDataResponse !== null && loadDataResponse !== undefined;
999
+ };
1000
+
996
1001
  _proto.getLoadTime = function getLoadTime(loadDataResponse) {
997
1002
  var loadTimeHeaderKey = "load-time";
998
1003
  var loadTimeHeader = loadDataResponse && loadDataResponse.headers && loadDataResponse.headers[loadTimeHeaderKey] ? loadDataResponse.headers[loadTimeHeaderKey] : "";
@@ -1003,6 +1008,12 @@ var WidgetLoadLogger = /*#__PURE__*/function () {
1003
1008
  return value !== null && value !== undefined && value !== "" && !isNaN(Number(value.toString()));
1004
1009
  };
1005
1010
 
1011
+ _proto.isClickHouse = function isClickHouse(loadDataResponse) {
1012
+ var clickHouseHeaderKey = "click-house";
1013
+ var clickHouseHeader = loadDataResponse && loadDataResponse.headers && loadDataResponse.headers[clickHouseHeaderKey] ? loadDataResponse.headers[clickHouseHeaderKey] : null;
1014
+ return clickHouseHeader === "true";
1015
+ };
1016
+
1006
1017
  return WidgetLoadLogger;
1007
1018
  }();
1008
1019
 
@@ -3674,7 +3685,7 @@ function SvgDeleteIcon(props) {
3674
3685
  xmlns: "http://www.w3.org/2000/svg"
3675
3686
  }, props), _path$1 || (_path$1 = /*#__PURE__*/createElement("path", {
3676
3687
  d: "M9 3.512h3v1.264h-1.2v8.217a.65.65 0 01-.176.447.585.585 0 01-.424.185H1.8a.585.585 0 01-.424-.185.65.65 0 01-.176-.447V4.776H0V3.512h3V1.615a.65.65 0 01.176-.447A.585.585 0 013.6.983h4.8c.159 0 .312.067.424.185A.65.65 0 019 1.615v1.897zm.6 1.264H2.4v7.585h7.2V4.776zM4.2 6.672h1.2v3.792H4.2V6.672zm2.4 0h1.2v3.792H6.6V6.672zM4.2 2.247v1.265h3.6V2.247H4.2z",
3677
- fill: "#5FAFDA"
3688
+ fill: "#6E7072"
3678
3689
  })));
3679
3690
  }
3680
3691
 
@@ -3704,7 +3715,7 @@ function SvgEditIcon(props) {
3704
3715
  xmlns: "http://www.w3.org/2000/svg"
3705
3716
  }, props), _path$2 || (_path$2 = /*#__PURE__*/createElement("path", {
3706
3717
  d: "M8.485 5.383l-.943-.943-6.209 6.21v.942h.943l6.21-6.209zm.943-.943l.943-.942-.943-.943-.943.943.943.942zm-6.6 8.486H0v-2.829l8.957-8.956c.26-.26.682-.26.942 0l1.886 1.885c.26.26.26.683 0 .943l-8.957 8.957z",
3707
- fill: "#5FAFDA"
3718
+ fill: "#6E7072"
3708
3719
  })));
3709
3720
  }
3710
3721
 
@@ -3734,7 +3745,7 @@ function SvgCopyIcon(props) {
3734
3745
  xmlns: "http://www.w3.org/2000/svg"
3735
3746
  }, props), _path$3 || (_path$3 = /*#__PURE__*/createElement("path", {
3736
3747
  d: "M3.25 3.5V1.25A.75.75 0 014 .5h9a.75.75 0 01.75.75v10.5a.75.75 0 01-.75.75h-2.25v2.25c0 .414-.338.75-.755.75h-8.99a.751.751 0 01-.755-.75l.002-10.5c0-.414.337-.75.755-.75H3.25zM1.752 5l-.002 9h7.5V5H1.752zM4.75 3.5h6V11h1.5V2h-7.5v1.5z",
3737
- fill: "#5FAFDA"
3748
+ fill: "#6E7072"
3738
3749
  })));
3739
3750
  }
3740
3751
 
@@ -4223,7 +4234,7 @@ var WidgetCard = forwardRef(function (props, comRef) {
4223
4234
  }, (_widget$current13 = widget.current) === null || _widget$current13 === void 0 ? void 0 : _widget$current13.Title),
4224
4235
  position: ['top center'],
4225
4236
  arrowStyle: {
4226
- color: '#262626'
4237
+ color: '#19395C'
4227
4238
  },
4228
4239
  offsetY: -8,
4229
4240
  on: ['hover', 'focus']
@@ -4262,7 +4273,7 @@ var WidgetCard = forwardRef(function (props, comRef) {
4262
4273
  trigger: React__default.createElement("div", null, React__default.createElement(SvgRedCircleWarning, null)),
4263
4274
  position: ['top center'],
4264
4275
  arrowStyle: {
4265
- color: '#262626'
4276
+ color: '#19395C'
4266
4277
  },
4267
4278
  offsetY: -2,
4268
4279
  on: ['hover', 'focus']