autoql-fe-utils 1.0.70 → 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.
- package/dist/index.global.js +11 -7
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +11 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -14732,14 +14732,13 @@
|
|
|
14732
14732
|
return false;
|
|
14733
14733
|
}
|
|
14734
14734
|
const groupbyColumns = getGroupableColumns(columns);
|
|
14735
|
-
const hasTwoGroupables = (groupbyColumns == null ? void 0 : groupbyColumns.length)
|
|
14735
|
+
const hasTwoGroupables = (groupbyColumns == null ? void 0 : groupbyColumns.length) >= 2;
|
|
14736
14736
|
if (!hasTwoGroupables) {
|
|
14737
14737
|
return false;
|
|
14738
14738
|
}
|
|
14739
14739
|
const visibleColumns = getVisibleColumns(columns);
|
|
14740
|
-
const
|
|
14741
|
-
|
|
14742
|
-
if (!groupbyColumn1.is_visible || !groupbyColumn2.is_visible || !((visibleColumns == null ? void 0 : visibleColumns.length) >= 3)) {
|
|
14740
|
+
const visibleGroupbyColumns = groupbyColumns.filter((index) => columns[index].is_visible);
|
|
14741
|
+
if ((visibleGroupbyColumns == null ? void 0 : visibleGroupbyColumns.length) < 2 || (visibleColumns == null ? void 0 : visibleColumns.length) < 3) {
|
|
14743
14742
|
return false;
|
|
14744
14743
|
}
|
|
14745
14744
|
return true;
|
|
@@ -14811,6 +14810,9 @@
|
|
|
14811
14810
|
return ["table"];
|
|
14812
14811
|
}
|
|
14813
14812
|
const { amountOfNumberColumns, amountOfStringColumns } = getColumnTypeAmounts(visibleColumns);
|
|
14813
|
+
if ((visibleColumns == null ? void 0 : visibleColumns.length) === 1 && amountOfStringColumns === 1) {
|
|
14814
|
+
return ["table"];
|
|
14815
|
+
}
|
|
14814
14816
|
const supportedDisplayTypes = ["table"];
|
|
14815
14817
|
const numRows = dataLength != null ? dataLength : rows.length;
|
|
14816
14818
|
let pivotDataHasLength = true;
|
|
@@ -27681,13 +27683,13 @@
|
|
|
27681
27683
|
}
|
|
27682
27684
|
const finalUserSelection = [];
|
|
27683
27685
|
userSelection.forEach((suggestion) => {
|
|
27684
|
-
var _a, _b;
|
|
27686
|
+
var _a, _b, _c;
|
|
27685
27687
|
if (!suggestion.hidden) {
|
|
27686
27688
|
finalUserSelection.push({
|
|
27687
27689
|
start: (_a = suggestion.start) != null ? _a : 0,
|
|
27688
27690
|
end: (_b = suggestion.end) != null ? _b : 0,
|
|
27689
|
-
value: suggestion.text || suggestion.value || suggestion.format_txt,
|
|
27690
|
-
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",
|
|
27691
27693
|
canonical: suggestion.canonical || suggestion.key || "ORIGINAL_TEXT"
|
|
27692
27694
|
});
|
|
27693
27695
|
}
|
|
@@ -28302,6 +28304,7 @@
|
|
|
28302
28304
|
if (!chunk) {
|
|
28303
28305
|
return;
|
|
28304
28306
|
}
|
|
28307
|
+
console.log({ chunk, values });
|
|
28305
28308
|
const sampleQueryText = getSampleQueryText(chunk.initialQuery, values);
|
|
28306
28309
|
const userSelection = [];
|
|
28307
28310
|
if ((_a = Object.keys(values)) == null ? void 0 : _a.length) {
|
|
@@ -28314,6 +28317,7 @@
|
|
|
28314
28317
|
const end = start + ((_c = value == null ? void 0 : value.value) == null ? void 0 : _c.length);
|
|
28315
28318
|
userSelection.push({
|
|
28316
28319
|
...value.replacement,
|
|
28320
|
+
canonical: key,
|
|
28317
28321
|
start,
|
|
28318
28322
|
end
|
|
28319
28323
|
});
|