@vizzly/dashboard 0.15.0-dev-fc9a212537551949051fa3edc71c9f0f8be72497 → 0.15.0-dev-3c451be2f38b5ec74bbebcfb18205709dc325d33

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.
@@ -46312,7 +46312,7 @@ var BarChart$5 = function BarChart(_ref) {
46312
46312
  }
46313
46313
  return undefined;
46314
46314
  }, [xScale, yScaleKeys, options.stacked]);
46315
- var dataFlattened = useFlattenedData(xScaleKey, xScaleDataType, processedData, chart.y.keys);
46315
+ var dataFlattened = useFlattenedData(xScaleKey, xScaleDataType, chart.data, chart.y.keys);
46316
46316
  var themeCSS = useMemo(function () {
46317
46317
  return getChartThemeCSS(theme);
46318
46318
  }, [theme]);
@@ -46363,8 +46363,8 @@ var BarChart$5 = function BarChart(_ref) {
46363
46363
  });
46364
46364
  }, [onClick, processedData, xKey]);
46365
46365
  var formattedLabelsDict = useMemo(function () {
46366
- return getLabelDictionary(processedData, yScaleKeys);
46367
- }, [processedData, yScaleKeys]);
46366
+ return getLabelDictionary(chart.data, yScaleKeys);
46367
+ }, [chart.data, yScaleKeys]);
46368
46368
  return jsxs(Fragment, {
46369
46369
  children: [jsxs(ChartWrapper$1, {
46370
46370
  width: width,
@@ -47410,7 +47410,7 @@ var HorizontalBarChart$3 = function HorizontalBarChart(_ref) {
47410
47410
  }
47411
47411
  return undefined;
47412
47412
  }, [xScale, xScaleKeys, options.stacked]);
47413
- var dataFlattened = useFlattenedData(yScaleKey, yScaleDataType, processedData, chart.x.keys);
47413
+ var dataFlattened = useFlattenedData(yScaleKey, yScaleDataType, chart.data, chart.x.keys);
47414
47414
  var themeCSS = useMemo(function () {
47415
47415
  return getChartThemeCSS(theme);
47416
47416
  }, [theme]);
@@ -47499,8 +47499,8 @@ var HorizontalBarChart$3 = function HorizontalBarChart(_ref) {
47499
47499
  return '';
47500
47500
  }, [chart.y.ticks, yScaleDataType, formatYAxisLabel]);
47501
47501
  var formattedLabelsDict = useMemo(function () {
47502
- return getLabelDictionary(processedData, xScaleKeys);
47503
- }, [processedData, xScaleKeys]);
47502
+ return getLabelDictionary(chart.data, xScaleKeys);
47503
+ }, [chart.data, xScaleKeys]);
47504
47504
  return jsxs(Fragment, {
47505
47505
  children: [jsxs(ChartWrapper$1, {
47506
47506
  width: width,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vizzly/dashboard",
3
3
  "author": "james@vizzly.co",
4
- "version": "0.15.0-dev-fc9a212537551949051fa3edc71c9f0f8be72497",
4
+ "version": "0.15.0-dev-3c451be2f38b5ec74bbebcfb18205709dc325d33",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./dist/dashboard/src/index.d.ts",
7
7
  "module": "./dist/dashboard.esm.js",
@@ -56,7 +56,7 @@
56
56
  "@vizzly/api-client": "0.0.57",
57
57
  "@vizzly/joi": "^17.7.0",
58
58
  "@vizzly/semantic-layer-public": "0.0.241",
59
- "@vizzly/sqlbuilder-public": "0.1.68",
59
+ "@vizzly/sqlbuilder-public": "0.1.69",
60
60
  "chroma-js": "2.4.2",
61
61
  "copy-to-clipboard": "^3.3.3",
62
62
  "cross-fetch": "^4.0.0",
@@ -1,49 +0,0 @@
1
- import { Params } from '../../../results-driver/src/types';
2
- import { DataSet } from '../DataSet/types';
3
- import { Query } from '../Query/types';
4
- import { QueryAttributes } from '../QueryAttributes/types';
5
- import { QueryEngineConfig } from '../QueryEngineConfig/types';
6
- import { VariableList } from '../Variables/types';
7
- export declare const addAndFilters: (filter: QueryAttributes['filter'], filterToAddToAll: QueryAttributes.Filter[][]) => QueryAttributes['filter'];
8
- export declare const convertArrayFilterStructureToQueryFilter: (arrayFilterStructure: QueryAttributes.Filter[][], variables: VariableList) => Query['filter'];
9
- export declare const combineQueryFilters: (filter: Query['filter'], filterToAddToAll: Query['filter']) => Query['filter'];
10
- /**
11
- * Iterates through a query filter and, for each custom metric field, builds a custom metric.
12
- */
13
- export declare function buildQueryCustomMetrics(filter: Query['filter'], dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params): Query['filter'];
14
- export declare function getFieldFromFilter(filter: Query['filter']): {
15
- type: "number";
16
- value: number;
17
- as?: string | undefined;
18
- } | {
19
- type: "string";
20
- value: string;
21
- as?: string | undefined;
22
- } | {
23
- type: "boolean";
24
- value: boolean | null;
25
- as?: string | undefined;
26
- } | {
27
- type: "field";
28
- value: string;
29
- function: string;
30
- as?: string | undefined;
31
- } | {
32
- type: "switchField";
33
- value: {
34
- cases: import("@vizzly/sqlbuilder-public/dist/Query/types").QueryNameSpace.Cases<string>[];
35
- };
36
- as?: string | undefined;
37
- } | {
38
- type: "subquery";
39
- value: import("@vizzly/sqlbuilder-public").SubQuery<string, string, import("../CustomField/types").MathOperator, import("@vizzly/sqlbuilder-public").RecursiveFilter>;
40
- as?: string | undefined;
41
- } | {
42
- type: "function";
43
- function: string;
44
- value: import("@vizzly/sqlbuilder-public/dist/Query/types").QueryNameSpace.FieldDefinition<string, string, import("../CustomField/types").MathOperator, import("@vizzly/sqlbuilder-public").RecursiveFilter>;
45
- as?: string | undefined;
46
- } | null;
47
- export declare const takeUsedFields: (filter: QueryAttributes['filter']) => string[];
48
- export declare const isAvailable: (filter?: QueryAttributes.Filter[][] | undefined) => boolean | undefined;
49
- export declare const isAdditionalFilter: (value: any) => boolean;
@@ -1,28 +0,0 @@
1
- import { PreAggregatedQuery, PreparedQuery, Query } from './types';
2
- import { QueryAttributes } from '../QueryAttributes/types';
3
- import { QueryEngineConfig, SupportedFeature as SupportedFeatureType } from '../QueryEngineConfig/types';
4
- import { DataSet } from '../DataSet/types';
5
- import { Result } from '../Result/types';
6
- export declare const build: (dataSet: DataSet<DataSet.Field>, measureAttr: QueryAttributes.Measure[], filterAttr: QueryAttributes.Filter[][], orderAttr: QueryAttributes.Order[], dimensionAttr: QueryAttributes.Dimension[], timeDimensionAttr: QueryAttributes.TimeDimension | null, limitAttr: number | undefined, offsetAttr: number | undefined, queryEngineConfig: import("@vizzly/semantic-layer-public/dist/types").QueryEngineConfig, params: import("../../../results-driver/src/types").Params) => {
7
- query: Query;
8
- measureDescription: import("./types").MeasureDescription[];
9
- };
10
- export declare const hasDimensions: (query: {
11
- group: Query['group'];
12
- }) => boolean;
13
- export declare const buildPreAggregatedPreparedQuery: (query: PreAggregatedQuery, dataSet: DataSet) => {
14
- query: PreAggregatedQuery;
15
- resultFields: Result.Field[];
16
- };
17
- export declare const buildUniqueArrayValuesPreparedQuery: (dataSetId: string, dataSetField: DataSet['fields'][number], optionsFilters?: {
18
- type: "andWhere" | "orWhere";
19
- value: import("@vizzly/sqlbuilder-public").RecursiveFilter[];
20
- } | {
21
- type: "where";
22
- value: import("@vizzly/sqlbuilder-public/dist/Query/types").QueryNameSpace.Filter<import("@vizzly/sqlbuilder-public/dist/Query/types").QueryNameSpace.FieldDefinition<string, string, import("../CustomField/types").MathOperator, import("@vizzly/sqlbuilder-public").RecursiveFilter>, string>;
23
- } | undefined) => {
24
- query: PreparedQuery;
25
- resultFields: Result.Field[];
26
- };
27
- export declare const buildFilterQuery: (dataSet: DataSet, fieldId: string, optionsFilters?: QueryAttributes.Filter[][] | undefined, optionsOrders?: QueryAttributes.Order[] | undefined) => QueryAttributes;
28
- export declare const supportsFeature: (queryEngineConfig: QueryEngineConfig, feature: SupportedFeatureType) => boolean;