autoql-fe-utils 1.0.8 → 1.0.9
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 +5 -2
- package/dist/index.global.js +10 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -922,6 +922,7 @@ declare const constructFilter: ({ column, value }: {
|
|
|
922
922
|
name: any;
|
|
923
923
|
operator: string;
|
|
924
924
|
value: any;
|
|
925
|
+
column_type: any;
|
|
925
926
|
};
|
|
926
927
|
declare const getCombinedFilters: (newFilter: any, response: any, formattedTableParams: any) => any[];
|
|
927
928
|
declare const getLegendLabelsForGroupbyQuery: () => {
|
|
@@ -1064,7 +1065,7 @@ declare const getHistogramScale: ({ axis, buckets, columnIndex, height, width, m
|
|
|
1064
1065
|
width: number;
|
|
1065
1066
|
aggregated: boolean;
|
|
1066
1067
|
}) => any;
|
|
1067
|
-
declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, enableAxisDropdown, height, width, aggregated, colorScale, }: {
|
|
1068
|
+
declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickValues, numTicks, stacked, isScaled, columns, units, title, columnIndex, columnIndices, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeAggConfig, enableAxisDropdown, height, width, aggregated, colorScale, }: {
|
|
1068
1069
|
axis: string;
|
|
1069
1070
|
columns: Column$1[];
|
|
1070
1071
|
columnIndex: number;
|
|
@@ -1074,6 +1075,7 @@ declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickVa
|
|
|
1074
1075
|
units?: string;
|
|
1075
1076
|
dataFormatting?: DataFormatting;
|
|
1076
1077
|
changeNumberColumnIndices?: Function;
|
|
1078
|
+
changeAggConfig?: Function;
|
|
1077
1079
|
enableAxisDropdown?: boolean;
|
|
1078
1080
|
stacked?: boolean;
|
|
1079
1081
|
isScaled?: boolean;
|
|
@@ -1090,7 +1092,7 @@ declare const getLinearScale: ({ minValue, maxValue, axis, range, domain, tickVa
|
|
|
1090
1092
|
title?: string;
|
|
1091
1093
|
colorScale?: any;
|
|
1092
1094
|
}) => any;
|
|
1093
|
-
declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, stacked, isScaled, columns, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, enableAxisDropdown, stringColumnIndex, height, width, aggregated, colorScales, }: {
|
|
1095
|
+
declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, stacked, isScaled, columns, hasDropdown, allowMultipleSeries, disableAutoScale, dataFormatting, changeNumberColumnIndices, changeAggConfig, enableAxisDropdown, stringColumnIndex, height, width, aggregated, colorScales, }: {
|
|
1094
1096
|
data: Rows;
|
|
1095
1097
|
columnIndices1: number[];
|
|
1096
1098
|
columnIndices2: number[];
|
|
@@ -1103,6 +1105,7 @@ declare const getLinearScales: ({ data, columnIndices1, columnIndices2, axis, st
|
|
|
1103
1105
|
disableAutoScale: boolean;
|
|
1104
1106
|
dataFormatting: DataFormatting;
|
|
1105
1107
|
changeNumberColumnIndices: Function;
|
|
1108
|
+
changeAggConfig: Function;
|
|
1106
1109
|
enableAxisDropdown: boolean;
|
|
1107
1110
|
stringColumnIndex: number;
|
|
1108
1111
|
height: number;
|
package/dist/index.global.js
CHANGED
|
@@ -15506,6 +15506,7 @@
|
|
|
15506
15506
|
const newCol = (0, import_lodash2.default)(col);
|
|
15507
15507
|
newCol.id = v4_default();
|
|
15508
15508
|
newCol.field = `${i}`;
|
|
15509
|
+
newCol.index = i;
|
|
15509
15510
|
newCol.title = col.display_name;
|
|
15510
15511
|
newCol.visible = col.is_visible;
|
|
15511
15512
|
newCol.download = col.is_visible;
|
|
@@ -21239,6 +21240,7 @@
|
|
|
21239
21240
|
var constructFilter = ({ column, value }) => {
|
|
21240
21241
|
let formattedValue = value;
|
|
21241
21242
|
let operator = "=";
|
|
21243
|
+
let columnType;
|
|
21242
21244
|
if (formattedValue === null) {
|
|
21243
21245
|
formattedValue = "NULL";
|
|
21244
21246
|
operator = "is";
|
|
@@ -21249,11 +21251,13 @@
|
|
|
21249
21251
|
const isoDateEnd = isoDate.endOf(precision).toISOString();
|
|
21250
21252
|
formattedValue = `${isoDateStart},${isoDateEnd}`;
|
|
21251
21253
|
operator = "between";
|
|
21254
|
+
columnType = "TIME";
|
|
21252
21255
|
}
|
|
21253
21256
|
return {
|
|
21254
21257
|
name: column.name,
|
|
21255
21258
|
operator,
|
|
21256
|
-
value: formattedValue
|
|
21259
|
+
value: formattedValue,
|
|
21260
|
+
column_type: columnType
|
|
21257
21261
|
};
|
|
21258
21262
|
};
|
|
21259
21263
|
var getCombinedFilters = (newFilter, response, formattedTableParams) => {
|
|
@@ -21891,6 +21895,7 @@
|
|
|
21891
21895
|
disableAutoScale = false,
|
|
21892
21896
|
dataFormatting = dataFormattingDefault,
|
|
21893
21897
|
changeNumberColumnIndices,
|
|
21898
|
+
changeAggConfig,
|
|
21894
21899
|
enableAxisDropdown,
|
|
21895
21900
|
height,
|
|
21896
21901
|
width,
|
|
@@ -21937,6 +21942,7 @@
|
|
|
21937
21942
|
scale.aggregated = aggregated;
|
|
21938
21943
|
scale.allowMultipleSeries = allowMultipleSeries;
|
|
21939
21944
|
scale.changeColumnIndices = changeNumberColumnIndices;
|
|
21945
|
+
scale.changeAggConfig = changeAggConfig;
|
|
21940
21946
|
scale.colorScale = colorScale;
|
|
21941
21947
|
scale.toggleScale = () => {
|
|
21942
21948
|
scale.isScaled = !scale.isScaled;
|
|
@@ -21963,6 +21969,7 @@
|
|
|
21963
21969
|
disableAutoScale,
|
|
21964
21970
|
dataFormatting,
|
|
21965
21971
|
changeNumberColumnIndices,
|
|
21972
|
+
changeAggConfig,
|
|
21966
21973
|
enableAxisDropdown,
|
|
21967
21974
|
stringColumnIndex,
|
|
21968
21975
|
height,
|
|
@@ -21984,7 +21991,8 @@
|
|
|
21984
21991
|
enableAxisDropdown,
|
|
21985
21992
|
height,
|
|
21986
21993
|
width,
|
|
21987
|
-
aggregated
|
|
21994
|
+
aggregated,
|
|
21995
|
+
changeAggConfig
|
|
21988
21996
|
};
|
|
21989
21997
|
const scaleColumnConfig = {
|
|
21990
21998
|
columnIndex: columnIndices1[0],
|