@sisense/sdk-ui 2.0.0 → 2.1.1

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.
Files changed (45) hide show
  1. package/dist/ai.cjs +2 -2
  2. package/dist/ai.js +34 -34
  3. package/dist/analytics-composer.cjs +1 -1
  4. package/dist/analytics-composer.js +183 -183
  5. package/dist/{derive-chart-family-BLaI9-3r.js → derive-chart-family-C8duLtwv.js} +30285 -29376
  6. package/dist/{derive-chart-family-CxqjTyNt.cjs → derive-chart-family-CQ1Myy0A.cjs} +252 -252
  7. package/dist/{dimensions-C-VKss5V.cjs → dimensions-BBfnA6e8.cjs} +1 -1
  8. package/dist/{dimensions-Cfq9FexH.js → dimensions-DOWF8q44.js} +1 -1
  9. package/dist/index.cjs +29 -25
  10. package/dist/index.js +14054 -10744
  11. package/dist/packages/sdk-ui/src/app/client-application.d.ts +8 -7
  12. package/dist/packages/sdk-ui/src/chart-options-processor/translations/legend-section.d.ts +1 -0
  13. package/dist/packages/sdk-ui/src/dashboard/components/content-panel.d.ts +1 -1
  14. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/cell-drop-overlay.d.ts +34 -0
  15. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +24 -0
  16. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +28 -0
  17. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/droppable-zone.d.ts +23 -0
  18. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-columns.d.ts +31 -0
  19. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-row.d.ts +39 -0
  20. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/row-drop-overlay.d.ts +30 -0
  21. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/const.d.ts +11 -0
  22. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/editable-layout.d.ts +28 -0
  23. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +42 -0
  24. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/types.d.ts +78 -0
  25. package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +5 -0
  26. package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +0 -2
  27. package/dist/packages/sdk-ui/src/dashboard/types.d.ts +7 -1
  28. package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +4 -0
  29. package/dist/packages/sdk-ui/src/emotion-cache-provider/emotion-cache-provider.d.ts +10 -0
  30. package/dist/packages/sdk-ui/src/emotion-cache-provider/index.d.ts +2 -0
  31. package/dist/packages/sdk-ui/src/emotion-cache-provider/utils.d.ts +4 -0
  32. package/dist/packages/sdk-ui/src/index.d.ts +1 -1
  33. package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +29 -17
  34. package/dist/packages/sdk-ui/src/props.d.ts +6 -0
  35. package/dist/packages/sdk-ui/src/query-execution/use-query-cache.d.ts +4 -2
  36. package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +4 -0
  37. package/dist/packages/sdk-ui/src/types.d.ts +16 -0
  38. package/dist/packages/sdk-ui/src/utils/get-scrollbar-width.d.ts +1 -0
  39. package/dist/packages/sdk-ui/src/widgets/constants.d.ts +1 -0
  40. package/dist/{use-common-filters-Cmyb86sc.js → use-common-filters--6cyMg9O.js} +6632 -6282
  41. package/dist/use-common-filters-NTIrYvRs.cjs +271 -0
  42. package/dist/{widget-composer-C4rwNt4P.js → widget-composer-BZwsi1mW.js} +24 -24
  43. package/dist/{widget-composer-BJURHrVD.cjs → widget-composer-Bv_aqjLX.cjs} +1 -1
  44. package/package.json +11 -7
  45. package/dist/use-common-filters-BGGGgJJ5.cjs +0 -271
@@ -28,13 +28,15 @@ export type AppConfig = {
28
28
  */
29
29
  loadingIndicatorConfig?: LoadingIndicatorConfig;
30
30
  /**
31
- * Query Cache Configurations
31
+ * Query Cache Configurations.
32
32
  *
33
- * This feature is in alpha.
33
+ * See [Client query caching guide](/guides/sdk/guides/client-query-caching.html) for more details.
34
+ *
35
+ * @alpha
34
36
  */
35
37
  queryCacheConfig?: {
36
38
  /**
37
- * Whether to enable query caching
39
+ * Whether to enable client-side query caching.
38
40
  *
39
41
  * If not specified, the default value is `false`
40
42
  */
@@ -66,15 +68,14 @@ export type AppConfig = {
66
68
  /**
67
69
  * Configuration of the tabber widget
68
70
  *
69
- * Set the `tabberConfig.enabled` property to `true` to enable the tabber widget support. Otherwise, the tabber widget will be treated as 'unkwon plugin type'.
70
- *
71
- * @internal
71
+ * Set the `tabberConfig.enabled` property to `true` to enable the tabber widget support. Otherwise, the tabber widget will be treated as 'unknown plugin type'.
72
+ * Only tabber widgets that are configured using the Fusion UI as documented [here](https://docs.sisense.com/main/SisenseLinux/tabber.htm#Creating) are supported.
72
73
  */
73
74
  tabberConfig?: {
74
75
  /**
75
76
  * Whether to enable tabber widget support
76
77
  *
77
- * If not specified, the default value is `false`
78
+ * If not specified, the default value is `true`
78
79
  */
79
80
  enabled?: boolean;
80
81
  };
@@ -16,6 +16,7 @@ export type LegendSettings = {
16
16
  backgroundColor?: string;
17
17
  itemMarginBottom?: number;
18
18
  itemMarginTop?: number;
19
+ margin?: number;
19
20
  title?: {
20
21
  style?: {
21
22
  [key: string]: string | number;
@@ -9,7 +9,7 @@ export interface ContentPanelProps {
9
9
  /**
10
10
  * An object defining how the widgets should be laid out.
11
11
  */
12
- layout?: WidgetsPanelLayout;
12
+ layout: WidgetsPanelLayout;
13
13
  /**
14
14
  * If true adjust layout based on available width of content panel.
15
15
  *
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Props for the CellDropOverlay component
3
+ *
4
+ * @internal
5
+ */
6
+ type CellDropOverlayProps = {
7
+ /**
8
+ * The unique identifier for the cell drop overlay
9
+ */
10
+ id: string;
11
+ /**
12
+ * The ID of the widget related to the cell drop overlay
13
+ */
14
+ widgetId: string;
15
+ /**
16
+ * The index of the column the widget is in
17
+ */
18
+ columnIndex: number;
19
+ /**
20
+ * The index of the row the widget is in
21
+ */
22
+ rowIndex: number;
23
+ /**
24
+ * Whether to disable the side zones
25
+ */
26
+ disableSideZones?: boolean;
27
+ };
28
+ /**
29
+ * Renders a cell drop overlay component that displays a replace zone and side zones for drag and drop operations.
30
+ *
31
+ * @internal
32
+ */
33
+ export declare const CellDropOverlay: ({ id, widgetId, columnIndex, rowIndex, disableSideZones, }: CellDropOverlayProps) => import("react/jsx-runtime").JSX.Element;
34
+ export {};
@@ -0,0 +1,24 @@
1
+ /**
2
+ * The orientation of the draggable line
3
+ */
4
+ type DraggableLineOrientation = 'vertical' | 'horizontal';
5
+ /**
6
+ * Props for the DraggableLine component
7
+ */
8
+ type DraggableLineProps = {
9
+ /**
10
+ * The unique identifier for the draggable line
11
+ */
12
+ id: string;
13
+ /**
14
+ * The orientation of the draggable line
15
+ */
16
+ orientation?: DraggableLineOrientation;
17
+ };
18
+ /**
19
+ * Renders a draggable line component that can be used to resize columns or rows
20
+ *
21
+ * @internal
22
+ */
23
+ export declare const DraggableLine: ({ id, orientation }: DraggableLineProps) => import("react/jsx-runtime").JSX.Element;
24
+ export {};
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { EditableLayoutDragData } from '../../../../dashboard/components/editable-layout/types';
3
+ /**
4
+ * Props for the DraggableWidgetWrapper component
5
+ *
6
+ * @internal
7
+ */
8
+ type DraggableWidgetWrapperProps = {
9
+ /**
10
+ * The unique identifier for the draggable widget wrapper
11
+ */
12
+ id: string;
13
+ /**
14
+ * The data for the draggable widget wrapper
15
+ */
16
+ data: EditableLayoutDragData;
17
+ /**
18
+ * The child elements to render inside the wrapper
19
+ */
20
+ children: React.ReactNode;
21
+ };
22
+ /**
23
+ * Renders a draggable widget wrapper component that allows for drag and drop operations.
24
+ *
25
+ * @internal
26
+ */
27
+ export declare const DraggableWidgetWrapper: ({ id, data, children }: DraggableWidgetWrapperProps) => import("react/jsx-runtime").JSX.Element;
28
+ export {};
@@ -0,0 +1,23 @@
1
+ import { EditableLayoutDropData } from '../../../../dashboard/components/editable-layout/types';
2
+ /**
3
+ * Props for the DroppableZone component
4
+ *
5
+ * @internal
6
+ */
7
+ type DroppableZoneProps = {
8
+ /**
9
+ * The unique identifier for the droppable zone
10
+ */
11
+ id: string;
12
+ /**
13
+ * The data for the droppable zone
14
+ */
15
+ data: EditableLayoutDropData;
16
+ };
17
+ /**
18
+ * Renders a droppable zone component that allows drop operations.
19
+ *
20
+ * @internal
21
+ */
22
+ export declare const DroppableZone: ({ id, data }: DroppableZoneProps) => import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,31 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Props for the ResizableColumns component
4
+ *
5
+ * @internal
6
+ */
7
+ interface ResizableColumnsProps {
8
+ /**
9
+ * The child elements to render inside the resizable columns
10
+ */
11
+ children: ReactNode;
12
+ /**
13
+ * The widths of the columns (in percentage)
14
+ */
15
+ widths: number[];
16
+ /**
17
+ * The minimum width of the columns (in percentage)
18
+ */
19
+ minColWidth: number;
20
+ /**
21
+ * The callback function to call when the widths change
22
+ */
23
+ onWidthsChange: (widths: number[]) => void;
24
+ }
25
+ /**
26
+ * Renders a resizable columns component that allows for column resizing.
27
+ *
28
+ * @internal
29
+ */
30
+ export declare const ResizableColumns: ({ children, widths, minColWidth, onWidthsChange, }: ResizableColumnsProps) => import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -0,0 +1,39 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Props for the ResizableRow component
4
+ *
5
+ * @internal
6
+ */
7
+ type ResizableRowProps = {
8
+ /**
9
+ * The child elements to render inside the resizable row
10
+ */
11
+ children: ReactNode;
12
+ /**
13
+ * The unique identifier
14
+ */
15
+ id: string;
16
+ /**
17
+ * The height of the resizable row
18
+ */
19
+ height: number;
20
+ /**
21
+ * The minimum height of the resizable row
22
+ */
23
+ minHeight: number;
24
+ /**
25
+ * The maximum height of the resizable row
26
+ */
27
+ maxHeight: number;
28
+ /**
29
+ * The callback function to call when the height changes
30
+ */
31
+ onHeightChange: (height: number) => void;
32
+ };
33
+ /**
34
+ * Renders a resizable row component that allows for row resizing.
35
+ *
36
+ * @internal
37
+ */
38
+ export declare const ResizableRow: ({ children, id, height, minHeight, maxHeight, onHeightChange, }: ResizableRowProps) => import("react/jsx-runtime").JSX.Element;
39
+ export {};
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Props for the RowDropOverlay component
3
+ *
4
+ * @internal
5
+ */
6
+ type RowDropOverlayProps = {
7
+ /**
8
+ * The unique identifier
9
+ */
10
+ id: string;
11
+ /**
12
+ * Referring to the column index
13
+ */
14
+ columnIndex: number;
15
+ /**
16
+ * Referring to the row index
17
+ */
18
+ rowIndex?: number;
19
+ /**
20
+ * Whether is referring to the last row (different styling)
21
+ */
22
+ isLastRow?: boolean;
23
+ };
24
+ /**
25
+ * Renders a row drop overlay component that allows for drop operations.
26
+ *
27
+ * @internal
28
+ */
29
+ export declare const RowDropOverlay: ({ id, columnIndex, rowIndex, isLastRow }: RowDropOverlayProps) => import("react/jsx-runtime").JSX.Element;
30
+ export {};
@@ -0,0 +1,11 @@
1
+ export declare const RESIZE_LINE_SIZE = 4;
2
+ export declare const MIN_COL_WIDTH_PERCENTAGE = 10;
3
+ export declare const MIN_CELL_WIDTH_PERCENTAGE = 5;
4
+ export declare const MIN_ROW_HEIGHT = 60;
5
+ export declare const MAX_ROW_HEIGHT = 1500;
6
+ export declare const WIDGET_HEADER_HEIGHT = 32;
7
+ export declare const Z_INDEX_RESIZE_OVERLAY = 100;
8
+ export declare const Z_INDEX_RESIZE_LINE = 101;
9
+ export declare const Z_INDEX_CELL_DROPZONE = 102;
10
+ export declare const Z_INDEX_ROW_DROPZONE = 103;
11
+ export declare const Z_INDEX_ACTIVE_DRAGGABLE = 104;
@@ -0,0 +1,28 @@
1
+ import { WidgetsPanelLayout } from '../../../models';
2
+ import { WidgetProps } from '../../../props';
3
+ /**
4
+ * Props for the {@link EditableLayout} component.
5
+ *
6
+ * @internal
7
+ */
8
+ export interface EditableLayoutProps {
9
+ /**
10
+ * An object defining how the widgets should be laid out.
11
+ */
12
+ layout: WidgetsPanelLayout;
13
+ /**
14
+ * A list of widget props to render.
15
+ */
16
+ widgets: WidgetProps[];
17
+ /**
18
+ * A callback function that is called when the layout changes.
19
+ */
20
+ onLayoutChange?: (layout: WidgetsPanelLayout) => void;
21
+ }
22
+ /**
23
+ * A React used to render a layout of widgets that can resize and rearrange their positions using drag-and-drop.
24
+ *
25
+ * @param props - {@link EditableLayoutProps}
26
+ * @internal
27
+ */
28
+ export declare const EditableLayout: ({ layout, widgets, onLayoutChange }: EditableLayoutProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { WidgetsPanelColumn, WidgetsPanelColumnLayout, WidgetsPanelLayout } from '../../../models';
2
+ import { EditableLayoutDropData, EditableLayoutDragData } from './types';
3
+ /**
4
+ * Updates the height of all cells in a specific row within a column layout.
5
+ *
6
+ * @param layout - The current layout to modify
7
+ * @param height - The new height to set for the cells
8
+ * @param columnIndex - The index of the column containing the row to update
9
+ * @param rowIndex - The index of the row to update
10
+ *
11
+ * @returns A new layout with updated cell heights
12
+ *
13
+ * @internal
14
+ */
15
+ export declare function updateRowHeight(layout: WidgetsPanelColumnLayout, height: number, columnIndex: number, rowIndex: number): {
16
+ columns: WidgetsPanelColumn[];
17
+ };
18
+ /**
19
+ * Updates the width percentages of columns or cells within a layout.
20
+ *
21
+ * @param layout - The current layout to modify
22
+ * @param widths - Array of width percentages to apply
23
+ * @param parentColumnIndex - Optional index of the parent column when updating cell widths
24
+ * @param parentRowIndex - Optional index of the parent row when updating cell widths
25
+ *
26
+ * @returns A new layout with updated width percentages
27
+ *
28
+ * @internal
29
+ */
30
+ export declare function updateLayoutWidths(layout: WidgetsPanelLayout, widths: number[], parentColumnIndex?: number, parentRowIndex?: number): WidgetsPanelColumnLayout;
31
+ /**
32
+ * Updates the layout based on drag and drop operations.
33
+ *
34
+ * @param layout - The current layout to modify
35
+ * @param dragData - Data about the dragged widget
36
+ * @param dropData - Data about the drop target and operation type
37
+ *
38
+ * @returns A new layout reflecting the drag and drop operation
39
+ *
40
+ * @internal
41
+ */
42
+ export declare function updateLayoutAfterDragAndDrop(layout: WidgetsPanelLayout, dragData: EditableLayoutDragData, dropData: EditableLayoutDropData): WidgetsPanelColumnLayout;
@@ -0,0 +1,78 @@
1
+ /**
2
+ * The type of drop operation
3
+ *
4
+ * @internal
5
+ */
6
+ export declare enum DropType {
7
+ /**
8
+ * Place the cell aside another cell to the left
9
+ */
10
+ PLACE_LEFT = "PLACE_LEFT",
11
+ /**
12
+ * Place the cell aside another cell to the right
13
+ */
14
+ PLACE_RIGHT = "PLACE_RIGHT",
15
+ /**
16
+ * Swap the position of two cells
17
+ */
18
+ SWAP = "SWAP",
19
+ /**
20
+ * Move the cell to a new row
21
+ */
22
+ NEW_ROW = "NEW_ROW"
23
+ }
24
+ /**
25
+ * Data about the dragged cell
26
+ *
27
+ * @internal
28
+ */
29
+ export type EditableLayoutDragData = {
30
+ /**
31
+ * The unique identifier of the widget
32
+ */
33
+ widgetId: string;
34
+ /**
35
+ * The column index
36
+ */
37
+ columnIndex: number;
38
+ /**
39
+ * The row index
40
+ */
41
+ rowIndex: number;
42
+ };
43
+ /**
44
+ * Data about the drop target
45
+ *
46
+ * @internal
47
+ */
48
+ export type EditableLayoutDropData = {
49
+ /**
50
+ * The type of drop operation
51
+ */
52
+ type: DropType.PLACE_LEFT | DropType.PLACE_RIGHT | DropType.SWAP;
53
+ /**
54
+ * The unique identifier of the widget
55
+ */
56
+ widgetId: string;
57
+ /**
58
+ * The column index
59
+ */
60
+ columnIndex: number;
61
+ /**
62
+ * The row index
63
+ */
64
+ rowIndex: number;
65
+ } | {
66
+ /**
67
+ * The type of drop operation
68
+ */
69
+ type: DropType.NEW_ROW;
70
+ /**
71
+ * The column index
72
+ */
73
+ columnIndex: number;
74
+ /**
75
+ * The row index
76
+ */
77
+ rowIndex?: number;
78
+ };
@@ -0,0 +1,5 @@
1
+ import { EditableLayoutDragData, EditableLayoutDropData } from '../../../dashboard/components/editable-layout/types';
2
+ import { DragStartEvent } from '@dnd-kit/core';
3
+ export declare const isEditableLayoutDragData: (data: any | undefined) => data is EditableLayoutDragData;
4
+ export declare const isEditableLayoutDropData: (data: any) => data is EditableLayoutDropData;
5
+ export declare const getDraggingWidgetId: (event: DragStartEvent) => string | null;
@@ -1,6 +1,4 @@
1
1
  import type { DeepRequired } from 'ts-essentials';
2
2
  import { DashboardByIdConfig, DashboardConfig } from './types';
3
- export declare const DASHBOARD_DIVIDER_COLOR = "#d5d5d5";
4
- export declare const DASHBOARD_DIVIDER_WIDTH = 1;
5
3
  export declare const DEFAULT_DASHBOARD_CONFIG: DeepRequired<DashboardConfig>;
6
4
  export declare const DEFAULT_DASHBOARD_BY_ID_CONFIG: DeepRequired<DashboardByIdConfig>;
@@ -3,7 +3,7 @@ import { WidgetProps } from '../props';
3
3
  import { DashboardChangeAction } from '../dashboard/dashboard';
4
4
  import { DataSource, Filter, FilterRelations } from '@sisense/sdk-data';
5
5
  import { FiltersPanelConfig } from '../filters/components/filters-panel/types';
6
- export type { DashboardStyleOptions, WidgetsPanelColumnLayout } from '../models';
6
+ export type { DashboardStyleOptions, WidgetsPanelColumnLayout, WidgetsPanelLayout, WidgetsPanelCell, WidgetsPanelRow, WidgetsPanelColumn, } from '../models';
7
7
  /**
8
8
  * Props of the {@link DashboardById} component.
9
9
  */
@@ -87,6 +87,12 @@ export interface DashboardConfig {
87
87
  * If not specified, the default value is `false`.
88
88
  */
89
89
  responsive?: boolean;
90
+ /**
91
+ * If true will render editable layout.
92
+ *
93
+ * @internal
94
+ */
95
+ editMode?: boolean;
90
96
  };
91
97
  }
92
98
  /**
@@ -17,6 +17,8 @@ export declare const useDashboardThemeInternal: ({ styleOptions }: DashboardThem
17
17
  backgroundColor: string;
18
18
  dividerLineWidth: number;
19
19
  dividerLineColor: string;
20
+ borderWidth: number;
21
+ borderColor: string;
20
22
  };
21
23
  palette?: import("..").ColorPaletteTheme | undefined;
22
24
  };
@@ -34,6 +36,8 @@ export declare const useDashboardTheme: (args_0: DashboardThemeParams) => {
34
36
  backgroundColor: string;
35
37
  dividerLineWidth: number;
36
38
  dividerLineColor: string;
39
+ borderWidth: number;
40
+ borderColor: string;
37
41
  };
38
42
  palette?: import("..").ColorPaletteTheme | undefined;
39
43
  };
@@ -0,0 +1,10 @@
1
+ import React, { ReactNode } from 'react';
2
+ export interface EmotionCacheProviderProps {
3
+ children: ReactNode;
4
+ }
5
+ /**
6
+ * A provider component that uses the Emotion cache, but only creates one if a nonce is found in the DOM.
7
+ * This ensures that styles are injected in a way that is compliant with CSP if necessary.
8
+ * If no nonce is found, it simply renders the children without the CacheProvider.
9
+ */
10
+ export declare const EmotionCacheProvider: React.FC<EmotionCacheProviderProps>;
@@ -0,0 +1,2 @@
1
+ export * from './emotion-cache-provider';
2
+ export * from './utils';
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Retrieves the nonce value from the <meta> tag in the document head.
3
+ */
4
+ export declare function getNonceFromMetaTag(): string | undefined;
@@ -44,7 +44,7 @@ export { usePlugins } from './plugins-provider/plugins-provider';
44
44
  export { extractDimensionsAndMeasures, useExecutePluginQuery, } from './plugins-provider/use-execute-plugin-query';
45
45
  export { getThemeSettingsByOid } from './themes/theme-loader';
46
46
  export { getDefaultThemeSettings } from './theme-provider/default-theme-settings';
47
- export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, translateToDashboardResponse, translateToDashboardsResponse, useGetHierarchyModels, getHierarchyModels, translateFiltersAndRelationsToDto, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetId, type WidgetsOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, UseDashboardModelActionType, } from './models';
47
+ export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, getDashboardModel, getDashboardModels, useGetWidgetModel, getWidgetModel, translateToDashboardResponse, translateToDashboardsResponse, useGetHierarchyModels, getHierarchyModels, translateFiltersAndRelationsToDto, type DashboardModel, type GetDashboardModelParams, type GetDashboardModelsParams, type DashboardModelState, type DashboardModelLoadingState, type DashboardModelSuccessState, type DashboardModelErrorState, type DashboardModelsState, type DashboardModelsLoadingState, type DashboardModelsSuccessState, type DashboardModelsErrorState, type WidgetModel, type WidgetDataOptions, type WidgetModelState, type WidgetModelLoadingState, type WidgetModelErrorState, type WidgetModelSuccessState, type GetWidgetModelParams, type GetDashboardModelOptions, type GetDashboardModelsOptions, type WidgetsPanelColumnLayout, type WidgetsPanelLayout, type WidgetsPanelColumn, type WidgetsPanelRow, type WidgetsPanelCell, type WidgetId, type WidgetsOptions, type CommonFiltersOptions, type CommonFiltersApplyMode, type FiltersIgnoringRules, type HierarchyModel, type Hierarchy, type HierarchyId, type GetHierarchyModelsParams, type HierarchyModelsState, type HierarchyModelsLoadingState, type HierarchyModelsErrorState, type HierarchyModelsSuccessState, UseDashboardModelActionType, } from './models';
48
48
  /**
49
49
  * Utility functions to translate a Fusion widget model from and to other widget data structures
50
50
  *
@@ -2,25 +2,37 @@ import { CommonFiltersOptions } from '../../common-filters/types';
2
2
  import { ColorPaletteTheme, TabberConfig } from '../../types';
3
3
  export type { CommonFiltersOptions, CommonFiltersApplyMode, FiltersIgnoringRules, } from '../../common-filters/types';
4
4
  /**
5
- * Column layout of dashboard widgets
5
+ * Part of Dashboard layout, which describes how widgets are arranged in a cell
6
+ */
7
+ export interface WidgetsPanelCell {
8
+ widthPercentage: number;
9
+ /**
10
+ * @privateRemarks
11
+ * This value appears to be overwritten by the widget's height property.
12
+ * Marking as optional and internal for now.
13
+ * @internal
14
+ */
15
+ height?: number | string;
16
+ widgetId: string;
17
+ }
18
+ /**
19
+ * Part of Dashboard layout, which describes how widgets are arranged in a row
20
+ */
21
+ export interface WidgetsPanelRow {
22
+ cells: WidgetsPanelCell[];
23
+ }
24
+ /**
25
+ * Part of Dashboard layout, which describes how widgets are arranged in a column
26
+ */
27
+ export interface WidgetsPanelColumn {
28
+ widthPercentage: number;
29
+ rows: WidgetsPanelRow[];
30
+ }
31
+ /**
32
+ * Dashboard layout, which describes how widgets are arranged in the dashboard
6
33
  */
7
34
  export interface WidgetsPanelColumnLayout {
8
- columns: {
9
- widthPercentage: number;
10
- rows: {
11
- cells: {
12
- widthPercentage: number;
13
- /**
14
- * @privateRemarks
15
- * This value appears to be overwritten by the widget's height property.
16
- * Marking as optional and internal for now.
17
- * @internal
18
- */
19
- height?: number | string;
20
- widgetId: string;
21
- }[];
22
- }[];
23
- }[];
35
+ columns: WidgetsPanelColumn[];
24
36
  }
25
37
  /**
26
38
  * Layout of dashboard widgets panel, which is a union of different layout algorithms
@@ -827,6 +827,12 @@ export interface PivotTableProps {
827
827
  * @internal
828
828
  */
829
829
  refreshCounter?: number;
830
+ /**
831
+ * Callback function that is called when the height of the pivot table changes
832
+ *
833
+ * @internal
834
+ */
835
+ onHeightChange?: (height: number) => void;
830
836
  }
831
837
  /**
832
838
  * Props of the {@link ScatterChart} component.
@@ -1,7 +1,9 @@
1
1
  /**
2
- * React hook that returns the instance to manage query cache.
2
+ * React hook that returns the QueryCacheClient module instance to control query cache.
3
3
  *
4
- * @returns Query cache
4
+ * How to enable query cache see in [Query Caching guide](/guides/sdk/guides/client-query-caching.html)
5
+ *
6
+ * @returns QueryCacheClient instance
5
7
  * @group Queries
6
8
  * @alpha
7
9
  */
@@ -1,6 +1,10 @@
1
1
  import { CompleteThemeSettings } from '../types';
2
2
  export declare const DEFAULT_DIVIDER_COLOR = "#F2F2F2";
3
3
  export declare const DEFAULT_DIVIDER_WIDTH = 4;
4
+ export declare const DEFAULT_DASHBOARD_BORDER_COLOR = "#D5D5D5";
5
+ export declare const DEFAULT_DASHBOARD_BORDER_WIDTH = 1;
6
+ export declare const DEFAULT_FILTER_PANEL_BORDER_COLOR = "#DADADA";
7
+ export declare const DEFAULT_TITLE_FONT_SIZE = 15;
4
8
  /**
5
9
  * Returns default theme settings, which can be used as base for custom theme options.
6
10
  *
@@ -925,6 +925,8 @@ export type WidgetThemeSettings = {
925
925
  titleTextColor?: string;
926
926
  /** Header title alignment */
927
927
  titleAlignment?: AlignmentTypes;
928
+ /** Header title font size */
929
+ titleFontSize?: number;
928
930
  /** Toggle of the divider line between widget header and chart */
929
931
  dividerLine?: boolean;
930
932
  /** Divider line color */
@@ -942,6 +944,8 @@ export type DashboardThemeSettings = {
942
944
  backgroundColor?: string;
943
945
  dividerLineWidth?: number;
944
946
  dividerLineColor?: string;
947
+ borderWidth?: number;
948
+ borderColor?: string;
945
949
  };
946
950
  /**
947
951
  * Filter theme settings
@@ -952,6 +956,18 @@ export type FilterThemeSettings = {
952
956
  titleColor?: string;
953
957
  /** Background color */
954
958
  backgroundColor?: string;
959
+ /**
960
+ * Border color
961
+ *
962
+ * @internal
963
+ * */
964
+ borderColor?: string;
965
+ /**
966
+ * Border width
967
+ *
968
+ * @internal
969
+ * */
970
+ borderWidth?: number;
955
971
  };
956
972
  };
957
973
  /**
@@ -0,0 +1 @@
1
+ export declare const getScrollbarWidth: () => number;
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_WIDGET_HEADER_HEIGHT = 32;