@sisense/sdk-ui 2.5.0 → 2.7.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 +17 -17
- package/dist/ai.js +653 -650
- package/dist/analytics-composer.cjs +82 -82
- package/dist/analytics-composer.js +1911 -1911
- package/dist/derive-chart-family-BCY-GLVZ.cjs +672 -0
- package/dist/derive-chart-family-DvYmrG1k.js +93730 -0
- package/dist/dimensions-DAISVpEZ.cjs +1 -0
- package/dist/dimensions-WmjaZcrG.js +203 -0
- package/dist/index.cjs +14 -14
- package/dist/index.js +6403 -6271
- package/dist/index.umd.js +297 -297
- package/dist/packages/sdk-ui/src/ai/api/types.d.ts +1 -0
- package/dist/packages/sdk-ui/src/ai/chat-config.d.ts +7 -0
- package/dist/packages/sdk-ui/src/ai/use-get-query-recommendations.d.ts +7 -0
- package/dist/packages/sdk-ui/src/analytics-composer/query/fix-ranking-filter-jaql.d.ts +8 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/get-legacy-cartesian-chart-options.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/tooltip.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/{highcharts-options-builder.d.ts → highchart-options/highcharts-options-builder.d.ts} +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/stackable/bar-chart/highchart-options/legend.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/{cartesian-chart-options.d.ts → cartesian/cartesian-chart-options.d.ts} +6 -6
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/axis-configuration.d.ts +41 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-configuration.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/chart-spacing-calculator.d.ts +41 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +57 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/tooltip.d.ts +3 -29
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-tooltip.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +17 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/treemap/treemap-tooltip.d.ts +3 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +3 -3
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +7 -1
- package/dist/packages/sdk-ui/src/dashboard/components/jtd-dashboard.d.ts +2 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +38 -4
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +26 -19
- package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/use-track-component-init.d.ts +4 -1
- package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/with-tracking.d.ts +10 -2
- package/dist/packages/sdk-ui/src/dynamic-size-container/dynamic-size-container.d.ts +2 -1
- package/dist/packages/sdk-ui/src/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +1 -0
- package/dist/packages/sdk-ui/src/props.d.ts +10 -0
- package/dist/packages/sdk-ui/src/sisense-chart/sisense-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +4 -0
- package/dist/packages/sdk-ui/src/types.d.ts +27 -0
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +27 -1
- package/dist/{use-common-filters-Bf8KKBN2.cjs → use-common-filters-CRrL9rOQ.cjs} +67 -67
- package/dist/{use-common-filters-BTk7vuUo.js → use-common-filters-CVgB69Xe.js} +1486 -1453
- package/dist/{widget-composer-BtqAxkpr.js → widget-composer-B4eAv2pf.js} +232 -193
- package/dist/{widget-composer-CJDaEkCY.cjs → widget-composer-D0FZj1tX.cjs} +8 -8
- package/package.json +20 -18
- package/dist/derive-chart-family-Cjjn5U5S.cjs +0 -669
- package/dist/derive-chart-family-ci86jmVk.js +0 -90516
- package/dist/dimensions-COtPNdpu.cjs +0 -1
- package/dist/dimensions-wzj4u0MX.js +0 -200
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/get-legacy-cartesian-chart-options.d.ts +0 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { TrackingDecoratorConfig } from './with-tracking';
|
|
3
|
+
type TrackingComponentConfig = TrackingDecoratorConfig;
|
|
2
4
|
export declare const TrackingContextProvider: ({ skipNested, children, }: {
|
|
3
5
|
children: ReactNode;
|
|
4
6
|
skipNested?: boolean | undefined;
|
|
5
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const useTrackComponentInit: <P extends {}>(
|
|
8
|
+
export declare const useTrackComponentInit: <P extends {}>(trackingComponentConfig: TrackingComponentConfig, props: P) => void;
|
|
9
|
+
export {};
|
package/dist/packages/sdk-ui/src/decorators/component-decorators/with-tracking/with-tracking.d.ts
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { ComponentDecorator } from '../as-sisense-component';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for withTracking decorator
|
|
4
|
+
*
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export type TrackingDecoratorConfig = {
|
|
3
8
|
componentName: string;
|
|
4
9
|
config: {
|
|
5
10
|
skip?: boolean | ((props: any) => boolean);
|
|
6
11
|
transparent?: boolean;
|
|
12
|
+
packageName?: string;
|
|
13
|
+
packageVersion?: string;
|
|
7
14
|
};
|
|
8
15
|
};
|
|
9
16
|
/**
|
|
10
17
|
* Adds tracking to the component
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
11
20
|
*/
|
|
12
21
|
export declare const withTracking: ComponentDecorator<TrackingDecoratorConfig>;
|
|
13
|
-
export {};
|
|
@@ -13,6 +13,7 @@ export type DynamicSizeContainerProps = {
|
|
|
13
13
|
height?: boolean;
|
|
14
14
|
};
|
|
15
15
|
onSizeChange?: (size: ContainerSize) => void;
|
|
16
|
+
debounceMs?: number;
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
* A container component that adjusts its content size according to provided sizes
|
|
@@ -37,4 +38,4 @@ export type DynamicSizeContainerProps = {
|
|
|
37
38
|
* @param {DynamicSizeContainerProps} props - DynamicSizeContainer properties.
|
|
38
39
|
* @returns {JSX.Element} The DynamicSizeContainer component.
|
|
39
40
|
*/
|
|
40
|
-
export declare const DynamicSizeContainer: ({ children, defaultSize, size, rerenderOnResize, useContentSize, onSizeChange, }: DynamicSizeContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const DynamicSizeContainer: ({ children, defaultSize, size, rerenderOnResize, useContentSize, onSizeChange, debounceMs, }: DynamicSizeContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -10,6 +10,7 @@ export { getChartType } from './widget-by-id/utils';
|
|
|
10
10
|
export * from './query-execution';
|
|
11
11
|
export { executeQuery, executePivotQuery } from './query/execute-query';
|
|
12
12
|
export { SisenseContextProvider } from './sisense-context/sisense-context-provider';
|
|
13
|
+
export * from './decorators/component-decorators/with-tracking';
|
|
13
14
|
export { DrilldownWidget } from './widgets/drilldown-widget';
|
|
14
15
|
export { processDrilldownSelections } from './widgets/common/use-drilldown-core';
|
|
15
16
|
export { ChartWidget } from './widgets/chart-widget';
|
|
@@ -13,5 +13,6 @@ export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersO
|
|
|
13
13
|
* @param dashboard - The dashboard DTO to replace shared formulas in
|
|
14
14
|
* @param api - The REST API instance
|
|
15
15
|
* @returns The dashboard DTO with shared formulas, defined by id references, replaced
|
|
16
|
+
* @internal
|
|
16
17
|
*/
|
|
17
18
|
export declare function withSharedFormulas(dashboard: DashboardDto, api: RestApi): Promise<DashboardDto>;
|
|
@@ -114,6 +114,16 @@ export interface SisenseContextProviderProps {
|
|
|
114
114
|
*
|
|
115
115
|
*/
|
|
116
116
|
enableSilentPreAuth?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Alternative host to use for SSO authentication.
|
|
119
|
+
* Used **only** when the SSO Login URL is configured as a *relative* url.
|
|
120
|
+
* If not specified, the default value is `''`.
|
|
121
|
+
*
|
|
122
|
+
* @category Sisense Authentication
|
|
123
|
+
*
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
alternativeSsoHost?: string;
|
|
117
127
|
}
|
|
118
128
|
/**
|
|
119
129
|
* Props for {@link ExecuteQuery} component.
|
|
@@ -4,6 +4,6 @@ import { SisenseChartProps, SisenseChartType } from './types';
|
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
6
6
|
*/
|
|
7
|
-
export declare const SisenseChart: ({ chartType, chartData, dataOptions, designOptions, onDataPointClick, onDataPointContextMenu, onDataPointsSelected, onBeforeRender, }: SisenseChartProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
export declare const SisenseChart: ({ chartType, chartData, dataOptions, designOptions, onDataPointClick, onDataPointContextMenu, onDataPointsSelected, onBeforeRender, size, }: SisenseChartProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
8
|
export declare const isSisenseChartType: (chartType: ChartType) => chartType is SisenseChartType;
|
|
9
9
|
export declare const isSisenseChartProps: (props: ChartRendererProps) => props is SisenseChartProps;
|
|
@@ -15,5 +15,9 @@ export interface SisenseChartProps {
|
|
|
15
15
|
onDataPointContextMenu?: SisenseChartDataPointEventHandler;
|
|
16
16
|
onDataPointsSelected?: SisenseChartDataPointsEventHandler;
|
|
17
17
|
onBeforeRender?: BeforeRenderHandler;
|
|
18
|
+
size?: {
|
|
19
|
+
width?: number;
|
|
20
|
+
height?: number;
|
|
21
|
+
};
|
|
18
22
|
}
|
|
19
23
|
export type SisenseChartType = CartesianChartType | CategoricalChartType | ScatterChartType | BoxplotChartType;
|
|
@@ -1240,6 +1240,8 @@ export type NlqChartWidgetStyleOptions = {
|
|
|
1240
1240
|
export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
|
|
1241
1241
|
/** @internal */
|
|
1242
1242
|
export type RenderTitleHandler = (defaultHeaderTitle: ReactNode) => ReactNode;
|
|
1243
|
+
/** @internal */
|
|
1244
|
+
export type TextWidgetRenderToolbarHandler = (defaultToolbar: ReactNode) => ReactNode;
|
|
1243
1245
|
/** Style settings defining the look and feel of the widget created in Fusion */
|
|
1244
1246
|
export interface WidgetByIdStyleOptions extends WidgetContainerStyleOptions {
|
|
1245
1247
|
/**
|
|
@@ -1280,6 +1282,31 @@ export type TextWidgetStyleOptions = {
|
|
|
1280
1282
|
html: string;
|
|
1281
1283
|
vAlign: `valign-${'middle' | 'top' | 'bottom'}`;
|
|
1282
1284
|
bgColor: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* Widget header styles
|
|
1287
|
+
*
|
|
1288
|
+
* @internal
|
|
1289
|
+
*/
|
|
1290
|
+
header?: {
|
|
1291
|
+
/**
|
|
1292
|
+
* Header visibility toggle
|
|
1293
|
+
*
|
|
1294
|
+
* @internal
|
|
1295
|
+
*/
|
|
1296
|
+
hidden?: boolean;
|
|
1297
|
+
/**
|
|
1298
|
+
* Custom toolbar to render to the right of the title
|
|
1299
|
+
*
|
|
1300
|
+
* @internal
|
|
1301
|
+
*/
|
|
1302
|
+
renderToolbar?: TextWidgetRenderToolbarHandler;
|
|
1303
|
+
/**
|
|
1304
|
+
* Custom title to render in widget header
|
|
1305
|
+
*
|
|
1306
|
+
* @internal
|
|
1307
|
+
*/
|
|
1308
|
+
renderTitle?: RenderTitleHandler;
|
|
1309
|
+
};
|
|
1283
1310
|
};
|
|
1284
1311
|
/**
|
|
1285
1312
|
* Style settings defining the look and feel of CustomWidget
|
|
@@ -10,12 +10,35 @@ export { mergeFilters, getFilterRelationsFromJaql, convertFilterRelationsModelTo
|
|
|
10
10
|
*
|
|
11
11
|
* @internal
|
|
12
12
|
*/
|
|
13
|
-
export declare function getChartType(fusionWidgetType: FusionWidgetType): ChartType;
|
|
13
|
+
export declare function getChartType(fusionWidgetType: FusionWidgetType): ChartType | undefined;
|
|
14
14
|
export declare function getFusionWidgetTypeFromChartType(chartType: ChartType): FusionWidgetType;
|
|
15
15
|
export declare function getFusionWidgetType(widgetType: WidgetType, chartType?: ChartType): FusionWidgetType;
|
|
16
16
|
export declare function getWidgetType(fusionWidgetType: FusionWidgetType): WidgetType;
|
|
17
17
|
export declare function getChartSubtype(widgetSubtype: WidgetSubtype): ChartSubtype | undefined;
|
|
18
18
|
export declare function isSupportedWidgetType(fusionWidgetType: FusionWidgetType): fusionWidgetType is FusionWidgetType;
|
|
19
|
+
/**
|
|
20
|
+
* Widget types that support Jump To Dashboard (JTD) functionality
|
|
21
|
+
*
|
|
22
|
+
* Supported types:
|
|
23
|
+
* - Pie chart with no categories, Pie chart
|
|
24
|
+
* - Indicator
|
|
25
|
+
* - Text widget
|
|
26
|
+
* - Column chart, Bar chart, Line chart, Area chart
|
|
27
|
+
* - Pivot
|
|
28
|
+
* - Scatter chart, Polar chart
|
|
29
|
+
* - Blox
|
|
30
|
+
*
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export declare const JTD_SUPPORTED_WIDGET_TYPES: FusionWidgetType[];
|
|
34
|
+
/**
|
|
35
|
+
* Check if the widget type supports Jump To Dashboard (JTD)
|
|
36
|
+
*
|
|
37
|
+
* @param fusionWidgetType - The fusion widget type
|
|
38
|
+
* @returns True if the widget type supports JTD, false otherwise
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export declare function widgetTypeSupportsJtd(fusionWidgetType: FusionWidgetType): boolean;
|
|
19
42
|
export declare function isTableFusionWidget(fusionWidgetType: FusionWidgetType): boolean;
|
|
20
43
|
export declare function isTableWidgetModel(widgetModel: WidgetModel): boolean;
|
|
21
44
|
export declare function isPivotTableFusionWidget(fusionWidgetType: FusionWidgetType): boolean;
|
|
@@ -26,6 +49,9 @@ export declare function isTextWidgetDtoStyle(widgetStyle: WidgetStyle): widgetSt
|
|
|
26
49
|
export declare function isCustomWidgetFusionWidget(fusionWidgetType: FusionWidgetType): boolean;
|
|
27
50
|
export declare function isCustomWidget(widgetType: WidgetType): boolean;
|
|
28
51
|
export declare function isChartFusionWidget(fusionWidgetType: FusionWidgetType): boolean;
|
|
52
|
+
export declare function isChartTypeFusionWidget(fusionWidgetType: FusionWidgetType): boolean;
|
|
53
|
+
export declare function isPieChartFusionWidget(fusionWidgetType: FusionWidgetType): boolean;
|
|
54
|
+
export declare function isIndicatorFusionWidget(fusionWidgetType: FusionWidgetType): boolean;
|
|
29
55
|
export declare function isChartWidget(widgetType: WidgetType): boolean;
|
|
30
56
|
/**
|
|
31
57
|
* Type guard for checking if the widget props is for a text widget.
|