@sisense/sdk-ui 2.10.0 → 2.11.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 +15 -15
- package/dist/ai.js +408 -401
- package/dist/analytics-composer/node.cjs +1 -1
- package/dist/analytics-composer/node.js +17 -17
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/{derive-chart-family-B1on_xkS.cjs → derive-chart-family-BauaWEEc.cjs} +49 -49
- package/dist/{derive-chart-family-BllGhqsW.js → derive-chart-family-BhAFg8OE.js} +10056 -9990
- package/dist/{dimensions-D-Z9sitz.js → dimensions-Bk74slQe.js} +1 -1
- package/dist/{dimensions-BYqdB-Q8.cjs → dimensions-DCxjxuyH.cjs} +1 -1
- package/dist/{execute-query-CGLL9vXX.js → execute-query-CxMSGp-J.js} +41 -40
- package/dist/{execute-query-CABqVn7C.cjs → execute-query-uQ2s1ZNz.cjs} +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.js +11201 -10704
- package/dist/index.umd.js +312 -311
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +7 -1
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +2 -2
- package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +17 -3
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +67 -36
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +1 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/calendar-data-generator.d.ts +14 -7
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +9 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +2 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +6 -17
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +3 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/calendar-utils.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/utils/with-calendar-heatmap-data-coloring.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data/index.d.ts +21 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/funnel-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/funnel-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/sunburst-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/sunburst-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/alerts/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/data-options/index.d.ts +11 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/design-options/index.d.ts +6 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/treemap-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/treemap-chart/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/types.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/types.d.ts +9 -8
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +19 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +3 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/series-labels.d.ts +19 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/boxplot/boxplot-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/design-options.d.ts +26 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/funnel-series.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/pie-plot-options.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/scatter-series.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/sunburst/sunburst-options.d.ts +78 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/tooltip-utils.d.ts +6 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/value-label-section.d.ts +14 -11
- package/dist/packages/sdk-ui/src/common/components/modal/modal-context.d.ts +1 -2
- package/dist/packages/sdk-ui/src/dashboard/components/jtd-dashboard.d.ts +5 -4
- package/dist/packages/sdk-ui/src/dashboard/dashboard-helpers.d.ts +109 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/index.d.ts +20 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-config-transformers.d.ts +85 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-filters.d.ts +3 -2
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +64 -2
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +4 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-menu.d.ts +1 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-types.d.ts +260 -5
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +7 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +3 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd-widget.d.ts +68 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-jtd.d.ts +33 -7
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-tabber.d.ts +13 -0
- package/dist/packages/sdk-ui/src/dashboard/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/filters/components/filter-editor-popover/utils.d.ts +1 -3
- package/dist/packages/sdk-ui/src/index.d.ts +9 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +25 -2
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +8 -4
- package/dist/packages/sdk-ui/src/props.d.ts +0 -6
- package/dist/packages/sdk-ui/src/types.d.ts +195 -21
- package/dist/packages/sdk-ui/src/utils/create-level-attribute.d.ts +11 -0
- package/dist/packages/sdk-ui/src/widget-by-id/translate-widget-style-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/widget-by-id/types.d.ts +45 -72
- package/dist/{types-Ds0KtTJF.cjs → types-DhvOgfXa.cjs} +1 -1
- package/dist/{types-BRtWk8uC.js → types-Dxieyr4A.js} +1 -1
- package/dist/{use-common-filters-D8tEa9zb.js → use-common-filters-DJyYvdev.js} +17387 -16944
- package/dist/{use-common-filters-hw1WKPCY.cjs → use-common-filters-Qj9249s0.cjs} +227 -226
- package/dist/{widget-composer-DL0xPtlC.js → widget-composer-azihIMsw.js} +3 -3
- package/dist/{widget-composer-B7zeAa_D.cjs → widget-composer-omIEhWNL.cjs} +1 -1
- package/package.json +11 -16
|
@@ -1,14 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
1
4
|
export interface DashboardHeaderToolbarMenuItem {
|
|
2
5
|
title: string;
|
|
3
6
|
icon?: JSX.Element;
|
|
4
7
|
ariaLabel?: string;
|
|
5
8
|
onClick: () => void;
|
|
6
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
7
13
|
export interface UseDashboardHeaderToolbarProps {
|
|
8
14
|
menuItems: DashboardHeaderToolbarMenuItem[];
|
|
9
15
|
}
|
|
10
16
|
/**
|
|
11
17
|
* Hook that returns a toolbar element for dashboard header
|
|
18
|
+
* @internal
|
|
12
19
|
*/
|
|
13
20
|
export declare const useDashboardHeaderToolbar: ({ menuItems }: UseDashboardHeaderToolbarProps) => {
|
|
14
21
|
toolbar: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WidgetsPanelLayout } from '../../models';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the useEditModeToolbar hook
|
|
4
|
+
* @internal
|
|
4
5
|
*/
|
|
5
6
|
export interface UseEditModeToolbarProps {
|
|
6
7
|
/**
|
|
@@ -23,6 +24,7 @@ export interface UseEditModeToolbarProps {
|
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
25
26
|
* Return type for the useEditModeToolbar hook
|
|
27
|
+
* @internal
|
|
26
28
|
*/
|
|
27
29
|
export interface UseEditModeToolbarResult {
|
|
28
30
|
/**
|
|
@@ -47,5 +49,6 @@ export interface UseEditModeToolbarResult {
|
|
|
47
49
|
*
|
|
48
50
|
* @param props Configuration options for the toolbar
|
|
49
51
|
* @returns Layout state and toolbar component
|
|
52
|
+
* @internal
|
|
50
53
|
*/
|
|
51
54
|
export declare function useEditModeToolbar({ initialLayout, onApply, onCancel, historyCapacity, }: UseEditModeToolbarProps): UseEditModeToolbarResult;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { WidgetProps } from '../../props.js';
|
|
2
|
+
import { JumpToDashboardConfig } from './jtd/jtd-types';
|
|
3
|
+
import { JumpToDashboardConfigForPivot } from './use-jtd';
|
|
4
|
+
/**
|
|
5
|
+
* Hook to add Jump To Dashboard (JTD) functionality to individual Widget components.
|
|
6
|
+
*
|
|
7
|
+
* Jump To Dashboard (JTD) allows users to navigate from one dashboard to another when interacting with widgets,
|
|
8
|
+
* such as clicking on chart data points or using context menus. This hook is particularly useful when rendering
|
|
9
|
+
* Widget components directly (not through a Dashboard component), but you still want JTD navigation functionality.
|
|
10
|
+
*
|
|
11
|
+
* For widgets that are part of a dashboard, consider using `applyJtdConfig` or `applyJtdConfigs` instead,
|
|
12
|
+
* as they apply JTD configuration at the dashboard level rather than individual widget level.
|
|
13
|
+
*
|
|
14
|
+
* Note: dashboard-only 'includeDashboardFilters' is not supported and would just be ignored, since we do not have a dashboard in the current context.
|
|
15
|
+
*
|
|
16
|
+
* This hook enhances the provided widget props with JTD navigation capabilities, including:
|
|
17
|
+
* - Click and right-click event handlers for navigation
|
|
18
|
+
* - Hyperlink styling for actionable pivot cells (when applicable)
|
|
19
|
+
* - JTD icon display in widget headers
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* Basic JTD configuration with right-click navigation.
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import { useJtdWidget } from '@sisense/sdk-ui';
|
|
25
|
+
*
|
|
26
|
+
* const jtdConfig: JumpToDashboardConfig = {
|
|
27
|
+
* targets: [{ id: 'dashboard-1', caption: 'Sales Dashboard' }],
|
|
28
|
+
* interaction: {
|
|
29
|
+
* triggerMethod: 'rightclick',
|
|
30
|
+
* captionPrefix: 'Jump to'
|
|
31
|
+
* }
|
|
32
|
+
* };
|
|
33
|
+
*
|
|
34
|
+
* const MyComponent = () => {
|
|
35
|
+
* const widgetWithJtd = useJtdWidget(myWidgetProps, jtdConfig);
|
|
36
|
+
*
|
|
37
|
+
* return <Widget {...widgetWithJtd} />;
|
|
38
|
+
* };
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* JTD configuration with multiple targets and custom styling.
|
|
43
|
+
* ```typescript
|
|
44
|
+
* const jtdConfig: JumpToDashboardConfig = {
|
|
45
|
+
* enabled: true,
|
|
46
|
+
* targets: [
|
|
47
|
+
* { id: 'sales-dashboard', caption: 'Sales Analysis' },
|
|
48
|
+
* { id: 'marketing-dashboard', caption: 'Marketing Insights' }
|
|
49
|
+
* ],
|
|
50
|
+
* interaction: {
|
|
51
|
+
* triggerMethod: 'click',
|
|
52
|
+
* captionPrefix: 'Navigate to',
|
|
53
|
+
* showIcon: true
|
|
54
|
+
* },
|
|
55
|
+
* filtering: {
|
|
56
|
+
* mergeWithTargetFilters: true,
|
|
57
|
+
* includeWidgetFilters: true
|
|
58
|
+
* }
|
|
59
|
+
* };
|
|
60
|
+
*
|
|
61
|
+
* const widgetWithJtd = useJtdWidget(chartProps, jtdConfig);
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @returns Enhanced widget props with JTD navigation capabilities, menu combination, and styling applied
|
|
65
|
+
*
|
|
66
|
+
* @group Dashboards
|
|
67
|
+
*/
|
|
68
|
+
export declare const useJtdWidget: (widgetProps: WidgetProps | null, config: JumpToDashboardConfig | JumpToDashboardConfigForPivot) => WidgetProps | null;
|
|
@@ -1,22 +1,48 @@
|
|
|
1
1
|
import { type Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { WidgetProps } from '../../props.js';
|
|
3
3
|
import { OpenMenuFn } from '../../common/components/menu/types.js';
|
|
4
|
-
import { WidgetsOptions } from '../../index-typedoc';
|
|
4
|
+
import { CompleteThemeSettings, WidgetsOptions } from '../../index-typedoc';
|
|
5
|
+
import { type JtdActions } from '../../dashboard/hooks/jtd/jtd-types';
|
|
6
|
+
import { JtdConfig } from '../../dashboard/hooks/jtd/jtd-types';
|
|
5
7
|
/**
|
|
6
|
-
*
|
|
8
|
+
* Shared function to apply JTD functionality to a widget.
|
|
9
|
+
* Extracted to avoid code duplication between use-jtd.ts and use-jtd-widget.ts
|
|
10
|
+
*
|
|
11
|
+
* @param widgetProps - The widget props to enhance
|
|
12
|
+
* @param config - JTD application configuration
|
|
13
|
+
* @returns Enhanced widget props with JTD functionality
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare const applyJtdToWidget: (widgetProps: WidgetProps, config: {
|
|
17
|
+
normalizedJtdConfig: JtdConfig;
|
|
18
|
+
dashboardFilters: Filter[];
|
|
19
|
+
originalWidgetFilters: Filter[];
|
|
20
|
+
extraFilters?: Filter[];
|
|
21
|
+
actions: JtdActions;
|
|
22
|
+
themeSettings: CompleteThemeSettings;
|
|
23
|
+
}) => WidgetProps;
|
|
24
|
+
/**
|
|
25
|
+
* Internal Jump To Dashboard (JTD) hook.
|
|
7
26
|
* Implements the JTD functionality for each widget with JTD config.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @param
|
|
11
|
-
* @param
|
|
27
|
+
* Supports both legacy JtdConfig and new JumpToDashboardConfig formats.
|
|
28
|
+
*
|
|
29
|
+
* @param config - The configuration object
|
|
30
|
+
* @param config.widgetOptions - The widget options of the dashboard
|
|
31
|
+
* @param config.dashboardFilters - The dashboard filters to use
|
|
32
|
+
* @param config.widgetFilters - The widget filters to use
|
|
33
|
+
* @param config.extraFilters - Extra filters to apply with highest priority
|
|
34
|
+
* @param config.openMenu - The open menu function to use
|
|
12
35
|
* @returns The connect to widget props function
|
|
36
|
+
* @internal
|
|
13
37
|
*/
|
|
14
|
-
export declare const
|
|
38
|
+
export declare const useJtdInternal: ({ widgetOptions, dashboardFilters, widgetFilters, openMenu, extraFilters, }: {
|
|
15
39
|
widgetOptions: WidgetsOptions;
|
|
16
40
|
dashboardFilters?: Filter[] | undefined;
|
|
17
41
|
widgetFilters?: Map<string, Filter[]> | undefined;
|
|
42
|
+
extraFilters?: Filter[] | undefined;
|
|
18
43
|
openMenu: OpenMenuFn;
|
|
19
44
|
}) => {
|
|
20
45
|
connectToWidgetProps: (widgetProps: WidgetProps) => WidgetProps;
|
|
21
46
|
};
|
|
22
47
|
export * from './jtd';
|
|
48
|
+
export { useJtdWidget } from './use-jtd-widget';
|
|
@@ -2,6 +2,9 @@ import { WidgetProps } from '../../props';
|
|
|
2
2
|
import { WidgetPanelLayoutManager } from '../../dashboard/hooks/use-widgets-layout';
|
|
3
3
|
import { TabberTab } from '../../types';
|
|
4
4
|
import { TabbersOptions, WidgetsPanelColumnLayout } from '../../models';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
5
8
|
export type UseTabber = ({ widgets, config, }: {
|
|
6
9
|
widgets: WidgetProps[];
|
|
7
10
|
config?: TabbersOptions | undefined;
|
|
@@ -9,10 +12,20 @@ export type UseTabber = ({ widgets, config, }: {
|
|
|
9
12
|
layoutManager: WidgetPanelLayoutManager;
|
|
10
13
|
widgets: WidgetProps[];
|
|
11
14
|
};
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
12
18
|
export type SingleTabberConfig = {
|
|
13
19
|
tabs: TabberTab[];
|
|
14
20
|
activeTab: number;
|
|
15
21
|
};
|
|
16
22
|
export declare const isTabberWidget: (widget: WidgetProps) => boolean;
|
|
17
23
|
export declare const modifyLayout: (tabbersOptions: TabbersOptions, tabberState: Record<string, number>) => (layout: WidgetsPanelColumnLayout) => WidgetsPanelColumnLayout;
|
|
24
|
+
/**
|
|
25
|
+
* Hook that modifies widget properties so it became a tabber widget.
|
|
26
|
+
* Incapsulates logic for updating layout via navigating tabs
|
|
27
|
+
* @param widgets
|
|
28
|
+
* @param tabbersConfigs
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
18
31
|
export declare const useTabber: UseTabber;
|
|
@@ -2,4 +2,5 @@ export { DashboardById } from './dashboard-by-id';
|
|
|
2
2
|
export { Dashboard } from './dashboard';
|
|
3
3
|
export { useComposedDashboard, useComposedDashboardInternal, type ComposableDashboardProps, type UseComposedDashboardOptions, } from './use-composed-dashboard';
|
|
4
4
|
export { useDashboardTheme, type DashboardThemeParams } from './use-dashboard-theme';
|
|
5
|
+
export * from './hooks';
|
|
5
6
|
export type { DashboardByIdProps, DashboardProps, DashboardLayoutOptions, DashboardStyleOptions, DashboardConfig, DashboardByIdConfig, WidgetsPanelConfig, EditModeConfig, DashboardFiltersPanelConfig, } from './types';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Filter, MembersFilter, DimensionalLevelAttribute, RelativeDateFilter } from '@sisense/sdk-data';
|
|
1
|
+
import { Filter, MembersFilter, RelativeDateFilter } from '@sisense/sdk-data';
|
|
3
2
|
export declare function isSupportedByFilterEditor(filter: Filter): boolean;
|
|
4
3
|
export declare function isIncludeAllFilter(filter: Filter): filter is MembersFilter;
|
|
5
4
|
export declare function isIncludeMembersFilter(filter: Filter): filter is MembersFilter;
|
|
@@ -8,7 +7,6 @@ export declare function isConditionalFilter(filter: Filter): boolean;
|
|
|
8
7
|
export declare function isNumericBetweenFilter(filter: Filter): boolean;
|
|
9
8
|
export declare function isRelativeDateFilterWithAnchor(filter: Filter): filter is RelativeDateFilter;
|
|
10
9
|
export declare function isRelativeDateFilterWithoutAnchor(filter: Filter): filter is RelativeDateFilter;
|
|
11
|
-
export declare function createLevelAttribute(baseLevelAttribute: DimensionalLevelAttribute, granularity: string, t: TFunction): DimensionalLevelAttribute;
|
|
12
10
|
/**
|
|
13
11
|
* Formats a given Date object into a string in the format "YYYY-MM-DDT00:00:00".
|
|
14
12
|
*
|
|
@@ -46,7 +46,7 @@ export { useCustomWidgets } from './custom-widgets-provider';
|
|
|
46
46
|
export { extractDimensionsAndMeasures, useExecuteCustomWidgetQuery, useExecuteCustomWidgetQueryInternal, type ExecuteCustomWidgetQueryParams, type CustomWidgetQueryState, } from './custom-widgets-provider';
|
|
47
47
|
export { getThemeSettingsByOid } from './themes/theme-loader';
|
|
48
48
|
export { getDefaultThemeSettings } from './theme-provider/default-theme-settings';
|
|
49
|
-
export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, useDashboardPersistence, 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';
|
|
49
|
+
export { useGetDashboardModel, useGetDashboardModels, useDashboardModel, useDashboardPersistence, 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 DashboardId, 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';
|
|
50
50
|
/**
|
|
51
51
|
* Utility functions to translate a Fusion widget model from and to other widget data structures
|
|
52
52
|
*
|
|
@@ -70,6 +70,13 @@ export * as dashboardModelTranslator from './models/dashboard/dashboard-model-tr
|
|
|
70
70
|
* @shortDescription Utility functions to manipulate dashboard elements
|
|
71
71
|
*/
|
|
72
72
|
export * as dashboardHelpers from './dashboard/dashboard-helpers';
|
|
73
|
+
/**
|
|
74
|
+
* Jump To Dashboard (JTD) configuration types
|
|
75
|
+
*
|
|
76
|
+
* @group Dashboards
|
|
77
|
+
* @shortDescription Configuration types for Jump To Dashboard functionality
|
|
78
|
+
*/
|
|
79
|
+
export type { JumpToDashboardConfig } from './dashboard/hooks/jtd';
|
|
73
80
|
export type { AutoZoomNavigatorScrollerLocation } from './widget-by-id/types';
|
|
74
81
|
export { boxWhiskerProcessResult } from './boxplot-utils';
|
|
75
82
|
export { queryStateReducer } from './query-execution/query-state-reducer';
|
|
@@ -90,6 +97,7 @@ export { LoadingIndicator } from './common/components/loading-indicator';
|
|
|
90
97
|
export { LoadingOverlay } from './common/components/loading-overlay';
|
|
91
98
|
export { useFetch, type RequestConfig, type UseQueryResult } from './common/hooks/use-fetch';
|
|
92
99
|
export { useGetDataSourceFields } from './common/hooks/fusion-endpoints/use-get-data-source-fields';
|
|
100
|
+
export { useJtdWidget } from './dashboard/hooks/use-jtd-widget';
|
|
93
101
|
export type { EmptyObject } from './utils/utility-types';
|
|
94
102
|
export { translateColumnToAttribute } from './chart-data-options/utils';
|
|
95
103
|
export { isSameAttribute } from './utils/filters';
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import { type LayoutDto, type FilterDto, type CascadingFilterDto, DashboardDto } from '../../api/types/dashboard-dto';
|
|
2
2
|
import type { WidgetsPanelColumnLayout, WidgetsOptions, TabbersOptions } from './types';
|
|
3
|
-
import { Filter, FilterRelations, FilterRelationsModel, FilterRelationsModelNode } from '@sisense/sdk-data';
|
|
4
|
-
import { WidgetDto } from '../../widget-by-id/types';
|
|
3
|
+
import { Filter, FilterRelations, FilterRelationsModel, FilterRelationsModelNode, Measure, Dimension } from '@sisense/sdk-data';
|
|
4
|
+
import { Panel, WidgetDto } from '../../widget-by-id/types';
|
|
5
|
+
import { TriggerMethod, JtdTarget } from '../../dashboard/hooks/jtd/jtd-types';
|
|
5
6
|
import { RestApi } from '../../api/rest-api';
|
|
6
7
|
export declare const translateLayout: (layout: LayoutDto) => WidgetsPanelColumnLayout;
|
|
7
8
|
export declare function extractDashboardFilters(dashboardFilters: Array<FilterDto | CascadingFilterDto>, filterRelationsModel?: FilterRelationsModel | FilterRelationsModelNode): Filter[] | FilterRelations;
|
|
9
|
+
export declare const getJtdNavigateType: (widget: WidgetDto) => TriggerMethod;
|
|
8
10
|
export declare const convertDimensionsToDimIndexes: (widget: WidgetDto, dimensionIds: string[]) => string[];
|
|
11
|
+
/**
|
|
12
|
+
* Extract pivot targets configuration from widget DTO and build Map-based targets
|
|
13
|
+
* @param widget - Widget DTO with drillToDashboardConfig
|
|
14
|
+
* @returns Map of dimensions/measures to their targets or undefined if no targets found
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare function extractPivotTargetsConfigFromWidgetDto(widget: WidgetDto): Map<Dimension | {
|
|
18
|
+
dimension: Dimension;
|
|
19
|
+
location: 'row' | 'column' | 'value';
|
|
20
|
+
} | Measure, JtdTarget[]> | undefined;
|
|
9
21
|
export declare function translateWidgetsOptions(widgets?: WidgetDto[]): WidgetsOptions;
|
|
10
22
|
export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersOptions;
|
|
11
23
|
/**
|
|
@@ -17,3 +29,14 @@ export declare function translateTabbersOptions(widgets?: WidgetDto[]): TabbersO
|
|
|
17
29
|
* @internal
|
|
18
30
|
*/
|
|
19
31
|
export declare function withSharedFormulas(dashboard: DashboardDto, api: RestApi): Promise<DashboardDto>;
|
|
32
|
+
/**
|
|
33
|
+
* Find dimension or measure by instanceId in widget panels and convert to proper type
|
|
34
|
+
* @param panels - Widget metadata panels to search
|
|
35
|
+
* @param pivotDimension - Instance ID to find, this is not a PivotDimId, it is the instanceId of the dimension or measure
|
|
36
|
+
* @returns Dimension/Measure object with optional location info or undefined if not found
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare function findDimensionByInstanceId(panels: Panel[], pivotDimension: string): Dimension | Measure | {
|
|
40
|
+
dimension: Dimension;
|
|
41
|
+
location: 'row' | 'column' | 'value';
|
|
42
|
+
} | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonFiltersOptions } from '../../common-filters/types';
|
|
2
2
|
import { ColorPaletteTheme, TabberConfig } from '../../types';
|
|
3
|
-
import {
|
|
3
|
+
import type { JumpToDashboardConfig, JumpToDashboardConfigForPivot } from '../../dashboard/hooks/jtd/jtd-types';
|
|
4
4
|
export type { CommonFiltersOptions, CommonFiltersApplyMode, FiltersIgnoringRules, } from '../../common-filters/types';
|
|
5
5
|
/**
|
|
6
6
|
* Part of Dashboard layout, which describes how widgets are arranged in a cell
|
|
@@ -59,6 +59,11 @@ export type WidgetsPanelLayout = WidgetsPanelColumnLayout;
|
|
|
59
59
|
* Widget ID
|
|
60
60
|
*/
|
|
61
61
|
export type WidgetId = string;
|
|
62
|
+
/**
|
|
63
|
+
* Dashboard ID
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
export type DashboardId = string;
|
|
62
67
|
/**
|
|
63
68
|
* Options for widgets in a dashboard
|
|
64
69
|
*
|
|
@@ -67,10 +72,9 @@ export type WidgetId = string;
|
|
|
67
72
|
export type WidgetsOptions = Record<WidgetId, {
|
|
68
73
|
filtersOptions?: CommonFiltersOptions;
|
|
69
74
|
/**
|
|
70
|
-
* Jump
|
|
71
|
-
@internal
|
|
75
|
+
* Jump To Dashboard config for widgets.
|
|
72
76
|
*/
|
|
73
|
-
jtdConfig?:
|
|
77
|
+
jtdConfig?: JumpToDashboardConfig | JumpToDashboardConfigForPivot;
|
|
74
78
|
}>;
|
|
75
79
|
/**
|
|
76
80
|
* Options for TabberWidets in a dashboard
|
|
@@ -299,8 +299,6 @@ point: IndicatorDataPoint,
|
|
|
299
299
|
nativeEvent: MouseEvent) => void;
|
|
300
300
|
/**
|
|
301
301
|
* Click handler for when a calendar-heatmap data point is clicked
|
|
302
|
-
*
|
|
303
|
-
* @alpha
|
|
304
302
|
*/
|
|
305
303
|
export type CalendarHeatmapDataPointEventHandler = (
|
|
306
304
|
/** Data point that was clicked */
|
|
@@ -309,8 +307,6 @@ point: CalendarHeatmapDataPoint,
|
|
|
309
307
|
nativeEvent: PointerEvent) => void;
|
|
310
308
|
/**
|
|
311
309
|
* Click handler for when multiple calendar-heatmap data points are selected.
|
|
312
|
-
*
|
|
313
|
-
* @alpha
|
|
314
310
|
*/
|
|
315
311
|
export type CalendarHeatmapDataPointsEventHandler = (
|
|
316
312
|
/** Data points that were selected */
|
|
@@ -1765,8 +1761,6 @@ export interface UseGetSharedFormulaParams extends HookEnableParam {
|
|
|
1765
1761
|
}
|
|
1766
1762
|
/**
|
|
1767
1763
|
* Props of the {@link CalendarHeatmapChart} component.
|
|
1768
|
-
*
|
|
1769
|
-
* @internal
|
|
1770
1764
|
*/
|
|
1771
1765
|
export interface CalendarHeatmapChartProps extends BaseChartProps, CalendarHeatmapChartEventProps {
|
|
1772
1766
|
/**
|