logitude-dashboard-library 3.1.41 → 3.1.43

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 CHANGED
@@ -1320,6 +1320,12 @@ var TableChart = function TableChart(props) {
1320
1320
  case "IsNotEmpty":
1321
1321
  return !isValueEmpty(value);
1322
1322
 
1323
+ case "Contains":
1324
+ return !isValueEmpty(value) && !isValueEmpty(ruleValue1) && value.includes(ruleValue1);
1325
+
1326
+ case "NotContains":
1327
+ return !isValueEmpty(value) && !isValueEmpty(ruleValue1) && !value.includes(ruleValue1);
1328
+
1323
1329
  default:
1324
1330
  return null;
1325
1331
  }
@@ -2146,6 +2152,13 @@ function setDualyAxis(chartInfo, widget, seriesMeasures) {
2146
2152
  chartInfo.pYAxisNameBorderPadding = 0;
2147
2153
  chartInfo.sYAxisNameBorderPadding = 0;
2148
2154
  chartInfo.sNumberSuffix = isSecondMeasureTypePercentage(widget) ? "%" : null;
2155
+
2156
+ if (isNullOrUndefined(seriesMeasures)) {
2157
+ chartInfo.pYAxisName = "";
2158
+ chartInfo.sYAxisname = "";
2159
+ return;
2160
+ }
2161
+
2149
2162
  var textLength = Math.max(seriesMeasures[0].Name.length, seriesMeasures[1].Name.length);
2150
2163
  chartInfo.pYAxisName = getTitle((_seriesMeasures$ = seriesMeasures[0]) === null || _seriesMeasures$ === void 0 ? void 0 : _seriesMeasures$.Name, textLength);
2151
2164
  chartInfo.sYAxisname = getTitle((_seriesMeasures$2 = seriesMeasures[1]) === null || _seriesMeasures$2 === void 0 ? void 0 : _seriesMeasures$2.Name, textLength);