@sisense/sdk-ui 1.21.0 → 1.22.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 (66) hide show
  1. package/dist/ai.cjs +48 -48
  2. package/dist/ai.js +793 -764
  3. package/dist/analytics-composer.cjs +18 -18
  4. package/dist/analytics-composer.js +595 -595
  5. package/dist/{get-widget-options-NhNoIBS9.js → get-widget-options-DTIulxC2.js} +5993 -5761
  6. package/dist/{get-widget-options-BmZF5Ztf.cjs → get-widget-options-DixoCEhn.cjs} +76 -76
  7. package/dist/index.cjs +71 -71
  8. package/dist/index.js +8097 -7730
  9. package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
  10. package/dist/packages/sdk-ui/src/api/rest-api.d.ts +4 -0
  11. package/dist/packages/sdk-ui/src/app/client-application.d.ts +57 -13
  12. package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +5 -0
  13. package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +5 -4
  14. package/dist/packages/sdk-ui/src/chart/chart.d.ts +1 -0
  15. package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
  16. package/dist/packages/sdk-ui/src/common/hooks/use-fetch.d.ts +1 -1
  17. package/dist/packages/sdk-ui/src/common/hooks/use-synced-state.d.ts +19 -0
  18. package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +9 -1
  19. package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +4 -2
  20. package/dist/packages/sdk-ui/src/dashboard/dashboard-by-id.d.ts +1 -2
  21. package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +86 -9
  22. package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +9 -1
  23. package/dist/packages/sdk-ui/src/dashboard/index.d.ts +2 -1
  24. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +18 -0
  25. package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +30 -0
  26. package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +40 -0
  27. package/dist/packages/sdk-ui/src/dashboard-widget/dashboard-widget.d.ts +2 -2
  28. package/dist/packages/sdk-ui/src/dashboard-widget/translate-widget-data-options.d.ts +12 -2
  29. package/dist/packages/sdk-ui/src/dashboard-widget/utils.d.ts +1 -0
  30. package/dist/packages/sdk-ui/src/decorators/hook-decorators/with-tracking.d.ts +1 -0
  31. package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +2 -1
  32. package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -2
  33. package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +2 -2
  35. package/dist/packages/sdk-ui/src/index.d.ts +16 -6
  36. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +2 -2
  37. package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +1 -1
  38. package/dist/packages/sdk-ui/src/models/dashboard/index.d.ts +2 -0
  39. package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +11 -0
  40. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +22 -0
  41. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +63 -0
  42. package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +38 -0
  43. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +1 -2
  44. package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +1 -1
  45. package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +2 -2
  46. package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +2 -2
  47. package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +18 -0
  48. package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -1
  49. package/dist/packages/sdk-ui/src/props.d.ts +39 -20
  50. package/dist/packages/sdk-ui/src/query-execution/execute-query-by-widget-id.d.ts +1 -1
  51. package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +1 -1
  52. package/dist/packages/sdk-ui/src/translation/custom-translations-loader.d.ts +10 -0
  53. package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +97 -0
  54. package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +194 -0
  55. package/dist/packages/sdk-ui/src/types.d.ts +24 -3
  56. package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +7 -0
  57. package/dist/packages/sdk-ui/src/widgets/common/{use-drilldown.d.ts → use-drilldown-core.d.ts} +7 -8
  58. package/dist/packages/sdk-ui/src/widgets/common-widget.d.ts +1 -0
  59. package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +25 -0
  60. package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +12 -0
  61. package/dist/packages/sdk-ui/src/widgets/widget.d.ts +9 -0
  62. package/dist/{table-widget-BPmucihM.js → table-widget-CLL1iN3H.js} +14606 -14487
  63. package/dist/{table-widget-BikAZUJv.cjs → table-widget-CYCcYqzZ.cjs} +173 -173
  64. package/package.json +9 -9
  65. package/dist/packages/sdk-ui/src/ai/api/errors.d.ts +0 -4
  66. package/dist/packages/sdk-ui/src/widgets/common/drilldown-connector.d.ts +0 -19
@@ -1,4 +1,4 @@
1
- export { ClientApplication, createClientApplication } from './app/client-application';
1
+ export { type ClientApplication, createClientApplication } from './app/client-application';
2
2
  export * from './chart-data-options/types';
3
3
  export { Chart } from './chart';
4
4
  export { ThemeProvider } from './theme-provider';
@@ -10,11 +10,12 @@ export * from './query-execution';
10
10
  export { executeQuery } from './query/execute-query';
11
11
  export { SisenseContextProvider } from './sisense-context/sisense-context-provider';
12
12
  export { DrilldownWidget } from './widgets/drilldown-widget';
13
- export { processDrilldownSelections } from './widgets/common/use-drilldown';
13
+ export { processDrilldownSelections } from './widgets/common/use-drilldown-core';
14
14
  export { ChartWidget } from './widgets/chart-widget';
15
15
  export { TableWidget } from './widgets/table-widget';
16
16
  export { PivotTableWidget } from './widgets/pivot-table-widget';
17
17
  export { TextWidget } from './widgets/text-widget';
18
+ export { Widget } from './widgets/widget';
18
19
  export { ContextMenu } from './common/components/menu/context-menu/context-menu';
19
20
  export { DrilldownBreadcrumbs } from './widgets/common/drilldown-breadcrumbs';
20
21
  export * from './line-chart';
@@ -44,19 +45,28 @@ export { getThemeSettingsByOid } from './themes/theme-loader';
44
45
  export { getDefaultThemeSettings } from './theme-provider/default-theme-settings';
45
46
  export { useGetDashboardModel, useGetDashboardModels, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, translateToDashboardResponse, translateToDashboardsResponse, useGetHierarchyModels, getHierarchyModels, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout as WidgetsPanelColumnLayout, type WidgetsPanelLayout as WidgetsPanelLayout, type WidgetId, type WidgetsOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchiesParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, } from './models';
46
47
  /**
47
- * Utility functions to translate between widget abstractions of models and UI props.
48
+ * Utility functions to translate a Fusion widget model from and to other widget data structures
48
49
  *
49
- * @group Fusion Embed
50
+ * @group Fusion Assets
50
51
  * @fusionEmbed
52
+ * @shortDescription Utility functions to translate a Fusion widget model from and to other widget data structures
51
53
  */
52
54
  export * as widgetModelTranslator from './models/widget/widget-model-translator';
53
55
  /**
54
- * Utility functions to translate between dashboard abstractions of models and UI props.
56
+ * Utility functions to translate a Fusion dashboard model from and to other dashboard data structures
55
57
  *
56
- * @group Fusion Embed
58
+ * @group Fusion Assets
57
59
  * @fusionEmbed
60
+ * @shortDescription Utility functions to translate a Fusion dashboard model from and to other dashboard data structures
58
61
  */
59
62
  export * as dashboardModelTranslator from './models/dashboard/dashboard-model-translator';
63
+ /**
64
+ * Utility functions to manipulate `DashboardProps`
65
+ *
66
+ * @group Dashboards
67
+ * @shortDescription Utility functions to manipulate dashboard elements
68
+ */
69
+ export * as dashboardHelpers from './dashboard/dashboard-helpers';
60
70
  export type { AutoZoomNavigatorScrollerLocation } from './dashboard-widget/types';
61
71
  export { boxWhiskerProcessResult } from './boxplot-utils';
62
72
  export { queryStateReducer } from './query-execution/query-state-reducer';
@@ -10,10 +10,10 @@ import { AppSettings } from '../../app/settings/settings.js';
10
10
  * ```tsx
11
11
  * <Dashboard {...dashboardModelTranslator.toDashboardProps(dashboardModel)} />
12
12
  * ```
13
- * @group Fusion Embed
13
+ * @group Fusion Assets
14
14
  * @fusionEmbed
15
15
  */
16
- export declare function toDashboardProps(dashboardModel: DashboardModel): Required<DashboardProps>;
16
+ export declare function toDashboardProps(dashboardModel: DashboardModel): DashboardProps;
17
17
  /**
18
18
  * Creates a new dashboard model from a dashboard DTO.
19
19
  *
@@ -5,7 +5,7 @@ import { DashboardLayoutOptions } from '../../dashboard';
5
5
  /**
6
6
  * Model of Sisense Fusion dashboard defined in the abstractions of Compose SDK.
7
7
  *
8
- * @group Fusion Embed
8
+ * @group Fusion Assets
9
9
  * @fusionEmbed
10
10
  */
11
11
  export interface DashboardModel {
@@ -5,3 +5,5 @@ export * from './use-get-dashboard-model';
5
5
  export * from './use-get-dashboard-models';
6
6
  export * from './dashboard-model';
7
7
  export * as dashboardModelTranslator from './dashboard-model-translator';
8
+ export * from './use-dashboard-model/use-dashboard-model';
9
+ export * from './use-dashboard-model/use-dashboard-model-reducer';
@@ -0,0 +1,11 @@
1
+ import { Filter } from '@sisense/sdk-data';
2
+ import { FilterDto } from '../../api/types/dashboard-dto';
3
+ /**
4
+ * Translates a {@link Filter} to a {@link FilterDto}.
5
+ * @param filter
6
+ *
7
+ * @returns FilterDto
8
+ *
9
+ * @internal
10
+ */
11
+ export declare function filterToFilterDto(filter: Filter): FilterDto;
@@ -0,0 +1,22 @@
1
+ import { UseDashboardModelAction } from '../../../models';
2
+ import { DashboardChangeAction } from '../../../dashboard/dashboard';
3
+ import { Authenticator } from '@sisense/sdk-rest-client';
4
+ /**
5
+ * Convert a dashboard change action to a use dashboard model action.
6
+ * @param action - The dashboard change action to convert
7
+ *
8
+ * @returns The useDashboardModel action or null if the action is not supported
9
+ *
10
+ * @internal
11
+ */
12
+ export declare function dashboardChangeActionToUseDashboardModelAction(action: DashboardChangeAction): UseDashboardModelAction | null;
13
+ /**
14
+ * Check if the persistence is supported and log a warning if it is not.
15
+ * @param authType - The authentication type
16
+ * @param shouldWarn - Whether to log a warning
17
+ *
18
+ * @returns True if the persistence is supported, false otherwise
19
+ *
20
+ * @internal
21
+ */
22
+ export declare function checkPersistenceSupport(authType: Authenticator['type'], shouldWarn: boolean): boolean;
@@ -0,0 +1,63 @@
1
+ import { DashboardModel } from '../../../models';
2
+ import { Filter } from '@sisense/sdk-data';
3
+ import { RestApi } from '../../../api/rest-api';
4
+ export type UseDashboardModelState = DashboardModel | null;
5
+ /**
6
+ * Internal action types for the dashboard model state used in {@link useDashboardModel}.
7
+ *
8
+ * @internal
9
+ */
10
+ export declare enum UseDashboardModelActionTypeInternal {
11
+ DASHBOARD_INIT = "DASHBOARD.INIT"
12
+ }
13
+ /**
14
+ * Action types for the dashboard model state used in {@link useDashboardModel}.
15
+ *
16
+ * @internal
17
+ */
18
+ export declare enum UseDashboardModelActionType {
19
+ FILTERS_UPDATE = "FILTERS.UPDATE"
20
+ }
21
+ /**
22
+ * Internal actions for the dashboard model state used in {@link useDashboardModel}.
23
+ *
24
+ * @internal
25
+ */
26
+ type UseDashboardModelInternalAction = UseDashboardModelAction | {
27
+ type: UseDashboardModelActionTypeInternal.DASHBOARD_INIT;
28
+ payload: DashboardModel;
29
+ };
30
+ /**
31
+ * Actions for the dashboard model state used in {@link useDashboardModel}.
32
+ *
33
+ * @internal
34
+ */
35
+ export type UseDashboardModelAction = {
36
+ type: UseDashboardModelActionType.FILTERS_UPDATE;
37
+ payload: Filter[];
38
+ };
39
+ /**
40
+ * Reducer for the dashboard model state used in {@link useDashboardModel}.
41
+ * @param state
42
+ * @param action
43
+ *
44
+ * @internal
45
+ */
46
+ export declare function dashboardReducer(state: UseDashboardModelState, action: UseDashboardModelInternalAction): UseDashboardModelState;
47
+ /**
48
+ * Middleware connector for {@link persistDashboardModelMiddleware}.
49
+ * @param restApi - The Sisense REST API instance
50
+ * @param reducer - The dashboard model reducer
51
+ *
52
+ * @internal
53
+ */
54
+ export declare function withPersistDashboardModelMiddleware(restApi: RestApi, reducer: (state: UseDashboardModelState, action: UseDashboardModelInternalAction) => UseDashboardModelState): (state: UseDashboardModelState, action: UseDashboardModelInternalAction) => UseDashboardModelState;
55
+ /**
56
+ * Middleware that persists the dashboard model changes to the Sisense server.
57
+ * @param restApi - The Sisense REST API instance
58
+ * @param reducer - The dashboard model reducer
59
+ *
60
+ * @internal
61
+ */
62
+ export declare function persistDashboardModelMiddleware(state: DashboardModel, action: UseDashboardModelAction, restApi: RestApi): Promise<import("../../..").DashboardDto | undefined> | Promise<null>;
63
+ export {};
@@ -0,0 +1,38 @@
1
+ import { GetDashboardModelParams } from '../../../models';
2
+ import { Dispatch } from 'react';
3
+ import { UseDashboardModelAction } from './use-dashboard-model-reducer';
4
+ export interface UseDashboardModelParams extends GetDashboardModelParams {
5
+ /**
6
+ * Boolean flag indicating whether changes to the dashboard state should be saved to the dashboard in Fusion
7
+ * @default true
8
+ * @internal
9
+ */
10
+ persist?: boolean;
11
+ }
12
+ /**
13
+ * This hook allows you to retrieve and manage a dashboard model from a Sisense instance.
14
+ * It handles fetching the existing dashboard, managing its local state, and saving any changes back to the Sisense server.
15
+ * (only filters persist supported for now)
16
+ *
17
+ * @returns Dashboard load state that contains the status of the execution, the result dashboard model, or the error if any, function to dispatch changes to the dashboard model.
18
+ * @group Fusion Embed
19
+ * @fusionEmbed
20
+ * @internal
21
+ */
22
+ export declare const useDashboardModel: (args_0: UseDashboardModelParams) => {
23
+ dashboard: import('../../../models').UseDashboardModelState;
24
+ isLoading: boolean;
25
+ isError: boolean;
26
+ dispatchChanges: Dispatch<UseDashboardModelAction>;
27
+ };
28
+ /**
29
+ * {@link useDashboardModel} without tracking to be used inside other hooks or components in Compose SDK.
30
+ *
31
+ * @internal
32
+ */
33
+ export declare function useDashboardModelInternal({ dashboardOid, includeWidgets, includeFilters, persist, }: UseDashboardModelParams): {
34
+ dashboard: import('../../../models').UseDashboardModelState;
35
+ isLoading: boolean;
36
+ isError: boolean;
37
+ dispatchChanges: Dispatch<UseDashboardModelAction>;
38
+ };
@@ -97,7 +97,7 @@ export type DashboardModelSuccessState = {
97
97
  return null;
98
98
  ```
99
99
  * @returns Dashboard load state that contains the status of the execution, the result dashboard model, or the error if any
100
- * @group Fusion Embed
100
+ * @group Fusion Assets
101
101
  * @fusionEmbed
102
102
  */
103
103
  export declare const useGetDashboardModel: (params: GetDashboardModelParams) => DashboardModelState;
@@ -105,7 +105,6 @@ export declare const useGetDashboardModel: (params: GetDashboardModelParams) =>
105
105
  * {@link useGetDashboardModel} without tracking to be used inside other hooks or components in Compose SDK.
106
106
  *
107
107
  * @param params - Parameters of the dashboard to be retrieved
108
- *
109
108
  * @internal
110
109
  */
111
110
  export declare function useGetDashboardModelInternal(params: GetDashboardModelParams): DashboardModelState;
@@ -82,7 +82,7 @@ export type DashboardModelsSuccessState = {
82
82
  return null;
83
83
  ```
84
84
  * @returns Load state that contains the status of the execution, the result dashboards, or the error if any
85
- * @group Fusion Embed
85
+ * @group Fusion Assets
86
86
  * @fusionEmbed
87
87
  */
88
88
  export declare const useGetDashboardModels: (params?: GetDashboardModelsParams | undefined) => DashboardModelsState;
@@ -62,7 +62,7 @@ export type HierarchyModelsSuccessState = {
62
62
  status: 'success';
63
63
  };
64
64
  /**
65
- * React hook that retrieves existing hierarchy models from a Fusion Embed instance.
65
+ * React hook that retrieves existing hierarchy models from a Fusion instance.
66
66
  *
67
67
  * @example
68
68
  * Retrieve the hierarchy models and render their counts.
@@ -84,7 +84,7 @@ export type HierarchyModelsSuccessState = {
84
84
  return null;
85
85
  ```
86
86
  * @returns Load state that contains the status of the execution, the result hierarchy models, or the error if one has occurred
87
- * @group Fusion Embed
87
+ * @group Fusion Assets
88
88
  * @fusionEmbed
89
89
  */
90
90
  export declare const useGetHierarchyModels: (params: GetHierarchiesParams) => HierarchyModelsState;
@@ -69,7 +69,7 @@ export type WidgetModelSuccessState = {
69
69
  status: 'success';
70
70
  };
71
71
  /**
72
- * React hook that retrieves an existing widget model from a Fusion Embed instance.
72
+ * React hook that retrieves an existing widget model from a Fusion instance.
73
73
  *
74
74
  * **Note:** Widget extensions based on JS scripts and add-ons in Fusion are not supported.
75
75
  *
@@ -89,7 +89,7 @@ export type WidgetModelSuccessState = {
89
89
  * - [Modify Chart Type](https://www.sisense.com/platform/compose-sdk/playground/?example=fusion-assets%2Fuse-get-widget-model-change-chart-type)
90
90
  *
91
91
  * @returns Widget load state that contains the status of the execution, the result widget model, or the error if one has occurred
92
- * @group Fusion Embed
92
+ * @group Fusion Assets
93
93
  * @fusionEmbed
94
94
  */
95
95
  export declare const useGetWidgetModel: (params: GetWidgetModelParams) => WidgetModelState;
@@ -1,6 +1,7 @@
1
1
  import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../query-execution';
2
2
  import { WidgetModel } from './widget-model.js';
3
3
  import { ChartProps, ChartWidgetProps, WidgetProps, PivotTableProps, PivotTableWidgetProps, PluginWidgetProps, TableProps, TableWidgetProps, TextWidgetProps, CommonWidgetProps } from '../../props';
4
+ import { JaqlDataSource } from '@sisense/sdk-data';
4
5
  import { CompleteThemeSettings } from '../../types.js';
5
6
  import { WidgetDto } from '../../dashboard-widget/types.js';
6
7
  import { AppSettings } from '../../app/settings/settings.js';
@@ -143,3 +144,20 @@ export declare function toWidgetProps(widgetModel: WidgetModel): WidgetProps;
143
144
  * @internal
144
145
  */
145
146
  export declare function fromWidgetDto(widgetDto: WidgetDto, themeSettings?: CompleteThemeSettings, appSettings?: AppSettings): WidgetModel;
147
+ /**
148
+ * Creates a {@link WidgetModel} from a {@link ChartWidgetProps}.
149
+ *
150
+ * @param chartWidgetProps - The ChartWidgetProps to be converted to a widget model
151
+ * @returns WidgetModel
152
+ * @internal
153
+ */
154
+ export declare function fromChartWidgetProps(chartWidgetProps: ChartWidgetProps): WidgetModel;
155
+ /**
156
+ * Translates a {@link WidgetModel} to {@link WidgetDto}.
157
+ *
158
+ * @param widgetModel - The WidgetModel to be converted to a widgetDto
159
+ * @param dataSource - The full datasource details
160
+ * @returns WidgetDto
161
+ * @internal
162
+ */
163
+ export declare function toWidgetDto(widgetModel: WidgetModel, dataSource: JaqlDataSource): WidgetDto;
@@ -12,7 +12,7 @@ export type WidgetDataOptions = ChartDataOptions | PivotTableDataOptions | Empty
12
12
  /**
13
13
  * Model of Sisense widget defined in the abstractions of Compose SDK.
14
14
  *
15
- * @group Fusion Embed
15
+ * @group Fusion Assets
16
16
  * @fusionEmbed
17
17
  */
18
18
  export interface WidgetModel {
@@ -1,5 +1,5 @@
1
1
  import { Attribute, Filter, Measure, DataSource, Data, QueryResultData, FilterRelations } from '@sisense/sdk-data';
2
- import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, DashboardWidgetStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions } from './types';
2
+ import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, DashboardWidgetStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, CustomTranslationObject } from './types';
3
3
  import { HighchartsOptions } from './chart-options-processor/chart-options-service';
4
4
  import { ComponentType, PropsWithChildren, ReactNode } from 'react';
5
5
  import { IndicatorChartDataOptions, BoxplotChartCustomDataOptions, BoxplotChartDataOptions, ScatterChartDataOptions, TableDataOptions, ScattermapChartDataOptions, AreamapChartDataOptions, PivotTableDataOptions, RegularChartDataOptions, TabularChartDataOptions, RangeChartDataOptions } from './chart-data-options/types';
@@ -9,6 +9,7 @@ import { FiltersMergeStrategy } from './dashboard-widget/types';
9
9
  import { HookEnableParam } from './common/hooks/types';
10
10
  import { ExecuteQueryResult } from './query-execution/types';
11
11
  import { Hierarchy } from './models';
12
+ import { BeforeMenuOpenHandler } from './common/components/menu/types';
12
13
  export type { MenuItemSection, HighchartsOptions };
13
14
  /**
14
15
  * Configurations and authentication for Sisense Context.
@@ -91,17 +92,6 @@ export interface SisenseContextProviderProps {
91
92
  * @category Sisense App Error Handling
92
93
  */
93
94
  onError?: (error: Error) => void;
94
- /**
95
- * Boolean flag to enable sending tracking events to the Sisense instance.
96
- *
97
- * If not specified, the default value is `true`.
98
- *
99
- * Deprecated: Use {@link AppConfig.trackingConfig | trackingConfig.enabled }
100
- *
101
- * @deprecated Use {@link AppConfig.trackingConfig | trackingConfig.enabled }
102
- * @internal
103
- */
104
- enableTracking?: boolean;
105
95
  /**
106
96
  * Boolean flag to enable sending silent pre-authentication requests to the Sisense instance.
107
97
  * Used to check if user is already authenticated, check is performed in an ivisible iframe.
@@ -157,7 +147,7 @@ export interface ExecuteQueryProps {
157
147
  *
158
148
  * OR
159
149
  *
160
- * (2) `ThemeOid` -- Theme identifier as defined in a Fusion Embed instance (**Admin > App Configuration > Look and Feel**).
150
+ * (2) `ThemeOid` -- Theme identifier as defined in a Fusion instance (**Admin > App Configuration > Look and Feel**).
161
151
  * See [Customizing the Sisense User Interface](https://docs.sisense.com/main/SisenseLinux/customizing-the-sisense-user-interface.htm) for more details.
162
152
  */
163
153
  export type ThemeProviderProps = PropsWithChildren<{
@@ -259,7 +249,7 @@ interface HighchartsBasedChartEventProps {
259
249
  * [options values](https://api.highcharts.com/highcharts/) and then return the modified options
260
250
  * object. The returned options are then used when rendering the chart.
261
251
  *
262
- * This callback is not supported for Indicator Chart, Areamap Chart, and Scattermap Chart.
252
+ * This callback is not supported for Indicator Chart, Areamap Chart, Scattermap Chart, and Table.
263
253
  *
264
254
  * For an example of how the `onBeforeRender` callback can be used, see the
265
255
  * [Compose SDK Charts Guide](/guides/sdk/guides/charts/guide-compose-sdk-charts.html#callbacks).
@@ -268,11 +258,21 @@ interface HighchartsBasedChartEventProps {
268
258
  */
269
259
  onBeforeRender?: BeforeRenderHandler;
270
260
  }
261
+ interface BaseChartEventProps {
262
+ /**
263
+ * A callback that allows to modify data immediately after it has been retrieved.
264
+ * Can be used to inject modification of queried data.
265
+ *
266
+ * @category Callbacks
267
+ * @internal
268
+ */
269
+ onDataReady?: (data: Data) => Data;
270
+ }
271
271
  /**
272
272
  * Event props for regular (non-specific) charts which uses DataPoint type
273
273
  * to describe data points for events.
274
274
  */
275
- interface RegularChartEventProps extends HighchartsBasedChartEventProps {
275
+ interface RegularChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
276
276
  /**
277
277
  * A callback that allows you to customize what happens when a data point is clicked.
278
278
  *
@@ -302,7 +302,7 @@ interface RegularChartEventProps extends HighchartsBasedChartEventProps {
302
302
  * Event props for Scatter chart which uses ScatterDataPoint type
303
303
  * to describe data points for events.
304
304
  */
305
- interface ScatterChartEventProps extends HighchartsBasedChartEventProps {
305
+ interface ScatterChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
306
306
  /**
307
307
  * Click handler callback for a data point
308
308
  *
@@ -350,7 +350,7 @@ interface ScattermapChartEventProps {
350
350
  * Event props for Boxplot chart which uses BoxplotDataPoint type
351
351
  * to describe data points for events.
352
352
  */
353
- interface BoxplotChartEventProps extends HighchartsBasedChartEventProps {
353
+ interface BoxplotChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
354
354
  /**
355
355
  * Click handler callback for a data point
356
356
  *
@@ -375,7 +375,7 @@ interface BoxplotChartEventProps extends HighchartsBasedChartEventProps {
375
375
  *
376
376
  * @internal
377
377
  */
378
- export interface BaseChartProps {
378
+ export interface BaseChartProps extends BaseChartEventProps {
379
379
  /**
380
380
  * Data set for a chart using one of the following options. If neither option is specified, the chart
381
381
  * will use the `defaultDataSource` specified in the parent `SisenseContextProvider`
@@ -471,7 +471,7 @@ export interface BaseChartProps {
471
471
  /**
472
472
  * Chart props to be able to react on chart events.
473
473
  */
474
- interface ChartEventProps extends HighchartsBasedChartEventProps {
474
+ interface ChartEventProps extends BaseChartEventProps, HighchartsBasedChartEventProps {
475
475
  /**
476
476
  * Click handler callback for a data point
477
477
  *
@@ -1162,12 +1162,22 @@ export interface PluginWidgetProps {
1162
1162
  * This is used to extend the props of a widget with its respective widget type.
1163
1163
  */
1164
1164
  export type WithWidgetType<W extends ChartWidgetProps | PivotTableWidgetProps | TextWidgetProps | PluginWidgetProps, T extends 'chart' | 'pivot' | 'text' | 'plugin'> = W & {
1165
+ /**
1166
+ * Widget type
1167
+ */
1165
1168
  widgetType: T;
1166
1169
  };
1167
1170
  /**
1168
1171
  * Props for the facade widget component.
1169
1172
  */
1170
- export type CommonWidgetProps = WithWidgetType<ChartWidgetProps, 'chart'> | WithWidgetType<PivotTableWidgetProps, 'pivot'> | WithWidgetType<TextWidgetProps, 'text'> | WithWidgetType<PluginWidgetProps, 'plugin'>;
1173
+ export type CommonWidgetProps = (WithWidgetType<ChartWidgetProps, 'chart'> | WithWidgetType<PivotTableWidgetProps, 'pivot'> | WithWidgetType<TextWidgetProps, 'text'> | WithWidgetType<PluginWidgetProps, 'plugin'>) & {
1174
+ /**
1175
+ * Optional handler function to process menu options before opening the context menu.
1176
+ *
1177
+ * @internal
1178
+ */
1179
+ onBeforeMenuOpen?: BeforeMenuOpenHandler;
1180
+ };
1171
1181
  /**
1172
1182
  * Props for the widget component within a container component like dashboard.
1173
1183
  */
@@ -1459,3 +1469,12 @@ export interface UseGetSharedFormulaParams extends HookEnableParam {
1459
1469
  */
1460
1470
  dataSource?: DataSource;
1461
1471
  }
1472
+ /**
1473
+ * Params of the {@link CustomTranslationsLoader} component
1474
+ *
1475
+ * @internal
1476
+ */
1477
+ export interface CustomTranslationsLoaderProps {
1478
+ customTranslations?: CustomTranslationObject[];
1479
+ children?: React.ReactNode;
1480
+ }
@@ -35,7 +35,7 @@ import { ExecuteQueryByWidgetIdProps } from '../props';
35
35
  * ```
36
36
  * @param props - ExecuteQueryByWidgetId properties
37
37
  * @returns ExecuteQueryByWidgetId component
38
- * @group Fusion Embed
38
+ * @group Fusion Assets
39
39
  * @fusionEmbed
40
40
  */
41
41
  export declare const ExecuteQueryByWidgetId: FunctionComponent<ExecuteQueryByWidgetIdProps>;
@@ -28,7 +28,7 @@ import { QueryResultData } from '@sisense/sdk-data';
28
28
  ```
29
29
  * See also hook {@link useExecuteQuery}, which execute a query specified in code.
30
30
  * @returns Query state that contains the status of the query execution, the result data, the constructed query parameters, or the error if any occurred
31
- * @group Fusion Embed
31
+ * @group Fusion Assets
32
32
  * @fusionEmbed
33
33
  */
34
34
  export declare const useExecuteQueryByWidgetId: (params: ExecuteQueryByWidgetIdParams) => QueryByWidgetIdState;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { CustomTranslationsLoaderProps } from '../props.js';
3
+ /**
4
+ * Utility wrapper component to load custom translations into the i18n instance.
5
+ *
6
+ * @internal
7
+ * @param customTranslations - array of custom translation objects to be loaded
8
+ * @returns CustomTranslationsLoader component
9
+ */
10
+ export declare const CustomTranslationsLoader: React.FC<CustomTranslationsLoaderProps>;
@@ -41,9 +41,41 @@ export declare const translation: {
41
41
  secondsDateTimeLevelSupportedOnlyForLive: string;
42
42
  missingMenuRoot: string;
43
43
  missingDataSource: string;
44
+ incorrectOnDataReadyHandler: string;
45
+ undefinedDataSource: string;
46
+ emptyModel: string;
47
+ missingMetadata: string;
48
+ missingModelTitle: string;
49
+ httpClientNotFound: string;
50
+ serverSettingsNotLoaded: string;
51
+ requiredColumnMissing: string;
52
+ unexpectedChartType: string;
53
+ noRowNumColumn: string;
54
+ ticIntervalCalculationFailed: string;
55
+ polarChartDesignOptionsExpected: string;
56
+ polarChartDesignOptionsNotExpected: string;
57
+ indicatorInvalidRelativeSize: string;
58
+ unsupportedMapType: string;
59
+ mapLoadingFailed: string;
60
+ cascadingFilterOriginalNotFound: string;
61
+ dashboardLoadFailed: string;
62
+ dashboardWithOidNotFound: string;
63
+ widgetWithOidNotFound: string;
64
+ widgetEmptyResponse: string;
65
+ dateFilterIncorrectOperator: string;
66
+ synchronizedFilterInvalidProps: string;
67
+ methodNotImplemented: string;
68
+ noPivotClient: string;
69
+ unexpectedCacheValue: string;
70
+ notAMembersFilter: string;
71
+ drilldownNoInitialDimension: string;
44
72
  };
45
73
  errorBoxText: string;
46
74
  chartNoData: string;
75
+ filters: string;
76
+ widgetDetails: string;
77
+ cancel: string;
78
+ includeAll: string;
47
79
  criteriaFilter: {
48
80
  displayModePrefix: string;
49
81
  equals: string;
@@ -72,7 +104,9 @@ export declare const translation: {
72
104
  last: string;
73
105
  next: string;
74
106
  from: string;
107
+ to: string;
75
108
  count: string;
109
+ select: string;
76
110
  today: string;
77
111
  days: string;
78
112
  weeks: string;
@@ -82,6 +116,11 @@ export declare const translation: {
82
116
  earliestDate: string;
83
117
  latestDate: string;
84
118
  todayOutOfRange: string;
119
+ dateRange: {
120
+ fromTo: string;
121
+ from: string;
122
+ to: string;
123
+ };
85
124
  };
86
125
  boxplot: {
87
126
  tooltip: {
@@ -118,6 +157,7 @@ export declare const translation: {
118
157
  };
119
158
  };
120
159
  unsupportedFilterMessage: string;
160
+ unsupportedFilter: string;
121
161
  commonFilter: {
122
162
  clearSelectionButton: string;
123
163
  selectMenuItem: string;
@@ -127,6 +167,63 @@ export declare const translation: {
127
167
  drilldown: {
128
168
  drillMenuItem: string;
129
169
  breadcrumbsAllSuffix: string;
170
+ breadcrumbsPrev: string;
171
+ breadcrumbsNext: string;
172
+ popover: {
173
+ members: string;
174
+ table: string;
175
+ column: string;
176
+ };
177
+ };
178
+ widgetHeader: {
179
+ info: {
180
+ details: string;
181
+ tooltip: string;
182
+ };
183
+ };
184
+ plugins: {
185
+ registerPrompt: string;
186
+ };
187
+ ai: {
188
+ analyticsChatbot: string;
189
+ dataTopics: string;
190
+ chatbotDescription: string;
191
+ topicSelectPrompt: string;
192
+ betaLabel: string;
193
+ preview: string;
194
+ clearHistoryPrompt: string;
195
+ config: {
196
+ inputPromptText: string;
197
+ welcomeText: string;
198
+ suggestionsWelcomeText: string;
199
+ };
200
+ buttons: {
201
+ insights: string;
202
+ correctResponse: string;
203
+ incorrectResponse: string;
204
+ clearChat: string;
205
+ refresh: string;
206
+ readMore: string;
207
+ collapse: string;
208
+ yes: string;
209
+ no: string;
210
+ seeMore: string;
211
+ };
212
+ disclaimer: {
213
+ poweredByAi: string;
214
+ rateRequest: string;
215
+ };
216
+ errors: {
217
+ chatUnavailable: string;
218
+ fetchHistory: string;
219
+ recommendationsNotAvailable: string;
220
+ insightsNotAvailable: string;
221
+ unexpectedChatResponse: string;
222
+ unexpected: string;
223
+ unknownResponse: string;
224
+ invalidInput: string;
225
+ noAvailableDataTopics: string;
226
+ };
130
227
  };
131
228
  };
132
229
  export type TranslationDictionary = typeof translation;