@sisense/sdk-ui 1.4.1 → 1.6.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/ai-context-provider.d.ts +1 -0
- package/dist/ai/api/chat-rest-api.d.ts +3 -0
- package/dist/ai/api/errors.d.ts +2 -1
- package/dist/ai/api/types.d.ts +10 -11
- package/dist/ai/chat-config.d.ts +10 -3
- package/dist/ai/chat-intro-blurb.d.ts +4 -0
- package/dist/ai/chatbot.d.ts +3 -2
- package/dist/ai/common/collapsible.d.ts +11 -0
- package/dist/ai/get-nlg-query-result.d.ts +12 -52
- package/dist/ai/icons/loading-dots-gif-base64.d.ts +2 -0
- package/dist/ai/index.d.ts +4 -2
- package/dist/ai/messages/feedback-wrapper.d.ts +2 -1
- package/dist/ai/messages/insights-message.d.ts +6 -4
- package/dist/ai/messages/message-list-resolver.d.ts +1 -2
- package/dist/ai/messages/message-resolver.d.ts +1 -3
- package/dist/ai/messages/nlq-message-group.d.ts +10 -0
- package/dist/ai/suggestions/index.d.ts +1 -1
- package/dist/ai/suggestions/suggestion-list.d.ts +1 -1
- package/dist/ai/suggestions/suggestions-with-intro.d.ts +2 -2
- package/dist/ai/translators/code-templates.d.ts +11 -0
- package/dist/ai/translators/generate-code.d.ts +9 -0
- package/dist/ai/translators/index.d.ts +4 -0
- package/dist/ai/translators/model-translator.d.ts +50 -0
- package/dist/ai/translators/query-translator.d.ts +122 -0
- package/dist/ai/translators/translate-props-to-code.d.ts +8 -0
- package/dist/ai/translators/types.d.ts +105 -0
- package/dist/ai/translators/use-get-data-source.d.ts +12 -0
- package/dist/ai/translators/utils.d.ts +2 -0
- package/dist/ai/use-chat-session.d.ts +9 -3
- package/dist/ai/use-get-nlg-query-result.d.ts +42 -66
- package/dist/ai/use-get-query-recommendations.d.ts +32 -34
- package/dist/ai.js +7101 -1729
- package/dist/area-chart.d.ts +1 -0
- package/dist/areamap-chart.d.ts +1 -0
- package/dist/bar-chart.d.ts +3 -0
- package/dist/boxplot-chart.d.ts +1 -0
- package/dist/boxplot-utils.d.ts +2 -1
- package/dist/chart/chart.d.ts +1 -0
- package/dist/chart-data-options/types.d.ts +3 -3
- package/dist/chart-options-processor/subtype-to-design-options.d.ts +6 -6
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +1 -0
- package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
- package/dist/charts/table/styles/style-constants.d.ts +2 -2
- package/dist/column-chart.d.ts +4 -0
- package/dist/common/components/loading-indicator.d.ts +2 -0
- package/dist/common/components/loading-spinner.d.ts +5 -0
- package/dist/dashboard-widget/dashboard-widget.d.ts +5 -1
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +5 -0
- package/dist/dashboard-widget/translate-widget-filters.d.ts +1 -0
- package/dist/dashboard-widget/types.d.ts +4 -3
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +1 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +1 -0
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +1 -0
- package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +1 -0
- package/dist/formulas/fetch-formula.d.ts +2 -2
- package/dist/formulas/use-get-shared-formula.d.ts +1 -0
- package/dist/funnel-chart.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6728 -37696
- package/dist/indicator-chart.d.ts +1 -0
- package/dist/line-chart.d.ts +1 -0
- package/dist/models/dashboard/get-dashboard-models.d.ts +1 -3
- package/dist/models/dashboard/translate-dashboard.d.ts +1 -1
- package/dist/models/dashboard/types.d.ts +17 -0
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +1 -0
- package/dist/models/widget/use-get-widget-model.d.ts +1 -0
- package/dist/models/widget/widget-model.d.ts +10 -1
- package/dist/pie-chart.d.ts +1 -0
- package/dist/pivot-table/pivot-table.d.ts +1 -0
- package/dist/polar-chart.d.ts +1 -0
- package/dist/props.d.ts +197 -120
- package/dist/query-execution/execute-query-by-widget-id.d.ts +1 -0
- package/dist/query-execution/execute-query.d.ts +1 -0
- package/dist/query-execution/types.d.ts +46 -16
- package/dist/query-execution/use-execute-csv-query.d.ts +1 -0
- package/dist/query-execution/use-execute-pivot-query.d.ts +1 -0
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +1 -0
- package/dist/query-execution/use-execute-query.d.ts +1 -0
- package/dist/scatter-chart.d.ts +1 -0
- package/dist/scattermap-chart.d.ts +1 -0
- package/dist/sisense-context/sisense-context-provider.d.ts +1 -0
- package/dist/sisense-context/sisense-context.d.ts +4 -1
- package/dist/sunburst-chart.d.ts +1 -0
- package/dist/table/table.d.ts +1 -0
- package/dist/theme-provider/theme-provider.d.ts +8 -1
- package/dist/treemap-chart.d.ts +1 -0
- package/dist/types.d.ts +32 -32
- package/dist/widgets/chart-widget.d.ts +1 -0
- package/dist/widgets/common/context-menu.d.ts +5 -0
- package/dist/widgets/common/drilldown-breadcrumbs/drilldown-breadcrumbs.d.ts +5 -0
- package/dist/widgets/drilldown-widget.d.ts +1 -0
- package/dist/widgets/table-widget.d.ts +1 -1
- package/dist/with-tracking-e2a077f9.js +109112 -0
- package/package.json +19 -14
- package/dist/ai/loading-page.d.ts +0 -2
- package/dist/with-tracking-d12a4632.js +0 -78010
|
@@ -56,5 +56,6 @@ import { IndicatorChartProps } from './props';
|
|
|
56
56
|
* <img src="media://indicator-chart-example-1.png" width="400px" />
|
|
57
57
|
* @param props - Indicator chart properties
|
|
58
58
|
* @returns Indicator Chart component
|
|
59
|
+
* @group Charts
|
|
59
60
|
*/
|
|
60
61
|
export declare const IndicatorChart: import("react").FunctionComponent<IndicatorChartProps>;
|
package/dist/line-chart.d.ts
CHANGED
|
@@ -24,5 +24,6 @@ import { LineChartProps } from './props';
|
|
|
24
24
|
* <img src="media://line-chart-example-1.png" width="800px" />
|
|
25
25
|
* @param props - Line chart properties
|
|
26
26
|
* @returns Line Chart component
|
|
27
|
+
* @group Charts
|
|
27
28
|
*/
|
|
28
29
|
export declare const LineChart: import("react").FunctionComponent<LineChartProps>;
|
|
@@ -7,9 +7,7 @@ export interface GetDashboardModelsOptions {
|
|
|
7
7
|
*/
|
|
8
8
|
searchByTitle?: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* If not specified, the default value is `false`
|
|
10
|
+
* {@inheritDoc GetDashboardModelOptions.includeWidgets}
|
|
13
11
|
*/
|
|
14
12
|
includeWidgets?: boolean;
|
|
15
13
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type DashboardDto } from '../../api/types/dashboard-dto';
|
|
2
2
|
import { type DashboardModel } from './types';
|
|
3
|
-
export declare function translateDashboard({ oid, title, datasource, widgets, }: DashboardDto): DashboardModel;
|
|
3
|
+
export declare function translateDashboard({ oid, title, datasource, widgets, layout, }: DashboardDto): DashboardModel;
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import { type DataSource } from '@sisense/sdk-data';
|
|
2
2
|
import { WidgetModel } from '../widget/widget-model';
|
|
3
|
+
/** @internal */
|
|
4
|
+
export type Layout = {
|
|
5
|
+
columns: {
|
|
6
|
+
width: number;
|
|
7
|
+
cells: {
|
|
8
|
+
subcells: {
|
|
9
|
+
width: number;
|
|
10
|
+
elements: {
|
|
11
|
+
height: number | string;
|
|
12
|
+
widgetId: string;
|
|
13
|
+
}[];
|
|
14
|
+
}[];
|
|
15
|
+
}[];
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
3
18
|
export type DashboardModel = {
|
|
4
19
|
oid: string;
|
|
5
20
|
title: string;
|
|
6
21
|
dataSource: DataSource;
|
|
7
22
|
widgets?: WidgetModel[];
|
|
23
|
+
/** @internal */
|
|
24
|
+
layout?: Layout;
|
|
8
25
|
};
|
|
@@ -96,6 +96,7 @@ export type DashboardModelSuccessState = {
|
|
|
96
96
|
```
|
|
97
97
|
* @param params - Parameters of the dashboard to be retrieved
|
|
98
98
|
* @returns Dashboard load state that contains the status of the execution, the result dashboard model, or the error if any
|
|
99
|
+
* @group Fusion Assets
|
|
99
100
|
*/
|
|
100
101
|
export declare const useGetDashboardModel: (params: GetDashboardModelParams) => DashboardModelState;
|
|
101
102
|
/**
|
|
@@ -81,6 +81,7 @@ export type DashboardModelsSuccessState = {
|
|
|
81
81
|
```
|
|
82
82
|
* @param params - Parameters of the dashboards to be retrieved
|
|
83
83
|
* @returns Load state that contains the status of the execution, the result dashboards, or the error if any
|
|
84
|
+
* @group Fusion Assets
|
|
84
85
|
*/
|
|
85
86
|
export declare const useGetDashboardModels: (params?: GetDashboardModelsParams | undefined) => DashboardModelsState;
|
|
86
87
|
/**
|
|
@@ -93,6 +93,7 @@ export type WidgetModelSuccessState = {
|
|
|
93
93
|
```
|
|
94
94
|
* @param params - Parameters of the widget to be retrieved
|
|
95
95
|
* @returns Widget load state that contains the status of the execution, the result widget model, or the error if one has occurred
|
|
96
|
+
* @group Fusion Assets
|
|
96
97
|
*/
|
|
97
98
|
export declare const useGetWidgetModel: (params: GetWidgetModelParams) => WidgetModelState;
|
|
98
99
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { ChartDataOptions, TableDataOptions } from '../../chart-data-options/types';
|
|
3
|
-
import { WidgetDto, WidgetType } from '../../dashboard-widget/types';
|
|
3
|
+
import { Panel, WidgetDto, WidgetType } from '../../dashboard-widget/types';
|
|
4
4
|
import { ChartProps, ChartWidgetProps, TableProps, TableWidgetProps } from '../../props';
|
|
5
5
|
import { ExecuteQueryParams } from '../../query-execution';
|
|
6
6
|
import { ChartType, DrilldownOptions, ChartStyleOptions, TableStyleOptions, CompleteThemeSettings } from '../../types';
|
|
@@ -10,6 +10,8 @@ import { ChartType, DrilldownOptions, ChartStyleOptions, TableStyleOptions, Comp
|
|
|
10
10
|
export type WidgetDataOptions = ChartDataOptions | TableDataOptions;
|
|
11
11
|
/**
|
|
12
12
|
* Model of Sisense widget defined in the abstractions of Compose SDK.
|
|
13
|
+
*
|
|
14
|
+
* @group Fusion Assets
|
|
13
15
|
*/
|
|
14
16
|
export declare class WidgetModel {
|
|
15
17
|
/**
|
|
@@ -32,6 +34,12 @@ export declare class WidgetModel {
|
|
|
32
34
|
* Widget type.
|
|
33
35
|
*/
|
|
34
36
|
widgetType: WidgetType;
|
|
37
|
+
/** @internal */
|
|
38
|
+
pluginType: string;
|
|
39
|
+
/** @internal */
|
|
40
|
+
pluginPanels: Panel[];
|
|
41
|
+
/** @internal */
|
|
42
|
+
pluginStyles: any;
|
|
35
43
|
/**
|
|
36
44
|
* Widget data options.
|
|
37
45
|
*/
|
|
@@ -60,6 +68,7 @@ export declare class WidgetModel {
|
|
|
60
68
|
* Creates a new widget model.
|
|
61
69
|
*
|
|
62
70
|
* @param widgetDto - The widget DTO to be converted to a widget model
|
|
71
|
+
* @param themeSettings - The theme settings to be used for the widget model
|
|
63
72
|
* @internal
|
|
64
73
|
*/
|
|
65
74
|
constructor(widgetDto: WidgetDto, themeSettings?: CompleteThemeSettings);
|
package/dist/pie-chart.d.ts
CHANGED
|
@@ -24,5 +24,6 @@ import { PieChartProps } from './props';
|
|
|
24
24
|
* <img src="media://pie-chart-example-1.png" width="600px" />
|
|
25
25
|
* @param props - Pie chart properties
|
|
26
26
|
* @returns Pie Chart component
|
|
27
|
+
* @group Charts
|
|
27
28
|
*/
|
|
28
29
|
export declare const PieChart: import("react").FunctionComponent<PieChartProps>;
|
package/dist/polar-chart.d.ts
CHANGED
|
@@ -24,5 +24,6 @@ import { PolarChartProps } from './props';
|
|
|
24
24
|
* <img src="media://polar-chart-example-1.png" width="600px" />
|
|
25
25
|
* @param props - Polar chart properties
|
|
26
26
|
* @returns Polar Chart component
|
|
27
|
+
* @group Charts
|
|
27
28
|
*/
|
|
28
29
|
export declare const PolarChart: import("react").FunctionComponent<PolarChartProps>;
|