@sisense/sdk-ui 2.7.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 +27 -27
- package/dist/ai.js +83 -102
- package/dist/analytics-composer.cjs +33 -33
- package/dist/analytics-composer.js +278 -290
- package/dist/{derive-chart-family-DvYmrG1k.js → derive-chart-family-6PZA-xZh.js} +30470 -32108
- package/dist/derive-chart-family-DQUVKMcV.cjs +656 -0
- package/dist/{dimensions-WmjaZcrG.js → dimensions-b8xRITJn.js} +4 -5
- package/dist/{dimensions-DAISVpEZ.cjs → dimensions-x8nnAUew.cjs} +1 -1
- package/dist/index.cjs +17 -17
- package/dist/index.js +7455 -7347
- package/dist/index.umd.js +406 -380
- 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/chart-options-processor/data-points.d.ts +1 -0
- 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/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/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/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 +57 -3
- package/dist/packages/sdk-ui/src/widget-by-id/utils.d.ts +2 -2
- package/dist/packages/sdk-ui/src/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -6
- package/dist/{use-common-filters-CVgB69Xe.js → use-common-filters-BHBy4uv6.js} +5530 -5399
- package/dist/use-common-filters-Cg217teN.cjs +350 -0
- package/dist/{widget-composer-D0FZj1tX.cjs → widget-composer-BPlNiX_P.cjs} +1 -1
- package/dist/{widget-composer-B4eAv2pf.js → widget-composer-SGEFYrXY.js} +38 -44
- package/package.json +16 -16
- package/dist/derive-chart-family-BCY-GLVZ.cjs +0 -672
- package/dist/use-common-filters-CRrL9rOQ.cjs +0 -350
|
@@ -3,9 +3,7 @@ import { type IconButtonProps as MuiIconButtonProps } from '@mui/material/IconBu
|
|
|
3
3
|
interface IconButtonProps extends MuiIconButtonProps {
|
|
4
4
|
$hoverColor?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const IconButton: import("@emotion/styled").StyledComponent<import("@mui/material/IconButton").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<
|
|
7
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
8
|
-
}, "loading" | "children" | "disabled" | "size" | "className" | "style" | "tabIndex" | "color" | "sx" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "loadingIndicator"> & {
|
|
6
|
+
declare const IconButton: 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"> & {
|
|
9
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
8
|
} & IconButtonProps, {}, {}>;
|
|
11
9
|
export default IconButton;
|
|
@@ -2,6 +2,7 @@ import { Measure } from '@sisense/sdk-data';
|
|
|
2
2
|
import { HighchartsPoint } from '../types';
|
|
3
3
|
import { SisenseChartDataPoint } from '../sisense-chart/types';
|
|
4
4
|
import { ChartDataOptionsInternal, StyledColumn, StyledMeasureColumn } from '..';
|
|
5
|
+
export declare function createFormatter(dataOption: StyledColumn | StyledMeasureColumn): (value?: number | string | Date) => string;
|
|
5
6
|
export declare function getDataPointMetadata(dataOptionPath: string, dataOption: StyledColumn | StyledMeasureColumn): {
|
|
6
7
|
measure?: Measure | undefined;
|
|
7
8
|
attribute?: import("@sisense/sdk-data").Attribute | undefined;
|
|
@@ -7,7 +7,16 @@ import { GenericDataOptions } from '../types';
|
|
|
7
7
|
export interface CustomWidgetComponentProps<DataOptions = GenericDataOptions, StyleOptions = any> {
|
|
8
8
|
dataSource?: DataSource;
|
|
9
9
|
dataOptions: DataOptions;
|
|
10
|
-
styleOptions: StyleOptions
|
|
10
|
+
styleOptions: StyleOptions & {
|
|
11
|
+
/**
|
|
12
|
+
* The width of the custom widget component.
|
|
13
|
+
*/
|
|
14
|
+
width?: number;
|
|
15
|
+
/**
|
|
16
|
+
* The height of the custom widget component.
|
|
17
|
+
*/
|
|
18
|
+
height?: number;
|
|
19
|
+
};
|
|
11
20
|
filters?: Filter[] | FilterRelations;
|
|
12
21
|
highlights?: Filter[];
|
|
13
22
|
description?: string;
|
package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts
CHANGED
|
@@ -14,11 +14,15 @@ type DraggableLineProps = {
|
|
|
14
14
|
* The orientation of the draggable line
|
|
15
15
|
*/
|
|
16
16
|
orientation?: DraggableLineOrientation;
|
|
17
|
+
/**
|
|
18
|
+
* The aria-label of the draggable line
|
|
19
|
+
*/
|
|
20
|
+
ariaLabel?: string;
|
|
17
21
|
};
|
|
18
22
|
/**
|
|
19
23
|
* Renders a draggable line component that can be used to resize columns or rows
|
|
20
24
|
*
|
|
21
25
|
* @internal
|
|
22
26
|
*/
|
|
23
|
-
export declare const DraggableLine: ({ id, orientation }: DraggableLineProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const DraggableLine: ({ id, orientation, ariaLabel, }: DraggableLineProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
28
|
export {};
|
|
@@ -23,6 +23,8 @@ export declare const useDashboardThemeInternal: ({ styleOptions }: DashboardThem
|
|
|
23
23
|
primaryTextColor: string;
|
|
24
24
|
secondaryTextColor: string;
|
|
25
25
|
backgroundColor: string;
|
|
26
|
+
dividerLineColor: string;
|
|
27
|
+
dividerLineWidth: number;
|
|
26
28
|
};
|
|
27
29
|
};
|
|
28
30
|
palette?: import("..").ColorPaletteTheme | undefined;
|
|
@@ -47,6 +49,8 @@ export declare const useDashboardTheme: (args_0: DashboardThemeParams) => {
|
|
|
47
49
|
primaryTextColor: string;
|
|
48
50
|
secondaryTextColor: string;
|
|
49
51
|
backgroundColor: string;
|
|
52
|
+
dividerLineColor: string;
|
|
53
|
+
dividerLineWidth: number;
|
|
50
54
|
};
|
|
51
55
|
};
|
|
52
56
|
palette?: import("..").ColorPaletteTheme | undefined;
|
|
@@ -36,6 +36,6 @@ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBo
|
|
|
36
36
|
};
|
|
37
37
|
componentDidCatch(error: Error): void;
|
|
38
38
|
componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void;
|
|
39
|
-
render(): string | number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | null | undefined;
|
|
39
|
+
render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
40
40
|
}
|
|
41
41
|
export {};
|
|
@@ -9,6 +9,6 @@ interface Props {
|
|
|
9
9
|
export declare const useMembers: ({ initialMembers, initialSelectedMembers, onUpdateSelectedMembers, disabled, }: Props) => {
|
|
10
10
|
members: Member[];
|
|
11
11
|
selectedMembers: import("./members-reducer").SelectedMember[];
|
|
12
|
-
dispatch: import("react").
|
|
12
|
+
dispatch: import("react").ActionDispatch<[action: import("./members-reducer").MembersAction]>;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -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
|
* */
|
|
@@ -1311,7 +1325,16 @@ export type TextWidgetStyleOptions = {
|
|
|
1311
1325
|
/**
|
|
1312
1326
|
* Style settings defining the look and feel of CustomWidget
|
|
1313
1327
|
*/
|
|
1314
|
-
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
|
+
};
|
|
1315
1338
|
/**
|
|
1316
1339
|
* Runs type guard check for ThemeOid.
|
|
1317
1340
|
*
|
|
@@ -1476,6 +1499,37 @@ export type TextWidgetDataPoint = {
|
|
|
1476
1499
|
/** HTML content of the text widget */
|
|
1477
1500
|
html?: string;
|
|
1478
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
|
+
};
|
|
1479
1533
|
/**
|
|
1480
1534
|
* Data point in an Areamap chart.
|
|
1481
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';
|
|
@@ -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
|
}, {}, {}>;
|