@sisense/sdk-ui 2.1.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.
- package/dist/ai.cjs +1 -1
- package/dist/ai.js +4 -4
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +70 -70
- package/dist/{derive-chart-family-BNMFblR9.js → derive-chart-family-C8duLtwv.js} +11255 -11244
- package/dist/{derive-chart-family-DjbiaKLQ.cjs → derive-chart-family-CQ1Myy0A.cjs} +129 -129
- package/dist/{dimensions-DcsEnPSY.cjs → dimensions-BBfnA6e8.cjs} +1 -1
- package/dist/{dimensions-DeTiL-EZ.js → dimensions-DOWF8q44.js} +1 -1
- package/dist/index.cjs +25 -21
- package/dist/index.js +13027 -10033
- package/dist/packages/sdk-ui/src/dashboard/components/content-panel.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/cell-drop-overlay.d.ts +34 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +24 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +28 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/droppable-zone.d.ts +23 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-columns.d.ts +31 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-row.d.ts +39 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/row-drop-overlay.d.ts +30 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/const.d.ts +11 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/editable-layout.d.ts +28 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +42 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/types.d.ts +78 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +0 -2
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +7 -1
- package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +4 -0
- package/dist/packages/sdk-ui/src/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +29 -17
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +3 -0
- package/dist/packages/sdk-ui/src/types.d.ts +14 -0
- package/dist/{use-common-filters-CJNwlbbh.js → use-common-filters--6cyMg9O.js} +2850 -2846
- package/dist/{use-common-filters-DcFu4qRs.cjs → use-common-filters-NTIrYvRs.cjs} +5 -5
- package/dist/{widget-composer-BEVCXjFv.js → widget-composer-BZwsi1mW.js} +1 -1
- package/dist/{widget-composer-fYnr8SDo.cjs → widget-composer-Bv_aqjLX.cjs} +1 -1
- package/package.json +10 -7
|
@@ -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 {};
|
package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts
ADDED
|
@@ -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 {};
|
package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/droppable-zone.d.ts
ADDED
|
@@ -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 {};
|
package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-row.d.ts
ADDED
|
@@ -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
|
};
|
|
@@ -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
|
-
*
|
|
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
|
|
@@ -1,6 +1,9 @@
|
|
|
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";
|
|
4
7
|
export declare const DEFAULT_TITLE_FONT_SIZE = 15;
|
|
5
8
|
/**
|
|
6
9
|
* Returns default theme settings, which can be used as base for custom theme options.
|
|
@@ -944,6 +944,8 @@ export type DashboardThemeSettings = {
|
|
|
944
944
|
backgroundColor?: string;
|
|
945
945
|
dividerLineWidth?: number;
|
|
946
946
|
dividerLineColor?: string;
|
|
947
|
+
borderWidth?: number;
|
|
948
|
+
borderColor?: string;
|
|
947
949
|
};
|
|
948
950
|
/**
|
|
949
951
|
* Filter theme settings
|
|
@@ -954,6 +956,18 @@ export type FilterThemeSettings = {
|
|
|
954
956
|
titleColor?: string;
|
|
955
957
|
/** Background color */
|
|
956
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;
|
|
957
971
|
};
|
|
958
972
|
};
|
|
959
973
|
/**
|