@sisense/sdk-ui 2.12.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 +19 -19
- package/dist/ai.js +623 -613
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +252 -217
- package/dist/analytics-composer.cjs +18 -18
- package/dist/analytics-composer.js +18 -9
- package/dist/{derive-chart-family-mugR7Ty1.cjs → derive-chart-family-DJUpWKOP.cjs} +69 -64
- package/dist/{derive-chart-family-YIDiS_iY.js → derive-chart-family-D_bylSQy.js} +8340 -8069
- package/dist/{dimensions-DmRfLrT-.js → dimensions-CTUJhW-M.js} +1 -1
- package/dist/{dimensions-CyzZ0dbM.cjs → dimensions-CdNGgk9I.cjs} +1 -1
- package/dist/execute-query-CNt566O5.cjs +1 -0
- package/dist/{execute-query-BCEeyd9s.js → execute-query-DyjkDYHG.js} +1494 -1431
- package/dist/index.cjs +24 -24
- package/dist/index.js +7449 -7168
- package/dist/index.umd.js +351 -349
- package/dist/packages/sdk-ui/src/ai/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-nlq-result.d.ts +22 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +3 -2
- package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +49 -0
- 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/pie-chart/design-options/index.d.ts +2 -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 +9 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +12 -15
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +17 -17
- package/dist/packages/sdk-ui/src/chart-options-processor/stack-labels.d.ts +18 -22
- 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/axis-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +7 -6
- 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/legend-section.d.ts +3 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-labels.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -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/components/toolbar/edit-toggle.d.ts +25 -0
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +2 -2
- 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/hooks/use-tabber.d.ts +25 -10
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +83 -11
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +1 -1
- package/dist/packages/sdk-ui/src/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +15 -3
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +3 -2
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +1 -10
- 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/models/widget/widget-model-translator/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator/tabber.d.ts +21 -0
- package/dist/packages/sdk-ui/src/models/widget/{widget-model-translator.d.ts → widget-model-translator/widget-model-translator.d.ts} +15 -15
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +6 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +7 -1
- package/dist/packages/sdk-ui/src/props.d.ts +8 -20
- 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 +157 -107
- package/dist/packages/sdk-ui/src/utils/gradient.d.ts +396 -0
- package/dist/packages/sdk-ui/src/utils/omit-undefined.d.ts +21 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options/tabber.d.ts +23 -0
- package/dist/packages/sdk-ui/src/widget-by-id/{translate-widget-style-options.d.ts → translate-widget-style-options/translate-widget-style-options.d.ts} +4 -4
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +38 -3
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +30 -2
- package/dist/packages/sdk-ui/src/widgets/tabber/tabber-buttons-widget.d.ts +8 -0
- package/dist/packages/sdk-ui/src/widgets/tabber/types.d.ts +110 -0
- package/dist/{types-CevYjGN4.cjs → types-D1qM-ltg.cjs} +1 -1
- package/dist/{types-DVAfvbpR.js → types-DglXXR-Q.js} +1 -1
- package/dist/{use-common-filters-DIF4c8WP.js → use-common-filters-BGrn7zoW.js} +22269 -21424
- package/dist/use-common-filters-DxzCHhgF.cjs +846 -0
- package/dist/{widget-composer-C0lZpwN6.cjs → widget-composer-C24YJEek.cjs} +6 -10
- package/dist/{widget-composer-BB5Jrgae.js → widget-composer-lBv40CFf.js} +132 -135
- package/package.json +7 -7
- package/dist/execute-query-Xt9drS3G.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/packages/sdk-ui/src/widgets/tabber-widget.d.ts +0 -41
- package/dist/use-common-filters-BXdnB4GI.cjs +0 -845
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { default as AiContextProvider, type AiContextProviderProps } from './ai-context-provider';
|
|
2
2
|
export { type ChatConfig } from './chat-config';
|
|
3
3
|
export { useGetNlgInsights, type UseGetNlgInsightsParams, type UseGetNlgInsightsState, } from './use-get-nlg-insights';
|
|
4
|
-
export { useGetNlqResult, prepareGetNlqResultPayload, type UseGetNlqResultParams, type UseGetNlqResultState, type GetNlqResultParams, } from './use-get-nlq-result';
|
|
4
|
+
export { useGetNlqResult, prepareGetNlqResultPayload, executeGetNlqResult, type ExecuteGetNlqResult, type UseGetNlqResultParams, type UseGetNlqResultState, type GetNlqResultParams, } from './use-get-nlq-result';
|
|
5
5
|
export { useGetQueryRecommendations, type UseGetQueryRecommendationsParams, type GetQueryRecommendationsParams, type UseGetQueryRecommendationsState, DEFAULT_RECOMMENDATIONS_COUNT, } from './use-get-query-recommendations';
|
|
6
6
|
export { useChatSession, type UseChatSessionResult } from './use-chat-session';
|
|
7
7
|
export { useLastNlqResponse } from './use-last-nlq-response';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DataSource } from '@sisense/sdk-data';
|
|
2
2
|
import { HookEnableParam } from '../common/hooks/types';
|
|
3
3
|
import { WidgetProps } from '../props';
|
|
4
|
-
import {
|
|
4
|
+
import { ChatRestApi } from './api/chat-rest-api';
|
|
5
|
+
import { GetNlqResultRequest, NlqResult, NlqResultChartType } from './api/types';
|
|
5
6
|
export interface GetNlqResultParams {
|
|
6
7
|
/** Data source for queries to run against */
|
|
7
8
|
dataSource: DataSource;
|
|
@@ -18,11 +19,31 @@ export interface GetNlqResultParams {
|
|
|
18
19
|
*/
|
|
19
20
|
enableAxisTitlesInWidgetProps?: boolean;
|
|
20
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Result type for NLQ request execution
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export interface ExecuteGetNlqResult {
|
|
28
|
+
/** Raw NLQ response from API for additional processing */
|
|
29
|
+
nlqResult: NlqResult | undefined;
|
|
30
|
+
/** Processed widget props ready for rendering */
|
|
31
|
+
widgetProps: WidgetProps | undefined;
|
|
32
|
+
}
|
|
21
33
|
/** @internal */
|
|
22
34
|
export declare function prepareGetNlqResultPayload(params: GetNlqResultParams): {
|
|
23
35
|
contextTitle: string;
|
|
24
36
|
request: GetNlqResultRequest;
|
|
25
37
|
};
|
|
38
|
+
/**
|
|
39
|
+
* Executes a natural language query request and returns processed widget props along with the raw response.
|
|
40
|
+
*
|
|
41
|
+
* @param params - NLQ query parameters
|
|
42
|
+
* @param api - Chat REST API instance
|
|
43
|
+
* @returns Promise resolving to processed widget props and raw response
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
export declare function executeGetNlqResult(params: GetNlqResultParams, api: ChatRestApi): Promise<ExecuteGetNlqResult>;
|
|
26
47
|
/**
|
|
27
48
|
* Parameters for {@link useGetNlqResult} hook.
|
|
28
49
|
*/
|
|
@@ -66,9 +66,8 @@ export type AppConfig = {
|
|
|
66
66
|
enabled?: boolean;
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
|
-
* Configuration of the tabber
|
|
69
|
+
* Configuration of the tabber widgets feature
|
|
70
70
|
*
|
|
71
|
-
* Set the `tabberConfig.enabled` property to `true` to enable the tabber widget support. Otherwise, the tabber widget will be treated as 'unknown custom widget type'.
|
|
72
71
|
* Only tabber widgets that are configured using the Fusion UI as documented [here](https://docs.sisense.com/main/SisenseLinux/tabber.htm#Creating) are supported.
|
|
73
72
|
*/
|
|
74
73
|
tabberConfig?: {
|
|
@@ -76,6 +75,8 @@ export type AppConfig = {
|
|
|
76
75
|
* Whether to enable tabber widget support
|
|
77
76
|
*
|
|
78
77
|
* If not specified, the default value is `true`
|
|
78
|
+
*
|
|
79
|
+
* @deprecated Tabber widgets are now supported by default and this property is no longer needed.
|
|
79
80
|
*/
|
|
80
81
|
enabled?: boolean;
|
|
81
82
|
};
|
|
@@ -9,6 +9,50 @@ export type AppSettings = Required<ConfigurableAppSettings> & ServerSettings;
|
|
|
9
9
|
* Application settings that can be overridden by the user
|
|
10
10
|
*/
|
|
11
11
|
type ConfigurableAppSettings = AppConfig;
|
|
12
|
+
/**
|
|
13
|
+
* User role permissions
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
type RoleManifest = {
|
|
17
|
+
dashboards?: {
|
|
18
|
+
create: boolean;
|
|
19
|
+
delete: boolean;
|
|
20
|
+
move: boolean;
|
|
21
|
+
rename: boolean;
|
|
22
|
+
duplicate: boolean;
|
|
23
|
+
change_owner: boolean;
|
|
24
|
+
toggle_edit_mode: boolean;
|
|
25
|
+
edit_layout: boolean;
|
|
26
|
+
edit_script: boolean;
|
|
27
|
+
export_dash: boolean;
|
|
28
|
+
export_jpeg: boolean;
|
|
29
|
+
export_image: boolean;
|
|
30
|
+
export_pdf: boolean;
|
|
31
|
+
share: boolean;
|
|
32
|
+
restore: boolean;
|
|
33
|
+
copy_to_server: boolean;
|
|
34
|
+
import: boolean;
|
|
35
|
+
select_palette: boolean;
|
|
36
|
+
replace_datasource: boolean;
|
|
37
|
+
undo_import_dash: boolean;
|
|
38
|
+
toggleDataExploration: boolean;
|
|
39
|
+
filters: {
|
|
40
|
+
create: boolean;
|
|
41
|
+
delete: boolean;
|
|
42
|
+
save: boolean;
|
|
43
|
+
on_off: boolean;
|
|
44
|
+
toggle_expansion: boolean;
|
|
45
|
+
modify: boolean;
|
|
46
|
+
reorder: boolean;
|
|
47
|
+
modify_type: boolean;
|
|
48
|
+
toggle_auto_update: boolean;
|
|
49
|
+
set_defaults: boolean;
|
|
50
|
+
advanced: boolean;
|
|
51
|
+
use_starred: boolean;
|
|
52
|
+
modify_filter_relationship: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
12
56
|
/**
|
|
13
57
|
* Fusion platform settings
|
|
14
58
|
*/
|
|
@@ -21,6 +65,11 @@ type ServerSettings = {
|
|
|
21
65
|
tenant: {
|
|
22
66
|
name: string;
|
|
23
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* User role permissions
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
permissions: RoleManifest;
|
|
24
73
|
};
|
|
25
74
|
};
|
|
26
75
|
/**
|
|
@@ -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
|
};
|
|
@@ -8,10 +8,12 @@ export declare function translateStyleOptionsToDesignOptions(styleOptions: PieCh
|
|
|
8
8
|
* Checks if the style options are correct for pie charts.
|
|
9
9
|
*/
|
|
10
10
|
export declare function isCorrectStyleOptions(styleOptions: ChartStyleOptions): styleOptions is PieChartStyleOptions;
|
|
11
|
+
export declare function getDefaultStyleOptions(): PieChartStyleOptions;
|
|
11
12
|
/**
|
|
12
13
|
* Design options translators for pie charts.
|
|
13
14
|
*/
|
|
14
15
|
export declare const designOptionsTranslators: {
|
|
15
16
|
translateStyleOptionsToDesignOptions: typeof translateStyleOptionsToDesignOptions;
|
|
16
17
|
isCorrectStyleOptions: typeof isCorrectStyleOptions;
|
|
18
|
+
getDefaultStyleOptions: typeof getDefaultStyleOptions;
|
|
17
19
|
};
|
|
@@ -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';
|
|
@@ -85,6 +86,14 @@ export interface ChartBuilder<CT extends SupportedChartType = SupportedChartType
|
|
|
85
86
|
* Checks if the style options are correct for the current chart type.
|
|
86
87
|
*/
|
|
87
88
|
isCorrectStyleOptions: (styleOptions: ChartStyleOptions) => styleOptions is TypedChartStyleOptions<CT>;
|
|
89
|
+
/**
|
|
90
|
+
* Returns the default style options for the current chart type.
|
|
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>>;
|
|
88
97
|
};
|
|
89
98
|
/**
|
|
90
99
|
* Chart renderer component and related utils
|
package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts
CHANGED
|
@@ -42,22 +42,19 @@ export declare function processSeries(config: SeriesProcessingConfig): {
|
|
|
42
42
|
lineWidth?: number | undefined;
|
|
43
43
|
dataLabels: {
|
|
44
44
|
formatter: (this: import("../../tooltip").HighchartsDataPointContext) => string;
|
|
45
|
-
animation?: {
|
|
46
|
-
defer: number;
|
|
47
|
-
} | undefined;
|
|
48
|
-
y?: number | undefined;
|
|
49
|
-
x?: number | undefined;
|
|
50
|
-
padding?: number | undefined;
|
|
51
|
-
borderWidth?: number | undefined;
|
|
52
|
-
borderRadius?: number | undefined;
|
|
53
|
-
borderColor?: string | undefined;
|
|
54
|
-
backgroundColor?: string | undefined;
|
|
55
|
-
style?: import("../../../types").SeriesLabelsTextStyle | undefined;
|
|
56
|
-
verticalAlign?: "top" | "middle" | "bottom" | undefined;
|
|
57
|
-
align?: "center" | "left" | "right" | undefined;
|
|
58
|
-
inside?: boolean | undefined;
|
|
59
|
-
rotation?: number | undefined;
|
|
60
45
|
enabled: boolean;
|
|
46
|
+
rotation?: number | undefined;
|
|
47
|
+
inside?: boolean | undefined;
|
|
48
|
+
align?: "center" | "left" | "right" | undefined;
|
|
49
|
+
verticalAlign?: "top" | "middle" | "bottom" | undefined;
|
|
50
|
+
style?: import("../../translations/types").TextStyle | undefined;
|
|
51
|
+
backgroundColor?: string | import("../../..").HighchartsGradientColorObject | undefined;
|
|
52
|
+
borderColor?: string | import("../../..").HighchartsGradientColorObject | undefined;
|
|
53
|
+
borderRadius?: number | undefined;
|
|
54
|
+
borderWidth?: number | undefined;
|
|
55
|
+
padding?: number | undefined;
|
|
56
|
+
x?: number | undefined;
|
|
57
|
+
y?: number | undefined;
|
|
61
58
|
};
|
|
62
59
|
connectNulls: boolean;
|
|
63
60
|
marker: import("../../translations/marker-section").MarkerSettings;
|