@sisense/sdk-ui 2.13.0 → 2.14.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 +2 -2
- package/dist/ai.js +6 -6
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +4 -4
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{derive-chart-family-Ca1NT5US.cjs → derive-chart-family-DJUpWKOP.cjs} +53 -44
- package/dist/{derive-chart-family-BcASqlOf.js → derive-chart-family-D_bylSQy.js} +9047 -8934
- package/dist/{dimensions-DOxD1XtL.js → dimensions-CTUJhW-M.js} +1 -1
- package/dist/{dimensions-DCT9XInO.cjs → dimensions-CdNGgk9I.cjs} +1 -1
- package/dist/execute-query-CNt566O5.cjs +1 -0
- package/dist/{execute-query-JhI9RXe_.js → execute-query-DyjkDYHG.js} +1033 -1016
- package/dist/index.cjs +24 -24
- package/dist/index.js +6337 -6279
- package/dist/index.umd.js +348 -338
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +12 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +25 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/continuous-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/axes-options/helpers.d.ts +24 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options/split-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 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +3 -3
- 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 +12 -2
- 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 -1
- 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 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-per-chart-instance.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +16 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +7 -6
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +0 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +0 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +5 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +12 -17
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/common/components/menu/context-menu/context-menu.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +11 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +0 -30
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +3 -2
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +76 -4
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +5 -5
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +3 -1
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +2 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/types.d.ts +108 -52
- package/dist/{types-Cl0_Tfey.cjs → types-D1qM-ltg.cjs} +1 -1
- package/dist/{types-CnFd03Ga.js → types-DglXXR-Q.js} +1 -1
- package/dist/{use-common-filters-qFWk1Ia5.js → use-common-filters-BGrn7zoW.js} +21904 -21098
- package/dist/use-common-filters-DxzCHhgF.cjs +846 -0
- package/dist/{widget-composer-C7ZAcFHK.cjs → widget-composer-C24YJEek.cjs} +5 -5
- package/dist/{widget-composer-ovIwmgin.js → widget-composer-lBv40CFf.js} +131 -130
- package/package.json +7 -7
- package/dist/execute-query-CvH_36GC.cjs +0 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +0 -8
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +0 -12
- package/dist/use-common-filters-WTVrWfsY.cjs +0 -845
|
@@ -5,6 +5,8 @@ import { ViewType } from './types';
|
|
|
5
5
|
export declare const CALENDAR_HEATMAP_DEFAULTS: {
|
|
6
6
|
/** Default view type */
|
|
7
7
|
readonly VIEW_TYPE: ViewType.MONTH;
|
|
8
|
+
/** Default subtype */
|
|
9
|
+
readonly SUBTYPE: "calendar-heatmap/split";
|
|
8
10
|
/** Default color for days without data */
|
|
9
11
|
readonly NO_DATA_COLOR: "#f5f5f5";
|
|
10
12
|
/** Default border width for cells */
|
|
@@ -23,12 +25,14 @@ export declare const CALENDAR_HEATMAP_DEFAULTS: {
|
|
|
23
25
|
readonly SHOW_DAY_LABEL: true;
|
|
24
26
|
/** Show month labels by default */
|
|
25
27
|
readonly SHOW_MONTH_LABEL: true;
|
|
26
|
-
/**
|
|
27
|
-
readonly
|
|
28
|
+
/** Maximum width for using short month names in split layout */
|
|
29
|
+
readonly SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD: 120;
|
|
30
|
+
/** Maximum width for using short month names in continues layout */
|
|
31
|
+
readonly SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD: 70;
|
|
28
32
|
/** Minimum сhart size threshold for showing day labels */
|
|
29
33
|
readonly SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD: 120;
|
|
30
|
-
/** Minimum сhart size threshold for showing cell labels */
|
|
31
|
-
readonly
|
|
34
|
+
/** Minimum сhart cell size threshold for showing cell labels */
|
|
35
|
+
readonly SHOW_CELL_LABEL_SIZE_THRESHOLD: 16;
|
|
32
36
|
/** Default weekend enabled state */
|
|
33
37
|
readonly WEEKEND_ENABLED: false;
|
|
34
38
|
/** Default weekend days */
|
|
@@ -114,6 +118,10 @@ export declare const SHORT_MONTH_DATE_FORMAT = "MMM";
|
|
|
114
118
|
* Single letter day abbreviation format
|
|
115
119
|
*/
|
|
116
120
|
export declare const SINGLE_LETTER_DAY_DATE_FORMAT = "EEEEE";
|
|
121
|
+
/**
|
|
122
|
+
* Three letter day abbreviation format
|
|
123
|
+
*/
|
|
124
|
+
export declare const THREE_LETTER_DAY_DATE_FORMAT = "EEE";
|
|
117
125
|
/**
|
|
118
126
|
* Reference Sunday date
|
|
119
127
|
*/
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { CalendarHeatmapSubtype } from '../../../../../types.js';
|
|
2
|
+
import { HighchartsOptionsBuilder } from '../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Highcharts options builder for split calendar heatmap charts
|
|
5
|
+
*
|
|
6
|
+
* Combines all individual configuration builders to create complete
|
|
7
|
+
* Highcharts options for split calendar heatmap visualization.
|
|
8
|
+
*/
|
|
9
|
+
declare const splitCalendarHeatmapHighchartsOptionsBuilder: HighchartsOptionsBuilder<'calendar-heatmap'>;
|
|
10
|
+
/**
|
|
11
|
+
* Highcharts options builder for continuous calendar heatmap charts
|
|
12
|
+
*
|
|
13
|
+
* Combines all individual configuration builders to create complete
|
|
14
|
+
* Highcharts options for continuous calendar heatmap visualization.
|
|
15
|
+
*/
|
|
16
|
+
declare const continuousCalendarHeatmapHighchartsOptionsBuilder: HighchartsOptionsBuilder<'calendar-heatmap'>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the appropriate Highcharts options builder based on calendar heatmap subtype
|
|
19
|
+
*
|
|
20
|
+
* @param subtype - Calendar heatmap subtype ('calendar-heatmap/split' or 'calendar-heatmap/continuous')
|
|
21
|
+
* @returns Highcharts options builder for the specified subtype
|
|
22
|
+
*/
|
|
23
|
+
export declare function getCalendarHeatmapHighchartsOptionsBuilder(subtype: CalendarHeatmapSubtype): HighchartsOptionsBuilder<'calendar-heatmap'>;
|
|
24
|
+
export { continuousCalendarHeatmapHighchartsOptionsBuilder };
|
|
25
|
+
export { splitCalendarHeatmapHighchartsOptionsBuilder };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HighchartsOptionsInternal } from '../../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
|
+
import { BuildContext } from '../../../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares the Highcharts's axes options for continuous calendar heatmap
|
|
5
|
+
*
|
|
6
|
+
* @param ctx - The highcharts options builder context
|
|
7
|
+
* @returns Axes configuration object with xAxis and yAxis
|
|
8
|
+
*/
|
|
9
|
+
export declare function getContinuousAxesOptions(ctx: BuildContext<'calendar-heatmap'>): {
|
|
10
|
+
xAxis: HighchartsOptionsInternal['xAxis'];
|
|
11
|
+
yAxis: HighchartsOptionsInternal['yAxis'];
|
|
12
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BuildContext } from '../../../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates axis font size based on cell size
|
|
4
|
+
*
|
|
5
|
+
* @param cellSize - The size of each calendar cell
|
|
6
|
+
* @returns Calculated font size for axis labels
|
|
7
|
+
*/
|
|
8
|
+
export declare function calculateAxisFontSize(cellSize: number): number;
|
|
9
|
+
/**
|
|
10
|
+
* Calculates label Y position based on cell size
|
|
11
|
+
*
|
|
12
|
+
* @param cellSize - The size of each calendar cell
|
|
13
|
+
* @returns Calculated Y position for axis labels
|
|
14
|
+
*/
|
|
15
|
+
export declare function calculateLabelYPosition(cellSize: number): number;
|
|
16
|
+
/**
|
|
17
|
+
* Generates month labels with their correct X-axis positions for continuous layout
|
|
18
|
+
*
|
|
19
|
+
* @param chartData - The calendar heatmap chart data
|
|
20
|
+
* @param dateFormatter - Date formatter function
|
|
21
|
+
* @param startOfWeek - Week start preference
|
|
22
|
+
* @returns X-axis categories array for month positioning
|
|
23
|
+
*/
|
|
24
|
+
export declare function generateContinuousMonthLabels(chartData: BuildContext<'calendar-heatmap'>['chartData'], dateFormatter: BuildContext<'calendar-heatmap'>['extraConfig']['dateFormatter'], startOfWeek: BuildContext<'calendar-heatmap'>['designOptions']['startOfWeek'], cellSize?: number): string[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HighchartsOptionsInternal } from '../../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
|
+
import { BuildContext } from '../../../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Prepares the Highcharts's axes options for split calendar heatmap
|
|
5
|
+
*
|
|
6
|
+
* @param ctx - The highcharts options builder context
|
|
7
|
+
* @returns Axes configuration object with xAxis and yAxis
|
|
8
|
+
*/
|
|
9
|
+
export declare function getSplitAxesOptions(ctx: BuildContext<'calendar-heatmap'>): {
|
|
10
|
+
xAxis: HighchartsOptionsInternal['xAxis'];
|
|
11
|
+
yAxis: HighchartsOptionsInternal['yAxis'];
|
|
12
|
+
};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
2
|
import { BuildContext } from '../../../types.js';
|
|
3
3
|
/**
|
|
4
|
-
* Prepares the Highcharts's chart options for calendar heatmap
|
|
4
|
+
* Prepares the Highcharts's chart options for split calendar heatmap
|
|
5
5
|
*
|
|
6
6
|
* @param ctx - The highcharts options builder context
|
|
7
7
|
* @returns Highchart's chart options object
|
|
8
8
|
*/
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function getSplitChartOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['chart'];
|
|
10
|
+
/**
|
|
11
|
+
* Prepares the Highcharts's chart options for continuous calendar heatmap
|
|
12
|
+
*
|
|
13
|
+
* @param ctx - The highcharts options builder context
|
|
14
|
+
* @returns Highchart's chart options object
|
|
15
|
+
*/
|
|
16
|
+
export declare function getContinuousChartOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['chart'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { getSplitAxesOptions, getContinuousAxesOptions } from './axes-options';
|
|
2
|
+
export { getSplitChartOptions, getContinuousChartOptions } from './chart-options.js';
|
|
3
3
|
export { getExtrasOptions } from './extras-options.js';
|
|
4
4
|
export { getLegendOptions } from './legend-options.js';
|
|
5
5
|
export { getPlotOptions } from './plot-options.js';
|
|
6
|
-
export {
|
|
6
|
+
export { getSplitSeriesOptions, getContinuousSeriesOptions } from './series-options';
|
|
7
7
|
export { getTooltipOptions } from './tooltip-options.js';
|
|
@@ -31,7 +31,7 @@ export interface CalendarChartDataPoint {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Generates calendar chart data for
|
|
34
|
+
* Generates calendar chart data for a single month with provided data values (split view)
|
|
35
35
|
*
|
|
36
36
|
* @param data - Array of data points with dates and values
|
|
37
37
|
* @param dateFormatter - Date formatter function
|
|
@@ -39,4 +39,14 @@ export interface CalendarChartDataPoint {
|
|
|
39
39
|
* @param weekendsConfig - Weekend configuration (days, cellColor, hideValues)
|
|
40
40
|
* @returns Array of calendar chart data points formatted for Highcharts
|
|
41
41
|
*/
|
|
42
|
-
export declare function
|
|
42
|
+
export declare function generateSplitCalendarChartData(data: CalendarHeatmapChartData, dateFormatter: DateFormatter, startOfWeek: CalendarDayOfWeek, weekendsConfig: CalendarHeatmapChartDesignOptions['weekends']): CalendarChartDataPoint[];
|
|
43
|
+
/**
|
|
44
|
+
* Generates calendar chart data for multiple months in continuous layout (GitHub-like layout)
|
|
45
|
+
*
|
|
46
|
+
* @param data - Array of data points with dates and values from multiple months
|
|
47
|
+
* @param dateFormatter - Date formatter function
|
|
48
|
+
* @param startOfWeek - Week start preference
|
|
49
|
+
* @param weekendsConfig - Weekend configuration (days, cellColor, hideValues)
|
|
50
|
+
* @returns Array of calendar chart data points formatted for continuous Highcharts layout
|
|
51
|
+
*/
|
|
52
|
+
export declare function generateContinuousCalendarChartData(data: CalendarHeatmapChartData, dateFormatter: DateFormatter, startOfWeek: CalendarDayOfWeek, weekendsConfig: CalendarHeatmapChartDesignOptions['weekends']): CalendarChartDataPoint[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { getSplitSeriesOptions, getContinuousSeriesOptions } from './series-options.js';
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { HighchartsOptionsInternal } from '../../../../../../../chart-options-processor/chart-options-service.js';
|
|
2
2
|
import { BuildContext } from '../../../../types.js';
|
|
3
3
|
/**
|
|
4
|
-
* Prepares the Highcharts's series options for calendar heatmap
|
|
4
|
+
* Prepares the Highcharts's series options for split calendar heatmap
|
|
5
5
|
*
|
|
6
6
|
* @param ctx - The highcharts options builder context
|
|
7
7
|
* @returns Array of series options
|
|
8
8
|
*/
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function getSplitSeriesOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['series'];
|
|
10
|
+
/**
|
|
11
|
+
* Prepares the Highcharts's series options for continuous calendar heatmap
|
|
12
|
+
*
|
|
13
|
+
* @param ctx - The highcharts options builder context
|
|
14
|
+
* @returns Array of series options
|
|
15
|
+
*/
|
|
16
|
+
export declare function getContinuousSeriesOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['series'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { HighchartsOptionsInternal } from '../../../../../chart-options-processor/chart-options-service';
|
|
3
3
|
import { ContainerSize } from '../../../../../dynamic-size-container/dynamic-size-container';
|
|
4
|
-
import { CalendarHeatmapViewType, TextStyle } from '../../../../../types';
|
|
4
|
+
import { CalendarHeatmapSubtype, CalendarHeatmapViewType, TextStyle } from '../../../../../types';
|
|
5
5
|
import { MonthData, MonthInfo } from './helpers/view-helpers.js';
|
|
6
6
|
export declare const ChartsContainer: import("@emotion/styled").StyledComponent<{
|
|
7
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
@@ -23,6 +23,7 @@ interface CalendarHeatmapChartsGridProps {
|
|
|
23
23
|
monthCharts: (HighchartsOptionsInternal | null)[];
|
|
24
24
|
availableMonths: MonthInfo[];
|
|
25
25
|
currentMonth: MonthData;
|
|
26
|
+
subtype: CalendarHeatmapSubtype;
|
|
26
27
|
viewType: CalendarHeatmapViewType;
|
|
27
28
|
size: ContainerSize;
|
|
28
29
|
monthLabels?: {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { CalendarHeatmapChartData } from '../../data.js';
|
|
2
|
-
|
|
2
|
+
import { MonthData } from './view-helpers.js';
|
|
3
|
+
export declare function prepareChartDataForMonth(chartData: CalendarHeatmapChartData, targetMonth: MonthData): CalendarHeatmapChartData;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CalendarHeatmapSubtype, CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
2
|
+
import { CalendarHeatmapChartData } from '../../data.js';
|
|
3
|
+
import { MonthInfo } from './view-helpers.js';
|
|
4
|
+
/**
|
|
5
|
+
* Generates data per chart instance based on subtype and view type
|
|
6
|
+
*
|
|
7
|
+
* @param subtype - Calendar heatmap subtype
|
|
8
|
+
* @param viewType - View type that determines how many months to display
|
|
9
|
+
* @param monthsToDisplay - Array of months to display
|
|
10
|
+
* @param chartData - Full chart data
|
|
11
|
+
* @returns Array of chart data objects, one for each chart instance
|
|
12
|
+
*/
|
|
13
|
+
export declare function getDataPerChartInstance(subtype: CalendarHeatmapSubtype, viewType: CalendarHeatmapViewType, monthsToDisplay: MonthInfo[], chartData: CalendarHeatmapChartData): CalendarHeatmapChartData[];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ContainerSize } from '../../../../../../dynamic-size-container/dynamic-size-container';
|
|
2
|
-
import { CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
2
|
+
import { CalendarHeatmapSubtype, CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
3
|
+
import { CalendarHeatmapChartData } from '../../data';
|
|
4
|
+
import { CalendarDayOfWeek } from '../../utils';
|
|
3
5
|
export interface CalendarSize extends ContainerSize {
|
|
4
6
|
cellSize: number;
|
|
5
7
|
}
|
|
6
|
-
export declare function getViewGridInfo(viewType: CalendarHeatmapViewType, size: ContainerSize): {
|
|
8
|
+
export declare function getViewGridInfo(viewType: CalendarHeatmapViewType, size: ContainerSize, subtype?: CalendarHeatmapSubtype): {
|
|
7
9
|
cols: number;
|
|
8
10
|
rows: number;
|
|
9
11
|
};
|
|
@@ -11,4 +13,15 @@ export declare function getViewGridInfo(viewType: CalendarHeatmapViewType, size:
|
|
|
11
13
|
* Calculate optimal calendar size based on available container space
|
|
12
14
|
* Ensures calendar cells are perfectly square (width = height)
|
|
13
15
|
*/
|
|
14
|
-
export declare function calculateCalendarSize(containerSize: ContainerSize, viewType: CalendarHeatmapViewType): CalendarSize;
|
|
16
|
+
export declare function calculateCalendarSize(containerSize: ContainerSize, subtype: CalendarHeatmapSubtype, viewType: CalendarHeatmapViewType): CalendarSize;
|
|
17
|
+
/**
|
|
18
|
+
* Calculates chart size for a specific chart instance based on its data
|
|
19
|
+
*
|
|
20
|
+
* @param containerSize - Available container size
|
|
21
|
+
* @param subtype - Calendar heatmap subtype
|
|
22
|
+
* @param viewType - View type that determines layout
|
|
23
|
+
* @param chartData - Chart data for this specific instance
|
|
24
|
+
* @param startOfWeek - Week start preference (CalendarDayOfWeek)
|
|
25
|
+
* @returns Calculated chart size with optimal cell dimensions
|
|
26
|
+
*/
|
|
27
|
+
export declare function calculateChartInstanceSize(containerSize: ContainerSize, subtype: CalendarHeatmapSubtype, viewType: CalendarHeatmapViewType, chartData: CalendarHeatmapChartData, startOfWeek: CalendarDayOfWeek): CalendarSize;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CalendarHeatmapViewType } from '../../../../../../types';
|
|
2
2
|
import { CalendarHeatmapChartData } from '../../data';
|
|
3
|
-
import { CalendarSize } from './sizing-helpers';
|
|
4
3
|
export interface MonthData {
|
|
5
4
|
year: number;
|
|
6
5
|
month: number;
|
|
7
6
|
}
|
|
8
7
|
export interface MonthInfo extends MonthData {
|
|
9
8
|
monthName: string;
|
|
9
|
+
shortMonthName: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Creates a Date from MonthData
|
|
@@ -21,9 +21,9 @@ export declare function convertDateToMonthData(date: Date): MonthData;
|
|
|
21
21
|
* @returns negative if a < b, positive if a > b, zero if equal
|
|
22
22
|
*/
|
|
23
23
|
export declare function compareMonthData(a: MonthData, b: MonthData): number;
|
|
24
|
-
export declare function shouldUseShortMonthNames(
|
|
25
|
-
export declare function generateAvailableMonthsFromData(chartData: CalendarHeatmapChartData,
|
|
26
|
-
export declare function getAvailableMonths(chartData: CalendarHeatmapChartData, dateFormatter: (date: Date, format: string) => string,
|
|
24
|
+
export declare function shouldUseShortMonthNames(width: number): boolean;
|
|
25
|
+
export declare function generateAvailableMonthsFromData(chartData: CalendarHeatmapChartData, dateFormatter: (date: Date, format: string) => string): MonthInfo[];
|
|
26
|
+
export declare function getAvailableMonths(chartData: CalendarHeatmapChartData, dateFormatter: (date: Date, format: string) => string, initialMonth?: MonthData, viewType?: CalendarHeatmapViewType): MonthInfo[];
|
|
27
27
|
export declare function getInitialViewIndex(availableMonths: MonthInfo[], initialDate?: Date): number;
|
|
28
28
|
export declare function getMonthsPerView(viewType: CalendarHeatmapViewType): number;
|
|
29
29
|
export declare function getGridLayout(viewType: CalendarHeatmapViewType): {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CalendarHeatmapChartDataOptionsInternal } from '../../../../../../chart-data-options/types';
|
|
2
2
|
import { HighchartsOptionsInternal } from '../../../../../../chart-options-processor/chart-options-service';
|
|
3
3
|
import { CalendarHeatmapChartDesignOptions } from '../../../../../../chart-options-processor/translations/design-options';
|
|
4
|
+
import { ContainerSize } from '../../../../../../dynamic-size-container/dynamic-size-container';
|
|
4
5
|
import { BeforeRenderHandler } from '../../../../../../props';
|
|
5
6
|
import { CalendarHeatmapChartEventProps } from '../../../../../../props.jsx';
|
|
6
|
-
import { CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
7
|
+
import { CalendarHeatmapSubtype, CalendarHeatmapViewType } from '../../../../../../types.js';
|
|
7
8
|
import { CalendarHeatmapChartData } from '../../data.js';
|
|
8
|
-
import { CalendarSize } from '../helpers/sizing-helpers.js';
|
|
9
9
|
import { MonthData, MonthInfo } from '../helpers/view-helpers.js';
|
|
10
10
|
export interface UseCalendarHeatmapChartOptionsParams {
|
|
11
11
|
chartData: CalendarHeatmapChartData;
|
|
@@ -13,8 +13,9 @@ export interface UseCalendarHeatmapChartOptionsParams {
|
|
|
13
13
|
designOptions: CalendarHeatmapChartDesignOptions;
|
|
14
14
|
availableMonths: MonthInfo[];
|
|
15
15
|
currentMonth: MonthData;
|
|
16
|
+
subtype: CalendarHeatmapSubtype;
|
|
16
17
|
viewType: CalendarHeatmapViewType;
|
|
17
|
-
|
|
18
|
+
containerSize: ContainerSize;
|
|
18
19
|
eventHandlers: Pick<CalendarHeatmapChartEventProps, 'onDataPointClick' | 'onDataPointContextMenu' | 'onDataPointsSelected'>;
|
|
19
20
|
onBeforeRender?: BeforeRenderHandler;
|
|
20
21
|
}
|
|
@@ -32,7 +33,7 @@ export interface UseCalendarHeatmapChartOptionsParams {
|
|
|
32
33
|
* @param params.availableMonths - Array of all available months
|
|
33
34
|
* @param params.currentMonth - Current month
|
|
34
35
|
* @param params.viewType - View type that determines how many months to display
|
|
35
|
-
* @param params.
|
|
36
|
+
* @param params.containerSize - Container size for calculating optimal chart dimensions
|
|
36
37
|
* @param params.eventHandlers - Event handlers for data point interactions
|
|
37
38
|
* @param params.onBeforeRender - Optional callback executed before chart rendering
|
|
38
39
|
* @returns Array of Highcharts options objects, one for each month in the current view
|
|
@@ -46,10 +47,10 @@ export interface UseCalendarHeatmapChartOptionsParams {
|
|
|
46
47
|
* availableMonths,
|
|
47
48
|
* currentMonth,
|
|
48
49
|
* viewType,
|
|
49
|
-
*
|
|
50
|
+
* containerSize,
|
|
50
51
|
* eventHandlers: { onDataPointClick: handleClick },
|
|
51
52
|
* onBeforeRender
|
|
52
53
|
* });
|
|
53
54
|
* ```
|
|
54
55
|
*/
|
|
55
|
-
export declare function useCalendarHeatmapChartOptions({ chartData, dataOptions, designOptions, availableMonths, currentMonth, viewType,
|
|
56
|
+
export declare function useCalendarHeatmapChartOptions({ chartData, dataOptions, designOptions, availableMonths, currentMonth, subtype, viewType, containerSize, eventHandlers, onBeforeRender, }: UseCalendarHeatmapChartOptionsParams): HighchartsOptionsInternal[];
|
|
@@ -30,4 +30,4 @@ export declare function getDayOfWeek(index: number): CalendarDayOfWeek;
|
|
|
30
30
|
* @param dateFormatter - Date formatter function for consistent formatting
|
|
31
31
|
* @returns Array of localized weekday abbreviations
|
|
32
32
|
*/
|
|
33
|
-
export declare function getWeekdayLabels(startOfWeek: CalendarDayOfWeek, dateFormatter: DateFormatter):
|
|
33
|
+
export declare function getWeekdayLabels(startOfWeek: CalendarDayOfWeek, dateFormatter: DateFormatter, format?: string): string[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DeepPartial } from 'ts-essentials';
|
|
1
2
|
import { ChartStyleOptions } from '../../../../../../types';
|
|
2
3
|
import { FunnelChartDesignOptions, FunnelChartStyleOptions } from '../types';
|
|
3
4
|
/**
|
|
@@ -8,10 +9,23 @@ export declare function translateStyleOptionsToDesignOptions(styleOptions: Funne
|
|
|
8
9
|
* Checks if the style options are correct for funnel charts.
|
|
9
10
|
*/
|
|
10
11
|
export declare function isCorrectStyleOptions(styleOptions: ChartStyleOptions): styleOptions is FunnelChartStyleOptions;
|
|
12
|
+
/**
|
|
13
|
+
* Gets default style options for funnel charts.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getDefaultStyleOptions(): FunnelChartStyleOptions;
|
|
16
|
+
/**
|
|
17
|
+
* Translates legacy style options (with deprecated labels property) to modern style options (with seriesLabels).
|
|
18
|
+
*
|
|
19
|
+
* @param legacyStyleOptions - The legacy style options containing the deprecated properties
|
|
20
|
+
* @returns The modern style options without deprecated properties
|
|
21
|
+
*/
|
|
22
|
+
export declare function translateLegacyStyleOptionsToModern(legacyStyleOptions?: DeepPartial<FunnelChartStyleOptions>): DeepPartial<FunnelChartStyleOptions>;
|
|
11
23
|
/**
|
|
12
24
|
* Design options translators for funnel charts.
|
|
13
25
|
*/
|
|
14
26
|
export declare const designOptionsTranslators: {
|
|
15
27
|
translateStyleOptionsToDesignOptions: typeof translateStyleOptionsToDesignOptions;
|
|
16
28
|
isCorrectStyleOptions: typeof isCorrectStyleOptions;
|
|
29
|
+
getDefaultStyleOptions: typeof getDefaultStyleOptions;
|
|
30
|
+
translateLegacyStyleOptionsToModern: typeof translateLegacyStyleOptionsToModern;
|
|
17
31
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { DeepPartial } from 'ts-essentials';
|
|
1
2
|
import { type ChartStyleOptions } from '../../../../../../types';
|
|
2
3
|
import type { TreemapChartDesignOptions, TreemapChartStyleOptions } from '../types';
|
|
3
4
|
export declare const designOptionsTranslators: {
|
|
4
5
|
translateStyleOptionsToDesignOptions: (styleOptions: TreemapChartStyleOptions) => TreemapChartDesignOptions;
|
|
6
|
+
getDefaultStyleOptions: () => TreemapChartStyleOptions;
|
|
7
|
+
translateLegacyStyleOptionsToModern: (styleOptions?: DeepPartial<TreemapChartStyleOptions>) => DeepPartial<TreemapChartStyleOptions>;
|
|
5
8
|
isCorrectStyleOptions: (styleOptions: ChartStyleOptions) => styleOptions is import('../../../../../../types').TreemapStyleOptions;
|
|
6
9
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Attribute, Measure, QueryResultData } from '@sisense/sdk-data';
|
|
3
3
|
import { QueryExecutionConfig } from '@sisense/sdk-query-client';
|
|
4
|
+
import { DeepPartial } from 'ts-essentials';
|
|
4
5
|
import { ClientApplication } from '../../app/client-application';
|
|
5
6
|
import type { ChartRendererProps } from '../../chart';
|
|
6
7
|
import { AreamapChartDataOptions, AreamapChartDataOptionsInternal, CalendarHeatmapChartDataOptions, CalendarHeatmapChartDataOptionsInternal, CartesianChartDataOptions, CartesianChartDataOptionsInternal, CategoricalChartDataOptions, CategoricalChartDataOptionsInternal, ChartDataOptionsInternal, ScattermapChartDataOptions, ScattermapChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
@@ -89,6 +90,10 @@ export interface ChartBuilder<CT extends SupportedChartType = SupportedChartType
|
|
|
89
90
|
* Returns the default style options for the current chart type.
|
|
90
91
|
*/
|
|
91
92
|
getDefaultStyleOptions?: () => TypedChartStyleOptions<CT>;
|
|
93
|
+
/**
|
|
94
|
+
* Translates legacy style options to modern style options.
|
|
95
|
+
*/
|
|
96
|
+
translateLegacyStyleOptionsToModern?: (styleOptions?: DeepPartial<TypedChartStyleOptions<CT>>) => DeepPartial<TypedChartStyleOptions<CT>>;
|
|
92
97
|
};
|
|
93
98
|
/**
|
|
94
99
|
* Chart renderer component and related utils
|
package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts
CHANGED
|
@@ -55,9 +55,6 @@ export declare function processSeries(config: SeriesProcessingConfig): {
|
|
|
55
55
|
padding?: number | undefined;
|
|
56
56
|
x?: number | undefined;
|
|
57
57
|
y?: number | undefined;
|
|
58
|
-
animation?: {
|
|
59
|
-
defer?: number | undefined;
|
|
60
|
-
} | undefined;
|
|
61
58
|
};
|
|
62
59
|
connectNulls: boolean;
|
|
63
60
|
marker: import("../../translations/marker-section").MarkerSettings;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { CartesianChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
2
|
-
import { AreaStyleOptions, BaseAxisStyleOptions, BaseStyleOptions, BoxplotStyleOptions, ChartStyleOptions, ChartType, FunnelStyleOptions, LineStyleOptions, PieStyleOptions, PolarStyleOptions, ScattermapStyleOptions, ScatterStyleOptions, StackableStyleOptions, SunburstStyleOptions, TreemapStyleOptions } from '../../types';
|
|
2
|
+
import { AreaStyleOptions, BaseAxisStyleOptions, BaseStyleOptions, BoxplotStyleOptions, ChartStyleOptions, ChartType, FunnelStyleOptions, LineStyleOptions, PieStyleOptions, PolarStyleOptions, ScattermapStyleOptions, ScatterStyleOptions, SeriesLabels, StackableStyleOptions, SunburstStyleOptions, TreemapStyleOptions } from '../../types';
|
|
3
3
|
import { AreaChartDesignOptions, BaseDesignOptionsType, BoxplotChartDesignOptions, FunnelChartDesignOptions, LineChartDesignOptions, PieChartDesignOptions, PolarChartDesignOptions, ScatterChartDesignOptions, ScattermapChartDesignOptions, StackableChartDesignOptions, SunburstChartDesignOptions, TreemapChartDesignOptions } from '../translations/design-options';
|
|
4
4
|
import { StackType } from '../translations/translations-to-highcharts';
|
|
5
5
|
import { CartesianChartType, SeriesDesignOptions } from '../translations/types';
|
|
6
6
|
export declare const DefaultStackType: StackType;
|
|
7
|
-
export declare const getCartesianChartStyle: (styleOptions: BaseStyleOptions & BaseAxisStyleOptions
|
|
7
|
+
export declare const getCartesianChartStyle: (styleOptions: BaseStyleOptions & BaseAxisStyleOptions & {
|
|
8
|
+
seriesLabels?: SeriesLabels;
|
|
9
|
+
}, shouldHaveY2Axis: boolean) => BaseDesignOptionsType;
|
|
8
10
|
export declare const getStackableChartDesignOptions: (styleOptions: AreaStyleOptions | StackableStyleOptions, dataOptions: CartesianChartDataOptionsInternal, hasY2Axis: boolean, chartType: CartesianChartType) => StackableChartDesignOptions;
|
|
9
11
|
export declare const getSeriesChartDesignOptions: (chartType: ChartType, styleOptions: ChartStyleOptions) => SeriesDesignOptions;
|
|
10
12
|
export declare const getLineChartDesignOptions: (styleOptions: LineStyleOptions, dataOptions: CartesianChartDataOptionsInternal, hasY2Axis: boolean) => LineChartDesignOptions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CalendarDayOfWeek } from '../../chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils';
|
|
2
|
-
import { CalendarHeatmapViewType, Convolution, LegendOptions, LineOptions, PieSeriesLabels, ScattermapMarkers, SeriesLabels, SunburstStyleOptions, TotalLabels, TreemapStyleOptions } from '../../types';
|
|
2
|
+
import { CalendarHeatmapSubtype, CalendarHeatmapViewType, Convolution, FunnelSeriesLabels, LegendOptions, LineOptions, PieSeriesLabels, ScattermapMarkers, SeriesLabels, SunburstStyleOptions, TotalLabels, TreemapStyleOptions } from '../../types';
|
|
3
3
|
import { Axis } from './axis-section';
|
|
4
|
-
import { FunnelDirection,
|
|
4
|
+
import { FunnelDirection, FunnelSize, FunnelType } from './funnel-plot-options';
|
|
5
5
|
import { Marker } from './marker-section';
|
|
6
6
|
import { PieType } from './pie-plot-options';
|
|
7
7
|
import { ScatterMarkerSize } from './scatter-plot-options';
|
|
@@ -54,6 +54,7 @@ export type ColumnChartDesignOptions = StackableChartDesignOptions;
|
|
|
54
54
|
export type CalendarHeatmapChartDesignOptions = BaseDesignOptionsType & {
|
|
55
55
|
width?: number;
|
|
56
56
|
height?: number;
|
|
57
|
+
subtype: CalendarHeatmapSubtype;
|
|
57
58
|
viewType: CalendarHeatmapViewType;
|
|
58
59
|
cellSize?: number;
|
|
59
60
|
startOfWeek: CalendarDayOfWeek;
|
|
@@ -92,11 +93,11 @@ export type PieChartDesignOptions = BaseDesignOptionsType & {
|
|
|
92
93
|
convolution?: Convolution;
|
|
93
94
|
seriesLabels?: PieSeriesLabels;
|
|
94
95
|
};
|
|
95
|
-
export type FunnelChartDesignOptions = BaseDesignOptionsType & {
|
|
96
|
+
export type FunnelChartDesignOptions = Omit<BaseDesignOptionsType, 'seriesLabels'> & {
|
|
96
97
|
funnelSize?: FunnelSize;
|
|
97
98
|
funnelType?: FunnelType;
|
|
98
99
|
funnelDirection?: FunnelDirection;
|
|
99
|
-
|
|
100
|
+
seriesLabels?: FunnelSeriesLabels;
|
|
100
101
|
};
|
|
101
102
|
export type TreemapChartDesignOptions = BaseDesignOptionsType & TreemapStyleOptions;
|
|
102
103
|
export type SunburstChartDesignOptions = BaseDesignOptionsType & SunburstStyleOptions;
|
package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { ChartDataOptionsInternal } from '../../chart-data-options/types';
|
|
2
|
-
import {
|
|
2
|
+
import { FunnelSeriesLabels } from '../../types';
|
|
3
3
|
import { PlotOptions } from '../chart-options-service';
|
|
4
4
|
import { FunnelChartDesignOptions } from './design-options';
|
|
5
5
|
import { DataLabelsSettings } from './value-label-section';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
showPercent: boolean;
|
|
12
|
-
showDecimals: boolean;
|
|
13
|
-
};
|
|
6
|
+
/**
|
|
7
|
+
* Default configuration for funnel chart series labels.
|
|
8
|
+
* Enables all label components (category, value, percentage) by default.
|
|
9
|
+
*/
|
|
10
|
+
export declare const DefaultFunnelSeriesLabels: FunnelSeriesLabels;
|
|
14
11
|
export declare const DefaultFunnelSize: FunnelSize;
|
|
15
12
|
export declare const funnelSizes: readonly ["wide", "regular", "narrow"];
|
|
16
13
|
/** Visual size of the lowest slice (degree of funnel narrowing from highest to lowest slices)*/
|
|
@@ -23,13 +20,14 @@ export declare const DefaultFunnelDirection: FunnelDirection;
|
|
|
23
20
|
export declare const funnelDirections: readonly ["regular", "inverted"];
|
|
24
21
|
/** Direction of Funnel chart narrowing */
|
|
25
22
|
export type FunnelDirection = (typeof funnelDirections)[number];
|
|
23
|
+
/** Funnel-specific data labels settings extending the base data labels configuration. */
|
|
24
|
+
export type FunnelDataLabelsSettings = DataLabelsSettings & {
|
|
25
|
+
funnelMinimumFontSizeToTextLabel: number;
|
|
26
|
+
};
|
|
26
27
|
export type FunnelOptions = {
|
|
27
28
|
allowPointSelect: boolean;
|
|
28
29
|
cursor: 'pointer';
|
|
29
|
-
dataLabels:
|
|
30
|
-
funnelMinimumFontSizeToTextLabel: number;
|
|
31
|
-
formatter?: () => string;
|
|
32
|
-
};
|
|
30
|
+
dataLabels: FunnelDataLabelsSettings;
|
|
33
31
|
showInLegend: boolean;
|
|
34
32
|
reversed: boolean;
|
|
35
33
|
neckWidth: string | number;
|
|
@@ -37,9 +35,6 @@ export type FunnelOptions = {
|
|
|
37
35
|
width: string | number;
|
|
38
36
|
};
|
|
39
37
|
export declare const isFunnelReversed: (direction: FunnelDirection) => boolean;
|
|
40
|
-
export declare const seriesDataLabels: (labels: FunnelLabels) => {
|
|
41
|
-
enabled: boolean;
|
|
42
|
-
};
|
|
43
38
|
export type RenderTo = {
|
|
44
39
|
clientWidth: number;
|
|
45
40
|
clientHeight: number;
|
|
@@ -51,4 +46,4 @@ export declare const DEFAULT_SHIFT = 50;
|
|
|
51
46
|
export declare const funnelWidthPercentage: (renderTo: RenderTo | null) => number;
|
|
52
47
|
export declare const funnelNeckWidth: (widthPercentage: number, funnelSize: FunnelSize) => number;
|
|
53
48
|
export declare const funnelNeckHeight: (type: FunnelType) => number;
|
|
54
|
-
export declare const getFunnelPlotOptions: (funnelDesignOptions: FunnelChartDesignOptions, chartDataOptions: ChartDataOptionsInternal
|
|
49
|
+
export declare const getFunnelPlotOptions: (funnelDesignOptions: FunnelChartDesignOptions, chartDataOptions: ChartDataOptionsInternal) => PlotOptions;
|
package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Highcharts, { PointLabelObject } from '@sisense/sisense-charts';
|
|
2
2
|
import { CategoricalChartDataOptionsInternal } from '../../../chart-data-options/types';
|
|
3
|
-
import { CompleteThemeSettings } from '../../../types';
|
|
3
|
+
import { CompleteThemeSettings, TreemapSeriesLabels } from '../../../types';
|
|
4
4
|
import { TreemapChartDesignOptions } from '../design-options';
|
|
5
5
|
export declare function prepareTreemapLevels(dataOptions: CategoricalChartDataOptionsInternal, chartDesignOptions: TreemapChartDesignOptions, themeSettings?: CompleteThemeSettings): Highcharts.PlotTreegraphLevelsOptions[];
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function prepareTreemapLabelFormatter(level: number, seriesLabels: TreemapSeriesLabels): (this: PointLabelObject) => string;
|
|
@@ -97,6 +97,17 @@ export declare const distributeEqualWidthInRow: (layout: WidgetsPanelLayout, col
|
|
|
97
97
|
* @internal
|
|
98
98
|
*/
|
|
99
99
|
export declare function updateLayoutAfterDragAndDrop(layout: WidgetsPanelLayout, dragData: EditableLayoutDragData, dropData: EditableLayoutDropData): WidgetsPanelColumnLayout;
|
|
100
|
+
/**
|
|
101
|
+
* Updates the layout based on column change.
|
|
102
|
+
*
|
|
103
|
+
* @param layout - The current layout to modify
|
|
104
|
+
* @param columnCount - The number of columns to update
|
|
105
|
+
*
|
|
106
|
+
* @returns A new layout with the columns updated
|
|
107
|
+
*
|
|
108
|
+
* @internal
|
|
109
|
+
*/
|
|
110
|
+
export declare function updateColumnsCountInLayout(layout: WidgetsPanelLayout, columnCount: number): WidgetsPanelColumnLayout;
|
|
100
111
|
export declare function getRowHeight(row: WidgetsPanelRow, widgets: WidgetProps[]): number;
|
|
101
112
|
export declare function getRowMaxHeight(row: WidgetsPanelRow): number;
|
|
102
113
|
export declare function getRowMinHeight(row: WidgetsPanelRow): number;
|
|
@@ -1,35 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Filter, FilterRelations } from '@sisense/sdk-data';
|
|
3
2
|
import { DashboardProps } from '../dashboard/types';
|
|
4
|
-
import { WidgetsPanelLayout } from '../models';
|
|
5
|
-
export declare enum DashboardChangeType {
|
|
6
|
-
/** Dashboard filters have been updated */
|
|
7
|
-
FILTERS_UPDATE = "FILTERS.UPDATE",
|
|
8
|
-
/** Filters panel collapsed state changed */
|
|
9
|
-
UI_FILTERS_PANEL_COLLAPSE = "UI.FILTERS.PANEL.COLLAPSE",
|
|
10
|
-
/** Widgets panel layout updated */
|
|
11
|
-
WIDGETS_PANEL_LAYOUT_UPDATE = "WIDGETS_PANEL_LAYOUT.UPDATE",
|
|
12
|
-
/** Edit mode isEditing changed */
|
|
13
|
-
WIDGETS_PANEL_LAYOUT_IS_EDITING_CHANGE = "WIDGETS_PANEL.EDIT_MODE.IS_EDITING.CHANGE",
|
|
14
|
-
/** Widgets deleted from the dashboard */
|
|
15
|
-
WIDGETS_DELETE = "WIDGETS.DELETE"
|
|
16
|
-
}
|
|
17
|
-
export type DashboardChangeAction = {
|
|
18
|
-
type: DashboardChangeType.FILTERS_UPDATE;
|
|
19
|
-
payload: Filter[] | FilterRelations;
|
|
20
|
-
} | {
|
|
21
|
-
type: DashboardChangeType.UI_FILTERS_PANEL_COLLAPSE;
|
|
22
|
-
payload: boolean;
|
|
23
|
-
} | {
|
|
24
|
-
type: DashboardChangeType.WIDGETS_PANEL_LAYOUT_UPDATE;
|
|
25
|
-
payload: WidgetsPanelLayout;
|
|
26
|
-
} | {
|
|
27
|
-
type: DashboardChangeType.WIDGETS_PANEL_LAYOUT_IS_EDITING_CHANGE;
|
|
28
|
-
payload: boolean;
|
|
29
|
-
} | {
|
|
30
|
-
type: DashboardChangeType.WIDGETS_DELETE;
|
|
31
|
-
payload: string[];
|
|
32
|
-
};
|
|
33
3
|
/**
|
|
34
4
|
* React component that renders a dashboard whose elements are customizable. It includes internal logic of applying common filters to widgets.
|
|
35
5
|
*
|