@vizzly/dashboard 0.14.4-dev-ccfbdccebc45fb0361ebf39ecb0ab567ca7a1067 → 0.14.4-dev-ac144c6e109da595b1c8df4be87f046b8be9fe29
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/dashboard.cjs.development.js +3379 -3346
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +3379 -3346
- package/dist/shared-logic/src/Component/types.d.ts +0 -1
- package/dist/shared-logic/src/ComponentInterface/types.d.ts +1 -0
- package/dist/shared-logic/src/Drilldown/Drilldown.d.ts +4 -4
- package/dist/shared-ui/src/components/Component.d.ts +1 -1
- package/dist/shared-ui/src/components/Drilldown/useDrilldownSelection.d.ts +2 -2
- package/dist/shared-ui/src/components/SunburstChart/SunburstChart.d.ts +1 -1
- package/dist/shared-ui/src/components/SunburstChart/SunburstChartView.d.ts +10 -10
- package/dist/shared-ui/src/components/SunburstChart/convertDataToSunburstData.d.ts +5 -5
- package/dist/shared-ui/src/library/DataPanel/FieldCollectorInput.d.ts +6 -6
- package/package.json +1 -1
|
@@ -270,7 +270,6 @@ export declare namespace Component {
|
|
|
270
270
|
labels?: boolean;
|
|
271
271
|
labelFormat: FormatType;
|
|
272
272
|
parameters?: Parameters;
|
|
273
|
-
drilldownOptions: Array<DrilldownOptions> | undefined;
|
|
274
273
|
};
|
|
275
274
|
export type AreaChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
276
275
|
type: 'areaChart';
|
|
@@ -40,5 +40,6 @@ export interface ComponentInterface<Hydrated = any, Dumped = any> extends Dumpab
|
|
|
40
40
|
parameters: boolean;
|
|
41
41
|
colorGradient: boolean;
|
|
42
42
|
};
|
|
43
|
+
supportedAggregations?: Array<string>;
|
|
43
44
|
}
|
|
44
45
|
export declare type LoadComponentInterface<Hydrated, Dumped> = (config: ComponentInterfaceConfig) => ComponentInterface<Hydrated, Dumped>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DataSet } from '../DataSet/types';
|
|
2
|
-
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
-
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
4
1
|
import { Component } from '../Component/types';
|
|
2
|
+
import { DataSet } from '../DataSet/types';
|
|
5
3
|
import { Datum, ParsedDatumKey } from '../DatumKey';
|
|
6
4
|
import * as Dimension from '../Dimension';
|
|
5
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
6
|
+
import { QueryEngineConfig } from '../QueryEngineConfig/types';
|
|
7
7
|
export declare const updateTimeDimension: (dataSet: DataSet, option: QueryAttributes.TimeDimension & {
|
|
8
8
|
function?: string;
|
|
9
9
|
}) => QueryAttributes.TimeDimension | null;
|
|
@@ -28,4 +28,4 @@ export declare function buildClickedOnFieldForQuery(getField: (metric: {
|
|
|
28
28
|
field: string;
|
|
29
29
|
function: string;
|
|
30
30
|
}) => string, parseKey: (key: string) => ParsedDatumKey | undefined, dimension?: QueryAttributes.Dimension[], timeDimension?: QueryAttributes.TimeDimension | null, clickedValue?: Datum | undefined): DrilldownField[];
|
|
31
|
-
export declare function buildDrilldownFilters(attributes: Component.BarChartAttributes | Component.HorizontalBarChartAttributes | Component.PieChartAttributes
|
|
31
|
+
export declare function buildDrilldownFilters(attributes: Component.BarChartAttributes | Component.HorizontalBarChartAttributes | Component.PieChartAttributes, queries: Partial<QueryAttributes>, existingField: DrilldownField[], combineFilters: (array1: QueryAttributes.Filter[][], array2: QueryAttributes.Filter[][]) => QueryAttributes.Filter[][], updateFilter: (field: DrilldownField, timeDimension: QueryAttributes.TimeDimension | null, dimension: QueryAttributes.Dimension[]) => QueryAttributes.Filter[][]): QueryAttributes.Filter[][];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { VizzlyComponents } from '../types';
|
|
3
|
+
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
3
4
|
import { Component as ComponentType } from '../../../shared-logic/src/Component/types';
|
|
4
5
|
import { Result } from '../../../shared-logic/src/Result/types';
|
|
5
|
-
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
6
6
|
export declare type ComponentProps = {
|
|
7
7
|
id: string;
|
|
8
8
|
component: ComponentType;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
3
3
|
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
|
|
4
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
5
4
|
import * as Drilldown from '../../../../shared-logic/src/Drilldown/Drilldown';
|
|
6
5
|
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
7
|
-
|
|
6
|
+
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
7
|
+
export declare type AcceptedDrilldownAttributes = Component.PieChartAttributes | Component.BarChartAttributes | Component.HorizontalBarChartAttributes | Component.BarChartV2Attributes;
|
|
8
8
|
export declare function useDrilldownSelection(results: (Result | null)[], attributes: AcceptedDrilldownAttributes, setAttributes: (newAttributes: AcceptedDrilldownAttributes) => void, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, hasDateTimeInDimension?: boolean): {
|
|
9
9
|
onDrilldownChange: ({ existingField, newField }: Drilldown.SelectedDrilldown) => void;
|
|
10
10
|
setDrilldownSelections: import("react").Dispatch<import("react").SetStateAction<Drilldown.SelectedDrilldown[]>>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
3
|
+
import { FormatResultArgs } from '../../../../shared-logic/src/Result/formatResult';
|
|
4
|
+
import { VizzlyComponents } from '../../types';
|
|
5
|
+
export declare type SunburstProps = Pick<VizzlyComponents.ViewProps<{
|
|
6
|
+
attributes: Component.SunburstChartAttributes;
|
|
7
|
+
}>, 'attributes' | 'result' | 'dataSet' | 'localFilters' | 'setLocalFilters' | 'setPartialAttributes' | 'library'> & {
|
|
8
|
+
formatResultParams: FormatResultArgs;
|
|
7
9
|
width: number;
|
|
8
10
|
height: number;
|
|
9
|
-
}
|
|
10
|
-
declare const
|
|
11
|
-
|
|
12
|
-
height: number;
|
|
13
|
-
}) => JSX.Element>;
|
|
11
|
+
};
|
|
12
|
+
export declare const SunburstChartView: (props: SunburstProps) => JSX.Element;
|
|
13
|
+
declare const memoized: React.MemoExoticComponent<(props: SunburstProps) => JSX.Element>;
|
|
14
14
|
export default memoized;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FormattedResult } from '../../../../shared-logic/src/Result/types';
|
|
2
|
-
|
|
2
|
+
declare type SunburstNode = {
|
|
3
3
|
name: string;
|
|
4
|
-
children?:
|
|
4
|
+
children?: SunburstNode[];
|
|
5
5
|
hierarchy: string;
|
|
6
|
-
|
|
6
|
+
value?: number;
|
|
7
7
|
parents: string[];
|
|
8
8
|
color: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const convertDataToSunburstData: (formattedData: FormattedResult) =>
|
|
9
|
+
};
|
|
10
|
+
export declare const convertDataToSunburstData: (formattedData: FormattedResult) => SunburstNode;
|
|
11
11
|
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
2
|
+
import { SupportedTimeTruncFunctions } from '@vizzly/semantic-layer-public';
|
|
3
3
|
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
4
|
import { FieldCollectorOptions } from '../../../../shared-logic/src/DataPanelConfig/types';
|
|
5
|
-
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
6
5
|
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
7
|
-
import
|
|
6
|
+
import * as Field from '../../../../shared-logic/src/Field';
|
|
8
7
|
import { QueryAttributes } from '../../../../shared-logic/src/QueryAttributes/types';
|
|
9
|
-
import {
|
|
8
|
+
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
9
|
+
import { FieldFilterOptions } from '../../../../shared-logic/src/DataSet/fieldFilterOptions';
|
|
10
10
|
import { InitValue } from '../../base/ListView/ListView';
|
|
11
|
-
import { VizzlyComponents } from '../../types';
|
|
12
11
|
import { ListViewItem } from '../../base/ListView/types';
|
|
12
|
+
import { VizzlyComponents } from '../../types';
|
|
13
13
|
declare type FieldCollectorInputFieldValue = QueryAttributes['measure'][number] | QueryAttributes['dimension'][number];
|
|
14
14
|
declare type SelectOptionType = {
|
|
15
15
|
value: any;
|
|
@@ -28,5 +28,5 @@ export declare const getDateTimeSelectOptions: (allowedGranularities: string[],
|
|
|
28
28
|
export declare function handleCreateNewField(values: (QueryAttributes.Dimension | QueryAttributes.Measure)[], purpose: string, queryEngineConfig: QueryEngineConfig, onChange: (values: FieldCollectorInputFieldValue[]) => void): (field: DataSetType.Field) => void;
|
|
29
29
|
export declare function buildDimensionFromField(purpose: string, field: DataSetType.Field, queryEngineConfig: QueryEngineConfig): QueryAttributes.Dimension | QueryAttributes.Measure;
|
|
30
30
|
export declare function buildFieldsToPickFrom(dataSet: DataSetType, fieldFilterOptions: FieldFilterOptions | undefined, preventDuplicates: boolean | undefined, values: (QueryAttributes.Measure | QueryAttributes.Dimension)[]): InitValue<DataSetType.Field>[];
|
|
31
|
-
export declare function buildFieldCollectorItems(values: (QueryAttributes.Measure | QueryAttributes.Dimension)[], dataSet: DataSetType, purpose: string, queryEngineConfig: QueryEngineConfig, onChange: (values: FieldCollectorInputFieldValue[]) => void): ListViewItem<any>[];
|
|
31
|
+
export declare function buildFieldCollectorItems(values: (QueryAttributes.Measure | QueryAttributes.Dimension)[], dataSet: DataSetType, purpose: string, queryEngineConfig: QueryEngineConfig, onChange: (values: FieldCollectorInputFieldValue[]) => void, supportedAggregations?: string[]): ListViewItem<any>[];
|
|
32
32
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/dashboard",
|
|
3
3
|
"author": "james@vizzly.co",
|
|
4
|
-
"version": "0.14.4-dev-
|
|
4
|
+
"version": "0.14.4-dev-ac144c6e109da595b1c8df4be87f046b8be9fe29",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|