@sisense/sdk-ui 2.6.0 → 2.8.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 +29 -29
- package/dist/ai.js +686 -702
- package/dist/analytics-composer.cjs +33 -33
- package/dist/analytics-composer.js +278 -290
- package/dist/derive-chart-family-6PZA-xZh.js +92092 -0
- package/dist/derive-chart-family-DQUVKMcV.cjs +656 -0
- package/dist/{dimensions-DuHaCozA.js → dimensions-b8xRITJn.js} +4 -5
- package/dist/{dimensions-BgPl9ZS9.cjs → dimensions-x8nnAUew.cjs} +1 -1
- package/dist/index.cjs +17 -17
- package/dist/index.js +7935 -7787
- package/dist/index.umd.js +415 -389
- 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/common/icon-button.d.ts +1 -3
- package/dist/packages/sdk-ui/src/ai/messages/clickable-message.d.ts +0 -1
- 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/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-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/data-points.d.ts +1 -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/common/icons/drag-handle-icon.d.ts +2 -1
- package/dist/packages/sdk-ui/src/custom-widgets-provider/types.d.ts +10 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +5 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +7 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +0 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +0 -1
- package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +4 -0
- 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/error-boundary/error-boundary.d.ts +1 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-existing-filter-editing.d.ts +0 -1
- package/dist/packages/sdk-ui/src/filters/components/filters-panel/hooks/use-new-filter-adding.d.ts +0 -1
- package/dist/packages/sdk-ui/src/filters/components/member-filter-tile/use-members.d.ts +1 -1
- package/dist/packages/sdk-ui/src/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/get-pivot-table-data-point.d.ts +4 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/types.d.ts +32 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/use-apply-pivot-table-cell-events.d.ts +18 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/utils.d.ts +11 -0
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-formatting.d.ts +2 -2
- package/dist/packages/sdk-ui/src/pivot-table/hooks/use-render-pivot.d.ts +8 -4
- package/dist/packages/sdk-ui/src/props.d.ts +33 -1
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +5 -0
- package/dist/packages/sdk-ui/src/types.d.ts +84 -3
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +3 -3
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -6
- package/dist/{use-common-filters-B1RKY2KD.js → use-common-filters-BHBy4uv6.js} +5815 -5679
- package/dist/use-common-filters-Cg217teN.cjs +350 -0
- package/dist/{widget-composer-B2r2a9Oh.cjs → widget-composer-BPlNiX_P.cjs} +8 -8
- package/dist/{widget-composer-I9gUFBZt.js → widget-composer-SGEFYrXY.js} +248 -216
- package/package.json +29 -27
- package/dist/derive-chart-family-BPYK8evJ.js +0 -90579
- package/dist/derive-chart-family-yUBZXP4x.cjs +0 -669
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/get-legacy-cartesian-chart-options.d.ts +0 -3
- package/dist/use-common-filters-CRgYdKcV.cjs +0 -350
|
@@ -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';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type PivotTableDataOptionsInternal } from '../../../chart-data-options/types';
|
|
2
|
+
import { PivotTableDataPoint } from '../../../types';
|
|
3
|
+
import { PivotTableCellPayload } from './types';
|
|
4
|
+
export declare const getPivotTableDataPoint: (cellPayload: PivotTableCellPayload, dataOptions: PivotTableDataOptionsInternal) => PivotTableDataPoint;
|
package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useApplyPivotTableCellEvents } from './use-apply-pivot-table-cell-events';
|
package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/types.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type AbstractDataTreeNode = {
|
|
2
|
+
value: string;
|
|
3
|
+
content: string;
|
|
4
|
+
level: number;
|
|
5
|
+
metadataType: string;
|
|
6
|
+
userType: string;
|
|
7
|
+
parent: AbstractDataTreeNode | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type ValueDataNode = AbstractDataTreeNode & {
|
|
10
|
+
index: number;
|
|
11
|
+
metadataType: 'measures';
|
|
12
|
+
userType: 'measureBottom' | 'measureTop';
|
|
13
|
+
};
|
|
14
|
+
export type RowDataNode = AbstractDataTreeNode & {
|
|
15
|
+
index: number;
|
|
16
|
+
metadataType: 'rows';
|
|
17
|
+
userType: 'corner' | 'subTotal' | 'grandTotal';
|
|
18
|
+
};
|
|
19
|
+
export type ColumnDataNode = AbstractDataTreeNode & {
|
|
20
|
+
index: number;
|
|
21
|
+
metadataType: 'columns';
|
|
22
|
+
userType: 'subTotal' | 'grandTotal';
|
|
23
|
+
};
|
|
24
|
+
export type PivotTableCellPayload = {
|
|
25
|
+
dataNode: ValueDataNode | RowDataNode | ColumnDataNode;
|
|
26
|
+
rowTreeNode?: RowDataNode;
|
|
27
|
+
columnTreeNode?: ColumnDataNode;
|
|
28
|
+
measureTreeNode?: ValueDataNode;
|
|
29
|
+
isDataCell: boolean;
|
|
30
|
+
event: MouseEvent;
|
|
31
|
+
};
|
|
32
|
+
export type { AbstractDataTreeNode };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type PivotTableDataOptionsInternal } from '../../../chart-data-options/types';
|
|
2
|
+
import { PivotTableDataPointEventHandler } from '../../../index-typedoc';
|
|
3
|
+
import { PivotTableCellPayload } from './types';
|
|
4
|
+
type UseApplyPivotTableCellEventsProps = {
|
|
5
|
+
dataOptions: PivotTableDataOptionsInternal;
|
|
6
|
+
onDataPointClick?: PivotTableDataPointEventHandler;
|
|
7
|
+
onDataPointContextMenu?: PivotTableDataPointEventHandler;
|
|
8
|
+
};
|
|
9
|
+
type UseApplyPivotTableCellEventsResult = {
|
|
10
|
+
handlePivotTableCellClick: (payload: PivotTableCellPayload) => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A hook that applies pivot table cell events.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const useApplyPivotTableCellEvents: ({ dataOptions, onDataPointClick, onDataPointContextMenu, }: UseApplyPivotTableCellEventsProps) => UseApplyPivotTableCellEventsResult;
|
|
18
|
+
export {};
|
package/dist/packages/sdk-ui/src/pivot-table/hooks/use-apply-pivot-table-cell-events/utils.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractDataTreeNode } from './types';
|
|
2
|
+
export declare function getTreeNodeByLevel(node: AbstractDataTreeNode, level: number): AbstractDataTreeNode;
|
|
3
|
+
export declare function isSubTotalTreeNode(node: AbstractDataTreeNode, type: 'rows' | 'columns'): boolean;
|
|
4
|
+
export declare function isGrandTotalTreeNode(node: AbstractDataTreeNode, type: 'rows' | 'columns'): boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Safely performs modulo operation, returning 0 if divisor is null/undefined or 0
|
|
7
|
+
* @param dividend - The dividend number (defaults to 0 if not provided)
|
|
8
|
+
* @param divisor - The divisor number (optional)
|
|
9
|
+
* @returns The result of dividend % divisor, or 0 if divisor is invalid
|
|
10
|
+
*/
|
|
11
|
+
export declare function safeModulo(dividend?: number, divisor?: number): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DataService } from '@sisense/sdk-pivot-client';
|
|
2
|
-
import { type
|
|
2
|
+
import { type PivotTableDataOptionsInternal } from '../../chart-data-options/types';
|
|
3
3
|
/**
|
|
4
4
|
* A hook that applies formatting over pivot table cells.
|
|
5
5
|
*
|
|
@@ -7,5 +7,5 @@ import { type PivotTableDataOptions } from '../../chart-data-options/types';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const useApplyPivotTableFormatting: ({ dataService, dataOptions, }: {
|
|
9
9
|
dataService: DataService;
|
|
10
|
-
dataOptions:
|
|
10
|
+
dataOptions: PivotTableDataOptionsInternal;
|
|
11
11
|
}) => void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type PivotBuilder } from '@sisense/sdk-pivot-client';
|
|
3
2
|
import type { CompleteThemeSettings, PivotTableStyleOptions } from '../../types';
|
|
4
|
-
import type {
|
|
3
|
+
import type { PivotTableDataOptionsInternal } from '../../chart-data-options/types';
|
|
5
4
|
import type { ContainerSize } from '../../dynamic-size-container/dynamic-size-container';
|
|
5
|
+
import { PivotTableDataPointEventHandler } from '../../index-typedoc';
|
|
6
6
|
type PivotRenderOptions = {
|
|
7
7
|
/** The pivot builder instance. */
|
|
8
8
|
pivotBuilder: PivotBuilder;
|
|
9
9
|
/** The pivot table data options. */
|
|
10
|
-
dataOptions:
|
|
10
|
+
dataOptions: PivotTableDataOptionsInternal;
|
|
11
11
|
/** The pivot table style options. */
|
|
12
12
|
styleOptions: PivotTableStyleOptions;
|
|
13
13
|
/** The theme settings. */
|
|
@@ -16,11 +16,15 @@ type PivotRenderOptions = {
|
|
|
16
16
|
size: ContainerSize | null;
|
|
17
17
|
/** Callback to handle total height change. */
|
|
18
18
|
onTotalHeightChange?: (totalHeight: number) => void;
|
|
19
|
+
/** Callback to handle data point click. */
|
|
20
|
+
onDataPointClick?: PivotTableDataPointEventHandler;
|
|
21
|
+
/** Callback to handle data point context menu. */
|
|
22
|
+
onDataPointContextMenu?: PivotTableDataPointEventHandler;
|
|
19
23
|
};
|
|
20
24
|
/**
|
|
21
25
|
* A hook that renders the pivot table.
|
|
22
26
|
*/
|
|
23
|
-
export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, onTotalHeightChange, }: PivotRenderOptions): {
|
|
27
|
+
export declare function useRenderPivot({ pivotBuilder, dataOptions, styleOptions, themeSettings, size, onTotalHeightChange, onDataPointClick, onDataPointContextMenu, }: PivotRenderOptions): {
|
|
24
28
|
pivotElement: JSX.Element | null;
|
|
25
29
|
};
|
|
26
30
|
export {};
|
|
@@ -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, MenuAlignment, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, IndicatorRenderOptions, TabberStyleProps, IndicatorDataPoint, TextWidgetDataPoint, CustomWidgetStyleOptions } from './types';
|
|
2
|
+
import { ChartDataOptions, CartesianChartDataOptions, CategoricalChartDataOptions, ThemeSettings, PolarStyleOptions, PieStyleOptions, StackableStyleOptions, LineStyleOptions, AreaStyleOptions, FunnelStyleOptions, ScatterStyleOptions, ChartStyleOptions, ChartType, IndicatorStyleOptions, DrilldownOptions, ThemeOid, TreemapStyleOptions, CustomDrilldownResult, MenuPosition, MenuAlignment, MenuItemSection, SunburstStyleOptions, ChartWidgetStyleOptions, TableWidgetStyleOptions, WidgetByIdStyleOptions, BoxplotStyleOptions, ScattermapStyleOptions, AreamapStyleOptions, DataPoint, ScatterDataPoint, AreamapDataPoint, BoxplotDataPoint, ChartDataPoints, ScattermapDataPoint, PivotTableStyleOptions, PivotTableWidgetStyleOptions, RegularChartType, RegularChartStyleOptions, TabularChartStyleOptions, TableStyleOptions, AreaRangeStyleOptions, DrilldownSelection, TextWidgetStyleOptions, GenericDataOptions, IndicatorRenderOptions, TabberStyleProps, IndicatorDataPoint, TextWidgetDataPoint, CustomWidgetStyleOptions, PivotTableDataPoint } 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';
|
|
@@ -306,6 +306,14 @@ export type TextWidgetDataPointEventHandler = (
|
|
|
306
306
|
point: TextWidgetDataPoint,
|
|
307
307
|
/** Native MouseEvent */
|
|
308
308
|
nativeEvent: MouseEvent) => void;
|
|
309
|
+
/**
|
|
310
|
+
* Click handler for when a pivot table cell is clicked.
|
|
311
|
+
*/
|
|
312
|
+
export type PivotTableDataPointEventHandler = (
|
|
313
|
+
/** Data point that was clicked */
|
|
314
|
+
point: PivotTableDataPoint,
|
|
315
|
+
/** Native MouseEvent */
|
|
316
|
+
nativeEvent: MouseEvent) => void;
|
|
309
317
|
interface HighchartsBasedChartEventProps {
|
|
310
318
|
/**
|
|
311
319
|
* A callback that allows you to customize the underlying chart element before it is rendered.
|
|
@@ -871,6 +879,18 @@ export interface PivotTableProps {
|
|
|
871
879
|
* @internal
|
|
872
880
|
*/
|
|
873
881
|
onHeightChange?: (height: number) => void;
|
|
882
|
+
/**
|
|
883
|
+
* Callback function that is called when the pivot table cell is clicked
|
|
884
|
+
*
|
|
885
|
+
* @internal
|
|
886
|
+
*/
|
|
887
|
+
onDataPointClick?: PivotTableDataPointEventHandler;
|
|
888
|
+
/**
|
|
889
|
+
* Callback function that is called when the pivot table cell is right-clicked
|
|
890
|
+
*
|
|
891
|
+
* @internal
|
|
892
|
+
*/
|
|
893
|
+
onDataPointContextMenu?: PivotTableDataPointEventHandler;
|
|
874
894
|
}
|
|
875
895
|
/**
|
|
876
896
|
* Props of the {@link ScatterChart} component.
|
|
@@ -1182,6 +1202,18 @@ export interface PivotTableWidgetProps {
|
|
|
1182
1202
|
* @category Widget
|
|
1183
1203
|
*/
|
|
1184
1204
|
description?: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* Callback function that is called when the pivot table cell is clicked
|
|
1207
|
+
*
|
|
1208
|
+
* @internal
|
|
1209
|
+
*/
|
|
1210
|
+
onDataPointClick?: PivotTableDataPointEventHandler;
|
|
1211
|
+
/**
|
|
1212
|
+
* Callback function that is called when the pivot table cell is right-clicked
|
|
1213
|
+
*
|
|
1214
|
+
* @internal
|
|
1215
|
+
*/
|
|
1216
|
+
onDataPointContextMenu?: PivotTableDataPointEventHandler;
|
|
1185
1217
|
}
|
|
1186
1218
|
/**
|
|
1187
1219
|
* Props for the `TextWidget` component.
|
|
@@ -3,7 +3,12 @@ export declare const DEFAULT_DIVIDER_COLOR = "#F2F2F2";
|
|
|
3
3
|
export declare const DEFAULT_DIVIDER_WIDTH = 4;
|
|
4
4
|
export declare const DEFAULT_DASHBOARD_BORDER_COLOR = "#D5D5D5";
|
|
5
5
|
export declare const DEFAULT_DASHBOARD_BORDER_WIDTH = 1;
|
|
6
|
+
export declare const DEFAULT_DASHBOARD_TOOLBAR_DIVIDER_LINE_COLOR = "#D5D5D5";
|
|
7
|
+
export declare const DEFAULT_DASHBOARD_TOOLBAR_DIVIDER_LINE_WIDTH = 1;
|
|
8
|
+
export declare const DEFAULT_FILTER_PANEL_DIVIDER_LINE_COLOR = "#DADADA";
|
|
9
|
+
export declare const DEFAULT_FILTER_PANEL_DIVIDER_LINE_WIDTH = 1;
|
|
6
10
|
export declare const DEFAULT_FILTER_PANEL_BORDER_COLOR = "#DADADA";
|
|
11
|
+
export declare const DEFAULT_FILTER_PANEL_BORDER_WIDTH = 1;
|
|
7
12
|
export declare const DEFAULT_TITLE_FONT_SIZE = 15;
|
|
8
13
|
/**
|
|
9
14
|
* Returns default theme settings, which can be used as base for custom theme options.
|
|
@@ -975,6 +975,10 @@ export type DashboardThemeSettings = {
|
|
|
975
975
|
secondaryTextColor?: string;
|
|
976
976
|
/** Background color for the dashboard toolbar */
|
|
977
977
|
backgroundColor?: string;
|
|
978
|
+
/** Divider line color for the dashboard toolbar */
|
|
979
|
+
dividerLineColor?: string;
|
|
980
|
+
/** Divider line width for the dashboard toolbar */
|
|
981
|
+
dividerLineWidth?: number;
|
|
978
982
|
};
|
|
979
983
|
};
|
|
980
984
|
/**
|
|
@@ -986,14 +990,24 @@ export type FilterThemeSettings = {
|
|
|
986
990
|
titleColor?: string;
|
|
987
991
|
/** Background color */
|
|
988
992
|
backgroundColor?: string;
|
|
993
|
+
/** Divider line color for the filter panel */
|
|
994
|
+
dividerLineColor?: string;
|
|
995
|
+
/** Divider line width for the filter panel */
|
|
996
|
+
dividerLineWidth?: number;
|
|
989
997
|
/**
|
|
990
|
-
* Border color
|
|
998
|
+
* Border color for the filter panel component
|
|
999
|
+
*
|
|
1000
|
+
* **Note:** Does not apply to filter panel inside `Dashboard`
|
|
1001
|
+
* use dividerLineColor and dividerLineWidth instead
|
|
991
1002
|
*
|
|
992
1003
|
* @internal
|
|
993
1004
|
* */
|
|
994
1005
|
borderColor?: string;
|
|
995
1006
|
/**
|
|
996
|
-
* Border width
|
|
1007
|
+
* Border width for the filter panel component
|
|
1008
|
+
*
|
|
1009
|
+
* **Note:** Does not apply to filter panel inside `Dashboard`
|
|
1010
|
+
* use dividerLineColor and dividerLineWidth instead
|
|
997
1011
|
*
|
|
998
1012
|
* @internal
|
|
999
1013
|
* */
|
|
@@ -1240,6 +1254,8 @@ export type NlqChartWidgetStyleOptions = {
|
|
|
1240
1254
|
export type RenderToolbarHandler = (onRefresh: () => void, defaultToolbar: JSX.Element) => JSX.Element | null;
|
|
1241
1255
|
/** @internal */
|
|
1242
1256
|
export type RenderTitleHandler = (defaultHeaderTitle: ReactNode) => ReactNode;
|
|
1257
|
+
/** @internal */
|
|
1258
|
+
export type TextWidgetRenderToolbarHandler = (defaultToolbar: ReactNode) => ReactNode;
|
|
1243
1259
|
/** Style settings defining the look and feel of the widget created in Fusion */
|
|
1244
1260
|
export interface WidgetByIdStyleOptions extends WidgetContainerStyleOptions {
|
|
1245
1261
|
/**
|
|
@@ -1280,11 +1296,45 @@ export type TextWidgetStyleOptions = {
|
|
|
1280
1296
|
html: string;
|
|
1281
1297
|
vAlign: `valign-${'middle' | 'top' | 'bottom'}`;
|
|
1282
1298
|
bgColor: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* Widget header styles
|
|
1301
|
+
*
|
|
1302
|
+
* @internal
|
|
1303
|
+
*/
|
|
1304
|
+
header?: {
|
|
1305
|
+
/**
|
|
1306
|
+
* Header visibility toggle
|
|
1307
|
+
*
|
|
1308
|
+
* @internal
|
|
1309
|
+
*/
|
|
1310
|
+
hidden?: boolean;
|
|
1311
|
+
/**
|
|
1312
|
+
* Custom toolbar to render to the right of the title
|
|
1313
|
+
*
|
|
1314
|
+
* @internal
|
|
1315
|
+
*/
|
|
1316
|
+
renderToolbar?: TextWidgetRenderToolbarHandler;
|
|
1317
|
+
/**
|
|
1318
|
+
* Custom title to render in widget header
|
|
1319
|
+
*
|
|
1320
|
+
* @internal
|
|
1321
|
+
*/
|
|
1322
|
+
renderTitle?: RenderTitleHandler;
|
|
1323
|
+
};
|
|
1283
1324
|
};
|
|
1284
1325
|
/**
|
|
1285
1326
|
* Style settings defining the look and feel of CustomWidget
|
|
1286
1327
|
*/
|
|
1287
|
-
export type CustomWidgetStyleOptions = Record<string, unknown> &
|
|
1328
|
+
export type CustomWidgetStyleOptions = WidgetContainerStyleOptions & Record<string, unknown> & {
|
|
1329
|
+
/**
|
|
1330
|
+
* The width of the custom widget component.
|
|
1331
|
+
*/
|
|
1332
|
+
width?: number;
|
|
1333
|
+
/**
|
|
1334
|
+
* The height of the custom widget component.
|
|
1335
|
+
*/
|
|
1336
|
+
height?: number;
|
|
1337
|
+
};
|
|
1288
1338
|
/**
|
|
1289
1339
|
* Runs type guard check for ThemeOid.
|
|
1290
1340
|
*
|
|
@@ -1449,6 +1499,37 @@ export type TextWidgetDataPoint = {
|
|
|
1449
1499
|
/** HTML content of the text widget */
|
|
1450
1500
|
html?: string;
|
|
1451
1501
|
};
|
|
1502
|
+
/** Data point in a PivotTable. */
|
|
1503
|
+
export type PivotTableDataPoint = {
|
|
1504
|
+
/**
|
|
1505
|
+
* Boolean flag that defines if the data point is a data cell
|
|
1506
|
+
*
|
|
1507
|
+
* @internal
|
|
1508
|
+
*/
|
|
1509
|
+
isDataCell: boolean;
|
|
1510
|
+
/**
|
|
1511
|
+
* Boolean flag that defines if the data point is a caption cell
|
|
1512
|
+
*
|
|
1513
|
+
* @internal
|
|
1514
|
+
*/
|
|
1515
|
+
isCaptionCell: boolean;
|
|
1516
|
+
/**
|
|
1517
|
+
* Boolean flag that defines if the data point is a total cell (subtotal or grandtotal)
|
|
1518
|
+
*
|
|
1519
|
+
* @internal
|
|
1520
|
+
*/
|
|
1521
|
+
isTotalCell: boolean;
|
|
1522
|
+
/**
|
|
1523
|
+
* A collection of data point entries that represents values for all related `dataOptions`.
|
|
1524
|
+
*
|
|
1525
|
+
* @internal
|
|
1526
|
+
*/
|
|
1527
|
+
entries: {
|
|
1528
|
+
rows?: DataPointEntry[];
|
|
1529
|
+
columns?: DataPointEntry[];
|
|
1530
|
+
values?: DataPointEntry[];
|
|
1531
|
+
};
|
|
1532
|
+
};
|
|
1452
1533
|
/**
|
|
1453
1534
|
* Data point in an Areamap chart.
|
|
1454
1535
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartSubtype } from '../chart-options-processor/subtype-to-design-options.js';
|
|
2
2
|
import { ChartType, RenderToolbarHandler } from '../types.js';
|
|
3
3
|
import { Panel, PanelItem, TextWidgetDtoStyle, WidgetStyle, WidgetSubtype, FusionWidgetType } from './types.js';
|
|
4
|
-
import { ChartProps, ChartWidgetProps, PivotTableWidgetProps, CustomWidgetProps, TextWidgetProps, CommonWidgetProps, WithCommonWidgetProps, WidgetProps, WidgetType } from '../props';
|
|
4
|
+
import { ChartProps, ChartWidgetProps, PivotTableWidgetProps, CustomWidgetProps, TextWidgetProps, CommonWidgetProps, WithCommonWidgetProps, WidgetProps, WidgetType, PivotTableProps } from '../props';
|
|
5
5
|
import { WidgetTypeInternal } from '../models/widget/types';
|
|
6
6
|
import { WidgetModel } from '../models';
|
|
7
7
|
export { mergeFilters, getFilterRelationsFromJaql, convertFilterRelationsModelToJaql, getFilterCompareId, } from '@sisense/sdk-data';
|
|
@@ -10,7 +10,7 @@ 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;
|
|
@@ -97,7 +97,7 @@ export declare function registerDataPointClickHandler(widgetProps: WidgetProps,
|
|
|
97
97
|
*
|
|
98
98
|
* @internal
|
|
99
99
|
*/
|
|
100
|
-
export declare function registerDataPointContextMenuHandler(widgetProps: WidgetProps, handler: NonNullable<ChartProps['onDataPointContextMenu']>): void;
|
|
100
|
+
export declare function registerDataPointContextMenuHandler(widgetProps: WidgetProps, handler: NonNullable<ChartProps['onDataPointContextMenu'] | PivotTableProps['onDataPointContextMenu']>): void;
|
|
101
101
|
/**
|
|
102
102
|
* Registers new "onDataPointsSelected" handler for the Widget component
|
|
103
103
|
*
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledPrevButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<
|
|
3
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "loading" | "children" | "disabled" | "size" | "className" | "style" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
|
|
2
|
+
export declare const StyledPrevButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "loading" | "children" | "disabled" | "size" | "className" | "style" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
|
|
5
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
4
|
}, {}, {}>;
|
|
7
|
-
export declare const StyledNextButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<
|
|
8
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "loading" | "children" | "disabled" | "size" | "className" | "style" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
|
|
5
|
+
export declare const StyledNextButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "loading" | "children" | "disabled" | "size" | "className" | "style" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
|
|
10
6
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
7
|
}, {}, {}>;
|