@sisense/sdk-ui 2.9.0 → 2.11.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 +32 -32
- package/dist/ai.js +426 -419
- package/dist/analytics-composer/node.cjs +3 -1
- package/dist/analytics-composer/node.js +521 -385
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/derive-chart-family-BauaWEEc.cjs +170 -0
- package/dist/derive-chart-family-BhAFg8OE.js +29535 -0
- package/dist/{dimensions-B2jz151s.js → dimensions-Bk74slQe.js} +1 -1
- package/dist/{dimensions-CVJeJ8mi.cjs → dimensions-DCxjxuyH.cjs} +1 -1
- package/dist/{execute-query-agpyzZz6.js → execute-query-CxMSGp-J.js} +292 -269
- package/dist/execute-query-uQ2s1ZNz.cjs +1 -0
- package/dist/index.cjs +25 -26
- package/dist/index.js +12805 -11832
- package/dist/index.umd.js +384 -374
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +7 -1
- 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/app/client-application.d.ts +2 -2
- package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +26 -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 +118 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +56 -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 +34 -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 +8 -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 +42 -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 +34 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +31 -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 +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +16 -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/calendar-heatmap-chart/utils/calendar-utils.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/with-calendar-heatmap-data-coloring.d.ts +17 -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/funnel-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/funnel-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +12 -0
- 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/categoricals/sunburst-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/sunburst-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/treemap-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-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 +12 -10
- 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 +23 -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 +29 -3
- 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/series-labels.d.ts +19 -0
- 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/boxplot/boxplot-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +43 -7
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +8 -0
- 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-plot-options.d.ts +2 -2
- 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/scatter-series.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +78 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +10 -4
- 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/chart-options-processor/translations/value-label-section.d.ts +14 -11
- package/dist/packages/sdk-ui/src/common/components/modal/modal-context.d.ts +1 -2
- 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/components/jtd-dashboard.d.ts +5 -4
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +109 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +20 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +85 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +15 -3
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +80 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +26 -4
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +260 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-widget-transforms.d.ts +29 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +3 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd-widget.d.ts +68 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +33 -7
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +13 -0
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -3
- package/dist/packages/sdk-ui/src/index.d.ts +10 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +26 -2
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +8 -4
- 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 +66 -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 +444 -32
- package/dist/packages/sdk-ui/src/utils/combine-handlers.d.ts +19 -0
- package/dist/packages/sdk-ui/src/utils/create-level-attribute.d.ts +11 -0
- package/dist/packages/sdk-ui/src/utils/utility-types/transformer.d.ts +8 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +45 -74
- package/dist/{types-QUSMO7gF.cjs → types-DhvOgfXa.cjs} +1 -1
- package/dist/{types-BYUVZb6u.js → types-Dxieyr4A.js} +1 -1
- package/dist/use-common-filters-DJyYvdev.js +91688 -0
- package/dist/use-common-filters-Qj9249s0.cjs +845 -0
- package/dist/{widget-composer-BG4HonVl.js → widget-composer-azihIMsw.js} +3 -3
- package/dist/{widget-composer-CGp5yOny.cjs → widget-composer-omIEhWNL.cjs} +1 -1
- package/package.json +13 -18
- 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
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import { PlotOptions } from '../chart-options-service';
|
|
2
|
-
import {
|
|
2
|
+
import { DataLabelsSettings } from './value-label-section';
|
|
3
3
|
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
4
4
|
import { CompleteThemeSettings } from '../../types';
|
|
5
5
|
export declare const DefaultPieLabels: PieLabels;
|
|
@@ -16,7 +16,7 @@ export type PieType = (typeof pieTypes)[number];
|
|
|
16
16
|
export type PieOptions = {
|
|
17
17
|
allowPointSelect: boolean;
|
|
18
18
|
cursor?: string;
|
|
19
|
-
dataLabels:
|
|
19
|
+
dataLabels: DataLabelsSettings & {
|
|
20
20
|
showPercentLabels: boolean;
|
|
21
21
|
showDecimals: boolean;
|
|
22
22
|
pieMinimumFontSizeToTextLabel: number;
|
|
@@ -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 {};
|
|
@@ -3,6 +3,7 @@ import { SeriesType } from '../chart-options-service';
|
|
|
3
3
|
import { ScatterAxisCategoriesMap, ScatterDataTable } from '../../chart-data/types';
|
|
4
4
|
import { ComparableData } from '../../chart-data-processor/table-processor';
|
|
5
5
|
import { SeriesWithAlerts, CompleteThemeSettings } from '../../types';
|
|
6
|
+
import { ChartDesignOptions } from './types';
|
|
6
7
|
export type ScatterSeriesColor = {
|
|
7
8
|
index: number;
|
|
8
9
|
color: string;
|
|
@@ -21,4 +22,4 @@ export interface AxisComputedProperties {
|
|
|
21
22
|
selected?: boolean;
|
|
22
23
|
}
|
|
23
24
|
export declare const handleNumberValue: (cell: ComparableData) => number | null;
|
|
24
|
-
export declare const buildScatterSeries: (data: ScatterDataTable, categoriesMap: ScatterAxisCategoriesMap, dataOptions?: ScatterChartDataOptionsInternal, themeSettings?: CompleteThemeSettings, seriesCapacity?: number) => SeriesWithAlerts<SeriesType[]>;
|
|
25
|
+
export declare const buildScatterSeries: (data: ScatterDataTable, categoriesMap: ScatterAxisCategoriesMap, dataOptions?: ScatterChartDataOptionsInternal, designOptions?: ChartDesignOptions, themeSettings?: CompleteThemeSettings, seriesCapacity?: number) => SeriesWithAlerts<SeriesType[]>;
|
package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts
CHANGED
|
@@ -4,4 +4,82 @@ import { CategoricalChartDataOptionsInternal } from '../../../chart-data-options
|
|
|
4
4
|
import { CompleteThemeSettings } from '../../../types';
|
|
5
5
|
import { SunburstChartDesignOptions } from '../design-options';
|
|
6
6
|
import { TFunction } from '@sisense/sdk-common';
|
|
7
|
+
/**
|
|
8
|
+
* Prepares the series configuration for sunburst chart
|
|
9
|
+
*/
|
|
10
|
+
export declare function prepareSunburstSeries(chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, designOptions: SunburstChartDesignOptions, themeSettings?: CompleteThemeSettings): ({
|
|
11
|
+
name: string;
|
|
12
|
+
showInLegend: boolean;
|
|
13
|
+
color: string;
|
|
14
|
+
data: never[];
|
|
15
|
+
states: {
|
|
16
|
+
hover: {
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
data: ({
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
custom: {
|
|
26
|
+
level: number;
|
|
27
|
+
levelsCount: number;
|
|
28
|
+
};
|
|
29
|
+
} | {
|
|
30
|
+
color: any;
|
|
31
|
+
name?: string | undefined;
|
|
32
|
+
y?: number | null | undefined;
|
|
33
|
+
x?: number | null | undefined;
|
|
34
|
+
z?: number | null | undefined;
|
|
35
|
+
marker?: {
|
|
36
|
+
enabled?: boolean | undefined;
|
|
37
|
+
isIsolatedPoint?: boolean | undefined;
|
|
38
|
+
lineColor?: string | undefined;
|
|
39
|
+
lineWidth?: number | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
selected?: boolean | undefined;
|
|
42
|
+
sliced?: boolean | undefined;
|
|
43
|
+
custom?: {
|
|
44
|
+
[k: string]: unknown;
|
|
45
|
+
number1?: number | undefined;
|
|
46
|
+
string1?: string | undefined;
|
|
47
|
+
level?: number | undefined;
|
|
48
|
+
maskedBreakByPoint?: string | undefined;
|
|
49
|
+
maskedBreakByColor?: string | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
value?: number | null | undefined;
|
|
52
|
+
id?: string | undefined;
|
|
53
|
+
drilldown?: string | undefined;
|
|
54
|
+
parent?: string | undefined;
|
|
55
|
+
low?: number | null | undefined;
|
|
56
|
+
high?: number | null | undefined;
|
|
57
|
+
trend?: {
|
|
58
|
+
min: number;
|
|
59
|
+
max: number;
|
|
60
|
+
median: number;
|
|
61
|
+
average: number;
|
|
62
|
+
} | undefined;
|
|
63
|
+
})[];
|
|
64
|
+
levels: {
|
|
65
|
+
level: number;
|
|
66
|
+
dataLabels: {
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
formatter(this: import("highcharts").PointLabelObject): string;
|
|
69
|
+
};
|
|
70
|
+
}[];
|
|
71
|
+
showInLegend: boolean;
|
|
72
|
+
turboThreshold: number;
|
|
73
|
+
type: string;
|
|
74
|
+
borderWidth: number;
|
|
75
|
+
dataLabels: {
|
|
76
|
+
style: {
|
|
77
|
+
textOutline: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
})[];
|
|
81
|
+
/**
|
|
82
|
+
* Prepares the tooltip configuration for sunburst chart
|
|
83
|
+
*/
|
|
84
|
+
export declare function prepareSunburstTooltip(dataOptions: CategoricalChartDataOptionsInternal, designOptions: SunburstChartDesignOptions, translate: TFunction): import("../tooltip-utils").TooltipSettings;
|
|
7
85
|
export declare function prepareSunburstOptions(chartData: CategoricalChartData, dataOptions: CategoricalChartDataOptionsInternal, designOptions: SunburstChartDesignOptions, translate: TFunction, themeSettings?: CompleteThemeSettings): HighchartsOptionsInternal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyledMeasureColumn, StyledColumn } from '../../chart-data-options/types.js';
|
|
2
|
-
import { TooltipFormatterContextObject } from '@sisense/sisense-charts';
|
|
2
|
+
import { TooltipFormatterContextObject, CSSObject } from '@sisense/sisense-charts';
|
|
3
3
|
export declare const isValueNumeric: (value: StyledMeasureColumn | StyledColumn | undefined) => boolean | "";
|
|
4
4
|
export declare const formatTooltipValue: (dataOption: StyledMeasureColumn | StyledColumn | undefined, value: number | string | undefined, displayValue: string) => string;
|
|
5
5
|
export declare function isTooltipPercentValueSupported(options: StyledMeasureColumn | undefined): boolean;
|
|
@@ -14,11 +14,13 @@ export type TooltipSettings = {
|
|
|
14
14
|
crosshairs?: boolean;
|
|
15
15
|
shared?: boolean;
|
|
16
16
|
formatter?: (this: HighchartsDataPointContext) => string | false;
|
|
17
|
-
style?:
|
|
18
|
-
fontFamily?: string;
|
|
19
|
-
};
|
|
17
|
+
style?: CSSObject;
|
|
20
18
|
padding?: number;
|
|
21
19
|
outside?: boolean;
|
|
20
|
+
position?: {
|
|
21
|
+
relativeTo?: 'chart';
|
|
22
|
+
};
|
|
23
|
+
followPointer?: boolean;
|
|
22
24
|
};
|
|
23
25
|
export type HighchartsDataPointContextNode = {
|
|
24
26
|
val: number;
|
|
@@ -54,6 +56,8 @@ export type HighchartsDataPointContext = {
|
|
|
54
56
|
string1?: string;
|
|
55
57
|
xDisplayValue?: string;
|
|
56
58
|
xValue?: (number | string)[];
|
|
59
|
+
monthDay?: number;
|
|
60
|
+
hasData?: boolean;
|
|
57
61
|
};
|
|
58
62
|
upperPointName?: string;
|
|
59
63
|
lowerPointName?: string;
|
|
@@ -65,6 +69,8 @@ export type HighchartsDataPointContext = {
|
|
|
65
69
|
};
|
|
66
70
|
options?: TooltipFormatterContextObject['point']['options'];
|
|
67
71
|
node?: HighchartsDataPointContextNode;
|
|
72
|
+
date?: string | number | Date;
|
|
73
|
+
value?: number;
|
|
68
74
|
};
|
|
69
75
|
percentage?: number;
|
|
70
76
|
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,13 @@ 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
|
+
*/
|
|
89
|
+
export type CalendarHeatmapChartType = (typeof CALENDAR_HEATMAP_CHART_TYPES)[number];
|
|
47
90
|
export declare const RANGE_CHART_TYPES: readonly ["arearange"];
|
|
48
91
|
/** AreaRange chart types @expandType */
|
|
49
92
|
export type RangeChartType = (typeof RANGE_CHART_TYPES)[number];
|
|
@@ -51,7 +94,7 @@ export type ChartDataType = 'cartesian' | 'categorical' | 'scatter' | 'table' |
|
|
|
51
94
|
/**
|
|
52
95
|
* Design options for a specific chart type
|
|
53
96
|
*/
|
|
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;
|
|
97
|
+
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 'sunburst' ? TreemapChartDesignOptions : SpecificChartType extends 'boxplot' ? BoxplotChartDesignOptions : SpecificChartType extends 'areamap' ? AreamapChartDesignOptions : SpecificChartType extends 'scattermap' ? ScattermapChartDesignOptions : SpecificChartType extends 'calendar-heatmap' ? CalendarHeatmapChartDesignOptions : SpecificChartType extends 'arearange' ? AreaRangeChartDesignOptions : never;
|
|
55
98
|
/** A unique identifier for a series to be found in {@link ChartDataOptionsInternal} */
|
|
56
99
|
type SeriesId = string;
|
|
57
100
|
/**
|
|
@@ -64,7 +107,7 @@ export type ChartDesignOptions<SpecificChartType extends ChartType = ChartType>
|
|
|
64
107
|
*
|
|
65
108
|
* @internal
|
|
66
109
|
*/
|
|
67
|
-
export type SeriesDesignOptions = Pick<BaseDesignOptionsType, '
|
|
110
|
+
export type SeriesDesignOptions = Pick<BaseDesignOptionsType, 'marker'> & Pick<LineChartDesignOptions, 'line'>;
|
|
68
111
|
export type DesignPerSeries = {
|
|
69
112
|
designPerSeries: Record<SeriesId, SeriesDesignOptions>;
|
|
70
113
|
};
|
|
@@ -78,6 +121,7 @@ export declare const isTable: (chartType: ChartType | TableType) => chartType is
|
|
|
78
121
|
export declare const isBoxplot: (chartType: ChartType) => chartType is "boxplot";
|
|
79
122
|
export declare const isAreamap: (chartType: ChartType) => chartType is "areamap";
|
|
80
123
|
export declare const isRange: (chartType: ChartType) => chartType is "arearange";
|
|
81
|
-
export declare const
|
|
124
|
+
export declare const isCalendarHeatmap: (chartType: ChartType) => chartType is "calendar-heatmap";
|
|
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 {};
|
package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts
CHANGED
|
@@ -3,17 +3,12 @@ import { TextStyle } from './types';
|
|
|
3
3
|
import { AxisOrientation } from './axis-section';
|
|
4
4
|
import { HighchartsDataPointContext } from './tooltip-utils';
|
|
5
5
|
import { PolarType } from './design-options';
|
|
6
|
-
import { NumberFormatConfig } from '../../types';
|
|
7
|
-
export type ValueLabelOptions = {
|
|
8
|
-
enabled?: boolean;
|
|
9
|
-
rotation?: number;
|
|
10
|
-
showValue?: boolean;
|
|
11
|
-
showPercentage?: boolean;
|
|
12
|
-
};
|
|
6
|
+
import { NumberFormatConfig, SeriesLabels } from '../../types';
|
|
13
7
|
export type RotationType = 'horizontal' | 'diagonal' | 'vertical';
|
|
14
|
-
export type
|
|
8
|
+
export type DataLabelsSettings = {
|
|
15
9
|
enabled?: boolean;
|
|
16
10
|
align?: string;
|
|
11
|
+
inside?: boolean;
|
|
17
12
|
crop?: boolean;
|
|
18
13
|
rotation?: number;
|
|
19
14
|
y?: number;
|
|
@@ -23,6 +18,14 @@ export type ValueLabelSettings = {
|
|
|
23
18
|
allowOverlap?: boolean;
|
|
24
19
|
verticalAlign?: 'bottom' | 'middle' | 'top';
|
|
25
20
|
padding?: number;
|
|
21
|
+
color?: 'contrast' | string;
|
|
22
|
+
backgroundColor?: string;
|
|
23
|
+
borderColor?: string;
|
|
24
|
+
borderRadius?: number;
|
|
25
|
+
borderWidth?: number;
|
|
26
|
+
animation?: {
|
|
27
|
+
defer?: boolean | number;
|
|
28
|
+
};
|
|
26
29
|
types?: {
|
|
27
30
|
count: boolean;
|
|
28
31
|
relative: boolean;
|
|
@@ -30,7 +33,7 @@ export type ValueLabelSettings = {
|
|
|
30
33
|
};
|
|
31
34
|
formatter?: (this: HighchartsDataPointContext, options?: DataLabelsOptions, valuePropName?: string) => string;
|
|
32
35
|
};
|
|
33
|
-
export declare const
|
|
36
|
+
export declare const createDataLabelsFormatter: (numberFormatConfig?: NumberFormatConfig, options?: SeriesLabels) => (this: HighchartsDataPointContext) => string;
|
|
34
37
|
export declare const getRotationType: (rotation: number) => RotationType;
|
|
35
|
-
export declare const
|
|
36
|
-
export declare const
|
|
38
|
+
export declare const getDataLabelsSettings: (xAxisOrientation: AxisOrientation, seriesLabels?: SeriesLabels, inside?: boolean) => DataLabelsSettings;
|
|
39
|
+
export declare const getPolarDataLabelsSettings: (seriesLabels: SeriesLabels | undefined, polarType: PolarType) => DataLabelsSettings;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SizeMeasurement } from '../../../types';
|
|
3
2
|
export interface ModalOptions {
|
|
4
3
|
title?: string;
|
|
5
4
|
content: React.ReactNode;
|
|
6
5
|
width?: number;
|
|
7
6
|
height?: number;
|
|
8
|
-
measurement?:
|
|
7
|
+
measurement?: '%' | 'px';
|
|
9
8
|
}
|
|
10
9
|
export type ModalInstance = {
|
|
11
10
|
id: string;
|
|
@@ -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,15 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type Filter } from '@sisense/sdk-data';
|
|
3
|
+
import { DashboardConfig, DashboardProps } from '../../dashboard/types';
|
|
4
|
+
import { DashboardId } from '../../models/dashboard/types';
|
|
3
5
|
interface JtdDashboardProps {
|
|
4
|
-
|
|
6
|
+
dashboard: DashboardId | DashboardProps;
|
|
5
7
|
filters: Filter[];
|
|
6
8
|
mergeTargetDashboardFilters: boolean;
|
|
7
|
-
|
|
8
|
-
displayFilterPane: boolean;
|
|
9
|
+
dashboardConfig?: DashboardConfig;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* JTD-specific Dashboard component that handles runtime filters
|
|
12
|
-
* This component
|
|
13
|
+
* This component can render either by dashboard ID or with provided dashboard props
|
|
13
14
|
* @internal
|
|
14
15
|
*/
|
|
15
16
|
export declare const JtdDashboard: import("react").FunctionComponent<JtdDashboardProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DashboardProps } from './types';
|
|
2
2
|
import { Filter, FilterRelations } from '@sisense/sdk-data';
|
|
3
|
+
import type { JumpToDashboardConfig } from './hooks/jtd/jtd-types';
|
|
3
4
|
/**
|
|
4
5
|
* Creates a new dashboard instance with its filters replaced by a new set of filters.
|
|
5
6
|
*
|
|
@@ -107,3 +108,111 @@ export declare const removeFilter: (dashboard: DashboardProps, filterToRemove: F
|
|
|
107
108
|
* @returns A new dashboard instance with the specified filters removed.
|
|
108
109
|
*/
|
|
109
110
|
export declare const removeFilters: (dashboard: DashboardProps, filtersToRemove: Filter[]) => DashboardProps;
|
|
111
|
+
/**
|
|
112
|
+
* Creates a new `DashboardProps` instance with JTD (Jump To Dashboard) configuration applied to a single widget.
|
|
113
|
+
*
|
|
114
|
+
* Jump To Dashboard (JTD) allows users to navigate from one dashboard to another when interacting with widgets,
|
|
115
|
+
* such as clicking on chart data points or using context menus. This function applies JTD configuration to a specific
|
|
116
|
+
* widget in a dashboard, enabling jump-to-dashboard functionality.
|
|
117
|
+
*
|
|
118
|
+
* This function does not modify the original dashboard; instead, it returns a new `DashboardProps` instance with the JTD
|
|
119
|
+
* configuration applied. If the specified widget does not exist in the dashboard, the function returns the original
|
|
120
|
+
* `DashboardProps` unchanged and logs a warning to the console.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* Apply JTD configuration to a dashboard widget.
|
|
124
|
+
* ```ts
|
|
125
|
+
* const jtdConfig: JumpToDashboardConfig = {
|
|
126
|
+
* targets: [{ id: 'dashboardId1', caption: 'Analytics Dashboard' }],
|
|
127
|
+
* interaction: {
|
|
128
|
+
* triggerMethod: 'rightclick',
|
|
129
|
+
* contextMenuCaption: 'Jump to Analytics'
|
|
130
|
+
* }
|
|
131
|
+
* };
|
|
132
|
+
*
|
|
133
|
+
* const updatedDashboard = dashboardHelpers.applyJtdConfig(dashboard, 'widgetId3', jtdConfig);
|
|
134
|
+
* ```
|
|
135
|
+
*
|
|
136
|
+
* @param dashboard - The original dashboard to modify. Must be a valid `DashboardProps` object containing the target widget.
|
|
137
|
+
* @param widgetOid - The unique identifier (OID) of the widget to apply JTD configuration to. Must match an existing widget ID in the dashboard.
|
|
138
|
+
* @param config - The JTD configuration to apply.
|
|
139
|
+
*
|
|
140
|
+
* @returns A new `DashboardProps` instance with the JTD configuration applied to the specified widget. If the widget doesn't exist, returns the original dashboard unchanged.
|
|
141
|
+
*
|
|
142
|
+
* @group Dashboard Utilities
|
|
143
|
+
*/
|
|
144
|
+
export declare const applyJtdConfig: (dashboard: DashboardProps, widgetOid: string, config: JumpToDashboardConfig) => DashboardProps;
|
|
145
|
+
/**
|
|
146
|
+
* Creates a new `DashboardProps` instance with JTD (Jump To Dashboard) configurations applied to multiple widgets in a single operation.
|
|
147
|
+
*
|
|
148
|
+
* Jump To Dashboard (JTD) allows users to navigate from one dashboard to another when interacting with widgets.
|
|
149
|
+
* This function efficiently applies JTD configurations to multiple widgets in a single operation.
|
|
150
|
+
*
|
|
151
|
+
* This function does not modify the original dashboard; instead, it returns a new `DashboardProps` instance with all valid
|
|
152
|
+
* JTD configurations applied. Configurations for non-existent widgets are automatically filtered out, and warnings
|
|
153
|
+
* are logged to the console for invalid widget OIDs.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* Apply a variety of Jump To Dashboard configuration options to multiple widgets in a single operation.
|
|
157
|
+
* ```ts
|
|
158
|
+
* import { dashboardHelpers } from '@sisense/sdk-ui';
|
|
159
|
+
*
|
|
160
|
+
* const dashboard: DashboardProps = {
|
|
161
|
+
* title: 'Executive Dashboard',
|
|
162
|
+
* widgets: [
|
|
163
|
+
* { id: 'widgetId1', widgetType: 'chart', chartType: 'column', dataOptions: {...} },
|
|
164
|
+
* { id: 'widgetId2', widgetType: 'chart', chartType: 'pie', dataOptions: {...} },
|
|
165
|
+
* { id: 'widgetId3', widgetType: 'table', dataOptions: {...} }
|
|
166
|
+
* ]
|
|
167
|
+
* };
|
|
168
|
+
*
|
|
169
|
+
* const jtdConfigs = {
|
|
170
|
+
* 'widgetId1': {
|
|
171
|
+
* enabled: true,
|
|
172
|
+
* targets: [{ id: 'dashboardId1', caption: 'Sales Breakdown' }],
|
|
173
|
+
* interaction: {
|
|
174
|
+
* triggerMethod: 'rightclick'
|
|
175
|
+
* }
|
|
176
|
+
* },
|
|
177
|
+
* 'widgetId2': {
|
|
178
|
+
* targets: [{ id: 'dashboardId2', caption: 'Revenue Analysis' }],
|
|
179
|
+
* interaction: {
|
|
180
|
+
* triggerMethod: 'click',
|
|
181
|
+
* contextMenuCaption: 'Analyze Revenue'
|
|
182
|
+
* }
|
|
183
|
+
* },
|
|
184
|
+
* 'widgetId3': {
|
|
185
|
+
* enabled: true,
|
|
186
|
+
* targets: [
|
|
187
|
+
* { id: 'dashboardId3', caption: 'Customer Details' },
|
|
188
|
+
* { id: 'dashboardId4', caption: 'Product Analytics' }
|
|
189
|
+
* ],
|
|
190
|
+
* interaction: {
|
|
191
|
+
* triggerMethod: 'rightclick'
|
|
192
|
+
* }
|
|
193
|
+
* }
|
|
194
|
+
* };
|
|
195
|
+
*
|
|
196
|
+
* const updatedDashboard = dashboardHelpers.applyJtdConfigs(dashboard, jtdConfigs);
|
|
197
|
+
* ```
|
|
198
|
+
*
|
|
199
|
+
* @example Error handling
|
|
200
|
+
* Batch apply JTD configurations with error handling.
|
|
201
|
+
* ```ts
|
|
202
|
+
* const configsWithInvalidWidget = {
|
|
203
|
+
* 'widgetId1': { targets: [{ id: 'dashboardId1', caption: 'Target' }] },
|
|
204
|
+
* 'invalidWidgetId': { targets: [{ id: 'dashboardId2', caption: 'Other' }] } // Will be filtered out
|
|
205
|
+
* };
|
|
206
|
+
*
|
|
207
|
+
* const result = dashboardHelpers.applyJtdConfigs(dashboard, configsWithInvalidWidget);
|
|
208
|
+
* // Console warning: "Widgets with OIDs [invalidWidgetId] not found in dashboard..."
|
|
209
|
+
* // Only 'widgetId1' gets the JTD configuration applied
|
|
210
|
+
* ```
|
|
211
|
+
*
|
|
212
|
+
* @param dashboard - The original dashboard to modify. Must be a valid `DashboardProps` object with widgets to configure.
|
|
213
|
+
* @param jtdConfigs - An object mapping widget OIDs (keys) to their respective JTD configurations (values).
|
|
214
|
+
* @returns A new `DashboardProps` instance with all valid JTD configurations applied to their respective widgets. Invalid widget configurations are skipped and warnings are logged.
|
|
215
|
+
*
|
|
216
|
+
* @group Dashboard Utilities
|
|
217
|
+
*/
|
|
218
|
+
export declare const applyJtdConfigs: (dashboard: DashboardProps, jtdConfigs: Record<string, JumpToDashboardConfig>) => DashboardProps;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { type JumpToDashboardConfig, type JumpToDashboardConfigForPivot, type JtdTarget, type TriggerMethod, } from './jtd';
|
|
2
|
+
/**
|
|
3
|
+
* Internal JTD hook for dashboard composition
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export { useJtdInternal } from './use-jtd';
|
|
7
|
+
export { useJtdWidget } from './use-jtd-widget';
|