@sisense/sdk-ui 1.20.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.
- package/dist/ai.cjs +67 -67
- package/dist/ai.js +895 -950
- package/dist/analytics-composer.cjs +18 -18
- package/dist/analytics-composer.js +595 -595
- package/dist/{get-widget-options-B9VkQy30.js → get-widget-options-DTIulxC2.js} +12387 -12162
- package/dist/{get-widget-options-CQuHmkuX.cjs → get-widget-options-DixoCEhn.cjs} +92 -92
- package/dist/index.cjs +125 -66
- package/dist/index.js +6907 -6448
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +1 -1
- package/dist/packages/sdk-ui/src/ai/use-get-nlg-query-result.d.ts +3 -1
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +4 -1
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +4 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +57 -13
- package/dist/packages/sdk-ui/src/app/settings/settings.d.ts +5 -0
- package/dist/packages/sdk-ui/src/boxplot-utils.d.ts +6 -5
- package/dist/packages/sdk-ui/src/chart/chart.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart-data/advanced-analytics-data.d.ts +6 -42
- package/dist/packages/sdk-ui/src/chart-data/areamap-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/boxplot-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/cartesian-data.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-data/categorical-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/filter-and-aggregate-chart-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/indicator-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/range-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/scatter-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data/scattermap-data.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data/table-data.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-data-options/translate-boxplot-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +37 -60
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +34 -19
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/data-points.d.ts +5 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/plot-bands.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +5 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-axis.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-axis.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +5 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/charts/indicator/indicator-legacy-chart-data-options.d.ts +1 -1
- package/dist/packages/sdk-ui/src/common/hooks/use-fetch.d.ts +2 -5
- package/dist/packages/sdk-ui/src/common/hooks/use-synced-state.d.ts +19 -0
- package/dist/packages/sdk-ui/src/common-filters/selection-utils.d.ts +9 -1
- package/dist/packages/sdk-ui/src/common-filters/use-common-filters.d.ts +4 -2
- package/dist/packages/sdk-ui/src/dashboard/components/HorizontalCollapse.d.ts +5 -0
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-header.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard-by-id.d.ts +4 -1
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +91 -0
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +13 -1
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +18 -0
- package/dist/packages/sdk-ui/src/dashboard/use-composed-dashboard.d.ts +30 -0
- package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +40 -0
- package/dist/packages/sdk-ui/src/dashboard-widget/dashboard-widget.d.ts +2 -2
- package/dist/packages/sdk-ui/src/dashboard-widget/translate-widget-data-options.d.ts +13 -3
- package/dist/packages/sdk-ui/src/dashboard-widget/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard-widget/utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/decorators/hook-decorators/with-tracking.d.ts +3 -2
- package/dist/packages/sdk-ui/src/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +2 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/filters-panel.d.ts +2 -2
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/unsupported-filter-tile.d.ts +12 -0
- package/dist/packages/sdk-ui/src/formulas/use-get-shared-formula.d.ts +3 -4
- package/dist/packages/sdk-ui/src/index.d.ts +16 -6
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model-translator.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/get-dashboard-model.d.ts +0 -2
- package/dist/packages/sdk-ui/src/models/dashboard/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +11 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts +22 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +63 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts +38 -0
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-model.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/dashboard/use-get-dashboard-models.d.ts +2 -2
- package/dist/packages/sdk-ui/src/models/hierarchy/use-get-hierarchy-models.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/widget/use-get-widget-model.d.ts +3 -3
- package/dist/packages/sdk-ui/src/models/widget/widget-model-translator.d.ts +18 -1
- package/dist/packages/sdk-ui/src/models/widget/widget-model.d.ts +1 -3
- package/dist/packages/sdk-ui/src/plugins-provider/types.d.ts +4 -4
- package/dist/packages/sdk-ui/src/plugins-provider/use-execute-plugin-query.d.ts +2 -2
- package/dist/packages/sdk-ui/src/props.d.ts +42 -23
- package/dist/packages/sdk-ui/src/query-execution/execute-query-by-widget-id.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-csv-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-pivot-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query-by-widget-id.d.ts +2 -2
- package/dist/packages/sdk-ui/src/query-execution/use-execute-query.d.ts +1 -1
- package/dist/packages/sdk-ui/src/translation/custom-translations-loader.d.ts +10 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +98 -4
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +196 -8
- package/dist/packages/sdk-ui/src/types.d.ts +24 -3
- package/dist/packages/sdk-ui/src/widgets/chart-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-utils.d.ts +7 -0
- package/dist/packages/sdk-ui/src/widgets/common/{use-drilldown.d.ts → use-drilldown-core.d.ts} +7 -8
- package/dist/packages/sdk-ui/src/widgets/common-widget.d.ts +1 -0
- package/dist/packages/sdk-ui/src/widgets/hooks/use-drilldown.d.ts +25 -0
- package/dist/packages/sdk-ui/src/widgets/hooks/use-with-drilldown.d.ts +12 -0
- package/dist/packages/sdk-ui/src/widgets/pivot-table-widget.d.ts +1 -1
- package/dist/packages/sdk-ui/src/widgets/widget.d.ts +9 -0
- package/dist/{table-widget-D9gDMRyX.js → table-widget-CLL1iN3H.js} +14844 -14659
- package/dist/{table-widget-DXNtx9V_.cjs → table-widget-CYCcYqzZ.cjs} +179 -179
- package/package.json +9 -9
- package/dist/packages/sdk-ui/src/ai/api/errors.d.ts +0 -4
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-connector.d.ts +0 -19
|
@@ -67,7 +67,7 @@ export type SharedFormulaSuccessState = {
|
|
|
67
67
|
status: 'success';
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
|
-
* Fetch a [shared formula](https://docs.sisense.com/main/SisenseLinux/shared-formulas.htm) from the a Fusion
|
|
70
|
+
* Fetch a [shared formula](https://docs.sisense.com/main/SisenseLinux/shared-formulas.htm) from the a Fusion instance.
|
|
71
71
|
*
|
|
72
72
|
* The formula can be identified either by `oid` or by name and data source pair.
|
|
73
73
|
*
|
|
@@ -83,16 +83,15 @@ export type SharedFormulaSuccessState = {
|
|
|
83
83
|
```tsx
|
|
84
84
|
const { formula, isLoading, isError } = useGetSharedFormula({ name: 'My Shared Formula', datasource: DM.DataSource })
|
|
85
85
|
```
|
|
86
|
-
* @param params - {@link UseGetSharedFormulaParams}
|
|
87
|
-
* @param dataSource - Data source in Sisense instance
|
|
88
86
|
* @returns Formula load state that contains the status of the execution, the result formula, or the error if any
|
|
89
|
-
* @group Fusion
|
|
87
|
+
* @group Fusion Assets
|
|
90
88
|
* @fusionEmbed
|
|
91
89
|
*/
|
|
92
90
|
export declare const useGetSharedFormula: (params: UseGetSharedFormulaParams) => SharedFormulaState;
|
|
93
91
|
/**
|
|
94
92
|
* {@link useGetSharedFormula} without tracking to be used inside other hooks or components in Compose SDK.
|
|
95
93
|
*
|
|
94
|
+
* @param params - {@link UseGetSharedFormulaParams}
|
|
96
95
|
* @internal
|
|
97
96
|
*/
|
|
98
97
|
export declare function useGetSharedFormulaInternal(params: UseGetSharedFormulaParams): SharedFormulaState;
|
|
@@ -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
|
|
48
|
+
* Utility functions to translate a Fusion widget model from and to other widget data structures
|
|
48
49
|
*
|
|
49
|
-
* @group Fusion
|
|
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
|
|
56
|
+
* Utility functions to translate a Fusion dashboard model from and to other dashboard data structures
|
|
55
57
|
*
|
|
56
|
-
* @group Fusion
|
|
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
|
|
13
|
+
* @group Fusion Assets
|
|
14
14
|
* @fusionEmbed
|
|
15
15
|
*/
|
|
16
|
-
export declare function toDashboardProps(dashboardModel: DashboardModel):
|
|
16
|
+
export declare function toDashboardProps(dashboardModel: DashboardModel): DashboardProps;
|
|
17
17
|
/**
|
|
18
18
|
* Creates a new dashboard model from a dashboard DTO.
|
|
19
19
|
*
|
|
@@ -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;
|
package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dasboard-model-utils.d.ts
ADDED
|
@@ -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 {};
|
package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model.d.ts
ADDED
|
@@ -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
|
+
};
|
|
@@ -96,15 +96,15 @@ export type DashboardModelSuccessState = {
|
|
|
96
96
|
}
|
|
97
97
|
return null;
|
|
98
98
|
```
|
|
99
|
-
* @param params - Parameters of the dashboard to be retrieved
|
|
100
99
|
* @returns Dashboard load state that contains the status of the execution, the result dashboard model, or the error if any
|
|
101
|
-
* @group Fusion
|
|
100
|
+
* @group Fusion Assets
|
|
102
101
|
* @fusionEmbed
|
|
103
102
|
*/
|
|
104
103
|
export declare const useGetDashboardModel: (params: GetDashboardModelParams) => DashboardModelState;
|
|
105
104
|
/**
|
|
106
105
|
* {@link useGetDashboardModel} without tracking to be used inside other hooks or components in Compose SDK.
|
|
107
106
|
*
|
|
107
|
+
* @param params - Parameters of the dashboard to be retrieved
|
|
108
108
|
* @internal
|
|
109
109
|
*/
|
|
110
110
|
export declare function useGetDashboardModelInternal(params: GetDashboardModelParams): DashboardModelState;
|
|
@@ -81,15 +81,15 @@ export type DashboardModelsSuccessState = {
|
|
|
81
81
|
}
|
|
82
82
|
return null;
|
|
83
83
|
```
|
|
84
|
-
* @param params - Parameters of the dashboards to be retrieved
|
|
85
84
|
* @returns Load state that contains the status of the execution, the result dashboards, or the error if any
|
|
86
|
-
* @group Fusion
|
|
85
|
+
* @group Fusion Assets
|
|
87
86
|
* @fusionEmbed
|
|
88
87
|
*/
|
|
89
88
|
export declare const useGetDashboardModels: (params?: GetDashboardModelsParams | undefined) => DashboardModelsState;
|
|
90
89
|
/**
|
|
91
90
|
* {@link useGetDashboardModels} without tracking to be used inside other hooks or components in Compose SDK.
|
|
92
91
|
*
|
|
92
|
+
* @param params - Parameters of the dashboards to be retrieved
|
|
93
93
|
* @internal
|
|
94
94
|
*/
|
|
95
95
|
export declare function useGetDashboardModelsInternal(params?: GetDashboardModelsParams): 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
|
|
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.
|
|
@@ -83,15 +83,15 @@ export type HierarchyModelsSuccessState = {
|
|
|
83
83
|
}
|
|
84
84
|
return null;
|
|
85
85
|
```
|
|
86
|
-
* @param params - Parameters of the hierarchies to be retrieved
|
|
87
86
|
* @returns Load state that contains the status of the execution, the result hierarchy models, or the error if one has occurred
|
|
88
|
-
* @group Fusion
|
|
87
|
+
* @group Fusion Assets
|
|
89
88
|
* @fusionEmbed
|
|
90
89
|
*/
|
|
91
90
|
export declare const useGetHierarchyModels: (params: GetHierarchiesParams) => HierarchyModelsState;
|
|
92
91
|
/**
|
|
93
92
|
* {@link useGetHierarchyModels} without tracking to be used inside other hooks or components in Compose SDK.
|
|
94
93
|
*
|
|
94
|
+
* @param params - Parameters of the hierarchies to be retrieved
|
|
95
95
|
* @internal
|
|
96
96
|
*/
|
|
97
97
|
export declare function useGetHierarchyModelsInternal(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
|
|
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
|
*
|
|
@@ -88,15 +88,15 @@ export type WidgetModelSuccessState = {
|
|
|
88
88
|
*
|
|
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
|
-
* @param params - Parameters of the widget to be retrieved
|
|
92
91
|
* @returns Widget load state that contains the status of the execution, the result widget model, or the error if one has occurred
|
|
93
|
-
* @group Fusion
|
|
92
|
+
* @group Fusion Assets
|
|
94
93
|
* @fusionEmbed
|
|
95
94
|
*/
|
|
96
95
|
export declare const useGetWidgetModel: (params: GetWidgetModelParams) => WidgetModelState;
|
|
97
96
|
/**
|
|
98
97
|
* {@link useGetWidgetModel} without tracking to be used inside other hooks or components in Compose SDK.
|
|
99
98
|
*
|
|
99
|
+
* @param params - Parameters of the widget to be retrieved
|
|
100
100
|
* @internal
|
|
101
101
|
*/
|
|
102
102
|
export declare function useGetWidgetModelInternal(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';
|
|
@@ -100,7 +101,6 @@ export declare function toTableWidgetProps(widgetModel: WidgetModel): TableWidge
|
|
|
100
101
|
|
|
101
102
|
* Note: this method is not supported for chart or table widgets.
|
|
102
103
|
* Use {@link toChartWidgetProps} instead for getting props for the <ChartWidget> component.
|
|
103
|
-
* Use {@link toTableWidgetProps} instead for getting props for the <TableWidget> component.
|
|
104
104
|
*/
|
|
105
105
|
export declare function toPivotTableWidgetProps(widgetModel: WidgetModel): PivotTableWidgetProps;
|
|
106
106
|
/**
|
|
@@ -144,3 +144,20 @@ export declare function toWidgetProps(widgetModel: WidgetModel): WidgetProps;
|
|
|
144
144
|
* @internal
|
|
145
145
|
*/
|
|
146
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
|
|
15
|
+
* @group Fusion Assets
|
|
16
16
|
* @fusionEmbed
|
|
17
17
|
*/
|
|
18
18
|
export interface WidgetModel {
|
|
@@ -171,9 +171,7 @@ export interface WidgetModel {
|
|
|
171
171
|
|
|
172
172
|
* Note: this method is not supported for chart or table widgets.
|
|
173
173
|
* Use {@link getChartWidgetProps} instead for getting props for the <ChartWidget> component.
|
|
174
|
-
* Use {@link getTableWidgetProps} instead for getting props for the <TableWidget> component.
|
|
175
174
|
* @deprecated Use {@link widgetModelTranslator.toPivotTableWidgetProps} instead
|
|
176
|
-
* @internal
|
|
177
175
|
*/
|
|
178
176
|
getPivotTableWidgetProps(): PivotTableWidgetProps;
|
|
179
177
|
/**
|
|
@@ -6,10 +6,10 @@ import { GenericDataOptions } from '../types';
|
|
|
6
6
|
*
|
|
7
7
|
* @alpha
|
|
8
8
|
*/
|
|
9
|
-
export interface PluginComponentProps {
|
|
9
|
+
export interface PluginComponentProps<DataOptions = GenericDataOptions, StyleOptions = any> {
|
|
10
10
|
dataSource?: DataSource;
|
|
11
|
-
dataOptions:
|
|
12
|
-
styleOptions:
|
|
11
|
+
dataOptions: DataOptions;
|
|
12
|
+
styleOptions: StyleOptions;
|
|
13
13
|
filters?: Filter[];
|
|
14
14
|
highlights?: Filter[];
|
|
15
15
|
}
|
|
@@ -19,4 +19,4 @@ export interface PluginComponentProps {
|
|
|
19
19
|
*
|
|
20
20
|
* @alpha
|
|
21
21
|
*/
|
|
22
|
-
export type PluginComponent = (props: PluginComponentProps) => ReactNode;
|
|
22
|
+
export type PluginComponent<DataOptions = GenericDataOptions, StyleOptions = any> = (props: PluginComponentProps<DataOptions, StyleOptions>) => ReactNode;
|
|
@@ -4,7 +4,7 @@ import { PluginComponentProps } from './types';
|
|
|
4
4
|
/**
|
|
5
5
|
* Utility function for converting data options to parameters for executing a query.
|
|
6
6
|
*
|
|
7
|
-
* @group
|
|
7
|
+
* @group Dashboards
|
|
8
8
|
* @alpha
|
|
9
9
|
*/
|
|
10
10
|
export declare function extractDimensionsAndMeasures(dataOptions: GenericDataOptions): {
|
|
@@ -14,7 +14,7 @@ export declare function extractDimensionsAndMeasures(dataOptions: GenericDataOpt
|
|
|
14
14
|
/**
|
|
15
15
|
* React hook that takes a plugin component's props and executes a data query.
|
|
16
16
|
*
|
|
17
|
-
* @group
|
|
17
|
+
* @group Dashboards
|
|
18
18
|
* @alpha
|
|
19
19
|
*/
|
|
20
20
|
export declare function useExecutePluginQuery({ dataSource, dataOptions, filters, highlights, }: PluginComponentProps): {
|
|
@@ -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
|
|
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,
|
|
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,10 +375,10 @@ 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
|
-
* will use the `defaultDataSource` specified in the parent
|
|
381
|
+
* will use the `defaultDataSource` specified in the parent `SisenseContextProvider`
|
|
382
382
|
* component.
|
|
383
383
|
*
|
|
384
384
|
*
|
|
@@ -386,7 +386,7 @@ export interface BaseChartProps {
|
|
|
386
386
|
* retrieve the data source name from a data model you create using the `get-data-model`
|
|
387
387
|
* {@link https://sisense.dev/guides/sdk/guides/cli.html | command} of the Compose SDK CLI. Under the hood, the chart
|
|
388
388
|
* connects to the data source, executes a query, and loads the data as specified in
|
|
389
|
-
*
|
|
389
|
+
* `dataOptions`, `filters`, and `highlights`.
|
|
390
390
|
*
|
|
391
391
|
* To learn more about using data from a Sisense data source, see the
|
|
392
392
|
* [Compose SDK Charts Guide](/guides/sdk/guides/charts/guide-compose-sdk-charts.html#sisense-data).
|
|
@@ -446,7 +446,7 @@ export interface BaseChartProps {
|
|
|
446
446
|
* Highlights based on filter criteria to apply to a chart using one of the following options.
|
|
447
447
|
*
|
|
448
448
|
* NOTE that the filter dimensions used in highlights must match those defined in the
|
|
449
|
-
*
|
|
449
|
+
* `dataOptions` of the chart. Otherwise, the filters will be applied as regular slice filters.
|
|
450
450
|
*
|
|
451
451
|
* (1) Array of {@link Filter} returned from filter factory functions, such as
|
|
452
452
|
* {@link @sisense/sdk-data!filterFactory.greaterThan | `greaterThan()`} and {@link @sisense/sdk-data!filterFactory.members | `members()`}.
|
|
@@ -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
|
|
38
|
+
* @group Fusion Assets
|
|
39
39
|
* @fusionEmbed
|
|
40
40
|
*/
|
|
41
41
|
export declare const ExecuteQueryByWidgetId: FunctionComponent<ExecuteQueryByWidgetIdProps>;
|
|
@@ -68,7 +68,6 @@ import { CsvQueryState, ExecuteCsvQueryParams } from './types.js';
|
|
|
68
68
|
}
|
|
69
69
|
return null;
|
|
70
70
|
```
|
|
71
|
-
* @param params - Parameters of the query
|
|
72
71
|
* @returns Query state that contains the status of the query execution, the result data, or the error if any occurred
|
|
73
72
|
* @group Queries
|
|
74
73
|
*/
|
|
@@ -76,6 +75,7 @@ export declare const useExecuteCsvQuery: (params: ExecuteCsvQueryParams) => CsvQ
|
|
|
76
75
|
/**
|
|
77
76
|
* {@link useExecuteQuery} without tracking to be used inside other hooks or components in Compose SDK.
|
|
78
77
|
*
|
|
78
|
+
* @param params - Parameters of the query
|
|
79
79
|
* @internal
|
|
80
80
|
*/
|
|
81
81
|
export declare function useExecuteCsvQueryInternal(params: ExecuteCsvQueryParams): CsvQueryState;
|