@vizzly/dashboard 0.15.0-dev-65c3e5d7491389a56cc8409b046f92683dd4725f → 0.15.0
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/charts/src/useXAxisLabelCount.d.ts +1 -1
- package/dist/charts/src/v2/components/Axis/AxisBottom.d.ts +1 -1
- package/dist/charts/src/v2/components/BarChart/BarChart.d.ts +2 -2
- package/dist/charts/src/v2/components/ChartWrapper/ChartWrapper.d.ts +2 -4
- package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +1 -2
- package/dist/charts/src/v2/components/WaterfallChart/Tooltip.d.ts +2 -2
- package/dist/charts/src/v2/utils/components/BarGroup.d.ts +4 -4
- package/dist/charts/src/v2/utils/components/BarStacked.d.ts +4 -4
- package/dist/dashboard.cjs.development.js +1604 -1124
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +1605 -1125
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChartV2/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/RadarChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/SunburstChart/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +1 -1
- package/dist/shared-logic/src/AdditionalFilter/types.d.ts +1 -4
- package/dist/shared-logic/src/BubbleChart/types.d.ts +0 -7
- package/dist/shared-logic/src/BubbleChartV2/buildBubbleChartRepresentation.d.ts +7 -4
- package/dist/shared-logic/src/BubbleChartV2/getScaleAndTicks.d.ts +3 -4
- package/dist/shared-logic/src/BubbleChartV2/types.d.ts +0 -8
- package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +3 -3
- package/dist/shared-logic/src/Component/types.d.ts +1 -0
- package/dist/shared-logic/src/CustomField/SimpleMath/index.d.ts +1 -1
- package/dist/shared-logic/src/Filter/Filter.d.ts +1 -1
- package/dist/shared-logic/src/Filter/Where.d.ts +6 -0
- package/dist/shared-logic/src/Filter/types.d.ts +4 -2
- package/dist/shared-logic/src/JSQueryEngine/types.d.ts +8 -2
- package/dist/shared-logic/src/Query/Query.d.ts +3 -9
- package/dist/shared-logic/src/Query/buildFromQueryAttributes.d.ts +1 -1
- package/dist/shared-logic/src/Query/types.d.ts +109 -6
- package/dist/shared-logic/src/TimeDimension/TimeDimension.d.ts +1 -3
- package/dist/shared-logic/src/api/queryEngine/getRunQueriesCallback.d.ts +1 -1
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -2
- package/dist/shared-ui/src/base/Panel/Panel.d.ts +1 -1
- package/dist/shared-ui/src/components/BarChartV2/BarChartV2View.d.ts +3 -3
- package/dist/shared-ui/src/components/Component/types.d.ts +2 -0
- package/dist/shared-ui/src/components/Component.d.ts +2 -0
- package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +2 -0
- package/dist/shared-ui/src/components/WaterfallChart/WaterfallChartView.d.ts +3 -3
- package/dist/shared-ui/src/components/useComponentEffect.d.ts +2 -2
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +17 -1
- package/dist/shared-ui/src/library/Editor/useEditor.d.ts +2 -0
- package/dist/shared-ui/src/library/Library/ComponentInLibrary.d.ts +1 -0
- package/dist/shared-ui/src/library/Library/Library.d.ts +4 -0
- package/dist/shared-ui/src/library/Library/types.d.ts +2 -0
- package/package.json +3 -3
- package/dist/shared-logic/src/PivotConfigForMetricAxis/index.d.ts +0 -3
- package/dist/shared-logic/src/Result/formattedResultToSeriesForMetricAxis.d.ts +0 -25
|
@@ -4,7 +4,7 @@ export declare const Panel: React.ForwardRefExoticComponent<{
|
|
|
4
4
|
testId?: string | undefined;
|
|
5
5
|
vizzlyPrefix?: string | undefined;
|
|
6
6
|
transform?: boolean | undefined;
|
|
7
|
-
role?: (string & {}) | "grid" | "none" | "button" | "checkbox" | "listbox" | "radio" | "region" | "cell" | "table" | "row" | "menu" | "listitem" | "menubar" | "menuitem" | "progressbar" | "separator" | "tab" | "tabpanel" | "toolbar" | "tooltip" | "treeitem" | "scrollbar" | "
|
|
7
|
+
role?: (string & {}) | "grid" | "none" | "button" | "checkbox" | "listbox" | "radio" | "region" | "cell" | "table" | "row" | "menu" | "listitem" | "menubar" | "menuitem" | "progressbar" | "separator" | "tab" | "tabpanel" | "toolbar" | "tooltip" | "treeitem" | "scrollbar" | "heading" | "search" | "link" | "article" | "dialog" | "figure" | "form" | "img" | "main" | "option" | "switch" | "alert" | "alertdialog" | "application" | "banner" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "directory" | "document" | "feed" | "gridcell" | "group" | "list" | "log" | "marquee" | "math" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "note" | "presentation" | "radiogroup" | "rowgroup" | "rowheader" | "searchbox" | "slider" | "spinbutton" | "status" | "tablist" | "term" | "textbox" | "timer" | "tree" | "treegrid" | undefined;
|
|
8
8
|
onHover?: ((active: boolean) => void) | undefined;
|
|
9
9
|
width?: CSSProperties['width'];
|
|
10
10
|
padding?: CSSProperties['padding'];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
2
3
|
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
3
4
|
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
4
|
-
import
|
|
5
|
-
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
6
|
-
import { VizzlyComponents } from '../../types';
|
|
5
|
+
import { IdPrefix, DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
7
6
|
import { HeadlineStatsProps } from '../HeadlineStats/HeadlineStats';
|
|
7
|
+
import * as Drilldown from '../../../../shared-logic/src/Drilldown/Drilldown';
|
|
8
8
|
export declare type BarChartV2ViewProps = Omit<VizzlyComponents.ViewProps<{
|
|
9
9
|
attributes: Component.BarChartV2Attributes;
|
|
10
10
|
}>, 'supportedTimeTruncFunctions' | 'supportedTransformationFunctions' | 'supportedAggregates'>;
|
|
@@ -2,12 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { VizzlyComponents } from '../../types';
|
|
3
3
|
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
4
|
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
+
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
5
6
|
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
6
7
|
import { MapPosition } from '../../../../charts/src/MercatorMap';
|
|
7
8
|
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
8
9
|
interface BaseChartProps<AttributesType> {
|
|
9
10
|
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
11
|
component: ComponentType<AttributesType>;
|
|
12
|
+
setResults: (results: (Result | null)[]) => void;
|
|
11
13
|
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
12
14
|
globalFilters: AdditionalFilter[];
|
|
13
15
|
dataSet: DataSetType;
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
import { VizzlyComponents } from '../types';
|
|
3
3
|
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
4
4
|
import { Component as ComponentType } from '../../../shared-logic/src/Component/types';
|
|
5
|
+
import { Result } from '../../../shared-logic/src/Result/types';
|
|
5
6
|
export declare type ComponentProps = {
|
|
6
7
|
id: string;
|
|
7
8
|
component: ComponentType;
|
|
8
9
|
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
+
setResults: (results: (Result | null)[]) => void;
|
|
9
11
|
updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
|
|
10
12
|
isBeingSizeAdjusted: boolean;
|
|
11
13
|
library?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { VizzlyComponents } from '../../../types';
|
|
3
3
|
import { Component as ComponentType } from '../../../../../shared-logic/src/Component/types';
|
|
4
|
+
import { Result } from '../../../../../shared-logic/src/Result/types';
|
|
4
5
|
import { DownloadType, FileFormat } from '../../../api/useQueryEffect/download';
|
|
5
6
|
import { Display } from '../../../../../shared-logic/src/Display/types';
|
|
6
7
|
declare type EmptyCellProps = {
|
|
@@ -25,6 +26,7 @@ declare type PopulatedCellProps = {
|
|
|
25
26
|
fileFormat: FileFormat;
|
|
26
27
|
}) => void;
|
|
27
28
|
testId: string;
|
|
29
|
+
setResults: (results: (Result | null)[]) => void;
|
|
28
30
|
updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
|
|
29
31
|
isBeingSizeAdjusted: boolean;
|
|
30
32
|
setComponentReports: (reports: ComponentType['reports']) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
4
4
|
export declare type WaterfallChartViewProps = VizzlyComponents.ViewProps<Component.WaterfallChartAttributes>;
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: React.NamedExoticComponent<VizzlyComponents.ViewProps<Component.WaterfallChartAttributes, import("../../../../shared-logic/src/Component/types").Component.Attributes>>;
|
|
6
6
|
export default _default;
|
|
@@ -2,9 +2,9 @@ import { Component } from '../../../shared-logic/src/Component/types';
|
|
|
2
2
|
import { DataSet as DataSetType } from '../../../shared-logic/src/DataSet/types';
|
|
3
3
|
import { VizzlyComponents } from '../types';
|
|
4
4
|
import { FilterConfig } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
5
|
+
import { Result } from '../../../shared-logic/src/Result/types';
|
|
5
6
|
import { QueryEngineConfig } from '../../../shared-logic/src/QueryEngineConfig/types';
|
|
6
7
|
import { UseVariableState } from '../contexts/Variables/types';
|
|
7
|
-
export declare const useComponentEffect: <T extends Component.Attributes>(attributes: T, dataSet: DataSetType, queryEngineConfig: QueryEngineConfig, filterConfig: FilterConfig, updateComponentAttributes: (attributes: T) => void, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, variables?: UseVariableState | undefined) => {
|
|
8
|
+
export declare const useComponentEffect: <T extends Component.Attributes>(attributes: T, dataSet: DataSetType, queryEngineConfig: QueryEngineConfig, filterConfig: FilterConfig, updateComponentAttributes: (attributes: T) => void, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, setResults: (results: (Result | null)[]) => void, variables?: UseVariableState | undefined) => {
|
|
8
9
|
queriesAreChanging: boolean;
|
|
9
|
-
results: (import("../../../shared-logic/src/Result/types").Result | null)[];
|
|
10
10
|
};
|
|
@@ -5,6 +5,7 @@ import { SetDataSetsAction } from './logic/types';
|
|
|
5
5
|
import { VizzlyComponents, trackEventCallback } from '../../types';
|
|
6
6
|
import { StoredTheme } from '../../../../shared-logic/src/Theme/types';
|
|
7
7
|
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
|
|
8
|
+
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
8
9
|
import { Report } from '../../../../shared-logic/src/Report/types';
|
|
9
10
|
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
10
11
|
import { DashboardBehaviour } from '../DashboardBehaviour/types';
|
|
@@ -208,6 +209,21 @@ export declare type RemoveComponentFromLibraryAction = {
|
|
|
208
209
|
type: 'removeComponentFromLibrary';
|
|
209
210
|
libraryIndex: number;
|
|
210
211
|
};
|
|
212
|
+
export declare type SetResultsForComponentInDisplayAction = {
|
|
213
|
+
type: 'setResultsForComponentInDisplay';
|
|
214
|
+
rowIndex: number;
|
|
215
|
+
cellIndex: number;
|
|
216
|
+
results: (Result | null)[];
|
|
217
|
+
};
|
|
218
|
+
export declare type SetResultsForComponentInEditorAction = {
|
|
219
|
+
type: 'setResultsForComponentInEditor';
|
|
220
|
+
results: (Result | null)[];
|
|
221
|
+
};
|
|
222
|
+
export declare type SetResultsForComponentInLibraryAction = {
|
|
223
|
+
type: 'setResultsForComponentInLibrary';
|
|
224
|
+
results: (Result | null)[];
|
|
225
|
+
libraryIndex: number;
|
|
226
|
+
};
|
|
211
227
|
export declare type SetLocalFiltersAction = {
|
|
212
228
|
type: 'setLocalFilters';
|
|
213
229
|
localFilters: AdditionalFilter[];
|
|
@@ -268,7 +284,7 @@ export declare type StartEditorAction = {
|
|
|
268
284
|
libraryIndex: number | null;
|
|
269
285
|
component: Component | null;
|
|
270
286
|
};
|
|
271
|
-
export declare type StudioAction = InitAction | SetDashboardAction | ImportDashboardAction | SaveComponentAction | ClearModalAction | InsertRowAction | AppendCellAction | AddHeaderRowAction | SetHeaderComponentAction | RemoveCellAction | ClearCellAction | RemoveRowAction | AddDataSetAction | RemoveDataSetAction | SetDataSetsAction | SetLocalFiltersAction | SetAttributesAction | UpdateEditorComponentAction | StartEditingComponentAction | StartPickingComponentFromLibraryForDisplayAction | PickComponentFromLibraryForDisplayAction | SetThemeAction | SetGlobalFiltersAction | ChangePreviewModeAction | UpdateDisplayComponentAttributesAction | UpdateComponentLibraryAttributesAction | RemoveComponentFromLibraryAction | AddCustomComponentAction | SetColSpansAction | SetRowHeightAction | SetComponentReportsAction | SwapComponentsAction | AddComponentToLibrary | StartEditorAction | MoveRowAction | SetActiveModalAction | SetGeneratingPDFAction;
|
|
287
|
+
export declare type StudioAction = InitAction | SetDashboardAction | ImportDashboardAction | SaveComponentAction | ClearModalAction | InsertRowAction | AppendCellAction | AddHeaderRowAction | SetHeaderComponentAction | RemoveCellAction | ClearCellAction | RemoveRowAction | AddDataSetAction | RemoveDataSetAction | SetDataSetsAction | SetLocalFiltersAction | SetAttributesAction | UpdateEditorComponentAction | SetResultsForComponentInDisplayAction | SetResultsForComponentInEditorAction | SetResultsForComponentInLibraryAction | StartEditingComponentAction | StartPickingComponentFromLibraryForDisplayAction | PickComponentFromLibraryForDisplayAction | SetThemeAction | SetGlobalFiltersAction | ChangePreviewModeAction | UpdateDisplayComponentAttributesAction | UpdateComponentLibraryAttributesAction | RemoveComponentFromLibraryAction | AddCustomComponentAction | SetColSpansAction | SetRowHeightAction | SetComponentReportsAction | SwapComponentsAction | AddComponentToLibrary | StartEditorAction | MoveRowAction | SetActiveModalAction | SetGeneratingPDFAction;
|
|
272
288
|
export declare type PipelineTransformationOptions = {
|
|
273
289
|
dashboardFilters: DashboardBehaviour['dashboardFilters'];
|
|
274
290
|
onDashboardFilterChange: DashboardBehaviour['onDashboardFilterChange'];
|
|
@@ -7,6 +7,7 @@ import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/typ
|
|
|
7
7
|
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
8
8
|
import { DashboardBehaviour, TextOverride } from '../../contexts/DashboardBehaviour/types';
|
|
9
9
|
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
10
|
+
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
10
11
|
import { StudioAction, StudioState } from '../../contexts/DashboardContext/types';
|
|
11
12
|
import { SelectableCustomView } from '../../../../shared-logic/src/CustomView/types';
|
|
12
13
|
export declare type EditorHookValues = {
|
|
@@ -27,6 +28,7 @@ export declare type EditorHookValues = {
|
|
|
27
28
|
setAttributes: (attributes: ComponentType.Attributes) => void;
|
|
28
29
|
setLocalFilters: (localFilters: Component['localFilters']) => void;
|
|
29
30
|
setPartialAttributes: (attributes: Partial<ComponentType.Attributes>) => void;
|
|
31
|
+
setResults: (results: (Result | null)[]) => void;
|
|
30
32
|
mode: 'endUser' | 'admin';
|
|
31
33
|
origin: Origin;
|
|
32
34
|
componentEditor: StudioState['componentEditor'];
|
|
@@ -6,6 +6,7 @@ declare type ComponentInLibraryProps = {
|
|
|
6
6
|
libraryIndex: number;
|
|
7
7
|
onSelectComponent: ViewsInLibraryProps['onSelectComponent'];
|
|
8
8
|
runQueriesCallback: ViewsInLibraryProps['runQueriesCallback'];
|
|
9
|
+
setResults: ViewsInLibraryProps['setResults'];
|
|
9
10
|
updateComponentAttributes: ViewsInLibraryProps['updateComponentAttributes'];
|
|
10
11
|
selectedIndex: number;
|
|
11
12
|
onEdit: (index: number) => void;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
3
|
+
import { Query } from '../../../../shared-logic/src/Query/types';
|
|
4
|
+
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
3
5
|
import { VizzlyComponents } from '../../types';
|
|
4
6
|
import { Dashboard } from '../../../../shared-logic/src/Dashboard';
|
|
5
7
|
export declare const Library: () => JSX.Element;
|
|
@@ -8,8 +10,10 @@ export declare const ViewLibraryDisplay: FunctionComponent<{
|
|
|
8
10
|
onClose: () => void;
|
|
9
11
|
onSelect: () => void;
|
|
10
12
|
updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
|
|
13
|
+
setFocussedComponentResults: (results: (Result | null)[], queries: Query[]) => void;
|
|
11
14
|
dashboard: Dashboard;
|
|
12
15
|
selectedLibraryIndex: number;
|
|
16
|
+
setResults: (results: (Result | null)[], libraryIndex: number) => void;
|
|
13
17
|
canEditComponentLibrary: boolean;
|
|
14
18
|
onEdit: (index: number) => void;
|
|
15
19
|
onDelete: (index: number) => void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { VizzlyComponents } from '../../types';
|
|
2
2
|
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
3
|
+
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
3
4
|
export declare type ViewsInLibraryProps = {
|
|
4
5
|
onSelectComponent: (componentIndex: number) => void;
|
|
5
6
|
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
7
|
+
setResults: (results: (Result | null)[], libraryIndex: number) => void;
|
|
6
8
|
components: ComponentType[];
|
|
7
9
|
updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
|
|
8
10
|
selectedIndex: number;
|
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
|
|
4
|
+
"version": "0.15.0",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@visx/visx": "^3.10.2",
|
|
56
56
|
"@vizzly/api-client": "0.0.57",
|
|
57
57
|
"@vizzly/joi": "^17.7.0",
|
|
58
|
-
"@vizzly/semantic-layer-public": "0.0.
|
|
59
|
-
"@vizzly/sqlbuilder-public": "0.1.
|
|
58
|
+
"@vizzly/semantic-layer-public": "0.0.234",
|
|
59
|
+
"@vizzly/sqlbuilder-public": "0.1.43",
|
|
60
60
|
"chroma-js": "2.4.2",
|
|
61
61
|
"copy-to-clipboard": "^3.3.3",
|
|
62
62
|
"cross-fetch": "^4.0.0",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DataType } from '@vizzly/sqlbuilder-public';
|
|
2
|
-
import { PivotConfig } from '../PivotConfig/types';
|
|
3
|
-
import { FormattedResult } from './types';
|
|
4
|
-
declare type Key = {
|
|
5
|
-
key: string;
|
|
6
|
-
keyFormatted: string;
|
|
7
|
-
dataType: DataType;
|
|
8
|
-
outputDataType: DataType;
|
|
9
|
-
};
|
|
10
|
-
declare type FormattedResultToSeriesReturn = {
|
|
11
|
-
yKeys: string[];
|
|
12
|
-
xKeys: string[];
|
|
13
|
-
zKey: string;
|
|
14
|
-
keys: {
|
|
15
|
-
[keyId: string]: Key;
|
|
16
|
-
};
|
|
17
|
-
seriesData: FormattedResult['contentMapped'];
|
|
18
|
-
};
|
|
19
|
-
export declare type seriesLabelFormatter = (params: {
|
|
20
|
-
yResultField: FormattedResult['fields'][number];
|
|
21
|
-
yPivotFields: FormattedResult['fields'];
|
|
22
|
-
row: FormattedResult['contentMapped'][number];
|
|
23
|
-
}) => string;
|
|
24
|
-
export declare const formattedResultToSeries: (formattedResult: FormattedResult, pivotConfig: PivotConfig, zFieldId: string) => FormattedResultToSeriesReturn;
|
|
25
|
-
export {};
|