autoql-fe-utils 1.0.78 → 1.0.80
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 +6 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -16015,6 +16015,9 @@
|
|
|
16015
16015
|
);
|
|
16016
16016
|
};
|
|
16017
16017
|
var getNumberOfGroupables = (columns) => {
|
|
16018
|
+
if (columns.find((col) => col.groupable && !col.is_visible) || columns.find((col) => !col.groupable)) {
|
|
16019
|
+
return 0;
|
|
16020
|
+
}
|
|
16018
16021
|
let numberOfGroupables = 0;
|
|
16019
16022
|
if (columns) {
|
|
16020
16023
|
columns.forEach((col) => {
|
|
@@ -16215,7 +16218,7 @@
|
|
|
16215
16218
|
const dateColumnIndex = getDateColumnIndex(columns);
|
|
16216
16219
|
if (supportsPivot) {
|
|
16217
16220
|
columns.forEach((col, index) => {
|
|
16218
|
-
if (col.groupable) {
|
|
16221
|
+
if (col.groupable && col.is_visible) {
|
|
16219
16222
|
stringColumnIndices.push(index);
|
|
16220
16223
|
}
|
|
16221
16224
|
});
|
|
@@ -16254,9 +16257,10 @@
|
|
|
16254
16257
|
let currencyColumnIndices = [];
|
|
16255
16258
|
let ratioColumnIndices = [];
|
|
16256
16259
|
let countColumnIndices = [];
|
|
16260
|
+
const onlyGroupableColumns = !columns.find((col) => !col.groupable && col.is_visible);
|
|
16257
16261
|
columns.forEach((col, index) => {
|
|
16258
16262
|
const { type } = col;
|
|
16259
|
-
if (col.is_visible && !col.pivot && !col.groupable) {
|
|
16263
|
+
if (col.is_visible && !col.pivot && (onlyGroupableColumns || !col.groupable)) {
|
|
16260
16264
|
if (type === "DOLLAR_AMT") {
|
|
16261
16265
|
currencyColumnIndices.push(index);
|
|
16262
16266
|
} else if (type === "QUANTITY") {
|