@vizzly/dashboard 0.14.3 → 0.14.4-dev-e20496d46b8f1db9142fb978a46d77efd06b995f
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/PieChart/PieChart.d.ts +2 -2
- package/dist/charts/src/types.d.ts +3 -2
- package/dist/charts/src/utils/buildTooltipStyles.d.ts +3 -4
- package/dist/charts/src/v2/components/GoalLine/GoalLine.d.ts +15 -0
- package/dist/charts/src/v2/components/GoalLine/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Legend/Legend.d.ts +14 -0
- package/dist/charts/src/v2/components/Legend/LegendItem/LegendItem.d.ts +11 -0
- package/dist/charts/src/v2/components/Legend/LegendItem/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Legend/LegendItemBox/LegendItemBox.d.ts +3 -0
- package/dist/charts/src/v2/components/Legend/LegendItemBox/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Legend/index.d.ts +1 -0
- package/dist/charts/src/v2/components/LineChart/LineChart.d.ts +20 -0
- package/dist/charts/src/v2/components/LineChart/buildMargin.d.ts +9 -0
- package/dist/charts/src/v2/components/LineChart/index.d.ts +1 -0
- package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +21 -0
- package/dist/charts/src/v2/components/Tooltip/index.d.ts +1 -0
- package/dist/charts/src/v2/constants/COLORS.d.ts +1 -0
- package/dist/charts/src/v2/index.d.ts +1 -0
- package/dist/charts/src/v2/types.d.ts +1 -0
- package/dist/charts/src/v2/utils/addTrendAndForecast.d.ts +21 -0
- package/dist/charts/src/v2/utils/flattenData.d.ts +14 -0
- package/dist/charts/src/v2/utils/getChartThemeCSS.d.ts +9 -0
- package/dist/charts/src/v2/utils/getClipArea.d.ts +16 -0
- package/dist/charts/src/v2/utils/getColor.d.ts +9 -0
- package/dist/charts/src/v2/utils/getTooltipData.d.ts +30 -0
- package/dist/charts/src/v2/utils/getTrend.d.ts +24 -0
- package/dist/charts/src/v2/utils/index.d.ts +7 -0
- package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +12 -30
- package/dist/index.js +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/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/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 +4 -0
- 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/RichText/toQueries.d.ts +1 -1
- package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
- package/dist/services/src/index.d.ts +0 -1
- package/dist/shared-logic/src/AdditionalFilter/AdditionalFilter.d.ts +1 -1
- package/dist/shared-logic/src/AdditionalFilter/constants.d.ts +0 -3
- package/dist/shared-logic/src/AdditionalFilter/types.d.ts +0 -1
- package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
- package/dist/shared-logic/src/Component/types.d.ts +24 -3
- package/dist/shared-logic/src/ComponentInterface/types.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/CustomField.d.ts +3 -2
- package/dist/shared-logic/src/CustomField/CustomMetric/build.d.ts +11 -0
- package/dist/shared-logic/src/CustomField/CustomMetric/combineFilters.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/CustomMetric/index.d.ts +10 -0
- package/dist/shared-logic/src/CustomField/CustomMetric/mockDataSet.d.ts +2 -0
- package/dist/shared-logic/src/CustomField/types.d.ts +10 -2
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
- package/dist/shared-logic/src/FeatureToggle/types.d.ts +4 -0
- package/dist/shared-logic/src/Filter/combineFilters.d.ts +1 -0
- package/dist/shared-logic/src/Filter/relative.d.ts +2 -1
- package/dist/shared-logic/src/LineChartV2/adjustTicks.d.ts +3 -0
- package/dist/shared-logic/src/LineChartV2/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/LineChartV2/buildLineChartRepresentation.d.ts +39 -0
- package/dist/shared-logic/src/LineChartV2/buildTrendAndForecast.d.ts +25 -0
- package/dist/shared-logic/src/LineChartV2/constants.d.ts +3 -0
- package/dist/shared-logic/src/LineChartV2/getAxisFormattingFunction.d.ts +13 -0
- package/dist/shared-logic/src/LineChartV2/getConditionalFormatting.d.ts +7 -0
- package/dist/shared-logic/src/LineChartV2/getData.d.ts +18 -0
- package/dist/shared-logic/src/LineChartV2/getGoalLines.d.ts +10 -0
- package/dist/shared-logic/src/LineChartV2/getMinAndMax.d.ts +14 -0
- package/dist/shared-logic/src/LineChartV2/getScaleAndTicks.d.ts +50 -0
- package/dist/shared-logic/src/LineChartV2/getStyleDefinition.d.ts +8 -0
- package/dist/shared-logic/src/LineChartV2/getTrendsAndForecastsData.d.ts +41 -0
- package/dist/shared-logic/src/LineChartV2/getXScale.d.ts +18 -0
- package/dist/shared-logic/src/LineChartV2/index.d.ts +4 -0
- package/dist/shared-logic/src/LineChartV2/prepareData.d.ts +34 -0
- package/dist/shared-logic/src/LineChartV2/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/LineChartV2/types.d.ts +79 -0
- package/dist/shared-logic/src/Logger/Logger.d.ts +2 -0
- package/dist/shared-logic/src/Result/Result.d.ts +0 -1
- package/dist/shared-logic/src/Result/types.d.ts +2 -0
- package/dist/shared-logic/src/Variables/Variables.d.ts +1 -0
- package/dist/shared-logic/src/getComponentInterface.d.ts +1 -0
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -1
- package/dist/shared-ui/src/base/MultiSelect.d.ts +1 -0
- package/dist/shared-ui/src/base/Select/Control.d.ts +1 -0
- package/dist/shared-ui/src/base/layout/Flex.styles.d.ts +1 -0
- package/dist/shared-ui/src/components/ComboChart/ComboChartView.d.ts +1 -4
- package/dist/shared-ui/src/components/CustomMetric/CustomMetric.d.ts +5 -2
- package/dist/shared-ui/src/components/CustomMetric/CustomMetricField.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/CustomMetricVariable.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/MetricOverview.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/OperatorIcon.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/buildCustomMetric.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/formatFormula.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/init.d.ts +1 -1
- package/dist/shared-ui/src/components/CustomMetric/{pickAvailableItems.d.ts → items.d.ts} +13 -3
- package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -1
- package/dist/shared-ui/src/components/ItemPicker/ItemPicker.d.ts +4 -4
- package/dist/shared-ui/src/components/LineChartV2/LineChartV2.d.ts +22 -0
- package/dist/shared-ui/src/components/LineChartV2/LineChartV2View.d.ts +17 -0
- package/dist/shared-ui/src/components/LineChartV2/index.d.ts +2 -0
- package/dist/shared-ui/src/components/Studio/StudioModals.d.ts +1 -1
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +1 -1
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +7 -1
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/CustomMetricModal.d.ts +3 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/types.d.ts +3 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/CustomMetric/useCustomMetric.d.ts +16 -0
- package/dist/shared-ui/src/library/DataPanel/CustomFieldInput/customMetricText.d.ts +3 -11
- package/dist/shared-ui/src/library/DataPanel/CustomMetricsInput.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/SortInput/formatTitleWithAggregate.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/SortInput.d.ts +2 -0
- package/dist/shared-ui/src/library/DataPanel/Trends/TrendsInput.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/Trends/types.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/removeHiddenFieldsFromAttributes.d.ts +6 -0
- package/package.json +3 -3
- package/dist/shared-ui/src/library/DataPanel/deleteRemovedHiddenFieldsFromAttributes.ts.d.ts +0 -6
- /package/dist/{shared-ui/src/components → shared-logic/src/CustomField}/CustomMetric/types.d.ts +0 -0
- /package/dist/shared-ui/src/components/CustomMetric/{pickAvailableItems.test.d.ts → items.test.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PieDatum } from './CorePieChart';
|
|
3
|
-
import { ChartData, ColorFormatterByDatum,
|
|
3
|
+
import { ChartData, ColorFormatterByDatum, ChartPopoverMenuTheme } from '../types';
|
|
4
4
|
import { ConditionalFormattingOption } from '../Legend/Legend';
|
|
5
5
|
import { ChartRef } from '../utils/chartRendering';
|
|
6
6
|
export interface PieChartProps extends RequiredPieChart {
|
|
@@ -34,7 +34,7 @@ declare type RequiredPieChart = {
|
|
|
34
34
|
formatColor?: ColorFormatterByDatum;
|
|
35
35
|
onClick?: (datum: ClickDatumValues, event: React.MouseEvent<SVGPathElement>) => void;
|
|
36
36
|
conditionalFormattingPossibilities?: (dataKey: string) => Array<ConditionalFormattingOption>;
|
|
37
|
-
popOverMenuStyles?:
|
|
37
|
+
popOverMenuStyles?: ChartPopoverMenuTheme;
|
|
38
38
|
styles?: PieStyleOverrides;
|
|
39
39
|
};
|
|
40
40
|
export {};
|
|
@@ -26,7 +26,7 @@ export interface ChartProps extends LegendProps {
|
|
|
26
26
|
onPointerUp?: (value: OnPointerUp<any>) => void;
|
|
27
27
|
approxYAxisLabelCount?: ApproxAxisLabelCount;
|
|
28
28
|
approxXAxisLabelCount?: ApproxAxisLabelCount;
|
|
29
|
-
popOverMenuStyles?:
|
|
29
|
+
popOverMenuStyles?: ChartPopoverMenuTheme;
|
|
30
30
|
}
|
|
31
31
|
export declare type LabelTypes = any | undefined;
|
|
32
32
|
export declare type LegendProps = {
|
|
@@ -42,6 +42,7 @@ export declare type ChartTheme = {
|
|
|
42
42
|
line?: ChartLineTheme;
|
|
43
43
|
axis?: ChartAxisTheme;
|
|
44
44
|
threshold?: ChartThresholdTheme;
|
|
45
|
+
popoverMenus?: ChartPopoverMenuTheme;
|
|
45
46
|
};
|
|
46
47
|
export declare type ChartLabelsTheme = {
|
|
47
48
|
color?: CSSProperties['fill'];
|
|
@@ -67,7 +68,7 @@ export declare type ChartAxisTheme = {
|
|
|
67
68
|
export declare type ChartThresholdTheme = {
|
|
68
69
|
stroke: CSSProperties['stroke'];
|
|
69
70
|
};
|
|
70
|
-
export declare type
|
|
71
|
+
export declare type ChartPopoverMenuTheme = {
|
|
71
72
|
background?: CSSProperties['background'];
|
|
72
73
|
border?: CSSProperties['border'];
|
|
73
74
|
borderRadius?: CSSProperties['borderRadius'];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const buildTooltipStyles: ({
|
|
4
|
-
|
|
5
|
-
overrides?: ChartPopoverMenuStyles | undefined;
|
|
2
|
+
import { ChartPopoverMenuTheme } from '../types';
|
|
3
|
+
export declare const buildTooltipStyles: ({ background, border, borderRadius, boxShadow, color, fontFamily, letterSpacing, padding, old, }: ChartPopoverMenuTheme & {
|
|
4
|
+
old: boolean;
|
|
6
5
|
}) => CSSProperties;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GoalLine as GoalLineType } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
3
|
+
interface GoalLineProps {
|
|
4
|
+
goalLine: GoalLineType;
|
|
5
|
+
innerWidth: number;
|
|
6
|
+
margin: {
|
|
7
|
+
top: number;
|
|
8
|
+
left: number;
|
|
9
|
+
right: number;
|
|
10
|
+
bottom: number;
|
|
11
|
+
};
|
|
12
|
+
y: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const GoalLine: ({ goalLine, innerWidth, y, margin }: GoalLineProps) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GoalLine } from './GoalLine';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ConditionalFormattingRule, LegendItem as LegendItemType, Key } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
3
|
+
interface LegendProps {
|
|
4
|
+
setVisibleYKeys: React.Dispatch<React.SetStateAction<Array<string>>>;
|
|
5
|
+
visibleYKeys: Array<string>;
|
|
6
|
+
keys: {
|
|
7
|
+
[key: string]: Key;
|
|
8
|
+
};
|
|
9
|
+
legendItems: Array<LegendItemType>;
|
|
10
|
+
conditionalFormattingRules: Array<ConditionalFormattingRule>;
|
|
11
|
+
marginLeft: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const Legend: ({ keys, visibleYKeys, legendItems, setVisibleYKeys, conditionalFormattingRules, marginLeft, }: LegendProps) => JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ConditionalFormattingRule } from '../../../../../../shared-logic/src/LineChartV2/types';
|
|
3
|
+
import { LegendItem as LegendItemType } from '../../../../../../shared-logic/src/LineChartV2/types';
|
|
4
|
+
interface LegendItemProps extends LegendItemType {
|
|
5
|
+
onClick: () => void;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
yKeyFormatted: string | undefined;
|
|
8
|
+
conditionalFormattingRules: Array<ConditionalFormattingRule>;
|
|
9
|
+
}
|
|
10
|
+
export declare const LegendItem: ({ yKey, yKeyFormatted, color, style, onClick, visible, conditionalFormattingRules, }: LegendItemProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LegendItem } from './LegendItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LegendItemBox } from './LegendItemBox';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Legend } from './Legend';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartTheme } from '../../../types';
|
|
3
|
+
import { LineChartRepresentation } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
4
|
+
export declare type LineChartProps = {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
chart: LineChartRepresentation;
|
|
8
|
+
theme?: ChartTheme;
|
|
9
|
+
options: {
|
|
10
|
+
lineCurve: 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
|
|
11
|
+
showRoundedTotal: boolean;
|
|
12
|
+
showLegend: boolean;
|
|
13
|
+
removeStroke: boolean;
|
|
14
|
+
axis: {
|
|
15
|
+
showXAxisLabels: boolean;
|
|
16
|
+
showYAxisLabels: boolean;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare const LineChart: ({ chart, options, theme, width, height }: LineChartProps) => JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LineChartRepresentation } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
2
|
+
export declare const buildMargin: (chart: LineChartRepresentation, showYAxisLabels: boolean) => {
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
left: number;
|
|
7
|
+
bottomTitleOffset: number;
|
|
8
|
+
leftTitleOffset: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LineChart } from './LineChart';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ConditionalFormattingRule, DataItem, Key, LegendItem } from '../../../../../shared-logic/src/LineChartV2/types';
|
|
3
|
+
interface TooltipProps {
|
|
4
|
+
keys: {
|
|
5
|
+
[key: string]: Key;
|
|
6
|
+
};
|
|
7
|
+
legendItems: Array<LegendItem>;
|
|
8
|
+
showRoundedTotal: boolean;
|
|
9
|
+
tooltipData: {
|
|
10
|
+
[keyId: string]: DataItem;
|
|
11
|
+
};
|
|
12
|
+
tooltipLeft: number;
|
|
13
|
+
tooltipTop: number;
|
|
14
|
+
visibleYKeys: string[];
|
|
15
|
+
xKey: string;
|
|
16
|
+
yKeys: string[];
|
|
17
|
+
conditionalFormattingRules: Array<ConditionalFormattingRule>;
|
|
18
|
+
theme: CSSProperties;
|
|
19
|
+
}
|
|
20
|
+
export declare const Tooltip: ({ keys, legendItems, showRoundedTotal, tooltipData, tooltipLeft, tooltipTop, visibleYKeys, xKey, yKeys, conditionalFormattingRules, theme, }: TooltipProps) => JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tooltip } from './Tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const COLORS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LineChart as LineChartV2 } from './components/LineChart';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type LegendItemTypes = 'forecast' | 'trend' | 'data';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DataItem } from '../../../../shared-logic/src/LineChartV2/types';
|
|
2
|
+
import { DataType } from '../../../../shared-logic/src/Field/types';
|
|
3
|
+
interface getTrendArgs {
|
|
4
|
+
data: Array<{
|
|
5
|
+
[key: string]: DataItem;
|
|
6
|
+
}>;
|
|
7
|
+
forecastUnits: number;
|
|
8
|
+
xKey: string;
|
|
9
|
+
xKeyDataType: DataType;
|
|
10
|
+
yKey: string;
|
|
11
|
+
yKeys: string[];
|
|
12
|
+
timeUnit: 'week' | 'quarter' | 'year' | 'month';
|
|
13
|
+
includeForecast: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface getTrendReturn {
|
|
16
|
+
data: Array<{
|
|
17
|
+
[key: string]: DataItem;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export declare const addTrendAndForecast: ({ data, forecastUnits, xKeyDataType, xKey, yKey, yKeys, timeUnit, includeForecast, }: getTrendArgs) => getTrendReturn;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DataType } from '../../../../shared-logic/src/Field/types';
|
|
2
|
+
import { DataItem } from '../../../../shared-logic/src/LineChartV2/types';
|
|
3
|
+
interface flattenDataArgs {
|
|
4
|
+
data: Array<{
|
|
5
|
+
[keyId: string]: DataItem;
|
|
6
|
+
}>;
|
|
7
|
+
xScaleKey: string;
|
|
8
|
+
xScaleDataType: DataType;
|
|
9
|
+
yKeys: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare const flattenData: ({ data, xScaleKey, xScaleDataType, yKeys, }: flattenDataArgs) => {
|
|
12
|
+
[keyId: string]: string | number | Date | null;
|
|
13
|
+
}[];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ChartTheme } from '../../types';
|
|
3
|
+
export declare type ChartThemeCSS = {
|
|
4
|
+
axis: CSSProperties;
|
|
5
|
+
grid: CSSProperties;
|
|
6
|
+
labels: CSSProperties;
|
|
7
|
+
popoverMenus: CSSProperties;
|
|
8
|
+
};
|
|
9
|
+
export declare const getChartThemeCSS: (theme?: ChartTheme | undefined) => ChartThemeCSS;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ConditionalFormattingRule } from '../../../../shared-logic/src/LineChartV2/types';
|
|
2
|
+
interface getClipAreaArgs {
|
|
3
|
+
conditionalFormattingRule: ConditionalFormattingRule;
|
|
4
|
+
chart: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
yScale: (value: number) => number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const getClipArea: ({ conditionalFormattingRule, chart, }: getClipAreaArgs) => {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ConditionalFormattingRule } from '../../../../shared-logic/src/LineChartV2/types';
|
|
2
|
+
interface getColorArgs {
|
|
3
|
+
defaultColor: string;
|
|
4
|
+
value: number | string | null;
|
|
5
|
+
yKey: string;
|
|
6
|
+
conditionalFormattingRules: Array<ConditionalFormattingRule>;
|
|
7
|
+
}
|
|
8
|
+
export declare const getColor: ({ defaultColor, value, yKey, conditionalFormattingRules }: getColorArgs) => string;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ScalePoint, ScaleLinear, ScaleTime } from '@visx/vendor/d3-scale';
|
|
3
|
+
import { DataItem } from '../../../../shared-logic/src/LineChartV2/types';
|
|
4
|
+
import { DataType } from '../../../../shared-logic/src/Field/types';
|
|
5
|
+
declare type TooltipData = {
|
|
6
|
+
[keyId: string]: DataItem;
|
|
7
|
+
};
|
|
8
|
+
interface getTooltipDataArgs {
|
|
9
|
+
data: Array<{
|
|
10
|
+
[keyId: string]: DataItem;
|
|
11
|
+
}>;
|
|
12
|
+
event: React.MouseEvent<SVGElement>;
|
|
13
|
+
margin: {
|
|
14
|
+
top: number;
|
|
15
|
+
right: number;
|
|
16
|
+
bottom: number;
|
|
17
|
+
left: number;
|
|
18
|
+
};
|
|
19
|
+
xScaleKey: string;
|
|
20
|
+
xScaleDataType: DataType;
|
|
21
|
+
xScale: ScaleTime<number, number> | ScaleLinear<number, number> | ScalePoint<string>;
|
|
22
|
+
xOrdering: 'asc' | 'desc' | null;
|
|
23
|
+
}
|
|
24
|
+
interface TooltipDataReturn {
|
|
25
|
+
tooltipLeft: number;
|
|
26
|
+
tooltipTop: number;
|
|
27
|
+
tooltipData: TooltipData | null;
|
|
28
|
+
}
|
|
29
|
+
export declare const getTooltipData: ({ data, event, margin, xScaleKey, xScaleDataType, xScale, xOrdering, }: getTooltipDataArgs) => TooltipDataReturn | undefined;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DataType } from '../../../../shared-logic/src/Field/types';
|
|
2
|
+
import { DataItem } from '../../../../shared-logic/src/LineChartV2/types';
|
|
3
|
+
interface getTrendArgs {
|
|
4
|
+
data: Array<{
|
|
5
|
+
[key: string]: DataItem;
|
|
6
|
+
}>;
|
|
7
|
+
forecastUnits: number;
|
|
8
|
+
xKey: string;
|
|
9
|
+
xKeyDataType: DataType;
|
|
10
|
+
yKey: string;
|
|
11
|
+
timeUnit: 'week' | 'quarter' | 'year' | 'month';
|
|
12
|
+
includeForecast: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface getTrendReturn {
|
|
15
|
+
yKey: string;
|
|
16
|
+
trend: Array<{
|
|
17
|
+
[keyId: string]: DataItem;
|
|
18
|
+
}>;
|
|
19
|
+
forecast: Array<{
|
|
20
|
+
[keyId: string]: DataItem;
|
|
21
|
+
}>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getTrend: ({ data, forecastUnits, xKeyDataType, xKey, yKey, timeUnit, includeForecast, }: getTrendArgs) => getTrendReturn;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { addTrendAndForecast } from './addTrendAndForecast';
|
|
2
|
+
export { flattenData } from './flattenData';
|
|
3
|
+
export { getChartThemeCSS } from './getChartThemeCSS';
|
|
4
|
+
export { getClipArea } from './getClipArea';
|
|
5
|
+
export { getColor } from './getColor';
|
|
6
|
+
export { getTooltipData } from './getTooltipData';
|
|
7
|
+
export { getTrend } from './getTrend';
|
|
@@ -22,10 +22,7 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
|
|
|
22
22
|
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").NumberFormatter;
|
|
23
23
|
} | undefined;
|
|
24
24
|
dateTimeFormatOptions?: {
|
|
25
|
-
[id: string]:
|
|
26
|
-
formatter: (date: Date) => string;
|
|
27
|
-
description: string;
|
|
28
|
-
};
|
|
25
|
+
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").DateTimeFormatter;
|
|
29
26
|
} | undefined;
|
|
30
27
|
datePickerFormat?: "DD/MM/YYYY" | "MM/DD/YYYY" | "YYYY/MM/DD" | undefined;
|
|
31
28
|
defaultFormats?: (() => {
|
|
@@ -63,7 +60,7 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
|
|
|
63
60
|
formatPanel?: ((formatPanelConfig: import("../../../../shared-logic/src/FormatPanelConfig/types").FormatPanelConfig, context: {
|
|
64
61
|
type: import("../../../../shared-logic/src/Component/types").ComponentType;
|
|
65
62
|
}) => (import("../../../../shared-logic/src/FormatPanelConfig/types").HeadingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").FormatSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ChartStylesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"prefixes"> | import("../../../../shared-logic/src/FormatPanelConfig/types").AxisLabelsSection | import("../../../../shared-logic/src/FormatPanelConfig/types").LabelsSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"mapColors"> | import("../../../../shared-logic/src/FormatPanelConfig/types").ConditionalFormattingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").GoalLineSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ProgressTypesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"headline"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"richText"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"trends"> | ((sectionProps: import("../../../../shared-ui/src").VizzlyComponents.EditorSectionProps<import("../../../../shared-logic/src/Component/types").Component.Attributes>) => JSX.Element))[]) | undefined;
|
|
66
|
-
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
63
|
+
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
67
64
|
maxCSVDownloadLimit?: number | undefined;
|
|
68
65
|
theme?: import("../..").VizzlyTheming.Base | undefined;
|
|
69
66
|
organizationName?: string | undefined;
|
|
@@ -98,10 +95,7 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
|
|
|
98
95
|
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").NumberFormatter;
|
|
99
96
|
} | undefined;
|
|
100
97
|
dateTimeFormatOptions?: {
|
|
101
|
-
[id: string]:
|
|
102
|
-
formatter: (date: Date) => string;
|
|
103
|
-
description: string;
|
|
104
|
-
};
|
|
98
|
+
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").DateTimeFormatter;
|
|
105
99
|
} | undefined;
|
|
106
100
|
datePickerFormat?: "DD/MM/YYYY" | "MM/DD/YYYY" | "YYYY/MM/DD" | undefined;
|
|
107
101
|
defaultFormats?: (() => {
|
|
@@ -139,7 +133,7 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
|
|
|
139
133
|
formatPanel?: ((formatPanelConfig: import("../../../../shared-logic/src/FormatPanelConfig/types").FormatPanelConfig, context: {
|
|
140
134
|
type: import("../../../../shared-logic/src/Component/types").ComponentType;
|
|
141
135
|
}) => (import("../../../../shared-logic/src/FormatPanelConfig/types").HeadingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").FormatSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ChartStylesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"prefixes"> | import("../../../../shared-logic/src/FormatPanelConfig/types").AxisLabelsSection | import("../../../../shared-logic/src/FormatPanelConfig/types").LabelsSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"mapColors"> | import("../../../../shared-logic/src/FormatPanelConfig/types").ConditionalFormattingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").GoalLineSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ProgressTypesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"headline"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"richText"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"trends"> | ((sectionProps: import("../../../../shared-ui/src").VizzlyComponents.EditorSectionProps<import("../../../../shared-logic/src/Component/types").Component.Attributes>) => JSX.Element))[]) | undefined;
|
|
142
|
-
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
136
|
+
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
143
137
|
maxCSVDownloadLimit?: number | undefined;
|
|
144
138
|
theme?: import("../..").VizzlyTheming.Base | undefined;
|
|
145
139
|
organizationName?: string | undefined;
|
|
@@ -174,10 +168,7 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
|
|
|
174
168
|
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").NumberFormatter;
|
|
175
169
|
} | undefined;
|
|
176
170
|
dateTimeFormatOptions?: {
|
|
177
|
-
[id: string]:
|
|
178
|
-
formatter: (date: Date) => string;
|
|
179
|
-
description: string;
|
|
180
|
-
};
|
|
171
|
+
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").DateTimeFormatter;
|
|
181
172
|
} | undefined;
|
|
182
173
|
datePickerFormat?: "DD/MM/YYYY" | "MM/DD/YYYY" | "YYYY/MM/DD" | undefined;
|
|
183
174
|
defaultFormats?: (() => {
|
|
@@ -215,7 +206,7 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
|
|
|
215
206
|
formatPanel?: ((formatPanelConfig: import("../../../../shared-logic/src/FormatPanelConfig/types").FormatPanelConfig, context: {
|
|
216
207
|
type: import("../../../../shared-logic/src/Component/types").ComponentType;
|
|
217
208
|
}) => (import("../../../../shared-logic/src/FormatPanelConfig/types").HeadingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").FormatSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ChartStylesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"prefixes"> | import("../../../../shared-logic/src/FormatPanelConfig/types").AxisLabelsSection | import("../../../../shared-logic/src/FormatPanelConfig/types").LabelsSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"mapColors"> | import("../../../../shared-logic/src/FormatPanelConfig/types").ConditionalFormattingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").GoalLineSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ProgressTypesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"headline"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"richText"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"trends"> | ((sectionProps: import("../../../../shared-ui/src").VizzlyComponents.EditorSectionProps<import("../../../../shared-logic/src/Component/types").Component.Attributes>) => JSX.Element))[]) | undefined;
|
|
218
|
-
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
209
|
+
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
219
210
|
maxCSVDownloadLimit?: number | undefined;
|
|
220
211
|
theme?: import("../..").VizzlyTheming.Base | undefined;
|
|
221
212
|
organizationName?: string | undefined;
|
|
@@ -251,10 +242,7 @@ export declare const GlobalContext: import("react").Context<(import("../../types
|
|
|
251
242
|
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").NumberFormatter;
|
|
252
243
|
} | undefined;
|
|
253
244
|
dateTimeFormatOptions?: {
|
|
254
|
-
[id: string]:
|
|
255
|
-
formatter: (date: Date) => string;
|
|
256
|
-
description: string;
|
|
257
|
-
};
|
|
245
|
+
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").DateTimeFormatter;
|
|
258
246
|
} | undefined;
|
|
259
247
|
datePickerFormat?: "DD/MM/YYYY" | "MM/DD/YYYY" | "YYYY/MM/DD" | undefined;
|
|
260
248
|
defaultFormats?: (() => {
|
|
@@ -292,7 +280,7 @@ export declare const GlobalContext: import("react").Context<(import("../../types
|
|
|
292
280
|
formatPanel?: ((formatPanelConfig: import("../../../../shared-logic/src/FormatPanelConfig/types").FormatPanelConfig, context: {
|
|
293
281
|
type: import("../../../../shared-logic/src/Component/types").ComponentType;
|
|
294
282
|
}) => (import("../../../../shared-logic/src/FormatPanelConfig/types").HeadingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").FormatSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ChartStylesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"prefixes"> | import("../../../../shared-logic/src/FormatPanelConfig/types").AxisLabelsSection | import("../../../../shared-logic/src/FormatPanelConfig/types").LabelsSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"mapColors"> | import("../../../../shared-logic/src/FormatPanelConfig/types").ConditionalFormattingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").GoalLineSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ProgressTypesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"headline"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"richText"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"trends"> | ((sectionProps: import("../../../../shared-ui/src").VizzlyComponents.EditorSectionProps<import("../../../../shared-logic/src/Component/types").Component.Attributes>) => JSX.Element))[]) | undefined;
|
|
295
|
-
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
283
|
+
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
296
284
|
maxCSVDownloadLimit?: number | undefined;
|
|
297
285
|
theme?: import("../..").VizzlyTheming.Base | undefined;
|
|
298
286
|
organizationName?: string | undefined;
|
|
@@ -327,10 +315,7 @@ export declare const GlobalContext: import("react").Context<(import("../../types
|
|
|
327
315
|
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").NumberFormatter;
|
|
328
316
|
} | undefined;
|
|
329
317
|
dateTimeFormatOptions?: {
|
|
330
|
-
[id: string]:
|
|
331
|
-
formatter: (date: Date) => string;
|
|
332
|
-
description: string;
|
|
333
|
-
};
|
|
318
|
+
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").DateTimeFormatter;
|
|
334
319
|
} | undefined;
|
|
335
320
|
datePickerFormat?: "DD/MM/YYYY" | "MM/DD/YYYY" | "YYYY/MM/DD" | undefined;
|
|
336
321
|
defaultFormats?: (() => {
|
|
@@ -368,7 +353,7 @@ export declare const GlobalContext: import("react").Context<(import("../../types
|
|
|
368
353
|
formatPanel?: ((formatPanelConfig: import("../../../../shared-logic/src/FormatPanelConfig/types").FormatPanelConfig, context: {
|
|
369
354
|
type: import("../../../../shared-logic/src/Component/types").ComponentType;
|
|
370
355
|
}) => (import("../../../../shared-logic/src/FormatPanelConfig/types").HeadingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").FormatSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ChartStylesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"prefixes"> | import("../../../../shared-logic/src/FormatPanelConfig/types").AxisLabelsSection | import("../../../../shared-logic/src/FormatPanelConfig/types").LabelsSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"mapColors"> | import("../../../../shared-logic/src/FormatPanelConfig/types").ConditionalFormattingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").GoalLineSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ProgressTypesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"headline"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"richText"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"trends"> | ((sectionProps: import("../../../../shared-ui/src").VizzlyComponents.EditorSectionProps<import("../../../../shared-logic/src/Component/types").Component.Attributes>) => JSX.Element))[]) | undefined;
|
|
371
|
-
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
356
|
+
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
372
357
|
maxCSVDownloadLimit?: number | undefined;
|
|
373
358
|
theme?: import("../..").VizzlyTheming.Base | undefined;
|
|
374
359
|
organizationName?: string | undefined;
|
|
@@ -403,10 +388,7 @@ export declare const GlobalContext: import("react").Context<(import("../../types
|
|
|
403
388
|
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").NumberFormatter;
|
|
404
389
|
} | undefined;
|
|
405
390
|
dateTimeFormatOptions?: {
|
|
406
|
-
[id: string]:
|
|
407
|
-
formatter: (date: Date) => string;
|
|
408
|
-
description: string;
|
|
409
|
-
};
|
|
391
|
+
[id: string]: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").DateTimeFormatter;
|
|
410
392
|
} | undefined;
|
|
411
393
|
datePickerFormat?: "DD/MM/YYYY" | "MM/DD/YYYY" | "YYYY/MM/DD" | undefined;
|
|
412
394
|
defaultFormats?: (() => {
|
|
@@ -444,7 +426,7 @@ export declare const GlobalContext: import("react").Context<(import("../../types
|
|
|
444
426
|
formatPanel?: ((formatPanelConfig: import("../../../../shared-logic/src/FormatPanelConfig/types").FormatPanelConfig, context: {
|
|
445
427
|
type: import("../../../../shared-logic/src/Component/types").ComponentType;
|
|
446
428
|
}) => (import("../../../../shared-logic/src/FormatPanelConfig/types").HeadingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").FormatSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ChartStylesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"prefixes"> | import("../../../../shared-logic/src/FormatPanelConfig/types").AxisLabelsSection | import("../../../../shared-logic/src/FormatPanelConfig/types").LabelsSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"mapColors"> | import("../../../../shared-logic/src/FormatPanelConfig/types").ConditionalFormattingSection | import("../../../../shared-logic/src/FormatPanelConfig/types").GoalLineSection | import("../../../../shared-logic/src/FormatPanelConfig/types").ProgressTypesSection | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"headline"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"richText"> | import("../../../../shared-logic/src/DataPanelConfig/types").Section<"trends"> | ((sectionProps: import("../../../../shared-ui/src").VizzlyComponents.EditorSectionProps<import("../../../../shared-logic/src/Component/types").Component.Attributes>) => JSX.Element))[]) | undefined;
|
|
447
|
-
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
429
|
+
onEditorUpdate?: ((newAttributes: import("../../../../shared-logic/src/Component/types").Component.Attributes, dataSet: import("../../../../shared-logic/src/DataSet/types").DataSet<import("../../../../shared-logic/src/DataSet/types").DataSet.Field>, reason: "initial" | "edit") => Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes>) | undefined;
|
|
448
430
|
maxCSVDownloadLimit?: number | undefined;
|
|
449
431
|
theme?: import("../..").VizzlyTheming.Base | undefined;
|
|
450
432
|
organizationName?: string | undefined;
|