@sisense/sdk-ui 2.13.0 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/ai.cjs +2 -2
  2. package/dist/ai.js +6 -6
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +4 -4
  5. package/dist/analytics-composer.cjs +1 -1
  6. package/dist/analytics-composer.js +6 -6
  7. package/dist/{derive-chart-family-Ca1NT5US.cjs → derive-chart-family-0J_WPLDy.cjs} +72 -48
  8. package/dist/{derive-chart-family-BcASqlOf.js → derive-chart-family-DHOhho50.js} +10577 -10434
  9. package/dist/{dimensions-DOxD1XtL.js → dimensions-Biz7anQc.js} +1 -1
  10. package/dist/{dimensions-DCT9XInO.cjs → dimensions-CtINdhqK.cjs} +1 -1
  11. package/dist/{execute-query-JhI9RXe_.js → execute-query-D1JOjJ8n.js} +1199 -1165
  12. package/dist/execute-query-k_ytd_Rf.cjs +1 -0
  13. package/dist/index.cjs +24 -24
  14. package/dist/index.js +6319 -6193
  15. package/dist/index.umd.js +362 -337
  16. package/dist/packages/sdk-ui/src/app/client-application.d.ts +23 -0
  17. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +12 -4
  18. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +25 -1
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +3 -3
  25. 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
  26. 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
  27. 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
  28. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +2 -1
  29. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +2 -1
  30. 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
  31. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +16 -3
  32. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +4 -4
  33. 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
  34. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +1 -1
  35. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +0 -4
  36. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +14 -0
  37. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +4 -0
  38. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +0 -4
  39. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +3 -0
  40. package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +3 -0
  41. package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +5 -4
  42. package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +0 -3
  43. package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +2 -2
  44. package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +0 -3
  45. package/dist/packages/sdk-ui/src/chart-options-processor/style-to-design-options-translator/translate-to-highcharts-options.d.ts +4 -2
  46. package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +5 -4
  47. package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +12 -17
  48. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-levels.d.ts +28 -2
  49. package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +28 -2
  50. package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
  51. package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -2
  52. package/dist/packages/sdk-ui/src/common/components/menu/context-menu/context-menu.d.ts +1 -0
  53. package/dist/packages/sdk-ui/src/common/icons/alert-icon.d.ts +2 -0
  54. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +11 -0
  55. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +0 -30
  56. package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +3 -2
  57. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
  58. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +76 -4
  59. package/dist/packages/sdk-ui/src/dynamic-size-container/default-size.d.ts +20 -5
  60. package/dist/packages/sdk-ui/src/highcharts-renderer.d.ts +13 -0
  61. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +5 -5
  62. package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +7 -1
  63. package/dist/packages/sdk-ui/src/query-execution/index.d.ts +1 -1
  64. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +8 -0
  65. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +16 -0
  66. package/dist/packages/sdk-ui/src/types.d.ts +196 -53
  67. package/dist/packages/sdk-ui/src/utils/gradient.d.ts +37 -0
  68. package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +2 -0
  69. package/dist/{types-Cl0_Tfey.cjs → types-B8jkBXCe.cjs} +1 -1
  70. package/dist/{types-CnFd03Ga.js → types-DZhBEm3K.js} +1 -1
  71. package/dist/{use-common-filters-qFWk1Ia5.js → use-common-filters-8MsC7-0N.js} +26731 -25836
  72. package/dist/use-common-filters-DlP4xqST.cjs +846 -0
  73. package/dist/{widget-composer-ovIwmgin.js → widget-composer-D-ktDgUE.js} +131 -130
  74. package/dist/{widget-composer-C7ZAcFHK.cjs → widget-composer-DBwcb3ao.cjs} +5 -5
  75. package/package.json +7 -7
  76. package/dist/execute-query-CvH_36GC.cjs +0 -1
  77. 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
  78. 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
  79. package/dist/packages/sdk-ui/src/highcharts-memorized.d.ts +0 -7
  80. package/dist/use-common-filters-WTVrWfsY.cjs +0 -845
@@ -145,6 +145,29 @@ export type AppConfig = {
145
145
  */
146
146
  enabled?: boolean;
147
147
  };
148
+ /**
149
+ * Global configuration for some specific aspects of data visualizations.
150
+ */
151
+ chartConfig?: {
152
+ /** `Table` and `PivotTable` configuration */
153
+ tabular?: {
154
+ /** Configuration for HTML content in `Table` and `PivotTable` */
155
+ htmlContent?: {
156
+ /**
157
+ * If true, the contents of table and pivot table cells are rendered as HTML instead of text.
158
+ *
159
+ * **Note**: The {@link StyledColumn.isHtml} property of columns in `dataOptions` are of higher precedence, and will therefore override this setting.
160
+ * @default true
161
+ * */
162
+ enabled?: boolean;
163
+ /**
164
+ * Enables sanitization of HTML content before rendering to prevent XSS attacks.
165
+ * @default true
166
+ * */
167
+ sanitizeContents?: boolean;
168
+ };
169
+ };
170
+ };
148
171
  };
149
172
  /**
150
173
  * Stands for a Sisense Client Application which connects to a Sisense Environment
@@ -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
- /** Minimum сhart size threshold for using short month names */
27
- readonly SHORT_MONTH_NAME_CHART_SIZE_THRESHOLD: 120;
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 SHOW_CELL_LABEL_CHART_SIZE_THRESHOLD: 120;
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
- export { calendarHeatmapHighchartsOptionsBuilder } from './highcharts-options-builder.js';
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,2 @@
1
+ export { getContinuousAxesOptions } from './continuous-axes-options.js';
2
+ export { getSplitAxesOptions } from './split-axes-options.js';
@@ -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 getChartOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['chart'];
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 { getAxesOptions } from './axes-options.js';
2
- export { getChartOptions } from './chart-options.js';
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 { getSeriesOptions } from './series-options';
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 an entire month with provided data values
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 generateCalendarChartData(data: CalendarHeatmapChartData, dateFormatter: DateFormatter, startOfWeek: CalendarDayOfWeek, weekendsConfig: CalendarHeatmapChartDesignOptions['weekends']): CalendarChartDataPoint[];
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 { getSeriesOptions } from './series-options.js';
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 getSeriesOptions(ctx: BuildContext<'calendar-heatmap'>): HighchartsOptionsInternal['series'];
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
- export declare function filterChartDataForMonth(chartData: CalendarHeatmapChartData, targetYear: number, targetMonth: number): CalendarHeatmapChartData;
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(calendarSize: CalendarSize): boolean;
25
- export declare function generateAvailableMonthsFromData(chartData: CalendarHeatmapChartData, monthDateFormatter: (date: Date) => string): MonthInfo[];
26
- export declare function getAvailableMonths(chartData: CalendarHeatmapChartData, dateFormatter: (date: Date, format: string) => string, useShortMonthNames?: boolean, initialMonth?: MonthData, viewType?: CalendarHeatmapViewType): MonthInfo[];
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
- chartSize: CalendarSize;
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.chartSizes - Array of size configurations for each chart
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
- * chartSize,
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, chartSize, eventHandlers, onBeforeRender, }: UseCalendarHeatmapChartOptionsParams): HighchartsOptionsInternal[];
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): readonly string[];
33
+ export declare function getWeekdayLabels(startOfWeek: CalendarDayOfWeek, dateFormatter: DateFormatter, format?: string): string[];
@@ -17,10 +17,6 @@ export declare const dataOptionsTranslators: {
17
17
  * Gets measures from funnel chart data options.
18
18
  */
19
19
  getMeasures: (internalDataOptions: FunnelChartDataOptionsInternal) => Measure[];
20
- /**
21
- * Validates and cleans funnel chart data options.
22
- */
23
- validateAndCleanDataOptions: (dataOptions: FunnelChartDataOptions) => FunnelChartDataOptions;
24
20
  /**
25
21
  * Type guard to check if data options are funnel chart data options.
26
22
  */
@@ -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
  };
@@ -20,3 +20,7 @@ export declare function isCategoricalChartDataOptions(dataOptions: ChartDataOpti
20
20
  * Type guard to check if internal data options are categorical chart data options.
21
21
  */
22
22
  export declare function isCategoricalChartDataOptionsInternal(dataOptions: ChartDataOptionsInternal): dataOptions is CategoricalChartDataOptionsInternal;
23
+ export declare function withDataOptionsLimitations({ maxCategories, maxValues, }: {
24
+ maxCategories: number;
25
+ maxValues: number;
26
+ }): (dataOptions: CategoricalChartDataOptions) => CategoricalChartDataOptions;
@@ -17,10 +17,6 @@ export declare const dataOptionsTranslators: {
17
17
  * Gets measures from pie chart data options.
18
18
  */
19
19
  getMeasures: (internalDataOptions: PieChartDataOptionsInternal) => Measure[];
20
- /**
21
- * Validates and cleans pie chart data options.
22
- */
23
- validateAndCleanDataOptions: (dataOptions: PieChartDataOptions) => PieChartDataOptions;
24
20
  /**
25
21
  * Type guard to check if data options are pie chart data options.
26
22
  */
@@ -1,6 +1,9 @@
1
+ import { DeepPartial } from 'ts-essentials';
1
2
  import { type ChartStyleOptions } from '../../../../../../types';
2
3
  import type { SunburstChartDesignOptions, SunburstChartStyleOptions } from '../types';
3
4
  export declare const designOptionsTranslators: {
4
5
  translateStyleOptionsToDesignOptions: (styleOptions: SunburstChartStyleOptions) => SunburstChartDesignOptions;
6
+ getDefaultStyleOptions: () => SunburstChartStyleOptions;
7
+ translateLegacyStyleOptionsToModern: (styleOptions?: DeepPartial<SunburstChartStyleOptions>) => DeepPartial<SunburstChartStyleOptions>;
5
8
  isCorrectStyleOptions: (styleOptions: ChartStyleOptions) => styleOptions is import('../../../../../../types').SunburstStyleOptions;
6
9
  };
@@ -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';
@@ -47,10 +48,6 @@ export interface ChartBuilder<CT extends SupportedChartType = SupportedChartType
47
48
  * Returns the measures from the internal data options.
48
49
  */
49
50
  getMeasures: (internalDataOptions: TypedDataOptionsInternal<CT>) => Measure[];
50
- /**
51
- * Validates and cleans the data options if needed.
52
- */
53
- validateAndCleanDataOptions?: (dataOptions: TypedChartDataOptions<CT>) => TypedChartDataOptions<CT>;
54
51
  /**
55
52
  * Checks if the data options are correct for the current chart type.
56
53
  */
@@ -89,6 +86,10 @@ export interface ChartBuilder<CT extends SupportedChartType = SupportedChartType
89
86
  * Returns the default style options for the current chart type.
90
87
  */
91
88
  getDefaultStyleOptions?: () => TypedChartStyleOptions<CT>;
89
+ /**
90
+ * Translates legacy style options to modern style options.
91
+ */
92
+ translateLegacyStyleOptionsToModern?: (styleOptions?: DeepPartial<TypedChartStyleOptions<CT>>) => DeepPartial<TypedChartStyleOptions<CT>>;
92
93
  };
93
94
  /**
94
95
  * Chart renderer component and related utils
@@ -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;
@@ -3,7 +3,7 @@ import { CategoricalChartDataOptionsInternal } from '../../chart-data-options/ty
3
3
  import { CategoricalChartData } from '../../chart-data/types';
4
4
  import { CompleteThemeSettings, OptionsWithAlerts } from '../../types';
5
5
  import { HighchartsOptionsInternal } from '../chart-options-service';
6
- import { TreemapChartDesignOptions } from '../translations/design-options';
6
+ import { SunburstChartDesignOptions } from '../translations/design-options';
7
7
  /**
8
8
  * Convert intermediate chart data, data options, and design options
9
9
  * into pure highcharts config data for sunburst charts.
@@ -14,4 +14,4 @@ import { TreemapChartDesignOptions } from '../translations/design-options';
14
14
  * @param translate - translation function
15
15
  * @param themeSettings - theme settings
16
16
  */
17
- export declare const getSunburstChartOptions: (chartData: CategoricalChartData, chartDesignOptions: TreemapChartDesignOptions, dataOptions: CategoricalChartDataOptionsInternal, translate: TFunction, themeSettings?: CompleteThemeSettings) => OptionsWithAlerts<HighchartsOptionsInternal>;
17
+ export declare const getSunburstChartOptions: (chartData: CategoricalChartData, chartDesignOptions: SunburstChartDesignOptions, dataOptions: CategoricalChartDataOptionsInternal, translate: TFunction, themeSettings?: CompleteThemeSettings) => OptionsWithAlerts<HighchartsOptionsInternal>;
@@ -14,9 +14,6 @@ type DataLabelsOptions = {
14
14
  padding?: number;
15
15
  x?: number;
16
16
  y?: number;
17
- animation?: {
18
- defer?: number;
19
- };
20
17
  };
21
18
  export declare const prepareDataLabelsOptions: (seriesLabels?: SeriesLabels) => DataLabelsOptions;
22
19
  export {};
@@ -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, shouldHaveY2Axis: boolean) => BaseDesignOptionsType;
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, FunnelLabels, FunnelSize, FunnelType } from './funnel-plot-options';
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
- funnelLabels?: FunnelLabels;
100
+ seriesLabels?: FunnelSeriesLabels;
100
101
  };
101
102
  export type TreemapChartDesignOptions = BaseDesignOptionsType & TreemapStyleOptions;
102
103
  export type SunburstChartDesignOptions = BaseDesignOptionsType & SunburstStyleOptions;