autoql-fe-utils 1.0.71 → 1.0.73

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.
@@ -14810,6 +14810,9 @@
14810
14810
  return ["table"];
14811
14811
  }
14812
14812
  const { amountOfNumberColumns, amountOfStringColumns } = getColumnTypeAmounts(visibleColumns);
14813
+ if ((visibleColumns == null ? void 0 : visibleColumns.length) === 1 && amountOfStringColumns === 1) {
14814
+ return ["table"];
14815
+ }
14813
14816
  const supportedDisplayTypes = ["table"];
14814
14817
  const numRows = dataLength != null ? dataLength : rows.length;
14815
14818
  let pivotDataHasLength = true;
@@ -14840,7 +14843,7 @@
14840
14843
  supportedDisplayTypes.push("pie");
14841
14844
  }
14842
14845
  }
14843
- if (numRows > MIN_HISTOGRAM_SAMPLE) {
14846
+ if (numRows > MIN_HISTOGRAM_SAMPLE && amountOfNumberColumns >= 1) {
14844
14847
  supportedDisplayTypes.push("histogram");
14845
14848
  }
14846
14849
  if (amountOfNumberColumns >= 2 && amountOfStringColumns >= 1 || amountOfNumberColumns >= 3 && allowNumericStringColumns) {
@@ -27680,13 +27683,13 @@
27680
27683
  }
27681
27684
  const finalUserSelection = [];
27682
27685
  userSelection.forEach((suggestion) => {
27683
- var _a, _b;
27686
+ var _a, _b, _c;
27684
27687
  if (!suggestion.hidden) {
27685
27688
  finalUserSelection.push({
27686
27689
  start: (_a = suggestion.start) != null ? _a : 0,
27687
27690
  end: (_b = suggestion.end) != null ? _b : 0,
27688
- value: suggestion.text || suggestion.value || suggestion.format_txt,
27689
- value_label: suggestion.value_label || suggestion.show_message || "ORIGINAL_TEXT",
27691
+ value: (_c = suggestion.text || suggestion.value || suggestion.format_txt) == null ? void 0 : _c.toLowerCase(),
27692
+ value_label: suggestion.value_label || suggestion.show_message || suggestion.display_name || "ORIGINAL_TEXT",
27690
27693
  canonical: suggestion.canonical || suggestion.key || "ORIGINAL_TEXT"
27691
27694
  });
27692
27695
  }
@@ -28313,6 +28316,7 @@
28313
28316
  const end = start + ((_c = value == null ? void 0 : value.value) == null ? void 0 : _c.length);
28314
28317
  userSelection.push({
28315
28318
  ...value.replacement,
28319
+ canonical: key,
28316
28320
  start,
28317
28321
  end
28318
28322
  });