@sisense/sdk-ui 1.12.0 → 1.13.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/api/chat-rest-api.d.ts +3 -4
- package/dist/ai/api/hooks.d.ts +2 -2
- package/dist/ai/api/types.d.ts +2 -16
- package/dist/ai/buttons/scroll-to-bottom-button.d.ts +3 -0
- package/dist/ai/chat-config.d.ts +8 -0
- package/dist/ai/common/constants.d.ts +1 -0
- package/dist/ai/common/tooltip.d.ts +2 -2
- package/dist/ai/data-topics/data-topic-list.d.ts +0 -1
- package/dist/ai/icons/scroll-to-bottom-icon.d.ts +1 -0
- package/dist/ai/scroll-to-bottom.d.ts +7 -0
- package/dist/ai.cjs +87 -70
- package/dist/ai.js +833 -917
- package/dist/chart/helpers/use-synced-data.d.ts +1 -1
- package/dist/chart-options-processor/chart-options-service.d.ts +4 -0
- package/dist/chart-options-processor/subtype-to-design-options.d.ts +13 -1
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +2 -0
- package/dist/common/components/loading-overlay.d.ts +1 -0
- package/dist/common-filters/common-filters-connector.d.ts +9 -0
- package/dist/common-filters/selection-utils.d.ts +11 -0
- package/dist/common-filters/types.d.ts +14 -0
- package/dist/common-filters/use-common-filters.d.ts +13 -0
- package/dist/common-filters/utils.d.ts +9 -0
- package/dist/common-filters/widget-header-clear-selection-button.d.ts +3 -0
- package/dist/dashboard/components/dashboard-container.d.ts +1 -1
- package/dist/dashboard/dashboard.d.ts +1 -1
- package/dist/dashboard/types.d.ts +5 -2
- package/dist/dashboard/utils.d.ts +0 -3
- package/dist/dashboard-widget/translate-dashboard-filters.d.ts +4772 -2
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- package/dist/dashboard-widget/translate-widget-filters.d.ts +200 -37
- package/dist/dashboard-widget/types.d.ts +1 -0
- package/dist/dashboard-widget/utils.d.ts +3 -1
- package/dist/filters/components/cascading-filter-tile/cascading-filter-tile.d.ts +25 -0
- package/dist/filters/components/cascading-filter-tile/cascading-level-filter.d.ts +21 -0
- package/dist/filters/components/cascading-filter-tile/index.d.ts +1 -0
- package/dist/filters/components/criteria-filter-tile/criteria-filter-operations.d.ts +2 -2
- package/dist/filters/components/criteria-filter-tile/criteria-filter-tile.d.ts +6 -0
- package/dist/filters/components/custom-filter-tile.d.ts +43 -0
- package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +6 -0
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter-tile.d.ts +8 -2
- package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +2 -2
- package/dist/filters/components/filter-tile.d.ts +21 -1
- package/dist/filters/components/filters-panel/filters-panel-tile.d.ts +4 -2
- package/dist/filters/components/filters-panel/filters-panel.d.ts +4 -2
- package/dist/filters/components/member-filter-tile/member-filter-tile.d.ts +4 -1
- package/dist/filters/components/member-filter-tile/member-list.d.ts +1 -1
- package/dist/filters/hooks/use-synchronized-filter.d.ts +12 -0
- package/dist/filters/index.d.ts +2 -0
- package/dist/filters/utils.d.ts +7 -0
- package/dist/index.cjs +213 -167
- package/dist/index.d.ts +1 -0
- package/dist/index.js +23056 -18772
- package/dist/models/dashboard/dashboard-model.d.ts +12 -8
- package/dist/models/dashboard/get-dashboard-model.d.ts +2 -1
- package/dist/models/dashboard/translate-dashboard-utils.d.ts +3 -1
- package/dist/models/dashboard/types.d.ts +3 -0
- package/dist/models/widget/get-widget-model.d.ts +2 -1
- package/dist/models/widget/translate-widget.d.ts +5 -2
- package/dist/models/widget/types.d.ts +9 -0
- package/dist/models/widget/widget-model.d.ts +31 -1
- package/dist/query/query-result-date-formatting.d.ts +1 -0
- package/dist/translation/resources/en.d.ts +4 -0
- package/dist/translation/resources/index.d.ts +8 -0
- package/dist/types.d.ts +9 -3
- package/dist/useQuery-C8plkncQ.cjs +603 -0
- package/dist/{useQuery-0UWck_2A.js → useQuery-D5W0RM1R.js} +20786 -20529
- package/package.json +10 -10
- package/dist/useQuery-DVHD0kJ-.cjs +0 -603
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { DataSource, Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { Layout, WidgetModel } from '../../models';
|
|
3
3
|
import type { DashboardDto } from '../../api/types/dashboard-dto';
|
|
4
|
+
import { DashboardProps } from '../../dashboard/types';
|
|
5
|
+
import { type WidgetFilterOptions } from './types';
|
|
6
|
+
import { CompleteThemeSettings } from '../../types';
|
|
4
7
|
/**
|
|
5
8
|
* Model of Sisense dashboard defined in the abstractions of Compose SDK.
|
|
6
9
|
*
|
|
@@ -36,13 +39,20 @@ export declare class DashboardModel {
|
|
|
36
39
|
* @internal
|
|
37
40
|
*/
|
|
38
41
|
filters: Filter[];
|
|
42
|
+
/**
|
|
43
|
+
* Dashboard filters options per each widget.
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
widgetFilterOptions: WidgetFilterOptions;
|
|
39
48
|
/**
|
|
40
49
|
* Creates a new dashboard model.
|
|
41
50
|
*
|
|
42
51
|
* @param dashboardDto - The widget DTO to be converted to a widget model
|
|
52
|
+
* @param themeSettings - Optional theme settings
|
|
43
53
|
* @internal
|
|
44
54
|
*/
|
|
45
|
-
constructor(dashboardDto: DashboardDto);
|
|
55
|
+
constructor(dashboardDto: DashboardDto, themeSettings?: CompleteThemeSettings);
|
|
46
56
|
/**
|
|
47
57
|
* Returns the props to be used for rendering a dashboard.
|
|
48
58
|
*
|
|
@@ -52,11 +62,5 @@ export declare class DashboardModel {
|
|
|
52
62
|
* ```
|
|
53
63
|
* @internal
|
|
54
64
|
*/
|
|
55
|
-
getDashboardProps():
|
|
56
|
-
title: string;
|
|
57
|
-
dataSource: DataSource;
|
|
58
|
-
widgets: WidgetModel[];
|
|
59
|
-
layout: Layout;
|
|
60
|
-
filters: Filter[];
|
|
61
|
-
};
|
|
65
|
+
getDashboardProps(): DashboardProps;
|
|
62
66
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
2
|
import { DashboardModel } from '../../models/dashboard/dashboard-model';
|
|
3
|
+
import { CompleteThemeSettings } from '../../types';
|
|
3
4
|
export interface GetDashboardModelOptions {
|
|
4
5
|
/**
|
|
5
6
|
* Boolean flag whether to include widgets in the dashboard model
|
|
@@ -17,4 +18,4 @@ export interface GetDashboardModelOptions {
|
|
|
17
18
|
includeFilters?: boolean;
|
|
18
19
|
}
|
|
19
20
|
/** @internal */
|
|
20
|
-
export declare function getDashboardModel(http: HttpClient, dashboardOid: string, options?: GetDashboardModelOptions): Promise<DashboardModel>;
|
|
21
|
+
export declare function getDashboardModel(http: HttpClient, dashboardOid: string, options?: GetDashboardModelOptions, themeSettings?: CompleteThemeSettings): Promise<DashboardModel>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type Layout as SisenseLayout, type FilterDto, type CascadingFilterDto } from '../../api/types/dashboard-dto';
|
|
2
|
-
import type { Layout } from './types';
|
|
2
|
+
import type { Layout, WidgetFilterOptions } from './types';
|
|
3
3
|
import { Filter } from '@sisense/sdk-data';
|
|
4
|
+
import { WidgetDto } from '../../dashboard-widget/types';
|
|
4
5
|
export declare const translateLayout: (layout: SisenseLayout) => Layout;
|
|
5
6
|
export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>): Filter[];
|
|
7
|
+
export declare function translateWidgetFilterOptions(widgets?: WidgetDto[]): WidgetFilterOptions;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CommonFiltersOptions } from '../../common-filters/types';
|
|
1
2
|
/** @internal */
|
|
2
3
|
export interface Layout {
|
|
3
4
|
columns: {
|
|
@@ -11,3 +12,5 @@ export interface Layout {
|
|
|
11
12
|
}[];
|
|
12
13
|
}[];
|
|
13
14
|
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type WidgetFilterOptions = Record<string, CommonFiltersOptions>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@sisense/sdk-rest-client';
|
|
2
2
|
import { WidgetModel } from './widget-model';
|
|
3
|
+
import { CompleteThemeSettings } from '../../types';
|
|
3
4
|
/** @internal */
|
|
4
|
-
export declare function getWidgetModel(httpClient: HttpClient, dashboardOid: string, widgetOid: string): Promise<WidgetModel>;
|
|
5
|
+
export declare function getWidgetModel(httpClient: HttpClient, dashboardOid: string, widgetOid: string, themeSettings?: CompleteThemeSettings): Promise<WidgetModel>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompleteThemeSettings } from '../../types';
|
|
2
|
+
import { WidgetDto, WidgetType } from '../../dashboard-widget/types';
|
|
3
|
+
import { WidgetTypeInternal } from './types';
|
|
2
4
|
import { WidgetModel } from './widget-model';
|
|
3
|
-
export declare function translateWidget(widget: WidgetDto): WidgetModel;
|
|
5
|
+
export declare function translateWidget(widget: WidgetDto, themeSettings?: CompleteThemeSettings): WidgetModel;
|
|
6
|
+
export declare function translateWidgetType(widgetType: WidgetType): WidgetTypeInternal;
|
|
@@ -3,7 +3,7 @@ import { ChartDataOptions, PivotTableDataOptions } from '../../chart-data-option
|
|
|
3
3
|
import { Panel, WidgetDto, WidgetType } from '../../dashboard-widget/types';
|
|
4
4
|
import { ChartProps, ChartWidgetProps, PivotTableProps, TableProps, TableWidgetProps, PivotTableWidgetProps } from '../../props';
|
|
5
5
|
import { ExecutePivotQueryParams, ExecuteQueryParams } from '../../query-execution';
|
|
6
|
-
import { ChartType, DrilldownOptions, ChartStyleOptions, TableStyleOptions, CompleteThemeSettings } from '../../types';
|
|
6
|
+
import { ChartType, DrilldownOptions, ChartStyleOptions, TableStyleOptions, CompleteThemeSettings, RenderToolbarHandler } from '../../types';
|
|
7
7
|
/**
|
|
8
8
|
* Widget data options.
|
|
9
9
|
*/
|
|
@@ -65,6 +65,18 @@ export declare class WidgetModel {
|
|
|
65
65
|
* Widget drilldown options.
|
|
66
66
|
*/
|
|
67
67
|
drilldownOptions: DrilldownOptions;
|
|
68
|
+
/**
|
|
69
|
+
* "onDataPointClick" handler for the constructed component
|
|
70
|
+
*
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
componentDataPointClickHandler?: ChartProps['onDataPointClick'];
|
|
74
|
+
/**
|
|
75
|
+
* "onDataPointsSelected" handler for the constructed component
|
|
76
|
+
*
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
componentDataPointsSelectedHandler?: ChartProps['onDataPointsSelected'];
|
|
68
80
|
/**
|
|
69
81
|
* Creates a new widget model.
|
|
70
82
|
*
|
|
@@ -174,4 +186,22 @@ export declare class WidgetModel {
|
|
|
174
186
|
* @internal
|
|
175
187
|
*/
|
|
176
188
|
getPivotTableWidgetProps(): PivotTableWidgetProps;
|
|
189
|
+
/**
|
|
190
|
+
* Registers new "onDataPointClick" handler for the constructed component
|
|
191
|
+
*
|
|
192
|
+
* @internal
|
|
193
|
+
*/
|
|
194
|
+
registerComponentDataPointClickHandler?(handler: NonNullable<ChartProps['onDataPointClick']>): void;
|
|
195
|
+
/**
|
|
196
|
+
* Registers new "onDataPointsSelected" handler for the constructed component
|
|
197
|
+
*
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
200
|
+
registerComponentDataPointsSelectedHandler?(handler: NonNullable<ChartProps['onDataPointsSelected']>): void;
|
|
201
|
+
/**
|
|
202
|
+
* Registers new "renderToolbar" handler for the constructed component
|
|
203
|
+
*
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
registerComponentRenderToolbarHandler?(handler: RenderToolbarHandler): void;
|
|
177
207
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Data } from '@sisense/sdk-data';
|
|
2
2
|
import type { DateConfig } from './date-formats';
|
|
3
3
|
import type { QueryResultData } from '@sisense/sdk-data';
|
|
4
|
+
export declare function parseISOWithDefaultUTCOffset(dateString: string): Date;
|
|
4
5
|
export declare function applyDateFormats(data: QueryResultData | Data, chartDataOptions: any, locale?: Locale, dateConfig?: DateConfig): QueryResultData | Data;
|
|
@@ -100,6 +100,10 @@ export declare const resources: {
|
|
|
100
100
|
title: string;
|
|
101
101
|
message: string;
|
|
102
102
|
};
|
|
103
|
+
commonFilter: {
|
|
104
|
+
clearSelectionButton: string;
|
|
105
|
+
};
|
|
106
|
+
customFilterTileMessage: string;
|
|
103
107
|
};
|
|
104
108
|
uk: {
|
|
105
109
|
errors: {
|
|
@@ -199,5 +203,9 @@ export declare const resources: {
|
|
|
199
203
|
title: string;
|
|
200
204
|
message: string;
|
|
201
205
|
};
|
|
206
|
+
commonFilter: {
|
|
207
|
+
clearSelectionButton: string;
|
|
208
|
+
};
|
|
209
|
+
customFilterTileMessage: string;
|
|
202
210
|
};
|
|
203
211
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { Attribute, MembersFilter } from '@sisense/sdk-data';
|
|
3
3
|
import { DeepRequired } from 'ts-essentials';
|
|
4
|
-
import { AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype } from './chart-options-processor/subtype-to-design-options';
|
|
4
|
+
import { AreaSubtype, BoxplotSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, AreaRangeSubtype } from './chart-options-processor/subtype-to-design-options';
|
|
5
5
|
import { IndicatorComponents, TableColorOptions } from './chart-options-processor/translations/design-options';
|
|
6
6
|
import { FunnelDirection, FunnelSize, FunnelType } from './chart-options-processor/translations/funnel-plot-options';
|
|
7
7
|
import { ScatterMarkerSize } from './chart-options-processor/translations/scatter-plot-options';
|
|
@@ -15,7 +15,7 @@ export type { AppConfig } from './app/client-application';
|
|
|
15
15
|
export type { DateConfig } from './query/date-formats';
|
|
16
16
|
export type { CartesianChartDataOptions, CategoricalChartDataOptions, ChartDataOptions, ScatterChartDataOptions, IndicatorChartDataOptions, StyledColumn, StyledMeasureColumn, } from './chart-data-options/types';
|
|
17
17
|
export type { DataColorCondition, ConditionalDataColorOptions, DataColorOptions, RangeDataColorOptions, UniformDataColorOptions, } from './chart-data/data-coloring/types';
|
|
18
|
-
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, TableChartType, AreaSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, };
|
|
18
|
+
export type { CartesianChartType, CategoricalChartType, ScatterChartType, IndicatorChartType, BoxplotChartType, ScattermapChartType, AreamapChartType, TableType, TableChartType, AreaSubtype, AreaRangeSubtype, LineSubtype, PieSubtype, PolarSubtype, StackableSubtype, BoxplotSubtype, IndicatorComponents, ScatterMarkerSize, LegendPosition, GeoDataElement, RawGeoDataElement, Coordinates, RangeChartType, TableColorOptions, };
|
|
19
19
|
export type { MonthOfYear, DayOfWeek, DateLevel } from './query/date-formats/apply-date-format';
|
|
20
20
|
/**
|
|
21
21
|
* @internal
|
|
@@ -215,7 +215,10 @@ export interface LineStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions
|
|
|
215
215
|
}
|
|
216
216
|
/** Configuration options that define functional style of the various elements of AreaRangeChart */
|
|
217
217
|
export interface AreaRangeStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
218
|
+
/** Configuration that defines line width */
|
|
218
219
|
lineWidth?: LineWidth;
|
|
220
|
+
/** Subtype of AreaRangeChart */
|
|
221
|
+
subtype?: AreaRangeSubtype;
|
|
219
222
|
}
|
|
220
223
|
/** Configuration options that define functional style of the various elements of AreaChart */
|
|
221
224
|
export interface AreaStyleOptions extends BaseStyleOptions, BaseAxisStyleOptions {
|
|
@@ -872,9 +875,11 @@ export interface WidgetStyleOptions {
|
|
|
872
875
|
*
|
|
873
876
|
* @internal
|
|
874
877
|
*/
|
|
875
|
-
renderToolbar?:
|
|
878
|
+
renderToolbar?: RenderToolbarHandler;
|
|
876
879
|
};
|
|
877
880
|
}
|
|
881
|
+
/** @internal */
|
|
882
|
+
export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
|
|
878
883
|
/** Style settings defining the look and feel of DashboardWidget */
|
|
879
884
|
export interface DashboardWidgetStyleOptions extends WidgetStyleOptions {
|
|
880
885
|
/**
|
|
@@ -1052,6 +1057,7 @@ export type Series = {
|
|
|
1052
1057
|
export type HighchartsPoint = {
|
|
1053
1058
|
category: string;
|
|
1054
1059
|
name?: string;
|
|
1060
|
+
state?: string;
|
|
1055
1061
|
options: {
|
|
1056
1062
|
name: string;
|
|
1057
1063
|
custom: {
|