@sisense/sdk-ui 2.9.0 → 2.10.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/ai.cjs +31 -31
- package/dist/ai.js +27 -27
- package/dist/analytics-composer/node.cjs +3 -1
- package/dist/analytics-composer/node.js +514 -378
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/derive-chart-family-B1on_xkS.cjs +170 -0
- package/dist/derive-chart-family-BllGhqsW.js +29469 -0
- package/dist/{dimensions-CVJeJ8mi.cjs → dimensions-BYqdB-Q8.cjs} +1 -1
- package/dist/{dimensions-B2jz151s.js → dimensions-D-Z9sitz.js} +1 -1
- package/dist/execute-query-CABqVn7C.cjs +1 -0
- package/dist/{execute-query-agpyzZz6.js → execute-query-CGLL9vXX.js} +269 -247
- package/dist/index.cjs +25 -26
- package/dist/index.js +7945 -7469
- package/dist/index.umd.js +383 -374
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +14 -0
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-filters.d.ts +5 -5
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-measures.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/calendar-heatmap-chart-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +87 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +54 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/legend-options.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/plot-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +35 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +26 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +30 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +25 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +55 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/types.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/data-options.d.ts +5 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data/index.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/pie-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +2 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/use-extra-config.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +10 -9
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +19 -2
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-categorical-data-options.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +4 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/{category-chart-options.d.ts → category-chart-options/category-chart-options.d.ts} +9 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +26 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +1 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +18 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +28 -14
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-series.d.ts +34 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +50 -6
- package/dist/packages/sdk-ui/src/common/formatters/create-date-formatter.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/useDateFormatter.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +0 -19
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +12 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +18 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +23 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-widget-transforms.d.ts +29 -0
- package/dist/packages/sdk-ui/src/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/polar-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +72 -7
- package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +11 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/types.d.ts +254 -16
- package/dist/packages/sdk-ui/src/utils/combine-handlers.d.ts +19 -0
- package/dist/packages/sdk-ui/src/utils/utility-types/transformer.d.ts +8 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +4 -6
- package/dist/{types-BYUVZb6u.js → types-BRtWk8uC.js} +1 -1
- package/dist/{types-QUSMO7gF.cjs → types-Ds0KtTJF.cjs} +1 -1
- package/dist/use-common-filters-D8tEa9zb.js +91245 -0
- package/dist/use-common-filters-hw1WKPCY.cjs +844 -0
- package/dist/{widget-composer-CGp5yOny.cjs → widget-composer-B7zeAa_D.cjs} +1 -1
- package/dist/{widget-composer-BG4HonVl.js → widget-composer-DL0xPtlC.js} +3 -3
- package/package.json +9 -9
- package/dist/derive-chart-family-BLG1sO1D.js +0 -86946
- package/dist/derive-chart-family-QPmz5DJ3.cjs +0 -656
- package/dist/execute-query-Cp3se7Yb.cjs +0 -1
- package/dist/packages/sdk-ui/src/utils/__development-utils__/highcharts-options-builder-collector.d.ts +0 -61
- package/dist/packages/sdk-ui/src/utils/__development-utils__/input-output-collector.d.ts +0 -125
- package/dist/use-common-filters-DmdADAhl.cjs +0 -350
- package/dist/use-common-filters-wo5IRF5u.js +0 -31972
|
@@ -57,6 +57,12 @@ export type SeriesType = HighchartsSeriesValues & {
|
|
|
57
57
|
dashStyle?: string;
|
|
58
58
|
lineWidth?: number;
|
|
59
59
|
zIndex?: number;
|
|
60
|
+
keys?: string[];
|
|
61
|
+
nullColor?: string;
|
|
62
|
+
borderWidth?: number;
|
|
63
|
+
borderColor?: string;
|
|
64
|
+
colsize?: number;
|
|
65
|
+
rowsize?: number;
|
|
60
66
|
};
|
|
61
67
|
type ChartPlotOptions = {
|
|
62
68
|
dataLabels?: ValueLabelSettings;
|
|
@@ -118,6 +124,7 @@ export type PlotOptions = {
|
|
|
118
124
|
boxplot?: ChartPlotOptions;
|
|
119
125
|
scatter?: ChartPlotOptions;
|
|
120
126
|
arearange?: ChartPlotOptions;
|
|
127
|
+
heatmap?: ChartPlotOptions;
|
|
121
128
|
};
|
|
122
129
|
/**
|
|
123
130
|
* Highcharts options internal
|
|
@@ -146,6 +153,13 @@ export type HighchartsOptionsInternal = {
|
|
|
146
153
|
zooming?: {
|
|
147
154
|
type: string;
|
|
148
155
|
};
|
|
156
|
+
plotBorderWidth?: number;
|
|
157
|
+
backgroundColor?: string;
|
|
158
|
+
marginBottom?: number;
|
|
159
|
+
marginLeft?: number;
|
|
160
|
+
marginRight?: number;
|
|
161
|
+
width?: number;
|
|
162
|
+
height?: number;
|
|
149
163
|
};
|
|
150
164
|
title?: {
|
|
151
165
|
text: string | null;
|
|
@@ -176,6 +190,18 @@ export type HighchartsOptionsInternal = {
|
|
|
176
190
|
enabled: boolean;
|
|
177
191
|
};
|
|
178
192
|
drilldown?: DrilldownOptions;
|
|
193
|
+
accessibility?: {
|
|
194
|
+
enabled?: boolean;
|
|
195
|
+
landmarkVerbosity?: 'one' | 'all';
|
|
196
|
+
};
|
|
197
|
+
colorAxis?: {
|
|
198
|
+
min?: number;
|
|
199
|
+
max?: number;
|
|
200
|
+
stops?: [number, string][];
|
|
201
|
+
labels?: {
|
|
202
|
+
format: string;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
179
205
|
};
|
|
180
206
|
type Navigator = {
|
|
181
207
|
series: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ChartDesignOptions } from './translations/types';
|
|
2
|
-
import { ChartType, OptionsWithAlerts, CompleteThemeSettings } from '../types';
|
|
2
|
+
import { ChartType, OptionsWithAlerts, CompleteThemeSettings, LegendOptions } from '../types';
|
|
3
3
|
import { ScatterChartData } from '../chart-data/types';
|
|
4
4
|
import { HighchartsOptionsInternal } from './chart-options-service';
|
|
5
5
|
import { ChartDataOptionsInternal } from '../chart-data-options/types';
|
|
6
|
-
import {
|
|
6
|
+
import { LegendSettings } from './translations/legend-section';
|
|
7
7
|
/**
|
|
8
8
|
* @param position
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
|
-
export declare const getScatterLegendSettings: (
|
|
11
|
+
export declare const getScatterLegendSettings: (legend?: LegendOptions) => LegendSettings;
|
|
12
12
|
/**
|
|
13
13
|
* Convert intermediate chart data, data options, and design options
|
|
14
14
|
* into pure highcharts config data.
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, BaseStyleOptions, TreemapStyleOptions, SunburstStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, BaseAxisStyleOptions, ChartStyleOptions, ChartType } from '../../types';
|
|
2
2
|
import { StackableChartDesignOptions, LineChartDesignOptions, PieChartDesignOptions, FunnelChartDesignOptions, PolarChartDesignOptions, ScatterChartDesignOptions, AreaChartDesignOptions, TreemapChartDesignOptions, SunburstChartDesignOptions, BoxplotChartDesignOptions, ScattermapChartDesignOptions, BaseDesignOptionsType } from '../translations/design-options';
|
|
3
|
-
import { LegendPosition } from '../translations/legend-section';
|
|
4
3
|
import { StackType } from '../translations/translations-to-highcharts';
|
|
5
4
|
import { CartesianChartType, SeriesDesignOptions } from '../translations/types';
|
|
6
5
|
import { CartesianChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
7
|
-
export declare const getLegend: (legend?: Legend) => LegendPosition;
|
|
8
6
|
export declare const DefaultStackType: StackType;
|
|
9
7
|
export declare const getCartesianChartStyle: (styleOptions: BaseStyleOptions & BaseAxisStyleOptions, shouldHaveY2Axis: boolean) => BaseDesignOptionsType;
|
|
10
8
|
export declare const getStackableChartDesignOptions: (styleOptions: AreaStyleOptions | StackableStyleOptions, dataOptions: CartesianChartDataOptionsInternal, hasY2Axis: boolean, chartType: CartesianChartType) => StackableChartDesignOptions;
|
|
@@ -36,12 +36,14 @@ export type AxisSettings = {
|
|
|
36
36
|
tickWidth?: number;
|
|
37
37
|
lineColor?: string;
|
|
38
38
|
lineWidth?: number;
|
|
39
|
+
offset?: number;
|
|
39
40
|
labels?: {
|
|
40
41
|
overflow?: 'none' | 'justify';
|
|
41
42
|
enabled?: boolean;
|
|
42
43
|
autoRotation?: number[];
|
|
43
44
|
style?: TextStyle;
|
|
44
45
|
rotation?: number;
|
|
46
|
+
y?: number;
|
|
45
47
|
formatter?: (this: AxisLabelsFormatterContextObject) => string;
|
|
46
48
|
};
|
|
47
49
|
min?: number | null;
|
|
@@ -67,6 +69,10 @@ export type AxisSettings = {
|
|
|
67
69
|
stackLabels?: StackLabel;
|
|
68
70
|
showLastLabel?: boolean;
|
|
69
71
|
visible?: boolean;
|
|
72
|
+
accessibility?: {
|
|
73
|
+
description?: string;
|
|
74
|
+
rangeDescription?: string;
|
|
75
|
+
};
|
|
70
76
|
};
|
|
71
77
|
export type StackLabel = {
|
|
72
78
|
style: TextStyle;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ValueLabelOptions } from './value-label-section';
|
|
2
2
|
import { Axis } from './axis-section';
|
|
3
3
|
import { Marker } from './marker-section';
|
|
4
|
-
import { LegendPosition } from './legend-section';
|
|
5
4
|
import { LineType, StackType } from './translations-to-highcharts';
|
|
6
5
|
import { PieType, PieLabels } from './pie-plot-options';
|
|
7
6
|
import { FunnelSize, FunnelType, FunnelDirection, FunnelLabels } from './funnel-plot-options';
|
|
8
|
-
import { Convolution, ScattermapMarkers, SunburstStyleOptions, TreemapStyleOptions } from '../../types';
|
|
7
|
+
import { CalendarHeatmapViewType, Convolution, LineOptions, LegendOptions, ScattermapMarkers, SunburstStyleOptions, TreemapStyleOptions } from '../../types';
|
|
9
8
|
import { ScatterMarkerSize } from './scatter-plot-options';
|
|
10
9
|
import { DesignPerSeries } from './types';
|
|
11
10
|
type DataLimits = {
|
|
@@ -13,9 +12,13 @@ type DataLimits = {
|
|
|
13
12
|
categoriesCapacity: number;
|
|
14
13
|
};
|
|
15
14
|
export type BaseDesignOptionsType = {
|
|
16
|
-
legend
|
|
15
|
+
legend?: LegendOptions;
|
|
17
16
|
valueLabel: ValueLabelOptions;
|
|
18
17
|
lineType: LineType;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated
|
|
20
|
+
* Use line.width instead
|
|
21
|
+
*/
|
|
19
22
|
lineWidth: number;
|
|
20
23
|
marker: Marker;
|
|
21
24
|
xAxis: Axis;
|
|
@@ -33,6 +36,7 @@ export type BaseDesignOptionsType = {
|
|
|
33
36
|
};
|
|
34
37
|
export type CartesianChartDesignOptions = BaseDesignOptionsType & DesignPerSeries;
|
|
35
38
|
export type StackableChartDesignOptions = CartesianChartDesignOptions & {
|
|
39
|
+
line?: LineOptions;
|
|
36
40
|
stackType: StackType;
|
|
37
41
|
showTotal?: boolean;
|
|
38
42
|
totalLabelRotation?: number;
|
|
@@ -40,10 +44,17 @@ export type StackableChartDesignOptions = CartesianChartDesignOptions & {
|
|
|
40
44
|
export type LineChartDesignOptions = CartesianChartDesignOptions & {
|
|
41
45
|
/** Step type for step line charts: left, center, or right */
|
|
42
46
|
step?: 'left' | 'center' | 'right';
|
|
47
|
+
line?: LineOptions;
|
|
43
48
|
};
|
|
44
49
|
export type AreaChartDesignOptions = StackableChartDesignOptions;
|
|
45
50
|
export type BarChartDesignOptions = StackableChartDesignOptions;
|
|
46
51
|
export type ColumnChartDesignOptions = StackableChartDesignOptions;
|
|
52
|
+
export type CalendarHeatmapChartDesignOptions = BaseDesignOptionsType & {
|
|
53
|
+
width?: number;
|
|
54
|
+
height?: number;
|
|
55
|
+
viewType: CalendarHeatmapViewType;
|
|
56
|
+
cellSize?: number;
|
|
57
|
+
};
|
|
47
58
|
export type PolarType = 'line' | 'area' | 'column';
|
|
48
59
|
export type PolarChartDesignOptions = CartesianChartDesignOptions & {
|
|
49
60
|
polarType: PolarType;
|
|
@@ -185,5 +196,8 @@ export type BoxplotChartDesignOptions = BaseDesignOptionsType & {
|
|
|
185
196
|
export type ScattermapChartDesignOptions = BaseDesignOptionsType & {
|
|
186
197
|
markers: Required<ScattermapMarkers>;
|
|
187
198
|
};
|
|
188
|
-
export type AreaRangeChartDesignOptions = BaseDesignOptionsType
|
|
199
|
+
export type AreaRangeChartDesignOptions = BaseDesignOptionsType & {
|
|
200
|
+
/** Configuration that defines line style */
|
|
201
|
+
line?: LineOptions;
|
|
202
|
+
};
|
|
189
203
|
export {};
|
|
@@ -1,28 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LegendOptions } from '../../types';
|
|
2
|
+
import type { TextStyle } from './types';
|
|
2
3
|
export type LegendPosition = 'top' | 'left' | 'right' | 'bottom' | null;
|
|
3
4
|
export type LegendSettings = {
|
|
4
5
|
enabled: boolean;
|
|
5
6
|
align?: 'center' | 'left' | 'right';
|
|
6
7
|
verticalAlign?: 'top' | 'middle' | 'bottom';
|
|
7
|
-
layout?: 'horizontal' | 'vertical';
|
|
8
|
-
itemStyle?: TextStyle & {
|
|
9
|
-
cursor?: string;
|
|
10
|
-
};
|
|
11
|
-
symbolRadius?: number;
|
|
12
|
-
symbolHeight?: number;
|
|
13
|
-
symbolWidth?: number;
|
|
14
8
|
borderWidth?: number;
|
|
15
9
|
borderColor?: string;
|
|
10
|
+
borderRadius?: number;
|
|
16
11
|
backgroundColor?: string;
|
|
12
|
+
margin?: number;
|
|
13
|
+
padding?: number;
|
|
14
|
+
maxHeight?: number;
|
|
15
|
+
shadow?: boolean;
|
|
16
|
+
reversed?: boolean;
|
|
17
|
+
rtl?: boolean;
|
|
18
|
+
floating?: boolean;
|
|
19
|
+
width?: number | string;
|
|
20
|
+
x?: number;
|
|
21
|
+
y?: number;
|
|
22
|
+
layout?: 'horizontal' | 'vertical' | 'proximate';
|
|
23
|
+
itemDistance?: number;
|
|
24
|
+
itemWidth?: number;
|
|
25
|
+
itemStyle?: TextStyle;
|
|
26
|
+
itemHoverStyle?: TextStyle;
|
|
27
|
+
itemHiddenStyle?: TextStyle;
|
|
17
28
|
itemMarginBottom?: number;
|
|
18
29
|
itemMarginTop?: number;
|
|
19
|
-
|
|
30
|
+
symbolRadius?: number;
|
|
31
|
+
symbolHeight?: number;
|
|
32
|
+
symbolWidth?: number;
|
|
33
|
+
symbolPadding?: number;
|
|
34
|
+
squareSymbol?: boolean;
|
|
20
35
|
title?: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
36
|
+
text?: string;
|
|
37
|
+
style?: TextStyle;
|
|
24
38
|
};
|
|
25
|
-
maxHeight?: number;
|
|
26
39
|
};
|
|
27
40
|
export declare const legendItemStyleDefault: LegendSettings['itemStyle'];
|
|
28
|
-
export declare const getLegendSettings: (
|
|
41
|
+
export declare const getLegendSettings: (legend?: LegendOptions) => LegendSettings;
|
|
42
|
+
export declare const isLegendOnRight: (legend?: LegendOptions) => boolean;
|
|
@@ -1,18 +1,46 @@
|
|
|
1
|
-
import { SeriesWithAlerts, CompleteThemeSettings } from '../../types';
|
|
1
|
+
import { Convolution, SeriesWithAlerts, CompleteThemeSettings } from '../../types';
|
|
2
2
|
import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
3
3
|
import { SeriesType } from '../chart-options-service';
|
|
4
4
|
import { PieChartDesignOptions } from './design-options';
|
|
5
5
|
import { CategoricalChartData } from '../../chart-data/types';
|
|
6
|
+
import { SeriesPieOptions } from '@sisense/sisense-charts';
|
|
6
7
|
type FormattedPieChartData = SeriesWithAlerts<SeriesType[]> & {
|
|
7
|
-
convolutionSeries:
|
|
8
|
+
convolutionSeries: SeriesPieOptions[];
|
|
8
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Pure function that generates alerts for data limit warnings based on series capacity.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getPieAlerts: (chartData: CategoricalChartData, seriesCapacity: number) => SeriesWithAlerts<SeriesType[]>['alerts'];
|
|
14
|
+
/**
|
|
15
|
+
* Creates pie chart series with convolution applied.
|
|
16
|
+
* Returns the complete series ready for chart rendering.
|
|
17
|
+
*/
|
|
18
|
+
export declare const getPieSeries: ({ chartData, dataOptions, seriesCapacity, convolution, themeSettings, }: {
|
|
19
|
+
chartData: CategoricalChartData;
|
|
20
|
+
dataOptions: CategoricalChartDataOptionsInternal;
|
|
21
|
+
seriesCapacity: number;
|
|
22
|
+
convolution?: Convolution | undefined;
|
|
23
|
+
themeSettings?: CompleteThemeSettings | undefined;
|
|
24
|
+
}) => SeriesType[];
|
|
25
|
+
/**
|
|
26
|
+
* Returns only the convolution series (breakdown of "Others" slice).
|
|
27
|
+
* This is separate data for drill-down functionality.
|
|
28
|
+
*/
|
|
29
|
+
export declare const getPieConvolutionSeries: ({ chartData, dataOptions, seriesCapacity, convolution, themeSettings, }: {
|
|
30
|
+
chartData: CategoricalChartData;
|
|
31
|
+
dataOptions: CategoricalChartDataOptionsInternal;
|
|
32
|
+
seriesCapacity: number;
|
|
33
|
+
convolution?: Convolution | undefined;
|
|
34
|
+
themeSettings?: CompleteThemeSettings | undefined;
|
|
35
|
+
}) => SeriesPieOptions[];
|
|
9
36
|
/**
|
|
10
37
|
* Convert categorical chart data into renderable highcharts pie series.
|
|
11
38
|
*
|
|
12
|
-
* @param chartData
|
|
13
|
-
* @param dataOptions
|
|
14
|
-
* @param designOptions
|
|
15
|
-
* @param themeSettings
|
|
39
|
+
* @param chartData - The source categorical chart data
|
|
40
|
+
* @param dataOptions - Chart data configuration options
|
|
41
|
+
* @param designOptions - Design and styling options including convolution settings
|
|
42
|
+
* @param themeSettings - Theme configuration for colors and styling
|
|
43
|
+
* @returns Formatted pie chart data with series, alerts, and convolution series
|
|
16
44
|
*/
|
|
17
45
|
export declare const formatCategoricalChartData: (chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, designOptions: PieChartDesignOptions, themeSettings?: CompleteThemeSettings) => FormattedPieChartData;
|
|
18
46
|
export {};
|
|
@@ -54,6 +54,9 @@ export type HighchartsDataPointContext = {
|
|
|
54
54
|
string1?: string;
|
|
55
55
|
xDisplayValue?: string;
|
|
56
56
|
xValue?: (number | string)[];
|
|
57
|
+
empty?: boolean;
|
|
58
|
+
monthDay?: number;
|
|
59
|
+
hasData?: boolean;
|
|
57
60
|
};
|
|
58
61
|
upperPointName?: string;
|
|
59
62
|
lowerPointName?: string;
|
|
@@ -65,6 +68,8 @@ export type HighchartsDataPointContext = {
|
|
|
65
68
|
};
|
|
66
69
|
options?: TooltipFormatterContextObject['point']['options'];
|
|
67
70
|
node?: HighchartsDataPointContextNode;
|
|
71
|
+
date?: string | number | Date;
|
|
72
|
+
value?: number;
|
|
68
73
|
};
|
|
69
74
|
percentage?: number;
|
|
70
75
|
color?: string;
|
|
@@ -7,7 +7,7 @@ import { Stacking } from '../chart-options-service';
|
|
|
7
7
|
import { DesignOptions } from './types';
|
|
8
8
|
export type LineType = 'straight' | 'smooth';
|
|
9
9
|
export type StackType = 'classic' | 'stacked' | 'stack100';
|
|
10
|
-
export type HighchartsType = ChartType | 'spline' | 'areaspline' | 'bubble';
|
|
10
|
+
export type HighchartsType = ChartType | 'spline' | 'areaspline' | 'bubble' | 'heatmap';
|
|
11
11
|
export type HighchartsSeriesValues = {
|
|
12
12
|
name: string;
|
|
13
13
|
data: SeriesPointStructure[];
|
|
@@ -1,18 +1,54 @@
|
|
|
1
1
|
import { AreamapChartDesignOptions } from '../../chart/restructured-charts/areamap-chart/types';
|
|
2
2
|
import { ChartType } from '../../types';
|
|
3
|
-
import { LineChartDesignOptions, AreaChartDesignOptions, BarChartDesignOptions, ColumnChartDesignOptions, PieChartDesignOptions, FunnelChartDesignOptions, IndicatorChartDesignOptions, PolarChartDesignOptions, ScatterChartDesignOptions, TreemapChartDesignOptions, BoxplotChartDesignOptions, ScattermapChartDesignOptions, AreaRangeChartDesignOptions, BaseDesignOptionsType } from './design-options';
|
|
3
|
+
import { LineChartDesignOptions, AreaChartDesignOptions, BarChartDesignOptions, ColumnChartDesignOptions, CalendarHeatmapChartDesignOptions, PieChartDesignOptions, FunnelChartDesignOptions, IndicatorChartDesignOptions, PolarChartDesignOptions, ScatterChartDesignOptions, TreemapChartDesignOptions, BoxplotChartDesignOptions, ScattermapChartDesignOptions, AreaRangeChartDesignOptions, BaseDesignOptionsType } from './design-options';
|
|
4
4
|
/**
|
|
5
|
-
* Style configuration for text elements
|
|
5
|
+
* Style configuration for text elements in charts and UI components.
|
|
6
|
+
* Defines the visual appearance and behavior of text rendering.
|
|
6
7
|
*/
|
|
7
8
|
export type TextStyle = {
|
|
9
|
+
/**
|
|
10
|
+
* Font family name for the text.
|
|
11
|
+
* Examples: 'Arial', 'Helvetica', 'Times New Roman', 'sans-serif'
|
|
12
|
+
*/
|
|
8
13
|
fontFamily?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Font size in CSS units (px, em, rem, pt, etc.).
|
|
16
|
+
* Examples: '12px', '1.2em', '16pt'
|
|
17
|
+
*/
|
|
9
18
|
fontSize?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Font weight for text rendering.
|
|
21
|
+
* Examples: 'normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'
|
|
22
|
+
*/
|
|
10
23
|
fontWeight?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Font style for text rendering.
|
|
26
|
+
* Examples: 'normal', 'italic', 'oblique'
|
|
27
|
+
*/
|
|
28
|
+
fontStyle?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Text color in any valid CSS color format.
|
|
31
|
+
* Examples: '#FF0000', 'rgb(255, 0, 0)', 'red', 'rgba(255, 0, 0, 0.5)'
|
|
32
|
+
*/
|
|
11
33
|
color?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Text outline/stroke configuration.
|
|
36
|
+
* Defines the outline color and width for text rendering.
|
|
37
|
+
* Examples: '1px solid black', '2px #333'
|
|
38
|
+
*/
|
|
12
39
|
textOutline?: string;
|
|
40
|
+
/**
|
|
41
|
+
* CSS pointer-events property for text interaction.
|
|
42
|
+
* Controls how the text responds to mouse events.
|
|
43
|
+
* Examples: 'auto', 'none', 'visible', 'visibleFill', 'visibleStroke'
|
|
44
|
+
*/
|
|
13
45
|
pointerEvents?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Text overflow handling behavior.
|
|
48
|
+
* Controls how text is displayed when it exceeds its container.
|
|
49
|
+
* Examples: 'clip', 'ellipsis', 'visible', 'hidden'
|
|
50
|
+
*/
|
|
14
51
|
textOverflow?: string;
|
|
15
|
-
width?: string;
|
|
16
52
|
};
|
|
17
53
|
export declare const POLAR_CHART_TYPES: readonly ["polar"];
|
|
18
54
|
export type PolarChartType = (typeof POLAR_CHART_TYPES)[number];
|
|
@@ -44,6 +80,14 @@ export type ImageChartType = (typeof IMAGE_CHART_TYPES)[number];
|
|
|
44
80
|
export declare const SCATTERMAP_CHART_TYPES: readonly ["scattermap"];
|
|
45
81
|
/** Scattermap chart types @expandType */
|
|
46
82
|
export type ScattermapChartType = (typeof SCATTERMAP_CHART_TYPES)[number];
|
|
83
|
+
export declare const CALENDAR_HEATMAP_CHART_TYPES: readonly ["calendar-heatmap"];
|
|
84
|
+
/**
|
|
85
|
+
* Calendar heatmap chart types
|
|
86
|
+
*
|
|
87
|
+
* @expandType
|
|
88
|
+
* @alpha
|
|
89
|
+
*/
|
|
90
|
+
export type CalendarHeatmapChartType = (typeof CALENDAR_HEATMAP_CHART_TYPES)[number];
|
|
47
91
|
export declare const RANGE_CHART_TYPES: readonly ["arearange"];
|
|
48
92
|
/** AreaRange chart types @expandType */
|
|
49
93
|
export type RangeChartType = (typeof RANGE_CHART_TYPES)[number];
|
|
@@ -51,7 +95,7 @@ export type ChartDataType = 'cartesian' | 'categorical' | 'scatter' | 'table' |
|
|
|
51
95
|
/**
|
|
52
96
|
* Design options for a specific chart type
|
|
53
97
|
*/
|
|
54
|
-
export type DesignOptions<SpecificChartType extends ChartType = ChartType> = SpecificChartType extends 'line' ? LineChartDesignOptions : SpecificChartType extends 'area' ? AreaChartDesignOptions : SpecificChartType extends 'bar' ? BarChartDesignOptions : SpecificChartType extends 'column' ? ColumnChartDesignOptions : SpecificChartType extends 'pie' ? PieChartDesignOptions : SpecificChartType extends 'funnel' ? FunnelChartDesignOptions : SpecificChartType extends 'polar' ? PolarChartDesignOptions : SpecificChartType extends 'indicator' ? IndicatorChartDesignOptions : SpecificChartType extends 'scatter' ? ScatterChartDesignOptions : SpecificChartType extends 'treemap' ? TreemapChartDesignOptions : SpecificChartType extends 'boxplot' ? BoxplotChartDesignOptions : SpecificChartType extends 'areamap' ? AreamapChartDesignOptions : SpecificChartType extends 'scattermap' ? ScattermapChartDesignOptions : SpecificChartType extends 'arearange' ? AreaRangeChartDesignOptions : never;
|
|
98
|
+
export type DesignOptions<SpecificChartType extends ChartType = ChartType> = SpecificChartType extends 'line' ? LineChartDesignOptions : SpecificChartType extends 'area' ? AreaChartDesignOptions : SpecificChartType extends 'bar' ? BarChartDesignOptions : SpecificChartType extends 'column' ? ColumnChartDesignOptions : SpecificChartType extends 'pie' ? PieChartDesignOptions : SpecificChartType extends 'funnel' ? FunnelChartDesignOptions : SpecificChartType extends 'polar' ? PolarChartDesignOptions : SpecificChartType extends 'indicator' ? IndicatorChartDesignOptions : SpecificChartType extends 'scatter' ? ScatterChartDesignOptions : SpecificChartType extends 'treemap' ? TreemapChartDesignOptions : SpecificChartType extends 'boxplot' ? BoxplotChartDesignOptions : SpecificChartType extends 'areamap' ? AreamapChartDesignOptions : SpecificChartType extends 'scattermap' ? ScattermapChartDesignOptions : SpecificChartType extends 'calendar-heatmap' ? CalendarHeatmapChartDesignOptions : SpecificChartType extends 'arearange' ? AreaRangeChartDesignOptions : never;
|
|
55
99
|
/** A unique identifier for a series to be found in {@link ChartDataOptionsInternal} */
|
|
56
100
|
type SeriesId = string;
|
|
57
101
|
/**
|
|
@@ -64,7 +108,7 @@ export type ChartDesignOptions<SpecificChartType extends ChartType = ChartType>
|
|
|
64
108
|
*
|
|
65
109
|
* @internal
|
|
66
110
|
*/
|
|
67
|
-
export type SeriesDesignOptions = Pick<BaseDesignOptionsType, '
|
|
111
|
+
export type SeriesDesignOptions = Pick<BaseDesignOptionsType, 'marker'> & Pick<LineChartDesignOptions, 'line'>;
|
|
68
112
|
export type DesignPerSeries = {
|
|
69
113
|
designPerSeries: Record<SeriesId, SeriesDesignOptions>;
|
|
70
114
|
};
|
|
@@ -78,6 +122,6 @@ export declare const isTable: (chartType: ChartType | TableType) => chartType is
|
|
|
78
122
|
export declare const isBoxplot: (chartType: ChartType) => chartType is "boxplot";
|
|
79
123
|
export declare const isAreamap: (chartType: ChartType) => chartType is "areamap";
|
|
80
124
|
export declare const isRange: (chartType: ChartType) => chartType is "arearange";
|
|
81
|
-
export declare const ALL_CHART_TYPES: readonly ["line", "area", "bar", "column", "polar", "pie", "funnel", "treemap", "sunburst", "scatter", "table", "indicator", "boxplot", "areamap", "image", "scattermap", "arearange"];
|
|
125
|
+
export declare const ALL_CHART_TYPES: readonly ["line", "area", "bar", "column", "polar", "pie", "funnel", "treemap", "sunburst", "scatter", "table", "indicator", "boxplot", "areamap", "image", "scattermap", "calendar-heatmap", "arearange"];
|
|
82
126
|
export type DynamicChartType = (typeof ALL_CHART_TYPES)[number];
|
|
83
127
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DateConfig } from '../../query/date-formats';
|
|
2
|
+
export type DateFormatter = (date: Date, format: string) => string;
|
|
3
|
+
/**
|
|
4
|
+
* Creates a date formatter function
|
|
5
|
+
*
|
|
6
|
+
* @param locale - The locale to use for formatting
|
|
7
|
+
* @param cfg - The date configuration to use for formatting
|
|
8
|
+
* @returns A function that formats dates
|
|
9
|
+
*/
|
|
10
|
+
export declare function createDateFormatter(locale?: Locale, cfg?: DateConfig): DateFormatter;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Themable } from '../../theme-provider/types';
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
|
+
export declare const DoubleArrowEndIcon: (props: Pick<SVGProps<SVGElement>, 'className' | 'width' | 'height' | 'fill' | 'onClick'> & {
|
|
4
|
+
direction: 'left' | 'right';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
} & Themable) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,24 +1,5 @@
|
|
|
1
1
|
import { EditableLayoutDragData, EditableLayoutDropData } from '../../../dashboard/components/editable-layout/types';
|
|
2
2
|
import { DragStartEvent } from '@dnd-kit/core';
|
|
3
|
-
import { RenderTitleHandler, RenderToolbarHandler, TextWidgetRenderToolbarHandler } from '../../../types';
|
|
4
3
|
export declare const isEditableLayoutDragData: (data: any | undefined) => data is EditableLayoutDragData;
|
|
5
4
|
export declare const isEditableLayoutDropData: (data: any) => data is EditableLayoutDropData;
|
|
6
5
|
export declare const getDraggingWidgetId: (event: DragStartEvent) => string | null;
|
|
7
|
-
/**
|
|
8
|
-
* Compose multiple RenderToolbarHandler functions into one.
|
|
9
|
-
* Each handler gets a chance to modify the toolbar.
|
|
10
|
-
* If it returns `null`, the previous toolbar is passed to the next handler.
|
|
11
|
-
*/
|
|
12
|
-
export declare function composeToolbarHandlers(...handlers: (RenderToolbarHandler | undefined)[]): RenderToolbarHandler;
|
|
13
|
-
/**
|
|
14
|
-
* Compose multiple TextWidgetRenderToolbarHandler functions into one.
|
|
15
|
-
* Each handler gets a chance to modify the toolbar.
|
|
16
|
-
* If it returns `null`, the previous toolbar is passed to the next handler.
|
|
17
|
-
*/
|
|
18
|
-
export declare function composeTextWidgetToolbarHandlers(...handlers: (TextWidgetRenderToolbarHandler | undefined)[]): TextWidgetRenderToolbarHandler;
|
|
19
|
-
/**
|
|
20
|
-
* Compose multiple RenderTitleHandler functions into one.
|
|
21
|
-
* Each handler gets a chance to modify the title.
|
|
22
|
-
* If it returns `null`, the previous tile is passed to the next handler.
|
|
23
|
-
*/
|
|
24
|
-
export declare function composeTitleHandlers(...handlers: (RenderTitleHandler | undefined)[]): RenderTitleHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getFiltersFromDataPoint, getFormulaContextFilters, filterByAllowedDimensions, handleFormulaDuplicateFilters, mergeJtdFilters, } from './jtd-filters';
|
|
2
2
|
export { getJtdClickHandler, getJtdClickHandlerForMultiplePoints, handleDataPointClick, handleTextWidgetClick, } from './jtd-handlers';
|
|
3
3
|
export { getJumpToDashboardMenuItem, getJumpToDashboardMenuItemForMultiplePoints, } from './jtd-menu';
|
|
4
|
-
export { addPointerCursorToChart, applyClickNavigationForChart, applyClickNavigationForText, applyRightClickNavigation, addJtdIconToHeader, } from './jtd-widget-transforms';
|
|
4
|
+
export { addPointerCursorToChart, applyClickNavigationForChart, applyClickNavigationForText, applyClickNavigationForPivot, applyRightClickNavigation, applyRightClickNavigationForPivot, applyPivotLinkStyling, addJtdIconToHeader, } from './jtd-widget-transforms';
|
|
5
5
|
export { type JtdCoreData, type JtdContext, type JtdActions, type JtdClickHandlerData, type JtdWidgetTransformConfig, type JtdDataPointClickEvent, type JtdMenuItem, } from './jtd-types';
|
|
@@ -10,7 +10,7 @@ import { JtdConfig } from '../../../widget-by-id/types';
|
|
|
10
10
|
* 1. **Generated Filters**: Created from the clicked datapoint's category and breakBy entries
|
|
11
11
|
* 2. **Dashboard Filters**: Current dashboard filters (filtered by includeDashFilterDims)
|
|
12
12
|
* 3. **Widget Filters**: Original widget-specific filters (filtered by includeWidgetFilterDims)
|
|
13
|
-
* 4. **Formula Context Filters**:
|
|
13
|
+
* 4. **Formula Context Filters**: Embedded filters from the clicked widget's datapoint calculations
|
|
14
14
|
*
|
|
15
15
|
* ## Formula Context Filters (New Feature)
|
|
16
16
|
*
|
|
@@ -68,6 +68,17 @@ export declare const getFormulaContextFilters: (clickedWidget: WidgetProps, jtdC
|
|
|
68
68
|
* @internal
|
|
69
69
|
*/
|
|
70
70
|
export declare const handleFormulaDuplicateFilters: (filters: Filter[], sendFormulaFiltersDuplicate?: number | 'none') => Filter[];
|
|
71
|
+
/**
|
|
72
|
+
* Normalizes a date value to the start of the period for the given granularity
|
|
73
|
+
* This ensures the filter member value matches what the backend query returns
|
|
74
|
+
* Uses existing date utilities instead of manual parsing to reduce business logic
|
|
75
|
+
*
|
|
76
|
+
* @param value - The raw date value (e.g., "2009-11-15T12:30:00.000")
|
|
77
|
+
* @param granularity - The date granularity (e.g., "Months")
|
|
78
|
+
* @returns Normalized date string that matches backend member query format
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
export declare const normalizeDateForGranularity: (value: string, granularity: string) => string;
|
|
71
82
|
/**
|
|
72
83
|
* Type guard to check if a data point is a ScatterDataPoint.
|
|
73
84
|
* Checks for actual scatter chart structure (x/y coordinates) and scatter-only properties.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CustomDataCellFormatter, CustomHeaderCellFormatter } from '../../../pivot-table/formatters/types';
|
|
2
|
+
import { JtdConfig } from '../../../widget-by-id/types';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a data cell formatter that applies hyperlink styling for JTD navigation
|
|
5
|
+
*
|
|
6
|
+
* @param hyperlinkColor - The color to use for hyperlink text (uses theme's hyperlinkColor
|
|
7
|
+
* @returns Data cell formatter function
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare function createJtdHyperlinkDataCellFormatter(hyperlinkColor: string, jtdConfig: JtdConfig): CustomDataCellFormatter;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a header cell formatter that applies hyperlink styling for JTD navigation
|
|
13
|
+
*
|
|
14
|
+
* @param hyperlinkColor - The color to use for hyperlink text (uses theme's hyperlinkColor or defaults to DEFAULT_HYPERLINK_COLOR)
|
|
15
|
+
* @param jtdConfig - JTD configuration containing drill targets
|
|
16
|
+
* @returns A header cell formatter that applies hyperlink styling to matching header cells
|
|
17
|
+
*/
|
|
18
|
+
export declare function createJtdHyperlinkHeaderCellFormatter(hyperlinkColor: string, jtdConfig: JtdConfig): CustomHeaderCellFormatter;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { WidgetProps } from '../../../props.js';
|
|
3
|
+
import { PivotTableDataPoint, DataPoint } from '../../../types';
|
|
3
4
|
import { JtdConfig } from '../../../widget-by-id/types';
|
|
4
5
|
import { OpenModalFn } from '../../../common/components/modal/modal-context';
|
|
5
6
|
import { JtdCoreData, JtdContext, JtdActions, JtdClickHandlerData, JtdDataPointClickEvent } from './jtd-types';
|
|
@@ -33,6 +34,28 @@ export declare const getJtdClickHandlerForMultiplePoints: (data: JtdClickHandler
|
|
|
33
34
|
* @internal
|
|
34
35
|
*/
|
|
35
36
|
export declare const handleDataPointClick: (coreData: JtdCoreData, context: JtdContext, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>, event: JtdDataPointClickEvent) => void | Promise<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Convert PivotTableDataPoint to DataPoint format for JTD processing
|
|
39
|
+
*
|
|
40
|
+
* @param pivotPoint - The pivot table data point
|
|
41
|
+
* @returns Converted data point
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export declare const convertPivotToDataPoint: (pivotPoint: PivotTableDataPoint) => DataPoint;
|
|
45
|
+
/**
|
|
46
|
+
* Handle pivot table data point click
|
|
47
|
+
*
|
|
48
|
+
* @param data - Core data with drill target (config, drill target, widget props, pivot point)
|
|
49
|
+
* @param context - Context data (filters)
|
|
50
|
+
* @param actions - Action functions
|
|
51
|
+
* @param eventData - Event-related data
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
export declare const handlePivotDataPointClick: (data: {
|
|
55
|
+
jtdConfig: JtdConfig;
|
|
56
|
+
widgetProps: WidgetProps;
|
|
57
|
+
point: PivotTableDataPoint;
|
|
58
|
+
}, context: JtdContext, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => Promise<string> | undefined;
|
|
36
59
|
/**
|
|
37
60
|
* Handle text widget click (placeholder for future implementation)
|
|
38
61
|
*
|
|
@@ -18,6 +18,16 @@ export declare const addPointerCursorToChart: (widgetProps: WidgetProps) => Widg
|
|
|
18
18
|
* @internal
|
|
19
19
|
*/
|
|
20
20
|
export declare const applyClickNavigationForChart: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
|
|
21
|
+
/**
|
|
22
|
+
* Apply JTD click navigation for pivot table widgets
|
|
23
|
+
*
|
|
24
|
+
* @param widgetProps - The widget props
|
|
25
|
+
* @param config - The JTD configuration and context
|
|
26
|
+
* @param actions - The action functions
|
|
27
|
+
* @returns Updated widget props with click navigation
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare const applyClickNavigationForPivot: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
|
|
21
31
|
/**
|
|
22
32
|
* Apply JTD click navigation for text widgets
|
|
23
33
|
*
|
|
@@ -38,6 +48,25 @@ export declare const applyClickNavigationForText: (widgetProps: WidgetProps, con
|
|
|
38
48
|
* @internal
|
|
39
49
|
*/
|
|
40
50
|
export declare const applyRightClickNavigation: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
|
|
51
|
+
/**
|
|
52
|
+
* Apply JTD right-click navigation for pivot table widgets
|
|
53
|
+
*
|
|
54
|
+
* @param widgetProps - The widget props
|
|
55
|
+
* @param config - The JTD configuration and context
|
|
56
|
+
* @param actions - The action functions
|
|
57
|
+
* @returns Updated widget props with right-click navigation
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
export declare const applyRightClickNavigationForPivot: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
|
|
61
|
+
/**
|
|
62
|
+
* Applies hyperlink styling to pivot table cells for PIVOT_LINK navigation
|
|
63
|
+
* @param widgetProps - Pivot table widget props
|
|
64
|
+
* @param config - JTD configuration
|
|
65
|
+
* @param hyperlinkColor
|
|
66
|
+
* @returns Updated widget props with hyperlink styling
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
export declare const applyPivotLinkStyling: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, hyperlinkColor?: string) => WidgetProps;
|
|
41
70
|
/**
|
|
42
71
|
* Add JTD icon to widget header if configured
|
|
43
72
|
*
|
|
@@ -37,6 +37,7 @@ export * from './boxplot-chart';
|
|
|
37
37
|
export * from './scattermap-chart';
|
|
38
38
|
export * from './areamap-chart';
|
|
39
39
|
export * from './area-range-chart';
|
|
40
|
+
export * from './calendar-heatmap-chart';
|
|
40
41
|
export * from './sisense-context/custom-sisense-context-provider';
|
|
41
42
|
export * from './theme-provider/custom-theme-provider';
|
|
42
43
|
export * from './custom-widgets-provider/custom-widgets-provider-adapter';
|
|
@@ -5,6 +5,7 @@ import { WidgetDto } from '../../widget-by-id/types';
|
|
|
5
5
|
import { RestApi } from '../../api/rest-api';
|
|
6
6
|
export declare const translateLayout: (layout: LayoutDto) => WidgetsPanelColumnLayout;
|
|
7
7
|
export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>, filterRelationsModel?: FilterRelationsModel | FilterRelationsModelNode): Filter[] | FilterRelations;
|
|
8
|
+
export declare const convertDimensionsToDimIndexes: (widget: WidgetDto, dimensionIds: string[]) => string[];
|
|
8
9
|
export declare function translateWidgetsOptions(widgets?: WidgetDto[]): WidgetsOptions;
|
|
9
10
|
export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersOptions;
|
|
10
11
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { PivotTableDataOptions } from '../../../chart-data-options/types.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { HeaderCellFormatter } from '../types.js';
|
|
3
|
+
import { DateFormatter } from '../../../common/formatters/create-date-formatter.js';
|
|
3
4
|
export declare const createHeaderCellValueFormatter: (dataOptions: PivotTableDataOptions, dateFormatter: DateFormatter) => HeaderCellFormatter;
|
|
4
5
|
/**
|
|
5
6
|
* Formats the date time string or Date object.
|
|
@@ -44,4 +44,3 @@ export type HeaderCellFormatter = (cell: PivotTreeNode, jaqlPanelItem: JaqlPanel
|
|
|
44
44
|
* @returns Formatting result object or void to skip formatting
|
|
45
45
|
*/
|
|
46
46
|
export type CustomHeaderCellFormatter = (cell: PivotTreeNode, jaqlPanelItem: JaqlPanel | undefined, dataOption?: AnyColumn, id?: string) => CellFormattingResult | void;
|
|
47
|
-
export type DateFormatter = (date: Date, format: string) => string;
|