autoql-fe-utils 1.0.71 → 1.0.72

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;
@@ -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
  }
@@ -28301,6 +28304,7 @@
28301
28304
  if (!chunk) {
28302
28305
  return;
28303
28306
  }
28307
+ console.log({ chunk, values });
28304
28308
  const sampleQueryText = getSampleQueryText(chunk.initialQuery, values);
28305
28309
  const userSelection = [];
28306
28310
  if ((_a = Object.keys(values)) == null ? void 0 : _a.length) {
@@ -28313,6 +28317,7 @@
28313
28317
  const end = start + ((_c = value == null ? void 0 : value.value) == null ? void 0 : _c.length);
28314
28318
  userSelection.push({
28315
28319
  ...value.replacement,
28320
+ canonical: key,
28316
28321
  start,
28317
28322
  end
28318
28323
  });