@sisense/sdk-ui 2.9.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 +32 -32
- package/dist/ai.js +426 -419
- package/dist/analytics-composer/node.cjs +3 -1
- package/dist/analytics-composer/node.js +521 -385
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +6 -6
- package/dist/derive-chart-family-BauaWEEc.cjs +170 -0
- package/dist/derive-chart-family-BhAFg8OE.js +29535 -0
- package/dist/{dimensions-B2jz151s.js → dimensions-Bk74slQe.js} +1 -1
- package/dist/{dimensions-CVJeJ8mi.cjs → dimensions-DCxjxuyH.cjs} +1 -1
- package/dist/{execute-query-agpyzZz6.js → execute-query-CxMSGp-J.js} +292 -269
- package/dist/execute-query-uQ2s1ZNz.cjs +1 -0
- package/dist/index.cjs +25 -26
- package/dist/index.js +12805 -11832
- package/dist/index.umd.js +384 -374
- package/dist/packages/sdk-ui/src/ai/chart/nlq-chart-widget.d.ts +7 -1
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/common.d.ts +14 -0
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-dimensions.d.ts +2 -2
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-filters.d.ts +5 -5
- package/dist/packages/sdk-ui/src/analytics-composer/new-nlq-translator/translate-measures.d.ts +3 -3
- package/dist/packages/sdk-ui/src/analytics-composer/types.d.ts +12 -0
- package/dist/packages/sdk-ui/src/app/client-application.d.ts +2 -2
- package/dist/packages/sdk-ui/src/calendar-heatmap-chart.d.ts +26 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/calendar-heatmap-chart-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/constants.d.ts +118 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/data-options.d.ts +56 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/data.d.ts +34 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/design-options.d.ts +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/highcharts-options-builder.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/axes-options.d.ts +12 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/chart-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/extras-options.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/index.d.ts +7 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/legend-options.d.ts +8 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/plot-options.d.ts +9 -0
- 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 +42 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/series-options/series-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/highchart-options-builder/options/tooltip-options.d.ts +9 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap-charts-grid.d.ts +34 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-heatmap.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/calendar-pagination.d.ts +31 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/helpers.d.ts +3 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/calendar-pagination/index.d.ts +1 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/data-helpers.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/sizing-helpers.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/helpers/view-helpers.d.ts +16 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/index.d.ts +4 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-chart-options.d.ts +55 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/hooks/use-calendar-heatmap-navigation.d.ts +33 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/renderer/index.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/calendar-heatmap-chart/types.d.ts +13 -0
- 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/cartesians/helpers/data-options.d.ts +5 -1
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/legend.d.ts +3 -2
- 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 +22 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/helpers/data.d.ts +13 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/alerts/index.d.ts +5 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data/index.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/data-options/index.d.ts +32 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/design-options/index.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/highchart-options/highcharts-options-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/pie-chart-builder.d.ts +2 -0
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/categoricals/pie-chart/types.d.ts +12 -0
- 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/highcharts-based-chart-renderer/highcharts-based-chart-renderer.d.ts +2 -4
- package/dist/packages/sdk-ui/src/chart/restructured-charts/highchart-based-charts/highcharts-based-chart-renderer/use-extra-config.d.ts +2 -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 +12 -10
- package/dist/packages/sdk-ui/src/chart-data/types.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/translate-data-options.d.ts +2 -1
- package/dist/packages/sdk-ui/src/chart-data-options/types.d.ts +19 -2
- package/dist/packages/sdk-ui/src/chart-data-options/utils.d.ts +4 -4
- package/dist/packages/sdk-ui/src/chart-data-options/validate-data-options/validate-categorical-data-options.d.ts +14 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/cartesian/utils/series-processor.d.ts +23 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/{category-chart-options.d.ts → category-chart-options/category-chart-options.d.ts} +9 -5
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/funnel-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/pie-chart-options.d.ts +15 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/sunburst-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/category-chart-options/treemap-chart-options.d.ts +17 -0
- package/dist/packages/sdk-ui/src/chart-options-processor/chart-options-service.d.ts +29 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/scatter-chart-options.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/style-to-design-options-translator/translate-to-highcharts-options.d.ts +1 -3
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/axis-section.d.ts +6 -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 +43 -7
- 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/legend-section.d.ts +28 -14
- 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/pie-series.d.ts +34 -6
- 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 +10 -4
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/translations-to-highcharts.d.ts +1 -1
- package/dist/packages/sdk-ui/src/chart-options-processor/translations/types.d.ts +50 -6
- 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/common/formatters/create-date-formatter.d.ts +10 -0
- package/dist/packages/sdk-ui/src/common/hooks/useDateFormatter.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/icons/double-arrow-end-icon.d.ts +6 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +0 -19
- 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 +15 -3
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-formatters.d.ts +80 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/jtd/jtd-handlers.d.ts +26 -4
- 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/jtd/jtd-widget-transforms.d.ts +29 -0
- 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 +10 -1
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-utils.d.ts +26 -2
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +8 -4
- package/dist/packages/sdk-ui/src/pivot-table/formatters/header-cell-formatters/header-cell-value-formatter.d.ts +2 -1
- package/dist/packages/sdk-ui/src/pivot-table/formatters/types.d.ts +0 -1
- package/dist/packages/sdk-ui/src/polar-chart.d.ts +1 -1
- package/dist/packages/sdk-ui/src/props.d.ts +66 -7
- package/dist/packages/sdk-ui/src/sisense-chart/types.d.ts +2 -2
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +1 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +11 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +22 -0
- package/dist/packages/sdk-ui/src/types.d.ts +444 -32
- package/dist/packages/sdk-ui/src/utils/combine-handlers.d.ts +19 -0
- package/dist/packages/sdk-ui/src/utils/create-level-attribute.d.ts +11 -0
- package/dist/packages/sdk-ui/src/utils/utility-types/transformer.d.ts +8 -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 -74
- package/dist/{types-QUSMO7gF.cjs → types-DhvOgfXa.cjs} +1 -1
- package/dist/{types-BYUVZb6u.js → types-Dxieyr4A.js} +1 -1
- package/dist/use-common-filters-DJyYvdev.js +91688 -0
- package/dist/use-common-filters-Qj9249s0.cjs +845 -0
- package/dist/{widget-composer-BG4HonVl.js → widget-composer-azihIMsw.js} +3 -3
- package/dist/{widget-composer-CGp5yOny.cjs → widget-composer-omIEhWNL.cjs} +1 -1
- package/package.json +13 -18
- package/dist/derive-chart-family-BLG1sO1D.js +0 -86946
- package/dist/derive-chart-family-QPmz5DJ3.cjs +0 -656
- package/dist/execute-query-Cp3se7Yb.cjs +0 -1
- package/dist/packages/sdk-ui/src/utils/__development-utils__/highcharts-options-builder-collector.d.ts +0 -61
- package/dist/packages/sdk-ui/src/utils/__development-utils__/input-output-collector.d.ts +0 -125
- package/dist/use-common-filters-DmdADAhl.cjs +0 -350
- package/dist/use-common-filters-wo5IRF5u.js +0 -31972
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { type
|
|
1
|
+
/**
|
|
2
|
+
* Jump To Dashboard configuration for regular widgets
|
|
3
|
+
* @group Dashboards
|
|
4
|
+
*/
|
|
5
|
+
export { type JumpToDashboardConfig } from './jtd-types';
|
|
6
|
+
/**
|
|
7
|
+
* Jump To Dashboard configuration for pivot widgets
|
|
8
|
+
* @group Dashboards
|
|
9
|
+
*/
|
|
10
|
+
export { type JumpToDashboardConfigForPivot } from './jtd-types';
|
|
11
|
+
/**
|
|
12
|
+
* Target dashboard configuration for Jump To Dashboard
|
|
13
|
+
* @group Dashboards
|
|
14
|
+
*/
|
|
15
|
+
export { type JtdTarget } from './jtd-types';
|
|
16
|
+
/**
|
|
17
|
+
* Trigger method for Jump To Dashboard interactions
|
|
18
|
+
* @group Dashboards
|
|
19
|
+
*/
|
|
20
|
+
export { type TriggerMethod } from './jtd-types';
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { WidgetProps } from '../../../props';
|
|
2
|
+
import type { JtdConfig, JtdTarget, JumpToDashboardConfig, JumpToDashboardConfigForPivot, PivotDimId } from './jtd-types';
|
|
3
|
+
import type { Attribute, Dimension, Measure } from '@sisense/sdk-data';
|
|
4
|
+
import { PivotTableDataOptions } from '../../../index-typedoc';
|
|
5
|
+
import type { Panel } from '../../../widget-by-id/types';
|
|
6
|
+
/**
|
|
7
|
+
* Transform legacy JtdConfig to new JumpToDashboardConfig format
|
|
8
|
+
*
|
|
9
|
+
* @param jtdConfig - The legacy JTD configuration
|
|
10
|
+
* @returns Transformed Jump To Dashboard configuration
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare const transformJtdConfigToJumpToDashboardConfig: (jtdConfig: JtdConfig) => JumpToDashboardConfig;
|
|
14
|
+
export declare const isPivotJumpToDashboardConfig: (config: JumpToDashboardConfig | JumpToDashboardConfigForPivot) => config is JumpToDashboardConfigForPivot;
|
|
15
|
+
/**
|
|
16
|
+
* Transform common part of public JumpToDashboardConfig to inner JtdConfig format
|
|
17
|
+
*
|
|
18
|
+
* @param jumpConfig - The new Jump To Dashboard configuration
|
|
19
|
+
* @returns Transformed legacy JTD configuration
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const transformJumpToDashboardConfigToJtdConfigCommon: (jumpConfig: JumpToDashboardConfig | JumpToDashboardConfigForPivot) => Omit<JtdConfig, 'jumpTargets'>;
|
|
23
|
+
export declare const transformJumpToDashboardConfigToJtdConfigForPivot: (jumpConfig: JumpToDashboardConfigForPivot, dataOptions: PivotTableDataOptions) => JtdConfig;
|
|
24
|
+
/**
|
|
25
|
+
* Type guard to check if a config is a JumpToDashboardConfig
|
|
26
|
+
*
|
|
27
|
+
* @param config - The configuration to check
|
|
28
|
+
* @returns True if the config is a JumpToDashboardConfig
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
export declare const isJumpToDashboardConfig: (config: JtdConfig | JumpToDashboardConfig | JumpToDashboardConfigForPivot) => config is JumpToDashboardConfig | JumpToDashboardConfigForPivot;
|
|
32
|
+
/**
|
|
33
|
+
* Normalize configuration to JumpToDashboardConfig format
|
|
34
|
+
* Accepts both legacy JtdConfig and new JumpToDashboardConfig
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
* @param config - Either JtdConfig or JumpToDashboardConfig
|
|
38
|
+
* @returns Normalized JumpToDashboardConfig
|
|
39
|
+
*/
|
|
40
|
+
export declare const normalizeToJumpToDashboardConfig: (config: JtdConfig | JumpToDashboardConfig) => JumpToDashboardConfig;
|
|
41
|
+
/**
|
|
42
|
+
* Normalize configuration to legacy JtdConfig format
|
|
43
|
+
* Accepts both legacy JtdConfig and new JumpToDashboardConfig
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
* @param config - Either JtdConfig or JumpToDashboardConfig
|
|
47
|
+
* @returns Normalized JtdConfig
|
|
48
|
+
*/
|
|
49
|
+
export declare const normalizeToJtdConfig: (config: JtdConfig | JumpToDashboardConfig | JumpToDashboardConfigForPivot, widgetProps: WidgetProps) => JtdConfig;
|
|
50
|
+
/**
|
|
51
|
+
* Enhanced matching strategy that considers location, expression, level, and other properties
|
|
52
|
+
* @param dimension - The dimension or measure object
|
|
53
|
+
* @param panels - Constructed panels with PanelItems
|
|
54
|
+
* @returns PivotDimId like "columns.0", "rows.1", "values.0"
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
export declare const dimensionToPivotDimId: (dimension: Attribute | Measure | {
|
|
58
|
+
dimension: Attribute;
|
|
59
|
+
location: 'row' | 'column' | 'value';
|
|
60
|
+
}, panels: Panel[]) => PivotDimId | null;
|
|
61
|
+
/**
|
|
62
|
+
* Convert PivotDimId back to Dimension/Measure using widget structure
|
|
63
|
+
* @param pivotDimId - PivotDimId like "columns.0", "rows.1", "values.0"
|
|
64
|
+
* @param widgetStructure - Widget structure with rows/columns/values arrays
|
|
65
|
+
* @returns The dimension or measure object, or null if not found
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
export declare const pivotDimIdToDimension: (pivotDimId: PivotDimId, widgetStructure: {
|
|
69
|
+
rows?: Array<Dimension | Measure>;
|
|
70
|
+
columns?: Array<Dimension | Measure>;
|
|
71
|
+
values?: Array<Dimension | Measure>;
|
|
72
|
+
}) => Dimension | Measure | null;
|
|
73
|
+
/**
|
|
74
|
+
* Convert Map-based pivot targets to array-based pivot targets (for internal JtdConfig)
|
|
75
|
+
* @param targetsMap - Map of dimensions/measures to targets
|
|
76
|
+
* @param panels - Widget metadata panels (source of truth for dimension positions)
|
|
77
|
+
* @returns Array of targets with pivotDimensions
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
export declare const mapTargetsToArrayTargets: (targetsMap: Map<Attribute | {
|
|
81
|
+
dimension: Attribute;
|
|
82
|
+
location: 'row' | 'column' | 'value';
|
|
83
|
+
} | Measure, JtdTarget[]>, panels: Panel[]) => Array<JtdTarget & {
|
|
84
|
+
pivotDimensions?: PivotDimId[];
|
|
85
|
+
}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { type Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { WidgetProps } from '../../../props.js';
|
|
3
3
|
import { DataPoint, ScatterDataPoint } from '../../../types';
|
|
4
|
-
import { JtdConfig } from '
|
|
4
|
+
import { JtdConfig } from './jtd-types';
|
|
5
5
|
/**
|
|
6
|
-
* Jump
|
|
6
|
+
* Jump To Dashboard (JTD) Filter Merging Logic:
|
|
7
7
|
*
|
|
8
8
|
* When a user clicks on a datapoint to open a JTD modal, multiple types of filters are merged:
|
|
9
9
|
*
|
|
10
10
|
* 1. **Generated Filters**: Created from the clicked datapoint's category and breakBy entries
|
|
11
11
|
* 2. **Dashboard Filters**: Current dashboard filters (filtered by includeDashFilterDims)
|
|
12
12
|
* 3. **Widget Filters**: Original widget-specific filters (filtered by includeWidgetFilterDims)
|
|
13
|
-
* 4. **Formula Context Filters**:
|
|
13
|
+
* 4. **Formula Context Filters**: Embedded filters from the clicked widget's datapoint calculations
|
|
14
14
|
*
|
|
15
15
|
* ## Formula Context Filters (New Feature)
|
|
16
16
|
*
|
|
@@ -57,6 +57,7 @@ import { JtdConfig } from '../../../widget-by-id/types';
|
|
|
57
57
|
* @param clickedWidget - The clicked widget
|
|
58
58
|
* @param jtdConfig - The JTD configuration
|
|
59
59
|
* @returns Array of formula context filters
|
|
60
|
+
* @internal
|
|
60
61
|
*/
|
|
61
62
|
export declare const getFormulaContextFilters: (clickedWidget: WidgetProps, jtdConfig: JtdConfig) => Filter[];
|
|
62
63
|
/**
|
|
@@ -68,6 +69,17 @@ export declare const getFormulaContextFilters: (clickedWidget: WidgetProps, jtdC
|
|
|
68
69
|
* @internal
|
|
69
70
|
*/
|
|
70
71
|
export declare const handleFormulaDuplicateFilters: (filters: Filter[], sendFormulaFiltersDuplicate?: number | 'none') => Filter[];
|
|
72
|
+
/**
|
|
73
|
+
* Normalizes a date value to the start of the period for the given granularity
|
|
74
|
+
* This ensures the filter member value matches what the backend query returns
|
|
75
|
+
* Uses existing date utilities instead of manual parsing to reduce business logic
|
|
76
|
+
*
|
|
77
|
+
* @param value - The raw date value (e.g., "2009-11-15T12:30:00.000")
|
|
78
|
+
* @param granularity - The date granularity (e.g., "Months")
|
|
79
|
+
* @returns Normalized date string that matches backend member query format
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
export declare const normalizeDateForGranularity: (value: string, granularity: string) => string;
|
|
71
83
|
/**
|
|
72
84
|
* Type guard to check if a data point is a ScatterDataPoint.
|
|
73
85
|
* Checks for actual scatter chart structure (x/y coordinates) and scatter-only properties.
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { CustomDataCellFormatter, CustomHeaderCellFormatter } from '../../../pivot-table/formatters/types';
|
|
2
|
+
import { JtdConfig, JtdTarget } from './jtd-types';
|
|
3
|
+
import { PivotTableDataPoint } from '../../../types';
|
|
4
|
+
/**
|
|
5
|
+
* Check if a formatter cell ID is actionable for JTD
|
|
6
|
+
* Used by hyperlink formatters with cell IDs like "rows.0", "columns.1", "values.2"
|
|
7
|
+
*
|
|
8
|
+
* @param jtdConfig - The JTD configuration
|
|
9
|
+
* @param cellId - The cell ID from formatters (e.g., "rows.0")
|
|
10
|
+
* @returns Object with actionable status and matching target
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare function getPivotFormatterCellActionability(jtdConfig: JtdConfig, cellId: string): {
|
|
14
|
+
isActionable: boolean;
|
|
15
|
+
matchingTarget?: JtdTarget;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Check if a click handler pivot point is actionable for JTD
|
|
19
|
+
* Used by click handlers with pivot data points containing custom dimension IDs
|
|
20
|
+
*
|
|
21
|
+
* @param jtdConfig - The JTD configuration
|
|
22
|
+
* @param pivotPoint - The pivot data point from click handlers
|
|
23
|
+
* @returns Object with actionable status and matching target
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare function isPivotClickHandlerActionable(jtdConfig: JtdConfig, pivotPoint: PivotTableDataPoint): {
|
|
27
|
+
isActionable: boolean;
|
|
28
|
+
matchingTarget?: JtdTarget;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Find all actionable jump targets for a pivot point (for right-click menus)
|
|
32
|
+
* Used by right-click handlers that need to show multiple targets
|
|
33
|
+
*
|
|
34
|
+
* @param jtdConfig - The JTD configuration
|
|
35
|
+
* @param pivotPoint - The pivot data point from click handlers
|
|
36
|
+
* @returns Object with actionable status and all matching targets
|
|
37
|
+
* @internal
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* // Usage in right-click menu handler for pivot tables
|
|
42
|
+
* const onPivotRightClick = (pivotPoint: PivotTableDataPoint) => {
|
|
43
|
+
* const { isActionable, matchingTargets } = findAllActionablePivotTargets(jtdConfig, pivotPoint);
|
|
44
|
+
*
|
|
45
|
+
* if (!isActionable) {
|
|
46
|
+
* return; // No menu - headers are not clickable or no valid targets
|
|
47
|
+
* }
|
|
48
|
+
*
|
|
49
|
+
* // Only valid targets are returned:
|
|
50
|
+
* // - Targets with matching pivot dimensions for this cell
|
|
51
|
+
* // - NEVER targets with non-matching pivot dimensions
|
|
52
|
+
* const menuItems = matchingTargets.map(target => ({
|
|
53
|
+
* caption: target.caption,
|
|
54
|
+
* onClick: () => handleJumpToDashboard(target, pivotPoint)
|
|
55
|
+
* }));
|
|
56
|
+
*
|
|
57
|
+
* openContextMenu({ items: menuItems });
|
|
58
|
+
* };
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
export declare function getPivotTargetActionability(jtdConfig: JtdConfig, pivotPoint: PivotTableDataPoint): {
|
|
62
|
+
isActionable: boolean;
|
|
63
|
+
matchingTargets: JtdTarget[];
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Creates a data cell formatter that applies hyperlink styling for JTD navigation
|
|
67
|
+
*
|
|
68
|
+
* @param hyperlinkColor - The color to use for hyperlink text (uses theme's hyperlinkColor
|
|
69
|
+
* @returns Data cell formatter function
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
export declare function createJtdHyperlinkDataCellFormatter(hyperlinkColor: string, jtdConfig: JtdConfig): CustomDataCellFormatter;
|
|
73
|
+
/**
|
|
74
|
+
* Creates a header cell formatter that applies hyperlink styling for JTD navigation
|
|
75
|
+
*
|
|
76
|
+
* @param hyperlinkColor - The color to use for hyperlink text (uses theme's hyperlinkColor or defaults to DEFAULT_HYPERLINK_COLOR)
|
|
77
|
+
* @param jtdConfig - JTD configuration containing jump targets
|
|
78
|
+
* @returns A header cell formatter that applies hyperlink styling to matching header cells
|
|
79
|
+
*/
|
|
80
|
+
export declare function createJtdHyperlinkHeaderCellFormatter(hyperlinkColor: string, jtdConfig: JtdConfig): CustomHeaderCellFormatter;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { WidgetProps } from '../../../props.js';
|
|
3
|
-
import {
|
|
3
|
+
import { PivotTableDataPoint, DataPoint } from '../../../types';
|
|
4
|
+
import { JtdActions, JtdClickHandlerData, JtdConfig, JtdContext, JtdCoreData, JtdDataPointClickEvent } from './jtd-types';
|
|
4
5
|
import { OpenModalFn } from '../../../common/components/modal/modal-context';
|
|
5
|
-
import { JtdCoreData, JtdContext, JtdActions, JtdClickHandlerData, JtdDataPointClickEvent } from './jtd-types';
|
|
6
6
|
/**
|
|
7
7
|
* Get the JTD click handler for a specific data point of the specific widget
|
|
8
8
|
*
|
|
9
|
-
* @param data - Core data with
|
|
9
|
+
* @param data - Core data with jump target (config, jump target, widget props, point)
|
|
10
10
|
* @param context - Context data (filters)
|
|
11
11
|
* @param actions - Action functions
|
|
12
12
|
* @returns The JTD click handler
|
|
@@ -16,7 +16,7 @@ export declare const getJtdClickHandler: (data: JtdClickHandlerData, context: Jt
|
|
|
16
16
|
/**
|
|
17
17
|
* Get the JTD click handler for multiple data points
|
|
18
18
|
*
|
|
19
|
-
* @param data - Core data with
|
|
19
|
+
* @param data - Core data with jump target (config, jump target, widget props, points)
|
|
20
20
|
* @param context - Context data (filters)
|
|
21
21
|
* @param actions - Action functions
|
|
22
22
|
* @returns The JTD click handler
|
|
@@ -33,6 +33,28 @@ export declare const getJtdClickHandlerForMultiplePoints: (data: JtdClickHandler
|
|
|
33
33
|
* @internal
|
|
34
34
|
*/
|
|
35
35
|
export declare const handleDataPointClick: (coreData: JtdCoreData, context: JtdContext, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>, event: JtdDataPointClickEvent) => void | Promise<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Convert PivotTableDataPoint to DataPoint format for JTD processing
|
|
38
|
+
*
|
|
39
|
+
* @param pivotPoint - The pivot table data point
|
|
40
|
+
* @returns Converted data point
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export declare const convertPivotToDataPoint: (pivotPoint: PivotTableDataPoint) => DataPoint;
|
|
44
|
+
/**
|
|
45
|
+
* Handle pivot table data point click
|
|
46
|
+
*
|
|
47
|
+
* @param data - Core data with jump target (config, jump target, widget props, pivot point)
|
|
48
|
+
* @param context - Context data (filters)
|
|
49
|
+
* @param actions - Action functions
|
|
50
|
+
* @param eventData - Event-related data
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export declare const handlePivotDataPointClick: (data: {
|
|
54
|
+
jtdConfig: JtdConfig;
|
|
55
|
+
widgetProps: WidgetProps;
|
|
56
|
+
point: PivotTableDataPoint;
|
|
57
|
+
}, context: JtdContext, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => Promise<string> | undefined;
|
|
36
58
|
/**
|
|
37
59
|
* Handle text widget click (placeholder for future implementation)
|
|
38
60
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type Filter } from '@sisense/sdk-data';
|
|
1
|
+
import { Attribute, Measure, type Filter } from '@sisense/sdk-data';
|
|
2
2
|
import { WidgetProps } from '../../../props.js';
|
|
3
3
|
import { DataPoint } from '../../../types';
|
|
4
|
-
import {
|
|
4
|
+
import { DashboardConfig, DashboardProps } from '../../../dashboard/types';
|
|
5
5
|
import { OpenModalFn } from '../../../common/components/modal/modal-context';
|
|
6
6
|
import { OpenMenuFn } from '../../../common/components/menu/types.js';
|
|
7
7
|
/**
|
|
@@ -44,6 +44,8 @@ export interface JtdContext {
|
|
|
44
44
|
dashboardFilters: Filter[];
|
|
45
45
|
/** The original widget filters */
|
|
46
46
|
originalWidgetFilters: Filter[];
|
|
47
|
+
/** Extra filters to be applied with highest priority */
|
|
48
|
+
extraFilters?: Filter[];
|
|
47
49
|
}
|
|
48
50
|
/**
|
|
49
51
|
* Base interface for JTD action functions
|
|
@@ -59,13 +61,13 @@ export interface JtdActions {
|
|
|
59
61
|
translate?: (key: string) => string;
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
|
-
* Extended core data for JTD click handlers that includes
|
|
64
|
+
* Extended core data for JTD click handlers that includes jump target
|
|
63
65
|
*
|
|
64
66
|
* @internal
|
|
65
67
|
*/
|
|
66
68
|
export interface JtdClickHandlerData extends JtdCoreData {
|
|
67
|
-
/** The
|
|
68
|
-
|
|
69
|
+
/** The jump target */
|
|
70
|
+
jumpTarget: JtdTarget;
|
|
69
71
|
}
|
|
70
72
|
/**
|
|
71
73
|
* Configuration for widget transforms, combining config and context
|
|
@@ -79,6 +81,8 @@ export interface JtdWidgetTransformConfig {
|
|
|
79
81
|
dashboardFilters: Filter[];
|
|
80
82
|
/** The original widget filters */
|
|
81
83
|
originalWidgetFilters: Filter[];
|
|
84
|
+
/** Extra filters to be applied with highest priority */
|
|
85
|
+
extraFilters?: Filter[];
|
|
82
86
|
}
|
|
83
87
|
/**
|
|
84
88
|
* Event-related data for handling data point clicks
|
|
@@ -91,3 +95,254 @@ export interface JtdDataPointClickEvent {
|
|
|
91
95
|
/** Function to get menu item */
|
|
92
96
|
getJumpToDashboardMenuItem: (coreData: JtdCoreData, context: JtdContext, actions: Pick<JtdActions, 'openModal' | 'translate'>) => JtdMenuItem;
|
|
93
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Configuration for Jump To Dashboard functionality.
|
|
100
|
+
* Allows users to navigate from a widget to another dashboard with contextual filtering.
|
|
101
|
+
*/
|
|
102
|
+
export interface JumpToDashboardConfig {
|
|
103
|
+
/**
|
|
104
|
+
* Whether Jump To Dashboard functionality is enabled
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
enabled?: boolean;
|
|
108
|
+
/** List of target dashboards that can be navigated to */
|
|
109
|
+
targets: JtdTarget[];
|
|
110
|
+
/** Configuration for user interaction behavior */
|
|
111
|
+
interaction?: {
|
|
112
|
+
/**
|
|
113
|
+
* How users trigger the jump action
|
|
114
|
+
* Note that not all widgets support both trigger methods
|
|
115
|
+
*
|
|
116
|
+
* @default 'rightclick'
|
|
117
|
+
**/
|
|
118
|
+
triggerMethod?: TriggerMethod;
|
|
119
|
+
/**
|
|
120
|
+
* Caption prefix for jumping action (i.e in context menu)
|
|
121
|
+
* @default 'Jump to'
|
|
122
|
+
*/
|
|
123
|
+
captionPrefix?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Whether to show the Jump To Dashboard icon in the toolbar of the source widget
|
|
126
|
+
* @default true
|
|
127
|
+
*/
|
|
128
|
+
showIcon?: boolean;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Configuration for the target dashboard display.
|
|
132
|
+
* This configuration will be merged with target dashboard config, having higher priority
|
|
133
|
+
* @default {}
|
|
134
|
+
*/
|
|
135
|
+
targetDashboardConfig?: DashboardConfig;
|
|
136
|
+
/** Configuration for filter handling between source and target dashboards */
|
|
137
|
+
filtering?: {
|
|
138
|
+
/**
|
|
139
|
+
* Additional filters to apply to the target dashboard
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* const extraFilters = [dashboardProps.filters[0], dashboardProps.widgets[0].filters[0]]
|
|
143
|
+
*
|
|
144
|
+
* @default []
|
|
145
|
+
*/
|
|
146
|
+
extraFilters?: Filter[];
|
|
147
|
+
/**
|
|
148
|
+
* Dashboard-level filter dimensions to pass through
|
|
149
|
+
*
|
|
150
|
+
* undefined - include all
|
|
151
|
+
* [] - include nothing
|
|
152
|
+
* [string] - include specific dimensions
|
|
153
|
+
*
|
|
154
|
+
* example: ["[ER.Date (Calendar)]", "[Doctors.Specialty]"]
|
|
155
|
+
* @default undefined
|
|
156
|
+
*/
|
|
157
|
+
includeDashboardFilters?: string[];
|
|
158
|
+
/**
|
|
159
|
+
* Widget-level filter dimensions to pass through
|
|
160
|
+
*
|
|
161
|
+
* undefined - include all
|
|
162
|
+
* [] - include nothing
|
|
163
|
+
* [string] - include specific dimensions
|
|
164
|
+
*
|
|
165
|
+
* example: ["[ER.Date (Calendar)]", "[Doctors.Specialty]"]
|
|
166
|
+
* @default undefined
|
|
167
|
+
*/
|
|
168
|
+
includeWidgetFilters?: string[];
|
|
169
|
+
/**
|
|
170
|
+
* Whether to merge filters with existing target dashboard filters or replace them
|
|
171
|
+
* @default false
|
|
172
|
+
*/
|
|
173
|
+
mergeWithTargetFilters?: boolean;
|
|
174
|
+
};
|
|
175
|
+
/** Configuration for the modal window that will display the target dashboard */
|
|
176
|
+
modal?: {
|
|
177
|
+
/**
|
|
178
|
+
* Width of the modal window
|
|
179
|
+
* @default 85 (when measurementUnit is '%') or 1200 (when measurementUnit is 'px')
|
|
180
|
+
*/
|
|
181
|
+
width?: number;
|
|
182
|
+
/**
|
|
183
|
+
* Height of the modal window
|
|
184
|
+
* @default 85 (when measurementUnit is '%') or 800 (when measurementUnit is 'px')
|
|
185
|
+
*/
|
|
186
|
+
height?: number;
|
|
187
|
+
/**
|
|
188
|
+
* Unit of measurement for width/height
|
|
189
|
+
* @default 'px'
|
|
190
|
+
*/
|
|
191
|
+
measurementUnit?: '%' | 'px';
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Configuration for Jump To Dashboard functionality for pivot widgets.
|
|
196
|
+
* Used for pivot widgets, allowing to configure jumping to different dashboard from different dimensions
|
|
197
|
+
* @see {@link JumpToDashboardConfig}
|
|
198
|
+
*/
|
|
199
|
+
export interface JumpToDashboardConfigForPivot extends Omit<JumpToDashboardConfig, 'targets'> {
|
|
200
|
+
/**
|
|
201
|
+
* Map of target dashboards for different dimensions/measures
|
|
202
|
+
*
|
|
203
|
+
* @alpha
|
|
204
|
+
* @example
|
|
205
|
+
*
|
|
206
|
+
* const FormulaMeasure = dashboardProps.widgets[0].dataOptions.values[0];
|
|
207
|
+
* const ageRangeAttribute = dashboardProps.widgets[0].dataOptions.rows[1];
|
|
208
|
+
*
|
|
209
|
+
* const targets = new Map([
|
|
210
|
+
* [ageRangeAttribute, [target, target2]],
|
|
211
|
+
* [FormulaMeasure, [target3]],
|
|
212
|
+
* ]);
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
targets: Map<Attribute | {
|
|
216
|
+
dimension: Attribute;
|
|
217
|
+
location: 'row' | 'column' | 'value';
|
|
218
|
+
} | Measure, JtdTarget[]>;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Target dashboard for Jump To Dashboard functionality.
|
|
222
|
+
* Supports both dashboard ID reference and in-code dashboard object.
|
|
223
|
+
* @see JumpToDashboardConfig
|
|
224
|
+
* @see DashboardProps
|
|
225
|
+
*/
|
|
226
|
+
export type JtdTarget = {
|
|
227
|
+
caption: string;
|
|
228
|
+
id: string;
|
|
229
|
+
} | {
|
|
230
|
+
caption: string;
|
|
231
|
+
dashboard: DashboardProps;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Type guard to check if a jump target contains dashboard props
|
|
235
|
+
* @internal
|
|
236
|
+
*/
|
|
237
|
+
export declare const isJumpTargetWithDashboardProps: (target: JtdTarget) => target is {
|
|
238
|
+
caption: string;
|
|
239
|
+
dashboard: DashboardProps;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Type guard to check if a jump target contains dashboard ID
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
245
|
+
export declare const isJumpTargetWithId: (target: JtdTarget) => target is {
|
|
246
|
+
caption: string;
|
|
247
|
+
id: string;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* @internal
|
|
251
|
+
*/
|
|
252
|
+
export type PivotDimType = 'columns' | 'rows' | 'values';
|
|
253
|
+
/**
|
|
254
|
+
* @internal
|
|
255
|
+
*/
|
|
256
|
+
export type NonNegativeIntString = Exclude<`${bigint}`, `-${string}`>;
|
|
257
|
+
/**
|
|
258
|
+
* Pivot dimension ID
|
|
259
|
+
* example: "columns.0", "rows.0", "values.0", "columns.1", "rows.1", "values.1", etc.
|
|
260
|
+
* @internal
|
|
261
|
+
*/
|
|
262
|
+
export type PivotDimId = `${PivotDimType}.${NonNegativeIntString}`;
|
|
263
|
+
export type JtdTargetDto = {
|
|
264
|
+
caption: string;
|
|
265
|
+
id?: string;
|
|
266
|
+
oid?: string;
|
|
267
|
+
};
|
|
268
|
+
export type JtdPivotTargetDto = JtdTargetDto & {
|
|
269
|
+
pivotDimensions: string[];
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* Legacy representation of JTD config from Fusion
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
export type JtdConfigDto = {
|
|
276
|
+
drilledDashboardPrefix: string;
|
|
277
|
+
drilledDashboardsFolderPrefix: string;
|
|
278
|
+
displayFilterPane: boolean;
|
|
279
|
+
displayDashboardsPane: boolean;
|
|
280
|
+
displayToolbarRow: boolean;
|
|
281
|
+
displayHeaderRow: boolean;
|
|
282
|
+
volatile: boolean;
|
|
283
|
+
hideDrilledDashboards: boolean;
|
|
284
|
+
hideSharedDashboardsForNonOwner: boolean;
|
|
285
|
+
drillToDashboardRightMenuCaption: string;
|
|
286
|
+
drillToDashboardNavigateType: number;
|
|
287
|
+
drillToDashboardNavigateTypePivot: number;
|
|
288
|
+
drillToDashboardNavigateTypeCharts: number;
|
|
289
|
+
drillToDashboardNavigateTypeOthers: number;
|
|
290
|
+
drilledDashboardDisplayType: number;
|
|
291
|
+
dashboardIds: Array<JtdTargetDto | JtdPivotTargetDto>;
|
|
292
|
+
modalWindowResize: boolean;
|
|
293
|
+
modalWindowMeasurement?: 'px' | '%';
|
|
294
|
+
modalWindowWidth?: number;
|
|
295
|
+
modalWindowHeight?: number;
|
|
296
|
+
showFolderNameOnMenuSelection: boolean;
|
|
297
|
+
resetDashFiltersAfterJTD: boolean;
|
|
298
|
+
sameCubeRestriction: boolean;
|
|
299
|
+
showJTDIcon?: boolean;
|
|
300
|
+
sendPieChartMeasureFiltersOnClick: boolean;
|
|
301
|
+
forceZeroInsteadNull: boolean;
|
|
302
|
+
mergeTargetDashboardFilters: boolean;
|
|
303
|
+
drillToDashboardByName: boolean;
|
|
304
|
+
sendBreakByValueFilter: boolean;
|
|
305
|
+
ignoreFiltersSource: boolean;
|
|
306
|
+
sendFormulaFiltersDuplicate?: number | 'none' | undefined;
|
|
307
|
+
enabled?: boolean;
|
|
308
|
+
version?: string;
|
|
309
|
+
includeDashFilterDims?: string[];
|
|
310
|
+
includeWidgetFilterDims?: string[];
|
|
311
|
+
};
|
|
312
|
+
/**
|
|
313
|
+
* Jump To Dashboard action trigger method type
|
|
314
|
+
* click - when user clicks on the widget
|
|
315
|
+
* rightclick - when user right clicks on the widget, opening the context menu
|
|
316
|
+
* @see {@link JumpToDashboardConfig}
|
|
317
|
+
*/
|
|
318
|
+
export type TriggerMethod = 'click' | 'rightclick';
|
|
319
|
+
/**
|
|
320
|
+
* @internal
|
|
321
|
+
*/
|
|
322
|
+
export type JtdTargetInner = JtdTarget & {
|
|
323
|
+
pivotDimensions?: PivotDimId[];
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Internal representation of Jump To Dashboard configuration object.
|
|
327
|
+
* This is the legacy format that includes fields like drilledDashboardPrefix
|
|
328
|
+
* and modalWindowResize that don't have direct equivalents in JumpToDashboardConfig.
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
331
|
+
export type JtdConfig = {
|
|
332
|
+
jumpedDashboardPrefix?: string;
|
|
333
|
+
dashboardConfig?: DashboardConfig;
|
|
334
|
+
jumpToDashboardRightMenuCaption?: string;
|
|
335
|
+
navigateType?: TriggerMethod;
|
|
336
|
+
includeDashFilterDims?: string[];
|
|
337
|
+
includeWidgetFilterDims?: string[];
|
|
338
|
+
jumpTargets: Array<JtdTargetInner>;
|
|
339
|
+
modalWindowResize?: boolean;
|
|
340
|
+
modalWindowMeasurement?: 'px' | '%';
|
|
341
|
+
modalWindowWidth?: number;
|
|
342
|
+
modalWindowHeight?: number;
|
|
343
|
+
showJtdIcon?: boolean;
|
|
344
|
+
mergeTargetDashboardFilters?: boolean;
|
|
345
|
+
sendFormulaFiltersDuplicate?: number | 'none' | undefined;
|
|
346
|
+
enabled?: boolean;
|
|
347
|
+
extraFilters?: Filter[];
|
|
348
|
+
};
|
|
@@ -18,6 +18,16 @@ export declare const addPointerCursorToChart: (widgetProps: WidgetProps) => Widg
|
|
|
18
18
|
* @internal
|
|
19
19
|
*/
|
|
20
20
|
export declare const applyClickNavigationForChart: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
|
|
21
|
+
/**
|
|
22
|
+
* Apply JTD click navigation for pivot table widgets
|
|
23
|
+
*
|
|
24
|
+
* @param widgetProps - The widget props
|
|
25
|
+
* @param config - The JTD configuration and context
|
|
26
|
+
* @param actions - The action functions
|
|
27
|
+
* @returns Updated widget props with click navigation
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare const applyClickNavigationForPivot: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
|
|
21
31
|
/**
|
|
22
32
|
* Apply JTD click navigation for text widgets
|
|
23
33
|
*
|
|
@@ -38,6 +48,25 @@ export declare const applyClickNavigationForText: (widgetProps: WidgetProps, con
|
|
|
38
48
|
* @internal
|
|
39
49
|
*/
|
|
40
50
|
export declare const applyRightClickNavigation: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
|
|
51
|
+
/**
|
|
52
|
+
* Apply JTD right-click navigation for pivot table widgets
|
|
53
|
+
*
|
|
54
|
+
* @param widgetProps - The widget props
|
|
55
|
+
* @param config - The JTD configuration and context
|
|
56
|
+
* @param actions - The action functions
|
|
57
|
+
* @returns Updated widget props with right-click navigation
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
export declare const applyRightClickNavigationForPivot: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, actions: Pick<JtdActions, 'openModal' | 'openMenu' | 'translate'>) => WidgetProps;
|
|
61
|
+
/**
|
|
62
|
+
* Applies hyperlink styling to pivot table cells for PIVOT_LINK navigation
|
|
63
|
+
* @param widgetProps - Pivot table widget props
|
|
64
|
+
* @param config - JTD configuration
|
|
65
|
+
* @param hyperlinkColor
|
|
66
|
+
* @returns Updated widget props with hyperlink styling
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
export declare const applyPivotLinkStyling: (widgetProps: WidgetProps, config: JtdWidgetTransformConfig, hyperlinkColor?: string) => WidgetProps;
|
|
41
70
|
/**
|
|
42
71
|
* Add JTD icon to widget header if configured
|
|
43
72
|
*
|
|
@@ -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;
|