autoql-fe-utils 1.0.69 → 1.0.71
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.d.ts +6 -3
- package/dist/index.global.js +13 -9
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1484,7 +1484,7 @@ declare const getBinLinearScale: ({ columns, columnIndex, axis, buckets, bins, e
|
|
|
1484
1484
|
dataFormatting: DataFormatting;
|
|
1485
1485
|
changeNumberColumnIndices: Function;
|
|
1486
1486
|
}) => any;
|
|
1487
|
-
declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, minValue, maxValue, tickValues, numTicks, stacked, isScaled, columns, columnIndices, dataFormatting, changeNumberColumnIndices, enableAxisDropdown, aggregated, }: {
|
|
1487
|
+
declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, minValue, maxValue, tickValues, numTicks, stacked, isScaled, columns, originalColumns, columnIndices, dataFormatting, changeNumberColumnIndices, enableAxisDropdown, aggregated, }: {
|
|
1488
1488
|
buckets: any[];
|
|
1489
1489
|
minValue: number;
|
|
1490
1490
|
maxValue: number;
|
|
@@ -1496,6 +1496,7 @@ declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, m
|
|
|
1496
1496
|
stacked: boolean;
|
|
1497
1497
|
isScaled: boolean;
|
|
1498
1498
|
columns: Column[];
|
|
1499
|
+
originalColumns?: Column[];
|
|
1499
1500
|
units: string;
|
|
1500
1501
|
title: string;
|
|
1501
1502
|
columnIndex: number;
|
|
@@ -1510,9 +1511,10 @@ declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, m
|
|
|
1510
1511
|
width: number;
|
|
1511
1512
|
aggregated: boolean;
|
|
1512
1513
|
}) => any;
|
|
1513
|
-
declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeColumnIndices, changeAggConfig, enableAxisDropdown, height, width, aggregated, colorScale, adjustRange, }: {
|
|
1514
|
+
declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeColumnIndices, changeAggConfig, enableAxisDropdown, height, width, aggregated, colorScale, adjustRange, originalColumns, }: {
|
|
1514
1515
|
axis: string;
|
|
1515
1516
|
columns: Column[];
|
|
1517
|
+
originalColumns?: Column[];
|
|
1516
1518
|
columnIndex: number;
|
|
1517
1519
|
columnIndices: number[];
|
|
1518
1520
|
height: number;
|
|
@@ -1539,7 +1541,7 @@ declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickVa
|
|
|
1539
1541
|
colorScale?: any;
|
|
1540
1542
|
adjustRange?: boolean;
|
|
1541
1543
|
}) => any;
|
|
1542
|
-
declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, stacked, isScaled, columns, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeAggConfig, enableAxisDropdown, stringColumnIndex, height, width, aggregated, colorScales, }: {
|
|
1544
|
+
declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, stacked, isScaled, columns, originalColumns, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeAggConfig, enableAxisDropdown, stringColumnIndex, height, width, aggregated, colorScales, }: {
|
|
1543
1545
|
data: Rows;
|
|
1544
1546
|
columnIndices1: number[];
|
|
1545
1547
|
columnIndices2: number[];
|
|
@@ -1547,6 +1549,7 @@ declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, st
|
|
|
1547
1549
|
stacked: boolean;
|
|
1548
1550
|
isScaled: boolean;
|
|
1549
1551
|
columns: Column[];
|
|
1552
|
+
originalColumns?: Column[];
|
|
1550
1553
|
hasDropdown: boolean;
|
|
1551
1554
|
allowMultipleSeries: boolean;
|
|
1552
1555
|
disableAutoScale: boolean;
|
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;
|
|
@@ -22943,6 +22942,7 @@
|
|
|
22943
22942
|
stacked,
|
|
22944
22943
|
isScaled,
|
|
22945
22944
|
columns,
|
|
22945
|
+
originalColumns,
|
|
22946
22946
|
columnIndices,
|
|
22947
22947
|
dataFormatting,
|
|
22948
22948
|
changeNumberColumnIndices,
|
|
@@ -22984,7 +22984,8 @@
|
|
|
22984
22984
|
height,
|
|
22985
22985
|
width,
|
|
22986
22986
|
aggregated,
|
|
22987
|
-
adjustRange: false
|
|
22987
|
+
adjustRange: false,
|
|
22988
|
+
originalColumns
|
|
22988
22989
|
});
|
|
22989
22990
|
};
|
|
22990
22991
|
var getLinearScale = ({
|
|
@@ -23014,9 +23015,10 @@
|
|
|
23014
23015
|
width,
|
|
23015
23016
|
aggregated = false,
|
|
23016
23017
|
colorScale,
|
|
23017
|
-
adjustRange = true
|
|
23018
|
+
adjustRange = true,
|
|
23019
|
+
originalColumns
|
|
23018
23020
|
}) => {
|
|
23019
|
-
var _a, _b, _c, _d;
|
|
23021
|
+
var _a, _b, _c, _d, _e;
|
|
23020
23022
|
let domainFinal = domain;
|
|
23021
23023
|
if (!domain) {
|
|
23022
23024
|
let min2 = (_a = minValue != null ? minValue : tickValues == null ? void 0 : tickValues[0]) != null ? _a : 0;
|
|
@@ -23046,7 +23048,7 @@
|
|
|
23046
23048
|
scale.columnIndex = columnIndex;
|
|
23047
23049
|
scale.column = columns == null ? void 0 : columns[columnIndex];
|
|
23048
23050
|
scale.fields = axisColumns;
|
|
23049
|
-
scale.allFields = (_d = getNumberColumnIndices(
|
|
23051
|
+
scale.allFields = aggregated ? (_d = getNumberColumnIndices(originalColumns)) == null ? void 0 : _d.allNumberColumnIndices : (_e = getNumberColumnIndices(columns)) == null ? void 0 : _e.allNumberColumnIndices;
|
|
23050
23052
|
scale.dataFormatting = config;
|
|
23051
23053
|
scale.hasDropdown = hasDropdown != null ? hasDropdown : enableAxisDropdown;
|
|
23052
23054
|
scale.stacked = !!stacked;
|
|
@@ -23081,6 +23083,7 @@
|
|
|
23081
23083
|
stacked,
|
|
23082
23084
|
isScaled,
|
|
23083
23085
|
columns,
|
|
23086
|
+
originalColumns,
|
|
23084
23087
|
hasDropdown,
|
|
23085
23088
|
allowMultipleSeries,
|
|
23086
23089
|
disableAutoScale,
|
|
@@ -23109,7 +23112,8 @@
|
|
|
23109
23112
|
height,
|
|
23110
23113
|
width,
|
|
23111
23114
|
aggregated,
|
|
23112
|
-
changeAggConfig
|
|
23115
|
+
changeAggConfig,
|
|
23116
|
+
originalColumns
|
|
23113
23117
|
};
|
|
23114
23118
|
const minMax = getMinAndMaxValues(data, columnIndices1, isScaled, stacked, stringColumnIndex);
|
|
23115
23119
|
const minValue = minMax.minValue;
|